:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.11);
  --text: rgba(255, 255, 255, 0.98);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.46);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --accent: #a878ff;
  --accent-soft: rgba(168, 120, 255, 0.18);
  --accent-outline: rgba(168, 120, 255, 0.38);
  --accent-fg: #050505;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button, input, a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.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;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, var(--accent-soft), transparent 28%),
    var(--bg);
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(56px) saturate(1.08);
  opacity: 0.58;
  transition: opacity 320ms ease, transform 900ms ease;
}

.backdrop-overlay,
.backdrop-noise {
  position: absolute;
  inset: 0;
}

.backdrop-overlay {
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.34), rgba(5, 5, 5, 0.9)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.82));
}

.backdrop-noise {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 24px;
  overflow: hidden;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.player-panel,
.playlist-panel {
  border-radius: var(--radius-xl);
}

.player-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
  height: 100%;
}

.eyebrow-row,
.playlist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.eyebrow,
.track-kicker,
.playlist-group-title,
.eyebrow-subtitle {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow,
.track-kicker {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.eyebrow-subtitle {
  margin: 10px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.playlist-toggle {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.playlist-toggle:hover,
.playlist-toggle:focus-visible,
.service-link:hover,
.service-link:focus-visible,
.icon-button:hover,
.icon-button:focus-visible,
.playlist-item:hover,
.playlist-item:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

/* Flip-flop crossfade: both images are position:absolute so neither image's
   src ever changes while it is visible. The wrap defines the layout shape. */
.cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;          /* defines height now that children are absolute */
  border-radius: 28px;           /* rounds the shadow; images clip themselves */
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34); /* single shadow on the wrap */
}

.cover-wrap::after {
  content: "";
  position: absolute;
  inset: auto 12% -22px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(18px);
  z-index: -1;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  z-index: 1;                    /* starts as foreground */
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Second image for flip-flop — starts as hidden background */
.cover-image-next {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  z-index: 0;                    /* starts as background */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.track-meta {
  display: grid;
  gap: 22px;
}

.track-copy {
  display: grid;
  gap: 12px;
}

.track-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.75rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.track-artist {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text);
  font-weight: 600;
}

.track-album,
.track-date {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.service-link img,
.service-link svg {
  width: 18px;
  height: 18px;
}

.controls-panel {
  margin-top: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.transport {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon-button-primary {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  box-shadow: 0 16px 34px var(--accent-soft);
}

.icon-pause {
  display: none;
}

.playing .icon-play {
  display: none;
}

.playing .icon-pause {
  display: block;
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-input {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.16) 100%);
}

.progress-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.progress-input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

.progress-input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.progress-input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.progress-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: var(--accent);
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ── Volume ───────────────────────────────────────────────────────────────── */
.transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.volume-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.volume-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: color 150ms ease;
}

.volume-btn:hover,
.volume-btn:focus-visible {
  color: var(--text);
}

.volume-btn:focus-visible {
  outline: 2px solid var(--accent-outline);
  outline-offset: 2px;
}

.volume-btn svg {
  width: 18px;
  height: 18px;
}

/* Show only the correct icon for the current volume state */
.icon-vol-low,
.icon-vol-mute { display: none; }

.vol-low  .icon-vol-high,
.vol-mute .icon-vol-high { display: none; }
.vol-low  .icon-vol-low  { display: block; }
.vol-mute .icon-vol-mute { display: block; }

.volume-input {
  appearance: none;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  /* Fill updated by JS via updateVolumeFill() */
  background: linear-gradient(to right,
    rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 100%,
    rgba(255,255,255,0.16) 100%, rgba(255,255,255,0.16) 100%);
}

.volume-input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.volume-input::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 150ms ease;
}

.volume-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.volume-input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.volume-input::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
}

.volume-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
}

.playlist-panel {
  min-height: 0;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04));
}

.playlist-header h2 {
  margin: 0;
  font-size: 0.975rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.playlist-groups {
  min-height: 0;
  overflow: auto;
  margin-top: 12px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.playlist-group {
  display: grid;
  gap: 10px;
}

.playlist-group-title {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.playlist-list {
  display: grid;
  gap: 8px;
}

.playlist-item {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.playlist-item.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.07));
  border-color: var(--accent-outline);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.playlist-item-date {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.playlist-item-title {
  font-weight: 600;
}

.playlist-item-artist,
.playlist-item-album {
  color: var(--text-soft);
  font-size: 0.93rem;
}

.playlist-panel::-webkit-scrollbar,
.playlist-groups::-webkit-scrollbar {
  width: 10px;
}

.playlist-panel::-webkit-scrollbar-thumb,
.playlist-groups::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}

body.playlist-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.playlist-item.is-active .playlist-item-title {
  color: var(--text);
}

.service-link:focus-visible,
.playlist-toggle:focus-visible,
.icon-button:focus-visible,
.playlist-item:focus-visible {
  outline: 2px solid var(--accent-outline);
  outline-offset: 2px;
}


.playlist-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.playlist-close:hover,
.playlist-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.03);
}

.orientation-lock {
  display: none;
}


body.playlist-open .playlist-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.playlist-open .playlist-close {
  display: inline-flex;
  opacity: 1;
}


.brandline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.brandline .eyebrow,
.brandline .eyebrow-subtitle {
  margin: 0;
}

.brandline-separator {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex: 0 0 auto;
}

.playlist-toggle-bottom {
  display: none;
  margin-top: auto;
  align-self: stretch;
}

.playlist-header {
  padding-top: 42px;
  min-height: 24px;
}

.track-kicker,
#trackWeek,
.track-date,
#trackDate {
  display: none !important;
}

/* ── Panel toggles ────────────────────────────────────────────────────────── */
.lyrics-toggle:focus-visible {
  outline: 2px solid var(--accent-outline);
  outline-offset: 2px;
}

/* ── Lyrics panel ─────────────────────────────────────────────────────────── */
.lyrics-panel {
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: var(--radius-xl);
  position: fixed;
  z-index: 100;
  inset: 0;
  margin: auto;
  width: min(780px, calc(100vw - 48px));
  /* height:fit-content collapses flex:1 children in Safari — flex items need
     a definite parent height to grow into. Use a concrete height instead. */
  height: min(75vh, 700px);
  padding: 44px 32px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

body.lyrics-open .lyrics-panel,
.lyrics-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.lyrics-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.24s ease, transform 0.24s ease;
}

.lyrics-close:hover,
.lyrics-close:focus-visible {
  background: rgba(255,255,255,0.14);
  transform: scale(1.03);
}

body.lyrics-open .lyrics-close,
.lyrics-panel.is-open .lyrics-close {
  display: inline-flex;
}

.lyrics-pinyin-toggle {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.24s ease, transform 0.24s ease, color 0.24s ease,
              border-color 0.24s ease;
}

.lyrics-pinyin-toggle:hover,
.lyrics-pinyin-toggle:focus-visible {
  background: rgba(255,255,255,0.14);
  transform: scale(1.03);
}

.lyrics-pinyin-toggle.is-active {
  color: #D4D6D5;
  border-color: rgba(212, 214, 213, 0.38);
  background: rgba(212, 214, 213, 0.14);
}

.lyrics-content {
  flex: 1;
  position: relative; /* makes .lrc-line offsetParent → offsetTop is relative to this container */
  overflow-y: auto;
  padding-top: 16px;
  padding-bottom: 64px;
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-soft);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Fade out lines at top/bottom edges for a cinematic scroll feel */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
}

.lyrics-content::-webkit-scrollbar {
  width: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.lyrics-empty {
  margin: 0;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.88rem;
}

/* ── Synced LRC lines ───────────────────────────────────────────────────────── */
.lrc-line {
  /* Reset <button> chrome */
  display: block;
  width: fit-content; /* only the text is tappable — empty row space stays scroll-safe */
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  /* Layout */
  margin: 0;
  padding: 5px 0;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
  white-space: normal;
  transition: color 250ms ease, font-size 300ms ease;
  -webkit-tap-highlight-color: transparent;
  /* Prevent iOS pan-gesture interception from swallowing button taps.
     touch-action:pan-y on html/body means any slight-movement tap is
     treated as a scroll gesture and click is never fired on the button. */
  touch-action: manipulation;
}

.lrc-line:hover {
  color: var(--text-soft);
}

.lrc-line.is-active {
  color: var(--text);
  font-weight: 600;
  font-size: 1.75rem;
}

/* ── Playlist search ──────────────────────────────────────────────────────── */
.playlist-search {
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  margin-top: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  /* Tells Brave/Chrome to treat tap as direct interaction, fixing keyboard
     display in fixed panels with bottom toolbars on iOS */
  touch-action: manipulation;
}

.playlist-search:focus {
  border-color: var(--accent-outline);
  background: rgba(255,255,255,0.10);
}

.playlist-search::placeholder {
  color: var(--text-dim);
}

.playlist-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Phosphor icons ───────────────────────────────────────────────────────── */
/* Inside a flex/inline-flex button, <i> children are already block-like flex
   items — no display override needed. Setting display here would beat all
   lower-specificity hide rules (.icon-pause, .icon-vol-low, etc.). */
.icon-button i,
.volume-btn i {
  line-height: 0; /* prevent descender gap below inline SVG */
}

/* repeat-once icon hidden until that mode is active */
.icon-repeat-one { display: none; }

/* ── Shuffle / Repeat buttons ─────────────────────────────────────────────── */
.icon-button-sm {
  width: 40px;
  height: 40px;
  opacity: 0.42;   /* dimmed = off */
  transition: transform 180ms ease, background 180ms ease,
              border-color 180ms ease, opacity 180ms ease;
}

.icon-button-sm svg {
  width: 18px;
  height: 18px;
}

#shuffleButton.is-active,
#repeatButton.is-repeat-all,
#repeatButton.is-repeat-one {
  opacity: 1;      /* full brightness = on */
  color: #D4D6D5;
  border-color: rgba(212, 214, 213, 0.38);
  background: rgba(212, 214, 213, 0.14);
}

#repeatButton.is-repeat-one .icon-repeat-all { display: none; }
#repeatButton.is-repeat-one .icon-repeat-one { display: inline-flex; }

/* ── Now-playing equaliser ────────────────────────────────────────────────── */
.eq-icon {
  grid-column: 2;
  grid-row: 1 / 4;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px; /* required — spans use % heights relative to this */
  align-self: center;
}

.playlist-item.is-active .eq-icon {
  display: flex;
}

.eq-icon span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 30%;
}

body.is-playing .playlist-item.is-active .eq-icon span:nth-child(1) {
  animation: eq-bar 0.9s ease-in-out infinite alternate;
}
body.is-playing .playlist-item.is-active .eq-icon span:nth-child(2) {
  animation: eq-bar 0.65s ease-in-out 0.18s infinite alternate;
}
body.is-playing .playlist-item.is-active .eq-icon span:nth-child(3) {
  animation: eq-bar 1.1s ease-in-out 0.36s infinite alternate;
}

@keyframes eq-bar {
  from { height: 20%; }
  to   { height: 100%; }
}

/* Playlist text spans occupy column 1; eq-icon spans all rows in column 2 */
.playlist-item-title,
.playlist-item-artist,
.playlist-item-album {
  grid-column: 1;
}
