:root {
  --bg-main: #07080f;
  --bg-card: rgba(16, 19, 32, 0.78);
  --bg-card-hover: rgba(26, 31, 52, 0.9);
  --border-neon: rgba(0, 229, 255, 0.25);
  --neon-cyan: #00e5ff;
  --neon-pink: #ff2a85;
  --neon-gold: #ffbe3b;
  --text-primary: #f4f6fb;
  --text-secondary: #9aa3be;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Неоновые фоновые блики */
.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  top: -120px;
  left: -100px;
  background: var(--neon-cyan);
}

.bg-glow-2 {
  bottom: -140px;
  right: -100px;
  background: var(--neon-pink);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 15, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-ua {
  color: var(--neon-cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.brand-diva {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 42, 133, 0.55);
}

/* Соцсети в правом верхнем углу */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-btn svg {
  width: 19px;
  height: 19px;
}

.social-btn:hover {
  color: #07080f;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  transform: translateY(-2px);
}

/* Основной контент */
.main-content {
  flex: 1;
  padding: 40px 0 60px;
}

.hero-intro {
  text-align: center;
  margin-bottom: 32px;
}

.badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.neon-text {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Карточка плеера */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(18px);
}

.yt-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Обложка средних размеров */
.cover-wrapper {
  position: relative;
  width: 230px;
  height: 230px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 42, 133, 0.22);
  background: #111424;
}

.cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cover-wrapper.is-playing img {
  transform: scale(1.04);
}

/* Анимированный эквалайзер поверх угла обложки */
.cover-equalizer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(7, 8, 15, 0.78);
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cover-wrapper.is-playing .cover-equalizer {
  opacity: 1;
}

.cover-equalizer span {
  width: 3px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: eqBounce 0.8s infinite ease-in-out;
}

.cover-equalizer span:nth-child(2) { animation-delay: 0.2s; background: var(--neon-pink); }
.cover-equalizer span:nth-child(3) { animation-delay: 0.4s; }
.cover-equalizer span:nth-child(4) { animation-delay: 0.15s; background: var(--neon-gold); }

@keyframes eqBounce {
  0%, 100% { height: 5px; }
  50% { height: 15px; }
}

.player-controls-block {
  flex: 1;
  min-width: 0;
}

.track-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.source-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.explicit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  border-radius: 4px;
}

.track-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Прогресс-бар */
.progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.time-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.progress-slider,
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.progress-slider {
  flex: 1;
}

.progress-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  cursor: pointer;
}

/* Кнопки управления */
.buttons-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ctrl-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctrl-btn svg {
  width: 22px;
  height: 22px;
}

.ctrl-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.play-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  border: none;
  color: #07080f;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
}

.play-btn svg {
  width: 26px;
  height: 26px;
}

.play-btn:hover {
  color: #07080f;
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255, 42, 133, 0.65);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.vol-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.volume-slider {
  width: 84px;
}

.external-listen {
  margin-top: 16px;
}

.yt-direct-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.yt-direct-link:hover {
  color: var(--neon-cyan);
}

/* Плейлист */
.playlist-section {
  margin-top: 22px;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.playlist-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.playlist-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.playlist-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
  background: rgba(0, 229, 255, 0.09);
  border-color: rgba(0, 229, 255, 0.45);
}

.item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #14182b;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-title {
  font-weight: 600;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.active .item-title {
  color: var(--neon-cyan);
}

.item-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.item-action-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active .item-action-tag {
  color: #07080f;
  background: var(--neon-cyan);
}

/* Футер */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  background: rgba(5, 6, 12, 0.9);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.credits {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-email {
  color: var(--neon-cyan);
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
}

.contacts-trigger-btn {
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--neon-cyan);
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-cyan);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contacts-trigger-btn:hover {
  background: var(--neon-cyan);
  color: #07080f;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Модальное окно контактов */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #0e1120;
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 42, 133, 0.18);
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-card h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.contact-value {
  font-size: 0.96rem;
  font-weight: 600;
}

.email-copy-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-email-link {
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.copy-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.12);
  color: var(--neon-cyan);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--neon-cyan);
  color: #07080f;
}

.modal-platforms {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-platforms a {
  color: var(--text-primary);
  text-decoration: none;
}

.modal-platforms a:hover {
  color: var(--neon-pink);
}

.hidden {
  display: none !important;
}

/* Адаптивность под мобильные */
@media (max-width: 720px) {
  .player-top {
    flex-direction: column;
    text-align: center;
  }

  .cover-wrapper {
    width: 210px;
    height: 210px;
  }

  .track-status-row,
  .buttons-row {
    justify-content: center;
  }

  .volume-control {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .header-inner {
    flex-direction: column;
  }
}

/* Исправление горизонтального переполнения и мобильной вёрстки */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.header-inner,
.main-content,
.player-card,
.player-top,
.player-controls-block,
.playlist-section,
.playlist-item,
.item-info,
.footer-inner {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }

  .player-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .track-title {
    font-size: 1.3rem;
    white-space: normal;
  }

  .playlist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .playlist-item {
    padding: 10px;
    gap: 10px;
  }

  .item-thumb {
    width: 44px;
    height: 44px;
  }

  .item-title {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .item-sub {
    font-size: 0.74rem;
  }

  .item-action-tag {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .contacts-trigger-btn {
    width: 100%;
    text-align: center;
  }
}