/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #0a1628;
  --navy-mid:     #0d1f3c;
  --purple-dark:  #1a0b2e;
  --purple-mid:   #2a1050;
  --surface:      rgba(13, 31, 60, 0.75);
  --surface-hi:   rgba(20, 10, 50, 0.75);
  --card:         rgba(25, 15, 55, 0.8);

  --cyan:         #00f0ff;
  --cyan-dim:     rgba(0, 240, 255, 0.5);
  --cyan-glow:    rgba(0, 240, 255, 0.2);
  --purple:       #b24cf5;
  --purple-dim:   rgba(178, 76, 245, 0.5);
  --purple-glow:  rgba(178, 76, 245, 0.2);

  --neon-grad:    linear-gradient(90deg, #00f0ff, #b24cf5);
  --neon-grad-45: linear-gradient(135deg, #00f0ff, #7b5af5, #b24cf5);

  --text-primary: #f0f4ff;
  --text-muted:   rgba(210, 225, 255, 0.78);  /* WCAG AA: ≥4.5:1 on dark navy bg */
  --text-dim:     rgba(180, 195, 230, 0.55);  /* reserved for non-essential hints */

  --border-neon:  rgba(0, 240, 255, 0.18);
  --border-purp:  rgba(178, 76, 245, 0.2);

  --radius:       14px;
  --radius-sm:    9px;
  --transition:   0.2s ease;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, var(--navy) 0%, #111830 40%, var(--purple-dark) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Accessibility utilities ───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--purple); outline-offset: 2px; }

/* Global focus indicator for keyboard users */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.25);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .splash-bar,
  .splash-title,
  .splash-btn,
  .bar,
  .spinner {
    animation: none !important;
  }
}

/* ─── Header ────────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  background: rgba(10, 22, 40, 0.85);
  border-bottom: 1px solid var(--border-neon);
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--neon-grad);
  opacity: 0.5;
}

.logo-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--cyan));
}

header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.header-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─── Layout ────────────────────────────────────────────────────────── */
.app-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px;
}

@media (max-width: 900px) {
  .app-layout { padding: 16px; }
  header { padding: 16px; }
}

/* Tablet / large phone: let the header nav drop to its own row, drop the subtitle */
@media (max-width: 720px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .header-sub { display: none; }
  .header-nav {
    margin-left: auto;
    gap: 14px;
  }
  .header-link {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .dark-mode-toggle { padding: 4px 10px; }
}

/* Phone: let the transport controls wrap onto two rows so nothing clips */
@media (max-width: 560px) {
  .controls {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }
  .ctrl-divider { display: none; }
  .volume-group { flex: 1; min-width: 140px; justify-content: center; }
  .volume-slider { flex: 1; width: auto; max-width: 180px; }

  /* Header nav: drop to its own row, right-aligned */
  .header-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    gap: 16px;
  }
}

/* Narrow phone: tighten button sizes so the transport row still fits five buttons */
@media (max-width: 400px) {
  .controls { gap: 8px; padding: 12px 12px; }
  .ctrl-btn.primary { width: 52px; height: 52px; font-size: 1.2rem; }
  .ctrl-btn.secondary { width: 42px; height: 42px; font-size: 1rem; }
  .ctrl-btn.small, .cc-btn { width: 34px; height: 34px; }
  .now-playing { padding: 16px; gap: 12px; }
}

/* ─── Player Section ────────────────────────────────────────────────── */
.player-section { display: flex; flex-direction: column; gap: 16px; }

.player-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border-neon),
    0 0 40px var(--cyan-glow),
    0 0 80px var(--purple-glow),
    0 24px 60px rgba(0, 0, 0, 0.7);
}

/* Neon border glow effect */
.player-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--neon-grad) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.player-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

#youtube-player {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

#end-screen-block {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}
#end-screen-block.active { display: block; }

/* Blacks out YouTube's top/bottom UI bars on pause without covering the video */
#player-pause-cover {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: linear-gradient(to bottom,
    #000 0%, #000 13%,
    transparent 13%, transparent 87%,
    #000 87%, #000 100%
  );
}
#player-pause-cover.active { display: block; }

.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.92);
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: opacity var(--transition);
}

.player-loading.hidden { opacity: 0; }

.spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(0, 240, 255, 0.12);
  border-top-color: var(--cyan);
  border-right-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 16px var(--cyan-glow);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Now Playing Info ──────────────────────────────────────────────── */
.now-playing {
  background: var(--surface);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px var(--cyan-glow), inset 0 1px 0 rgba(0, 240, 255, 0.08);
}

.now-playing-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--cyan-glow), inset 0 0 10px rgba(0, 240, 255, 0.05);
  position: relative;
}

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

.track-title {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.track-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.track-year {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--border-purp);
  border-radius: 5px;
  padding: 3px 9px;
  background-color: rgba(178, 76, 245, 0.08);
  flex-shrink: 0;
}

.channel-credit {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.68rem;
  color: rgba(0, 240, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.channel-credit:hover { color: rgba(0, 240, 255, 0.9); text-decoration: underline; }

/* ─── Decade Filters ────────────────────────────────────────────────── */
.decade-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.decade-btn {
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid var(--border-neon);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.decade-btn:hover {
  border-color: var(--cyan-dim);
  color: var(--text-primary);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.decade-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(178, 76, 245, 0.15));
  border-color: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* ─── Controls ──────────────────────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface-hi);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px var(--purple-glow), inset 0 1px 0 rgba(178, 76, 245, 0.08);
}

.ctrl-btn {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border-neon);
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ctrl-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 14px var(--cyan-glow);
  transform: scale(1.07);
}

/* Glossy sheen on hover */
.ctrl-btn::before {
  content: '';
  position: absolute;
  top: 10%; left: 15%;
  width: 70%; height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.ctrl-btn:hover::before { opacity: 1; }

.ctrl-btn.primary {
  width: 58px; height: 58px;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(178, 76, 245, 0.25));
  border: 1px solid var(--cyan-dim);
  box-shadow:
    0 0 0 1px rgba(178, 76, 245, 0.3),
    0 0 24px var(--cyan-glow),
    0 0 40px var(--purple-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ctrl-btn.primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(178, 76, 245, 0.35));
  box-shadow:
    0 0 0 1px var(--cyan-dim),
    0 0 32px var(--cyan-glow),
    0 0 60px var(--purple-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.ctrl-btn.secondary { width: 46px; height: 46px; font-size: 1.1rem; }
.ctrl-btn.small     { width: 36px; height: 36px; font-size: 0.88rem; }

.ctrl-btn.active {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 12px var(--cyan-glow);
  text-shadow: 0 0 8px var(--cyan);
}

.ctrl-divider {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, var(--border-neon), transparent);
  margin: 0 4px;
}

/* Volume */
.volume-group { display: flex; align-items: center; gap: 8px; }

.volume-slider {
  -webkit-appearance: none;
  width: 82px; height: 4px;
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.12);
  outline: none;
  cursor: pointer;
}

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

/* ─── CC Button ─────────────────────────────────────────────────────── */
.cc-btn {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  width: 36px; height: 36px;
  border-radius: 6px !important;
  opacity: 0.45;
}
.cc-btn.active {
  opacity: 1;
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ─── Fullscreen Button (player overlay) ────────────────────────────── */
.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 15;
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid var(--border-neon);
  color: var(--text-primary);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.player-wrapper:hover .fullscreen-btn { opacity: 1; }
.fullscreen-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Fullscreen mode */
.player-wrapper:fullscreen { border-radius: 0; width: 100vw; height: 100vh; }
.player-wrapper:fullscreen::before { display: none; }
.player-wrapper:fullscreen #youtube-player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ─── Error State ───────────────────────────────────────────────────── */
.error-banner {
  display: none;
  background: rgba(200, 40, 80, 0.1);
  border: 1px solid rgba(220, 60, 80, 0.3);
  color: #ff8fa0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.84rem;
  text-align: center;
  box-shadow: 0 0 12px rgba(220, 40, 80, 0.15);
}
.error-banner.visible { display: block; }

/* ─── Share Bar ─────────────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.share-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-neon);
  background: rgba(10, 22, 40, 0.5);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover { color: var(--text-primary); transform: translateY(-1px); }
.share-x:hover    { border-color: #1d9bf0; box-shadow: 0 0 10px rgba(29,155,240,0.3); color: #1d9bf0; }
.share-fb:hover   { border-color: #1877f2; box-shadow: 0 0 10px rgba(24,119,242,0.3); color: #1877f2; }
.share-wa:hover   { border-color: #25d366; box-shadow: 0 0 10px rgba(37,211,102,0.3); color: #25d366; }
.share-copy:hover { border-color: var(--cyan-dim); box-shadow: 0 0 10px var(--cyan-glow); color: var(--cyan); }

@media (max-width: 480px) {
  .share-btn span:not(#like-count) { display: none; }
  .share-btn { padding: 6px 8px; }
}

/* ─── Header Nav ────────────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.header-link:hover { color: var(--cyan); }


/* ─── Suggestion Section ────────────────────────────────────────────── */
.suggestion-section {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 32px;
}

.suggestion-inner {
  background: var(--surface);
  border: 1px solid var(--border-purp);
  border-radius: var(--radius);
  padding: 28px 32px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px var(--purple-glow), inset 0 1px 0 rgba(178, 76, 245, 0.08);
}

.suggestion-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.suggestion-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.6;
}

.suggestion-form {
  width: 100%;
  min-height: 580px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
}

.suggestion-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border: 1px dashed var(--border-purp);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .suggestion-section { padding: 0 16px; }
  .suggestion-inner { padding: 24px 20px; }
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 32px;
  border-top: 1px solid var(--border-neon);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(10, 22, 40, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-note { text-align: center; }

/* ─── Theme: ultra-dark (OLED) ──────────────────────────────────────── */
body.theme-dark-deep {
  --navy:         #000000;
  --navy-mid:     #080808;
  --purple-dark:  #050005;
  --purple-mid:   #0d0015;
  --surface:      rgba(8, 8, 8, 0.98);
  --surface-hi:   rgba(5, 0, 10, 0.98);
  --card:         rgba(10, 0, 18, 0.98);
  --text-primary: #ffffff;
  --text-muted:   rgba(220, 230, 255, 0.8);
  --text-dim:     rgba(160, 175, 220, 0.55);
  background: #000;
}

/* ─── Theme: light mode ─────────────────────────────────────────────── */
body.theme-light {
  --navy:         #f5f7fb;
  --navy-mid:     #e8edf5;
  --purple-dark:  #efeaf7;
  --purple-mid:   #e2d4f5;
  /* Tinted surfaces so cards/panels read against the white page background */
  --surface:      rgba(205, 222, 248, 0.55);
  --surface-hi:   rgba(220, 210, 250, 0.60);
  --card:         rgba(232, 242, 255, 0.92);

  --cyan:         #0073a8;
  --cyan-dim:     rgba(0, 115, 168, 0.5);
  --cyan-glow:    rgba(0, 115, 168, 0.15);
  --purple:       #7a30c4;
  --purple-dim:   rgba(122, 48, 196, 0.5);
  --purple-glow:  rgba(122, 48, 196, 0.12);

  --neon-grad:    linear-gradient(90deg, #0073a8, #7a30c4);
  --neon-grad-45: linear-gradient(135deg, #0073a8, #5d3acc, #7a30c4);

  --text-primary: #0c1428;
  --text-muted:   #4a5570;
  --text-dim:     #6a7595;

  /* Stronger borders so lines actually show on white */
  --border-neon:  rgba(0, 115, 168, 0.42);
  --border-purp:  rgba(122, 48, 196, 0.38);

  background: linear-gradient(160deg, #f5f7fb 0%, #ebeef5 40%, #f0eaf8 100%);
}

/* Light-mode specific adjustments */
body.theme-light .splash {
  background: linear-gradient(160deg, #f5f7fb 0%, #ecf0f8 40%, #efe5f8 100%);
}
body.theme-light .player-wrapper { background: #1a1f2e; }
body.theme-light .ctrl-btn { background: rgba(0, 115, 168, 0.10); border-color: rgba(0, 115, 168, 0.38); }
body.theme-light .ctrl-btn:hover { background: rgba(0, 115, 168, 0.18); border-color: rgba(0, 115, 168, 0.6); }
body.theme-light .ctrl-btn.primary { background: rgba(0, 115, 168, 0.14); }
body.theme-light .ctrl-btn.primary:hover { background: rgba(0, 115, 168, 0.22); }
body.theme-light .decade-btn { background: rgba(0, 115, 168, 0.07); border-color: rgba(0, 115, 168, 0.35); }
body.theme-light .decade-btn:hover { background: rgba(0, 115, 168, 0.14); }
body.theme-light .decade-btn.active { background: linear-gradient(135deg, rgba(0, 115, 168, 0.18), rgba(122, 48, 196, 0.20)); border-color: rgba(0, 115, 168, 0.55); }
body.theme-light .share-btn { background: rgba(0, 115, 168, 0.07); border-color: rgba(0, 115, 168, 0.32); }
body.theme-light .share-btn:hover { background: rgba(0, 115, 168, 0.14); }
body.theme-light .search-input { background: rgba(255, 255, 255, 0.85); border-color: rgba(0, 115, 168, 0.35); }
body.theme-light .suggest-field input,
body.theme-light .suggest-field textarea,
body.theme-light .suggest-field select { background: rgba(255, 255, 255, 0.8); }
body.theme-light .suggest-submit { color: #ffffff; }
body.theme-light .splash-btn { color: #ffffff; }
body.theme-light .mini-restore-btn { background: rgba(255, 255, 255, 0.85); color: var(--text-primary); }

/* ─── Theme toggle button (in header) ───────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* ─── Splash Screen ─────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #0e1a36 40%, var(--purple-dark) 100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash.splash-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px 24px;
}

/* Animated soundwave bars */
.splash-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 8px;
}

.splash-bar {
  width: 5px;
  border-radius: 3px;
  background: var(--neon-grad);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: splash-bounce 1.1s ease-in-out infinite alternate;
}
.splash-bar:nth-child(1) { height: 30%; animation-delay: 0s;    animation-duration: 0.9s; }
.splash-bar:nth-child(2) { height: 70%; animation-delay: 0.15s; animation-duration: 1.1s; }
.splash-bar:nth-child(3) { height: 100%; animation-delay: 0.05s; animation-duration: 0.8s; }
.splash-bar:nth-child(4) { height: 55%; animation-delay: 0.2s;  animation-duration: 1.0s; }
.splash-bar:nth-child(5) { height: 40%; animation-delay: 0.1s;  animation-duration: 1.2s; }

@keyframes splash-bounce {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

.splash-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4)); }
  50%       { filter: drop-shadow(0 0 40px rgba(178, 76, 245, 0.7)); }
}

.splash-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: -8px;
}

.splash-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 44px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  color: var(--navy);
  background: var(--neon-grad);
  border: none;
  border-radius: 50px;
  box-shadow:
    0 0 24px var(--cyan-glow),
    0 0 48px var(--purple-glow),
    0 0 80px rgba(0, 240, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 24px var(--cyan-glow), 0 0 48px var(--purple-glow); }
  50%       { box-shadow: 0 0 40px var(--cyan-glow), 0 0 70px var(--purple-glow), 0 0 100px rgba(0,240,255,0.2); }
}

.splash-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--cyan-glow), 0 0 90px var(--purple-glow);
  animation: none;
}

.splash-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ─── Playing indicator bars ────────────────────────────────────────── */
.bar {
  width: 3px;
  background: var(--neon-grad);
  border-radius: 1px;
  animation: bounce var(--d, 0.6s) ease-in-out infinite alternate;
  box-shadow: 0 0 4px var(--cyan-glow);
}
.bar:nth-child(1) { height: 60%; --d: 0.5s; }
.bar:nth-child(2) { height: 100%; --d: 0.7s; }
.bar:nth-child(3) { height: 40%; --d: 0.4s; }

@keyframes bounce {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* ─── Header track-count chip ───────────────────────────────────────── */
.header-count {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 3px 10px;
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 6px var(--cyan-glow);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .header-count { font-size: 0.62rem; padding: 2px 8px; }
}

/* ─── Favorites pill ────────────────────────────────────────────────── */
.decade-btn.faves-btn { gap: 4px; }
.decade-btn.faves-btn:hover {
  border-color: #ff6b9d;
  color: #ff6b9d;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.25);
}
.decade-btn.faves-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(178, 76, 245, 0.15));
  border-color: #ff6b9d;
  color: #ff6b9d;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

/* ─── Like button ───────────────────────────────────────────────────── */
.like-btn { gap: 6px; }
.like-btn:hover {
  border-color: #ff6b9d;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
  color: #ff6b9d;
}
.like-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(178, 76, 245, 0.15));
  border-color: #ff6b9d;
  color: #ff6b9d;
}
.like-btn[aria-pressed="true"] svg { fill: #ff6b9d; stroke: #ff6b9d; }
#like-count { font-variant-numeric: tabular-nums; min-width: 1ch; }

/* ─── New share-button hover colors ─────────────────────────────────── */
.share-ig:hover  { border-color: #e1306c; box-shadow: 0 0 10px rgba(225, 48, 108, 0.35);  color: #e1306c; }
.share-rd:hover  { border-color: #ff4500; box-shadow: 0 0 10px rgba(255, 69, 0, 0.35);    color: #ff4500; }
.share-sms:hover { border-color: #34c759; box-shadow: 0 0 10px rgba(52, 199, 89, 0.35);   color: #34c759; }
.share-ig.toast-show {
  border-color: #e1306c;
  color: #e1306c;
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.45);
}

/* ─── Ko-fi links ───────────────────────────────────────────────────── */
.kofi-link { color: var(--text-muted); }
.kofi-link:hover { color: #ff5e5b; filter: drop-shadow(0 0 6px rgba(255, 94, 91, 0.5)); }
.footer-kofi {
  color: #ff5e5b;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition), filter var(--transition);
}
.footer-kofi:hover { filter: drop-shadow(0 0 6px rgba(255, 94, 91, 0.5)); }
.splash-kofi {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-decoration: none;
  transition: color var(--transition);
}
.splash-kofi:hover { color: #ff5e5b; }

/* ─── Mini-player (custom in-page floating widget) ──────────────────── */
.player-wrapper.mini-mode {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  width: min(320px, 70vw);
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 24px var(--cyan-glow);
  transition: width 0.3s ease, height 0.3s ease;
}
.player-wrapper.mini-mode .fullscreen-btn { display: none; }
.mini-restore-btn {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--cyan-dim);
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.player-wrapper.mini-mode .mini-restore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-restore-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.player-spacer {
  display: none;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  background: rgba(10, 22, 40, 0.4);
  border: 1px dashed var(--border-neon);
}
body.player-minimized .player-spacer { display: block; }

/* ─── Search bar ────────────────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-input-row { position: relative; }
.search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
}
.search-clear:hover { color: var(--cyan); }
.search-results {
  list-style: none;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.search-results li {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  font-size: 0.84rem;
  color: var(--text-primary);
}
.search-results li:hover { background: rgba(0, 240, 255, 0.08); color: var(--cyan); }
.search-results li:last-child { border-bottom: none; }
.search-results li .res-meta { color: var(--text-muted); font-size: 0.74rem; margin-left: 6px; }
.search-empty {
  margin-top: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-purp);
  border-radius: var(--radius-sm);
  text-align: center;
}
.search-empty p {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}
.search-suggest-btn {
  background: var(--neon-grad);
  color: var(--navy);
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.search-suggest-btn:hover { filter: brightness(1.1); }

/* ─── Suggest form ──────────────────────────────────────────────────── */
.suggestion-form-real {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.suggest-field { display: flex; flex-direction: column; gap: 5px; }
.suggest-field > span {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.suggest-field em { color: #ff6b9d; font-style: normal; }
.suggest-field input,
.suggest-field textarea,
.suggest-field select {
  padding: 10px 12px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}
.suggest-field input:focus,
.suggest-field textarea:focus,
.suggest-field select:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.suggest-submit {
  align-self: flex-start;
  padding: 10px 22px;
  margin-top: 4px;
  background: var(--neon-grad);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px var(--cyan-glow), 0 0 32px var(--purple-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.suggest-submit:hover { transform: scale(1.04); }
.suggest-success {
  color: var(--cyan);
  font-size: 0.84rem;
  margin-top: 8px;
}

/* ─── About section ─────────────────────────────────────────────────── */
.about-section {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.about-inner {
  background: var(--surface);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  padding: 24px 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.about-inner h2 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.about-inner p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.about-support a {
  color: #ff5e5b;
  text-decoration: none;
  font-weight: 600;
}
.about-support a:hover { filter: drop-shadow(0 0 6px rgba(255, 94, 91, 0.5)); }
@media (max-width: 900px) {
  .about-section { padding: 0 16px; }
  .about-inner { padding: 20px; }
}
