/* ============================= Tokens ============================= */
:root {
  --navy: #384873;
  --red: #BA2A20;
  --coral: #D2534B;
  --gold: #F3BC46;
  --orange: #E08937;
  --olive: #9F953A;
  --pink: #E6A59C;
  --blue: #6587A7;
  --plum: #622E47;
  --mauve: #8D616F;
  --cream: #FAF1E4;
  --cream-deep: #F1E4CF;
  --ink: #2A2118;

  /* Dark cosmic surface system, layered over space_background.png */
  --void: #130a19;
  --void-deep: #0b0610;
  --text: #F3ECE0;
  --text-muted: #C7B7C9;
  --glass: rgba(38, 22, 46, 0.55);
  --glass-strong: rgba(28, 15, 35, 0.8);
  --glass-border: rgba(243, 188, 70, 0.28);
  --glow-gold: 0 0 0 1px var(--glass-border), 0 10px 34px rgba(0, 0, 0, 0.55);
  --glow-gold-sm: 0 0 0 1px var(--glass-border), 0 5px 18px rgba(0, 0, 0, 0.5);

  --font-display: 'Shrikhand', cursive;
  --font-heading: 'Bungee', cursive;
  --font-script: 'Caveat', cursive;
  --font-body: 'Poppins', sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-poster: var(--glow-gold);
  --shadow-poster-sm: var(--glow-gold-sm);

  --player-height: 88px;
  --header-height: 84px;
}

/* ============================= Reset ============================= */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Decorative glow elements (e.g. .hero__halo) intentionally bleed past
     their container; overflow-x:hidden on body alone doesn't reliably
     stop that bleed from becoming real horizontal scroll on mobile, so
     it's set here too. */
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
  padding-top: var(--header-height);
  padding-bottom: var(--player-height);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ======================== Cosmic backdrop ======================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/img/space_background.png') center / cover no-repeat, var(--void);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(19, 10, 25, 0) 0%, var(--void) 78%);
  z-index: -2;
  pointer-events: none;
}

@media (min-width: 860px) {
  body::before { background-attachment: fixed; }
}

/* ============================= Header ============================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 40;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand__logo { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }

.site-nav ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover { border-color: var(--glass-border); transform: translateY(-2px); }
.site-nav a.is-active {
  background: var(--gold);
  color: var(--void);
  border-color: var(--gold);
  box-shadow: var(--shadow-poster-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; }

/* ============================= Buttons ============================= */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-poster);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold), 0 14px 40px rgba(243, 188, 70, 0.3); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--cream); }

/* ============================= Layout ============================= */
.app-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--coral);
  text-shadow: 0 0 22px rgba(210, 83, 75, 0.55);
  margin: 0 0 8px;
}
.section-lede { margin: 0 0 32px; color: var(--text-muted); font-size: 1.05rem; }

.page-intro { margin-bottom: 48px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--coral);
  text-shadow: 0 0 30px rgba(210, 83, 75, 0.5);
  margin: 0 0 16px;
  line-height: 1.05;
}
.page-lede { font-size: 1.15rem; max-width: 60ch; color: var(--text-muted); }

/* ============================= Hero ============================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: 24px 0 72px;
}

.hero__name {
  margin: 0;
  line-height: 1.15;
}
.hero__name-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--coral);
  text-shadow: 0 0 20px rgba(243, 188, 70, 0.55), 0 0 46px rgba(210, 83, 75, 0.35);
}
.hero__name-sub {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--pink);
  margin-top: 4px;
}

.hero__art {
  position: relative;
  width: min(620px, 100%);
  margin: 24px auto 0;
}

/* A true circle regardless of .hero__art's own (non-square) box: sized
   from width alone plus aspect-ratio, rather than percentage insets on
   all four sides, which would stretch into an oval whenever width and
   height differ. */
.hero__halo,
.hero__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero__halo {
  opacity: 0.9;
  filter: blur(14px);
}

/* Four solid-color glows stacked in the same spot, each quietly fading in
   and out on its own offset timer. Animating between two full gradient
   color-stop lists in a @keyframes rule isn't reliably interpolated by
   browsers -- rather than crossfading, the color snaps instantly partway
   through each segment. Crossfading plain opacity, which is always
   smoothly animatable, gives a genuinely gradual, continuous color drift
   instead by blending these layers into each other. */
.hero__halo-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  animation: halo-layer-fade 20s ease-in-out infinite;
}
.hero__halo-layer--1 { background: radial-gradient(circle, var(--gold) 0%, var(--gold) 22%, transparent 85%); animation-delay: 0s; }
.hero__halo-layer--2 { background: radial-gradient(circle, var(--coral) 0%, var(--coral) 22%, transparent 85%); animation-delay: -5s; }
.hero__halo-layer--3 { background: radial-gradient(circle, var(--blue) 0%, var(--blue) 22%, transparent 85%); animation-delay: -10s; }
.hero__halo-layer--4 { background: radial-gradient(circle, var(--pink) 0%, var(--pink) 22%, transparent 85%); animation-delay: -15s; }

@keyframes halo-layer-fade {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

/* Rings that slowly expand outward from the halo and fade, giving the
   "radiating" motion instead of the old spinning color wheel. */
.hero__pulse {
  width: 100%;
  border: 3px solid var(--gold);
  opacity: 0;
  animation: pulse-out 8s ease-out infinite;
}
.hero__pulse--2 { border-color: var(--coral); animation-delay: 2s; }
.hero__pulse--3 { border-color: var(--blue); animation-delay: 4s; }
.hero__pulse--4 { border-color: var(--pink); animation-delay: 6s; }

@keyframes pulse-out {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.7; }
  70% { opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
}

.hero__frame {
  position: relative;
  background: radial-gradient(circle at 30% 20%, var(--gold), var(--pink) 60%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-poster);
  padding: 28px;
  perspective: 1800px;
  cursor: pointer;
}
.hero__frame:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.hero__flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.45, 0.15, 0.2, 1);
}
.hero__frame.is-flipped .hero__flip {
  transform: rotateY(180deg);
}

.hero__flip-face { backface-visibility: hidden; }
.hero__flip-face--front { position: relative; }
.hero__flip-face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration { filter: drop-shadow(0 6px 0 rgba(0,0,0,0.08)); margin: 0 auto; }
.hero__logo-reveal { max-width: 60%; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .hero__flip { transition: none; }
}

.hero__copy { max-width: 46ch; }
.hero__tagline {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__halo-layer,
  .hero__pulse { animation: none; }
  /* .hero__halo-layer's base opacity is 0 (the animation normally brings
     it up); pin it to a static visible value instead of leaving the
     halo blank once the animation is removed. */
  .hero__halo-layer { opacity: 0.7; }
}

@media (max-width: 640px) {
  .hero__art { margin-top: 24px; }
}

/* ============================= About: intro + logo ============================= */
.page-intro__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-intro__text { flex: 1 1 380px; }
.about__logo {
  width: 200px;
  flex-shrink: 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 35% 25%, #fbf4e8, #e9dcc8 75%);
  box-shadow: var(--shadow-poster-sm);
}

@media (max-width: 640px) {
  .page-intro__row { flex-direction: column-reverse; text-align: center; }
  .about__logo { width: 160px; margin: 0 auto; }
}

/* ============================= Track list (Home) ============================= */
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-poster-sm);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  text-align: left;
  color: var(--text);
}
.track-row:hover { transform: translateX(4px); border-color: var(--gold); background: var(--glass-strong); }
.track-row__play {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}
.track-row__play-icon { width: 16px; height: 16px; fill: var(--void); }
.track-row__index {
  font-family: var(--font-heading);
  color: var(--mauve);
  font-size: 0.85rem;
  width: 2ch;
}
.track-row__title { font-weight: 600; font-size: 1.05rem; transition: color 0.2s ease; }

/* Selected track: a warm gradient wash + glow instead of a flat fill, so
   the row still reads as "glass" rather than turning into a solid block
   of color. Stays on this way even if the track is paused. */
.track-row.is-playing {
  background: linear-gradient(120deg, rgba(243, 188, 70, 0.28), rgba(210, 83, 75, 0.16));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(243, 188, 70, 0.35);
}
.track-row.is-playing .track-row__title { color: var(--gold); }
.track-row.is-playing .track-row__index { color: var(--coral); }
.track-row.is-playing .track-row__play { box-shadow: 0 0 14px rgba(243, 188, 70, 0.7); }

/* Animated equalizer bars replace the play triangle only while this
   specific track is actually playing (not just loaded-but-paused), the
   same "now playing" cue music apps use. */
.track-row__bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 16px;
  height: 14px;
}
.track-row__bars span {
  width: 3px;
  background: var(--void);
  border-radius: 1px;
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.track-row__bars span:nth-child(1) { animation-delay: -0.6s; }
.track-row__bars span:nth-child(2) { animation-delay: -0.3s; }
.track-row__bars span:nth-child(3) { animation-delay: 0s; }

.track-row.is-audio-playing .track-row__play-icon { display: none; }
.track-row.is-audio-playing .track-row__bars { display: flex; }

@keyframes eq-bounce {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .track-row__bars span { animation: none; height: 70%; }
}

/* ============================= About: members ============================= */
.members { margin-bottom: 64px; }
.members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.member-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-poster-sm);
  color: var(--text);
}
.member-card:nth-child(6n+1) { border-top: 4px solid var(--red); }
.member-card:nth-child(6n+2) { border-top: 4px solid var(--gold); }
.member-card:nth-child(6n+3) { border-top: 4px solid var(--blue); }
.member-card:nth-child(6n+4) { border-top: 4px solid var(--olive); }
.member-card:nth-child(6n+5) { border-top: 4px solid var(--plum); }
.member-card:nth-child(6n+6) { border-top: 4px solid var(--orange); }
.member-card__name { font-family: var(--font-heading); font-size: 0.95rem; margin: 0 0 8px; color: var(--text); }
.member-card__role { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ============================= About: origin story ============================= */
.origin > p { max-width: 72ch; font-size: 1.05rem; line-height: 1.7; }
.origin__chapter {
  position: relative;
  margin: 36px 0 36px 24px;
  padding-left: 24px;
  border-left: 4px dashed var(--mauve);
  max-width: 72ch;
}
.origin__chapter h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0 0 12px;
}
.origin__chapter p { font-size: 1.02rem; line-height: 1.75; margin: 0 0 14px; color: var(--text-muted); }
.origin__chapter::before {
  content: '';
  position: absolute;
  left: -11px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--void);
}

/* ============================= Music: albums ============================= */
.albums__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.album-card__link { display: block; }
.album-card__frame {
  display: block;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-poster);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.album-card__link:hover .album-card__frame,
.album-card__link:focus-visible .album-card__frame {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 28px 4px rgba(243, 188, 70, 0.55), 0 18px 46px rgba(0, 0, 0, 0.45);
}
.album-card__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-top: 16px;
  color: var(--text);
}
.album-card__cta {
  display: block;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--coral);
  margin-top: 4px;
}

/* ============================= Shows / Contact ============================= */
.shows {
  background: linear-gradient(155deg, var(--navy), var(--plum));
  color: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-poster);
  padding: 40px;
  margin-bottom: 48px;
}
.shows .section-title { color: var(--gold); text-shadow: 0 0 20px rgba(243, 188, 70, 0.5); }
.shows__status { font-size: 1.1rem; max-width: 55ch; margin-bottom: 24px; color: var(--cream); }

.show-list { display: flex; flex-direction: column; gap: 20px; margin: 0 0 28px; }
.show-card {
  display: flex;
  gap: 24px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.show-card__flyer {
  width: 140px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-poster-sm);
}
.show-card__details { min-width: 0; }
.show-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 10px;
}
.show-card__when { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; color: var(--cream); }
.show-card__where { font-size: 0.95rem; margin: 0; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 560px) {
  .show-card { flex-direction: column; }
  .show-card__flyer { width: 100%; max-width: 220px; margin: 0 auto; }
  .show-card__details { text-align: center; }
}

.contact p { max-width: 65ch; font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }
.contact__socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.contact__socials a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--void);
  box-shadow: var(--shadow-poster-sm);
  transition: transform 0.15s ease;
}
.contact__socials a:hover { transform: translateY(-3px); }

/* ============================= 404 ============================= */
.error-page {
  text-align: center;
  padding: 64px 16px;
  max-width: 640px;
  margin: 0 auto;
}
.error-page .page-lede { margin: 0 auto 32px; }

/* ============================= Footer ============================= */
.site-footer {
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  color: var(--cream);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo { height: 72px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.site-footer__socials { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-heading); font-size: 0.75rem; }
.site-footer__socials a:hover { color: var(--gold); }
.site-footer__note { width: 100%; text-align: center; font-size: 0.8rem; opacity: 0.7; margin: 0; order: 3; }

/* ============================= Persistent player ============================= */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: var(--player-height);
  background: var(--void-deep);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  border-top: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) auto minmax(160px, 1.6fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}
.player__track { min-width: 0; }
.player__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__status { margin: 2px 0 0; font-size: 0.72rem; color: var(--gold); }

.player__controls { display: flex; align-items: center; gap: 10px; }
.player__btn {
  background: none;
  border: none;
  color: var(--cream);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.15s ease;
}
.player__btn svg { width: 22px; height: 22px; fill: currentColor; }
.player__btn:hover { background: rgba(250, 241, 228, 0.12); transform: scale(1.08); }
.player__btn--play {
  background: var(--gold);
  color: var(--ink);
  width: 44px; height: 44px;
}
.player__btn--play:hover { background: var(--gold); filter: brightness(1.08); }
.player__btn--play svg { width: 22px; height: 22px; }

.player__progress { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player__time { font-size: 0.7rem; font-variant-numeric: tabular-nums; opacity: 0.8; width: 3.2em; }
.player__time:last-child { text-align: right; }
.player__seek {
  flex: 1;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(250, 241, 228, 0.25);
  accent-color: var(--gold);
}

.player__btn--queue {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  padding: 8px 16px;
  width: auto;
}
.player__btn--queue[aria-expanded="true"] { background: var(--gold); color: var(--ink); }

.player__queue {
  position: fixed;
  right: 20px;
  bottom: calc(var(--player-height) + 12px);
  width: min(340px, calc(100vw - 40px));
  max-height: 50vh;
  overflow-y: auto;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-poster);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 51;
}
.player__queue.is-open { display: flex; }
.player__queue-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
}
.player__queue-item:hover { background: rgba(243, 236, 224, 0.08); }

/* Same treatment as .track-row: a gradient wash + glow for the loaded
   track instead of a flat fill, with animated equalizer bars (swapped in
   for the index number) only while it's actually playing. */
.player__queue-item.is-playing {
  background: linear-gradient(120deg, rgba(243, 188, 70, 0.28), rgba(210, 83, 75, 0.16));
  box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(243, 188, 70, 0.3);
  font-weight: 600;
}
.player__queue-item.is-playing .player__queue-title { color: var(--gold); }
.player__queue-index { font-family: var(--font-heading); font-size: 0.75rem; color: var(--mauve); width: 2ch; }
.player__queue-item.is-playing .player__queue-index { color: var(--coral); }
.player__queue-title { font-size: 0.9rem; }

.player__queue-bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 2ch;
  height: 12px;
}
.player__queue-bars span {
  width: 3px;
  background: var(--gold);
  border-radius: 1px;
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.player__queue-bars span:nth-child(1) { animation-delay: -0.6s; }
.player__queue-bars span:nth-child(2) { animation-delay: -0.3s; }
.player__queue-bars span:nth-child(3) { animation-delay: 0s; }

.player__queue-item.is-audio-playing .player__queue-index { display: none; }
.player__queue-item.is-audio-playing .player__queue-bars { display: flex; }

@media (prefers-reduced-motion: reduce) {
  .player__queue-bars span { animation: none; height: 70%; }
}

/* SVG's own default stylesheet doesn't reliably honor the generic
   [hidden] UA rule, so hide these explicitly. */
.player__btn svg[hidden] { display: none; }

/* ============================= Responsive ============================= */
@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .site-nav a { display: block; text-align: center; }
  .nav-toggle { display: flex; }

  .player {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 14px 14px;
    row-gap: 8px;
  }
  .player__track { grid-column: 1 / -1; }
  .player__progress { grid-column: 1 / -1; order: 3; }
  .player__btn--queue { order: 2; }
}

@media (max-width: 520px) {
  .brand__logo { height: 48px; }
  .app-content { padding: 32px 16px 80px; }
}
