* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== ФОН СТРАНИЦЫ ========== */
body {
  background: #1A2030;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  color: #E2E8F0;
  min-height: 100vh;
  padding: 10px 0 140px; /* было 10px */
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* ========== ВЕРХНЯЯ ПАНЕЛЬ ========== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}





.current-style-badge {
  background: linear-gradient(0deg, #4d911a, #1b571a);
  
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: bold;
  font-size: 0.9rem;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.current-style-badge:active {
  transform: scale(0.96);
}


.oldSiteA,
.oldSiteA:visited,
.oldSiteA:active,
.oldSiteA:hover {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
}


.logo {
  font-size: 30px;
  font-weight: 700;
  color: #79ddf2;
}

.logo a,
.logo a:visited,
.logo a:active,
.logo a:hover {
    text-decoration: none;
    color: #79ddf2;
}


.volume-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.volume-compact .volume-icon {
  color: #00F0FF;
  font-size: 0.9rem;
}

.volume-compact .volume-slider {
  width: 70px;
  height: 4px;
  border-radius: 10px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.volume-compact .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #00F0FF;
  border-radius: 50%;
  cursor: pointer;
}

.volume-compact .volume-value {
  font-size: 0.7rem;
  color: #00F0FF;
  font-family: monospace;
  min-width: 38px;
}



/* ========== ПАГИНАЦИЯ ========== */
.pagination {
user-select: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.pagination button {
  background: #1A202C;
  border: 1px solid #4A5568;
  padding: 12px 14px;
  border-radius: 40px;
  font-weight: bold;
  font-size: 1rem;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination button:active {
  transform: scale(0.96);
}

.pagination button.hidden {
  display: none;
}

.pagination button.next-page,
.pagination button.prev-page {
  background: linear-gradient(135deg, #1a91d0, #1a7091);
  color: white;
  border: none;
}

/* ========== ПЛЕЕР — УБРАЛ BLUR ========== */
.player {
  user-select: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 36px);
  max-width: 780px;

  z-index: 100;

  background: #0F1222;
  border-radius: 24px;
  padding: 14px 20px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.5);
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  gap: 10px;
  flex: 2;
  justify-content: center;
}

.controls button {
  background: #1E293B;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 1.3rem;
  font-weight: bold;
  padding: 8px 12px;
  min-width: 58px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.1s ease;
  color: #00F0FF;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.controls button:active {
  transform: scale(0.90);
}




.play.active 
{
  background: #7cff79;
  color: #0A0D18;
  border: 0px;
}

.play.paused 
{
  background: #f7fa7e;
  color: #0a0d18;
  border: 0px;
}

.stop.active 
{
  background: #fa7e7e;
  color: #0A0D18;
  border: 0px;
}




.seekBar-area {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.seekBar-slider-wrapper {
  flex: 1;
  min-width: 120px;
 
}

input#seekBar {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  -webkit-appearance: none;
  background: #42abae;
  cursor: pointer;
}

input#seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00F0FF;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  cursor: pointer;
}

.time-stats {

  background: #0D1117;
  padding: 4px 4px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.9rem;

  color: #8be75f;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(162, 233, 135, 0.4);
}

/* ========== КАРТОЧКИ — УБРАЛ BLUR И ГРАДИЕНТЫ ========== */


.upNavHeader {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}









.mixes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  user-select: none;
  -webkit-user-select: none;
  background: #0F1222;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 240, 255, 0.3);
}



.card.active {
  background: #1A1528;
  border: 4px solid #56e817;


}

.card.deleted {
  background: #1A1A1A;
  opacity: 0.4;
}


.cardMixHeader {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}



.cardMixTracklistBlock {
    user-select: text;
  -webkit-user-select: text;
  display: none;

  color: #ffffff;
  font-size: 0.7rem;

  padding: 6px;
  border: 1px solid rgba(192, 192, 192, 0.4);
  text-transform: uppercase;
}


.cardMixStyle {
  display: inline-block;
  background: rgba(0, 240, 255, 0.12);
  color: #00F0FF;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 40px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  text-transform: uppercase;
  cursor: pointer;
}

.cardMixTitle {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
  margin-top: 4px;
  letter-spacing: -0.3px;
}


.cardMixArtist {
  font-size: 1.35rem;
  color: #e910d3;
  font-weight: 600;
  cursor: pointer;
}



.cardMixContainer {

  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cardMixInfo {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cardMixId,
.cardMixPortal,
.cardMixSize,
.cardMixDate {
  display: inline-block;
  background: #1A202C;
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid #2D3748;
}

.cardMixId,.cardMixSize, .cardMixDate { border-left: 2px solid #3ffd2f; }




.cardMixListen {
  display: inline-block;
    background: rgba(26, 230, 122, 0.5);
  	color: #ffffff;
	border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;

}

.cardMixListen:active {
  transform: scale(0.96);
}




.cardMixDownload {
  display: inline-block;
    background: rgba(0, 214, 225, 0.3);
  	color: #ffffff;
	border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;

}

.cardMixDownload:active {
  transform: scale(0.96);
}

.cardMixArtistLink {
  display: inline-block;
    background: rgba(0, 193, 204, 0.3);
  	color: #ffffff;
	border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;

}

.cardMixArtistLink:active {
  transform: scale(0.96);
}



.cardMixTracklist {
  display: inline-block;
    background: rgba(0, 157, 166, 0.3);
  	color: #ffffff;
	border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;

}

.cardMixTracklist:active {
  transform: scale(0.96);
}


.card-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.card-buttons button {
  flex: 1;
  background: #1E293B;
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 10px 0;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.1s ease;
  color: #CBD5E1;
}

.card-buttons button:active {
  transform: scale(0.96);
}

.btn-download { background: rgba(0, 240, 255, 0.1); color: #00F0FF; }
.btn-info { background: rgba(185, 128, 240, 0.1); color: #B980F0; }
.btn-pdj { 
  background: linear-gradient(135deg, #7B1FA2, #4A148C); 
  color: white;
}
.btn-pdj.portal-active {
  background: linear-gradient(135deg, #FF2D95, #B82B8B);
}
.btn-remove-history {
  background: rgba(255, 107, 53, 0.2);
  color: #FF6B35;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #0F1222;
  max-width: 90%;
  width: 800px;
  max-height: 85vh;
  border-radius: 24px;
  padding: 20px;
  overflow-y: auto;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid #00F0FF;
  padding-bottom: 8px;
  color: #00F0FF;
}

.close-modal {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #FF2D95;
}

/* ========== СТИЛИ ДЛЯ МОДАЛЬНЫХ ЭЛЕМЕНТОВ ========== */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}

.styleCatName {
  font-size: 1.6rem;
  font-weight: bold;
  background: linear-gradient(135deg, #00F0FF, #aa68ec);
  padding: 4px 20px;
  border-radius: 40px;
  margin-top: 12px;
  margin-bottom: 12px;
  color: #170f60;
  text-align: left;

}

.style-item {
  display: inline-block;
  background: #1E293B;
  margin: 6px 8px;
  padding: 8px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.1s ease;
  font-size: 0.9rem;
  font-weight: bold;
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.style-item:active {
  transform: scale(0.94);
  background: #00F0FF;
  color: #0A0D18;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: #ee6644;
  color: #ffffff;
  border-radius: 40px;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 3000;
  border: 4px solid rgba(254, 226, 207, 0.5);
  font-weight: 500;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== ИСТОРИЯ ========== */
.history-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 60px;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.history-info {
  font-size: 0.9rem;
  font-weight: bold;
  color: #00F0FF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-history {
  text-align: center;
  padding: 60px 20px;
  background: #0F1222;
  border-radius: 40px;
  color: #64748B;
  font-size: 1.1rem;
  border: 1px dashed rgba(0, 240, 255, 0.4);
}






/* ========== АДАПТИВ ========== */


@media (max-width: 420px) {
  .logo {
    display: none;
  }
}



@media (max-width: 580px) {
  .controls button {
    min-width: 48px;
    padding: 6px 8px;
    font-size: 1.1rem;
  }
  .time-stats {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .seekBar-area {
    gap: 8px;
  }
  .cardMixTitle {
    font-size: 1.1rem;
  }
  .pagination button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .volume-compact .volume-slider {
    width: 55px;
  }
  .cardMixContainer {
    flex-direction: column;
    align-items: stretch;
  }
  .cardMixInfo {
    margin-left: 0;
    justify-content: center;
  }
  
 
  .cardMixDownload,
  .cardMixListen,
  .cardMixTracklist,
  .cardMixArtistLink {
    text-align: center;
  }
}