:root {
  --color-one:   #1d1a39;
  --color-two:   #451952;
  --color-three: #662549;
  --color-four:  #ae445a;
  --color-five:  #f39f5a;
  --color-six:   #e8bcb9;
  --color-seven: #23aa66;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: var(--color-six);
  background-color: var(--color-one);
  background-image: url("../img/noise.png");
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-five); text-decoration: none; }
a:hover { color: var(--color-six); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-one); }
::-webkit-scrollbar-thumb { background: var(--color-two); }
::-webkit-scrollbar-thumb:hover { background: var(--color-five); }

/* ── Header ── */
.header {
  padding: 0 40px 0 40px;
  position: fixed;
  left: 50px; right: 50px; top: 24px;
  height: 72px;
  z-index: 100;
  background-color: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.165, 0.85, 0.45, 1);
}

.header .logo { display: flex; align-items: center; }
.header .logo-text { font-size: 18px; font-weight: 800; color: var(--color-six); }

.main-nav ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; align-items: center; gap: 36px; height: 72px;
}

.main-nav ul li a {
  font-size: 14px; font-weight: 800;
  color: var(--color-six); text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.main-nav ul li a:hover { color: var(--color-five); }
.main-nav ul li a.current { color: var(--color-five); }

/* Animated underline link */
.animated-link { position: relative; display: inline-block; }
.animated-link::before, .animated-link::after {
  content: ''; border-bottom: 2px solid var(--color-five);
  position: absolute; bottom: -2px; width: 0;
  transition: width 0.2s ease;
}
.animated-link::before { left: 0; }
.animated-link::after { right: 0; }
.animated-link:hover::before, .animated-link:hover::after { width: 50%; }

/* Contact button style */
.contact-button {
  position: relative;
  display: flex; align-items: center;
  width: 10rem; height: 44px;
}
.contact-button .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative; display: block;
  width: 44px; height: 44px;
  background-color: var(--color-five);
  border-radius: 22px; flex-shrink: 0;
}
.contact-button .circle .icon.arrow {
  position: absolute; top: 50%; left: 12px;
  transform: translateY(-50%);
  width: 18px; height: 2px; background: var(--color-three);
}
.contact-button .circle .icon.arrow::before {
  content: ''; position: absolute; top: -5px; right: 1px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--color-three);
  border-right: 2px solid var(--color-three);
  transform: rotate(45deg);
}
.contact-button .button-text {
  position: absolute; left: 0; right: 0;
  text-align: center; padding-left: 20px;
  font-weight: 800; text-transform: uppercase;
  font-size: 13px; color: var(--color-six);
  transition: color 0.45s ease; white-space: nowrap;
}
.contact-button:hover .circle { width: 100%; }
.contact-button:hover .circle .icon.arrow { transform: translate(12px, -50%); }
.contact-button:hover .button-text { color: var(--color-three); }

/* ── Sections ── */
.section {
  padding: 80px 8% 70px;
  margin-top: 0;
}
/* first-of-type padding is set below in station-switcher block */
.section:last-child { border-bottom: none; }

.section .content { max-width: 720px; }

.section .titles { margin-bottom: 40px; }
.section .titles .subtitle {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  color: var(--color-five); margin: 0 0 8px;
}
.section .titles .title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  line-height: 1.1; margin: 0 0 8px;
  color: var(--color-six);
}
.np-artist {
  font-size: 18px; font-weight: 600; color: var(--color-four);
  margin: 0 0 30px;
}

/* ── Player Card ── */
.player-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: center;
  background-color: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 12px;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}

.album-art-wrap { position: relative; }
.album-art {
  width: 160px; height: 160px;
  border-radius: 16px;
  background: var(--color-three);
  border: 1px solid var(--color-four);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.art-placeholder { font-size: 48px; opacity: 0.4; }

.listeners-badge {
  position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-one);
  border: 1px solid var(--color-four);
  border-radius: 20px;
  padding: 2px 14px;
  font-size: 11px; font-weight: 600;
  color: var(--color-five); white-space: nowrap;
}

/* ── Progress Bar ── */
.progress-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.progress-bar-bg {
  flex: 1; height: 6px; background: var(--color-three);
  border-radius: 3px; overflow: hidden; cursor: pointer;
}
.progress-bar-fill {
  height: 100%; background: var(--color-five);
  border-radius: 3px;
  transition: width 0.5s linear;
}
.time-label { font-size: 11px; font-weight: 600; color: var(--color-four); white-space: nowrap; }

/* ── Play Button ── */
.play-row { display: flex; align-items: center; gap: 20px; }

.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-five); border: none; cursor: pointer;
  font-size: 18px; color: var(--color-three);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; flex-shrink: 0;
}
.play-btn:hover { background: var(--color-six); transform: scale(1.08); }
.play-btn.playing { background: var(--color-four); color: var(--color-six); }

.volume-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }
.vol-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--color-four); }
input[type="range"] {
  flex: 1; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--color-three); border-radius: 2px; outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--color-five); cursor: pointer;
}

/* ── Next Up Card ── */
.next-up-card {
  background-color: var(--color-two); border: 1px solid var(--color-four);
  border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}
.next-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  color: var(--color-four); white-space: nowrap;
  border-right: 1px solid var(--color-four); padding-right: 16px;
}
.next-info { display: flex; align-items: center; gap: 12px; }
.next-art {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--color-three); display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; overflow: hidden;
}
.next-art img { width: 100%; height: 100%; object-fit: cover; }
.next-title { font-size: 14px; font-weight: 700; color: var(--color-six); }
.next-artist { font-size: 12px; font-weight: 400; color: var(--color-four); }

/* ── Wish Form ── */
.wish-form { max-width: 560px; }

.floating-label { position: relative; margin-bottom: 32px; }
.floating-label .label {
  padding: 0 8px; position: absolute; left: 28px; top: -9px;
  font-size: 11px; line-height: 1; font-weight: 800;
  color: var(--color-six); background: var(--color-one);
  text-transform: uppercase; z-index: 2;
}
.floating-label .label strong { color: var(--color-five); }

input[type="text"], input[type="password"], textarea {
  padding: 0 24px; display: block; font-size: 14px;
  height: 56px; width: 100%; color: var(--color-six);
  background: transparent !important;
  border: 1px solid var(--color-four);
  outline: 0; border-radius: 28px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}
input:focus, input[type="password"]:focus {
  box-shadow: 0 0 0 3px rgba(174, 68, 90, 0.35);
  border-color: var(--color-five);
}
::placeholder { color: var(--color-six); }

/* Search results */
.search-results {
  background: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 16px; overflow: hidden;
  margin-top: -16px; margin-bottom: 20px;
}
.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(174,68,90,0.2);
  transition: background 0.2s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(102,37,73,0.5); }
.sri-art {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--color-three); overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sri-art img { width: 100%; height: 100%; object-fit: cover; }
.sri-info { flex: 1; min-width: 0; }
.sri-title { font-size: 14px; font-weight: 700; color: var(--color-six); }
.sri-artist { font-size: 12px; color: var(--color-four); }
.sri-request-btn {
  margin-left: auto; padding: 6px 16px;
  background: none; border: 1px solid var(--color-four);
  border-radius: 20px; color: var(--color-five);
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease; white-space: nowrap;
}
.sri-request-btn:hover {
  background: var(--color-five); color: var(--color-three);
}
.search-empty {
  padding: 20px; text-align: center;
  color: var(--color-four); font-size: 13px;
}

.request-feedback {
  padding: 12px 20px; border-radius: 12px;
  font-size: 13px; font-weight: 600; display: none;
}
.request-feedback.success { background: rgba(35,170,102,0.15); color: var(--color-seven); border: 1px solid var(--color-seven); display: block; }
.request-feedback.error { background: rgba(174,68,90,0.15); color: var(--color-four); border: 1px solid var(--color-four); display: block; }

/* ── History List ── */
.history-list { display: flex; flex-direction: column; gap: 2px; }
.history-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(174,68,90,0.2);
}
.history-item:last-child { border-bottom: none; }
.history-num { font-size: 11px; font-weight: 800; color: var(--color-four); width: 24px; flex-shrink: 0; }
.history-art {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--color-three); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.history-art img { width: 100%; height: 100%; object-fit: cover; }
.history-info { flex: 1; min-width: 0; }
.history-title { font-size: 14px; font-weight: 700; color: var(--color-six); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-artist { font-size: 12px; color: var(--color-four); }
.history-time { font-size: 11px; color: var(--color-four); flex-shrink: 0; }

.loading-pulse { color: var(--color-four); font-size: 13px; padding: 20px 0; }

/* ── Sidebar ── */
.sidebar {
  position: fixed; bottom: 40px; right: 0;
  width: 80px; z-index: 99;
}
.sidebar .links { text-align: center; }
.sidebar .links a {
  display: block; margin: 0 auto 12px;
  width: 48px; height: 48px; line-height: 48px;
  font-size: 18px; text-align: center;
  background: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.sidebar .links a:hover {
  background: var(--color-five);
  transform: scale(1.1);
}

/* ── Admin ── */
.admin-now-playing {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 20px; padding: 24px;
  margin-bottom: 8px;
}
.anp-art {
  width: 100px; height: 100px; border-radius: 12px;
  background: var(--color-three); display: flex;
  align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0; overflow: hidden;
}
.anp-art img { width: 100%; height: 100%; object-fit: cover; }
.anp-info { flex: 1; min-width: 0; }
.anp-label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--color-four); margin-bottom: 4px; }
.anp-title { font-size: 20px; font-weight: 800; color: var(--color-six); }
.anp-artist { font-size: 14px; color: var(--color-four); margin-bottom: 4px; }

.btn-action {
  padding: 0 28px; height: 52px;
  border-radius: 26px; border: 1px solid var(--color-four);
  font-family: "Poppins", sans-serif;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-skip {
  background: none; color: var(--color-five);
}
.btn-skip:hover {
  background: var(--color-four); color: var(--color-six);
  border-color: var(--color-four);
}
.btn-upload {
  background: var(--color-five); color: var(--color-three);
  border-color: var(--color-five);
}
.btn-upload:hover { background: var(--color-six); }

.action-feedback {
  margin-top: 12px; padding: 10px 18px;
  border-radius: 12px; font-size: 13px; font-weight: 600;
  display: none;
}
.action-feedback.success { background: rgba(35,170,102,0.15); color: var(--color-seven); border: 1px solid var(--color-seven); display: block; }
.action-feedback.error { background: rgba(174,68,90,0.15); color: var(--color-four); border: 1px solid var(--color-four); display: block; }

/* Playlist info bar */
.playlist-info-bar {
  background: rgba(69,25,82,0.4); border: 1px solid var(--color-four);
  border-radius: 12px; padding: 10px 18px;
  font-size: 12px; font-weight: 600; color: var(--color-five);
  margin-bottom: 20px;
}

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--color-four);
  border-radius: 20px; cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-five);
  background: rgba(243,159,90,0.06);
}
.upload-inner {
  padding: 48px 24px; text-align: center;
}
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-text { font-size: 16px; font-weight: 700; color: var(--color-six); margin-bottom: 4px; }
.upload-subtext { font-size: 12px; color: var(--color-four); }

.file-preview {
  background: var(--color-two); border: 1px solid var(--color-four);
  border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.file-preview-info { display: flex; align-items: center; gap: 12px; }
.file-icon { font-size: 28px; }
.file-name { font-size: 14px; font-weight: 700; color: var(--color-six); }
.file-size { font-size: 12px; color: var(--color-four); }

.upload-progress-wrap { margin-bottom: 16px; }
.upload-status { font-size: 12px; font-weight: 600; color: var(--color-four); margin-top: 8px; }
.upload-progress-fill { transition: width 0.3s ease; background: var(--color-seven) !important; }

/* ── Login ── */
.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 120px 24px 24px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 28px; padding: 48px 40px;
  text-align: center;
}
.login-icon { font-size: 48px; margin-bottom: 16px; }
.login-title { font-size: 28px; font-weight: 800; color: var(--color-six); margin: 0 0 8px; }
.login-sub { font-size: 14px; color: var(--color-four); margin: 0 0 28px; }
.login-error {
  background: rgba(174,68,90,0.15);
  border: 1px solid var(--color-four);
  border-radius: 12px; padding: 10px 16px;
  color: var(--color-four); font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.login-form .floating-label .label { background: var(--color-two); }
.btn-submit {
  padding: 0 28px; height: 56px; width: 100%;
  border-radius: 28px; border: 1px solid var(--color-four);
  font-family: "Poppins", sans-serif;
  font-size: 14px; font-weight: 800; cursor: pointer;
  color: var(--color-six); background: none;
  transition: all 0.4s ease; margin-top: 8px;
}
.btn-submit:hover {
  background: var(--color-five) !important;
  color: var(--color-three); border-color: var(--color-five);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .header { left: 16px; right: 16px; padding: 0 20px; top: 16px; }
  .section { padding: 80px 6% 60px; }
  .section:first-of-type { padding-top: 120px; }
  .player-card { grid-template-columns: 1fr; }
  .album-art-wrap { display: flex; justify-content: center; }
  .sidebar { display: none; }
}

@media (max-width: 600px) {
  .header { border-radius: 20px; }
  .main-nav ul { gap: 16px; }
  .main-nav ul li a { font-size: 12px; }
  .contact-button { display: none; }
  .player-card { padding: 20px; }
  .next-up-card { flex-wrap: wrap; gap: 10px; }
  .next-label { border-right: none; border-bottom: 1px solid var(--color-four); padding-bottom: 8px; padding-right: 0; }
  .admin-now-playing { flex-direction: column; }
  .file-preview { flex-direction: column; align-items: flex-start; }
}

/* ── CENTERED CONTENT ── */
.centered-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section .content.centered-content { max-width: 760px; }

/* ── VISUALIZER (inside player-card controls column) ── */
#visualizer-canvas {
  width: 100%;
  height: 48px;
  display: block;
  border-radius: 8px;
  background: rgba(29,26,57,0.5);
  margin-top: 16px;
}

/* ── LYRICS BOX (standalone card below next-up) ── */
.lyrics-wrap {
  width: 100%;
  background: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 12px;
}
@keyframes lyric-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(243,159,90,0.3), 0 0 12px rgba(243,159,90,0.1); }
  50%       { text-shadow: 0 0 14px rgba(243,159,90,0.7), 0 0 28px rgba(243,159,90,0.3); }
}
@keyframes lyric-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  width: 100%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  min-height: 54px;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}
.lyrics-header:hover { background: rgba(102,37,73,0.25); }
.lyrics-current-line {
  font-size: 15px; font-weight: 700;
  color: var(--color-five);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 80%;
  font-family: "Poppins", sans-serif;
  animation: lyric-glow 2.8s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}
.lyrics-current-line.fading {
  opacity: 0;
  transform: translateY(-5px);
}
.lyrics-current-line:not(.fading) {
  animation: lyric-slide-in 0.35s ease forwards, lyric-glow 2.8s ease-in-out 0.35s infinite;
}
.lyrics-chevron {
  font-size: 18px; font-weight: 400;
  color: var(--color-four)!important;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}
.lyrics-wrap.expanded .lyrics-chevron { transform: rotate(90deg); }

/* Collapsible body */
.lyrics-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  border-top: 0px solid var(--color-four);
}
.lyrics-wrap.expanded .lyrics-body {
  grid-template-rows: 1fr;
  border-top-width: 1px;
}
.lyrics-scroll {
  overflow: hidden;
}
.lyrics-wrap.expanded .lyrics-scroll {
  overflow-y: auto;
  height: 220px;
  /* Fade top/bottom edges to hint at more content */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}
.lyrics-scroll::-webkit-scrollbar { display: none; }
.lyrics-container {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; padding: 100px 16px;  /* top/bottom padding keeps active line centerable */
}
.lyric-line {
  font-size: 13px; font-weight: 500;
  color: rgba(232,188,185,0.28);
  text-align: center; padding: 5px 12px;
  transition: color 0.35s ease, font-weight 0.3s ease, font-size 0.3s ease, opacity 0.35s ease;
  cursor: default; line-height: 1.6; width: 100%;
}
.lyric-line.lyric-plain { color: rgba(232,188,185,0.55); }
.lyric-line.lyric-past  { color: rgba(232,188,185,0.38); }
.lyric-line.lyric-active {
  color: var(--color-five);
  font-size: 14.5px;
  font-weight: 800;
}
.lyrics-loading, .lyrics-none {
  text-align: center;
  font-size: 12px; color: var(--color-four);
  padding: 14px;
  width: 100%; max-width: 760px;
}

/* ── WISH SEARCH ROW ── */
.wish-search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 0;
}
.wish-input-wrap { flex: 1; margin-bottom: 32px; }
.browse-playlist-btn {
  height: 56px;
  padding: 0 22px;
  background: none;
  border: 1px solid var(--color-four);
  border-radius: 28px;
  color: var(--color-five);
  font-family: "Poppins", sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
  flex-shrink: 0;
}
.browse-playlist-btn:hover {
  background: var(--color-five);
  color: var(--color-three);
  border-color: var(--color-five);
}

/* ── WISH QUEUE ── */
.wish-queue-wrap {
  margin-top: 28px;
  background: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 18px;
  overflow: hidden;
}
.wq-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(174,68,90,0.2);
  background: rgba(29,26,57,0.4);
}
.wq-label { font-size: 13px; font-weight: 800; color: var(--color-five); text-transform: uppercase; }
.wq-count { font-size: 11px; font-weight: 600; color: var(--color-four); }
.wq-list { display: flex; flex-direction: column; }
.wq-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(174,68,90,0.15);
}
.wq-item:last-child { border-bottom: none; }
.wq-num { font-size: 11px; font-weight: 800; color: var(--color-four); width: 20px; flex-shrink: 0; }
.wq-info { flex: 1; min-width: 0; }
.wq-title { font-size: 13px; font-weight: 700; color: var(--color-six); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wq-artist { font-size: 11px; color: var(--color-four); }

/* ── PAGINATION ── */
.history-pagination { margin-top: 20px; }
.pagination {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
  justify-content: center;
}
.page-btn {
  height: 36px; min-width: 36px; padding: 0 12px;
  background: none;
  border: 1px solid var(--color-four);
  border-radius: 18px;
  color: var(--color-five);
  font-family: "Poppins", sans-serif;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.page-btn:hover:not(:disabled) { background: var(--color-five); color: var(--color-three); border-color: var(--color-five); }
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-btn.active { background: var(--color-four); color: var(--color-six); border-color: var(--color-four); }
.page-ellipsis { color: var(--color-four); font-size: 13px; padding: 0 4px; }
.page-info { font-size: 12px; color: var(--color-four); padding: 0 4px; }

/* ── PLAYLIST MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background-color: rgba(29,26,57,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}
.modal-box {
  width: 100%; max-width: 640px;
  max-height: 85vh;
  background-color: var(--color-two);
  border: 1px solid var(--color-four);
  border-radius: 24px;
  display: flex; flex-direction: column;
  overflow: hidden;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}
.modal-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(174,68,90,0.25);
  flex-shrink: 0;
}
.modal-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--color-six); }
.modal-close {
  background: none; border: 1px solid var(--color-four);
  color: var(--color-four); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--color-four); color: var(--color-six); }
.modal-search-wrap { padding: 14px 20px; border-bottom: 1px solid rgba(174,68,90,0.2); flex-shrink: 0; }
.modal-search-input {
  width: 100%; height: 44px; padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--color-four);
  background: transparent;
  color: var(--color-six);
  font-family: "Poppins", sans-serif;
  font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.modal-search-input:focus { border-color: var(--color-five); }
.modal-list {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}
.modal-list::-webkit-scrollbar { width: 4px; }
.modal-list::-webkit-scrollbar-thumb { background: var(--color-four); border-radius: 2px; }
.modal-song-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(174,68,90,0.12);
  transition: background 0.2s;
}
.modal-song-item:last-child { border-bottom: none; }
.modal-song-item:hover { background: rgba(102,37,73,0.35); }
.msi-art {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--color-three); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.msi-art img { width: 100%; height: 100%; object-fit: cover; }
.msi-info { flex: 1; min-width: 0; }
.msi-title { font-size: 13px; font-weight: 700; color: var(--color-six); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msi-artist { font-size: 11px; color: var(--color-four); }
.msi-request-btn {
  flex-shrink: 0; padding: 5px 14px;
  background: none; border: 1px solid var(--color-four);
  border-radius: 18px; color: var(--color-five);
  font-family: "Poppins", sans-serif;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all 0.25s ease;
}
.msi-request-btn:hover:not(:disabled) { background: var(--color-five); color: var(--color-three); border-color: var(--color-five); }
.msi-request-btn:disabled { opacity: 0.5; cursor: default; }
.modal-pagination {
  padding: 12px 20px;
  border-top: 1px solid rgba(174,68,90,0.2);
  flex-shrink: 0;
}

/* ── Station Switcher ── */
.station-switcher {
  z-index: 110;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 50px 8% 0;
  flex-wrap: nowrap;
  width: 100%;
  max-width: calc(760px + 16%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.station-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px 10px;
  border: 1px solid rgba(174,68,90,0.45);
  border-radius: 14px;
  background: rgba(29,26,57,0.7);
  color: rgba(232,188,185,0.6);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}

.station-btn:hover {
  border-color: var(--color-four);
  color: var(--color-six);
  background: rgba(69,25,82,0.6);
}

.station-btn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(174,68,90,0.45);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Active station — glowing pulse animation */
.station-btn.active {
  border-color: var(--color-five);
  color: var(--color-five);
  background-color: rgba(69,25,82,0.75);
  box-shadow: 0 0 0 0 rgba(243,159,90,0.4);
  animation: station-pulse 2.2s ease-in-out infinite;
}

.station-btn.active .station-btn-dot {
  background: var(--color-five);
  box-shadow: 0 0 6px 2px rgba(243,159,90,0.55);
  animation: dot-spin 1.8s linear infinite;
}

@keyframes station-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243,159,90,0.45), 0 0 8px rgba(243,159,90,0.1); }
  50%  { box-shadow: 0 0 0 5px rgba(243,159,90,0), 0 0 18px rgba(243,159,90,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(243,159,90,0), 0 0 8px rgba(243,159,90,0.1); }
}

@keyframes dot-spin {
  0%   { transform: scale(1);   box-shadow: 0 0 4px 1px rgba(243,159,90,0.6); }
  50%  { transform: scale(1.5); box-shadow: 0 0 8px 3px rgba(243,159,90,0.9); }
  100% { transform: scale(1);   box-shadow: 0 0 4px 1px rgba(243,159,90,0.6); }
}

/* ── Language Switcher ── */
.lang-switcher {
  position: fixed;
  top: 8px; right: 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(29,26,57,0.85);
  border: 1px solid rgba(174,68,90,0.35);
  border-radius: 20px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 11px; font-weight: 800;
  color: rgba(232,188,185,0.5);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 4px;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--color-five); }
.lang-btn:hover:not(.active) { color: var(--color-six); }
.lang-sep { color: rgba(174,68,90,0.4); font-size: 10px; }

/* Push content down to account for switcher + language toggle */
.section:first-of-type { padding-top: 175px; }

/* Next Up spacing after lyrics */
.next-up-card { margin-top: 12px; }

/* ── Lyrics loading spinner ── */
.lyrics-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.lyrics-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(174,68,90,0.3);
  border-top-color: var(--color-four);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.lyrics-body, lyrics-header{
  background-image: url("../img/noise.png");
  background-repeat: repeat;
}

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

/* ── Responsive additions ── */
@media (max-width: 600px) {
  .station-switcher { gap: 6px; padding: 12px 10px 2px; }
  .station-btn { font-size: 12px; padding: 12px 10px 8px; border-radius: 11px; }
  .section:first-of-type { padding-top: 165px; }
  .lang-switcher { top: 6px; right: 10px; }
  .wish-search-row { flex-direction: column; align-items: stretch; }
  .browse-playlist-btn { width: 100%; justify-content: center; margin-bottom: 0; }
  .wish-input-wrap { margin-bottom: 12px; }
  .modal-box { max-height: 92vh; border-radius: 20px; }
  #visualizer-canvas { height: 36px; }
  .lyric-line.lyric-active { font-size: 15px; }
}
