/* =========================================================================
   Alberovich — Music Player
   Design tokens, modern dark UI, responsive
   ========================================================================= */

:root {
  /* Surface — sampled from the shaded brick/asphalt in the album art */
  --bg:              #0d0806;
  --bg-panel:        #1a100a;
  --bg-elevated:     #25170e;
  --bg-card:         rgba(240, 227, 204, 0.035);
  --bg-card-hover:   rgba(240, 227, 204, 0.07);
  --bg-card-active:  rgba(201, 48, 41, 0.14);
  --border:          rgba(240, 227, 204, 0.08);
  --border-strong:   rgba(240, 227, 204, 0.16);

  /* Text — "THE DISCOGRAPHY" cream on the poster */
  --text:            #f0e3cc;
  --text-muted:      #b09a7e;
  --text-dim:        #76634e;

  /* Accent — vermilion title-red → saffron flag-orange (album palette) */
  --accent:          #c93029;           /* ALBEROVICH title-red, Armenian flag red */
  --accent-hover:    #e24a3b;           /* lit-up red */
  --accent-soft:     rgba(201, 48, 41, 0.15);
  --accent-glow:     rgba(201, 48, 41, 0.38);
  --accent-amber:    #e8a22b;           /* Armenian flag saffron stripe */
  --accent-peach:    #e8b088;           /* sunset sky haze */
  --accent-blue:     #2a66b2;           /* Armenian flag blue stripe — used sparingly */
  --gradient:        linear-gradient(135deg, #bf2a22 0%, #d94e2d 40%, #e8a22b 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(201, 48, 41, 0.18) 0%, transparent 60%);

  /* Semantic */
  --like:            #1DB954;
  --danger:          #ef4444;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 28px var(--accent-glow);

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     120ms var(--ease);
  --t-med:      220ms var(--ease);
  --t-slow:     360ms var(--ease);

  /* Layout */
  --sidebar-w:  240px;
  --player-h:   88px;
  --mobile-menu-h: 64px;
  --mobile-player-h: 70px;
}

/* ---------- Reset / base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at top left, rgba(201, 48, 41, 0.16), transparent 55%),
    radial-gradient(ellipse at top, rgba(232, 176, 136, 0.10), transparent 60%),
    radial-gradient(ellipse at top right, rgba(232, 162, 43, 0.10), transparent 55%);
  position: relative;
}

/* Poster-grain overlay — gives every surface a tactile paper feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Typography utility classes */
.font-display {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.font-editorial {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
}

button { font: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--text); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(245, 233, 212, 0.08);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(245, 233, 212, 0.18); }

/* ---------- Layout ---------- */
.container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: none;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  width: var(--sidebar-w);
  padding: 24px 12px;
  overflow-y: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  margin-bottom: 32px;
  position: relative;
}
.logo-container a { display: none; }  /* empty anchor in markup — hide */
.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(201, 48, 41, 0.35);
  object-fit: cover;
}
.sidebar h1 {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #bf2a22 0%, #e8a22b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8a22b; /* fallback */
}

.sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
  user-select: none;
  text-decoration: none;
}
.sidebar .menu-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.sidebar .menu-item:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}
.sidebar .menu-item.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* ---------- Mobile bottom nav ---------- */
.mobile-bottom-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 8, 6, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 8px 0 10px;
  height: var(--mobile-menu-h);
}

.mobile-bottom-menu .menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 14px;
  transition: color var(--t-fast);
  text-decoration: none;
}
.mobile-bottom-menu .menu-item i { font-size: 20px; }
.mobile-bottom-menu .menu-item:hover,
.mobile-bottom-menu .menu-item:active { color: var(--text); }

/* ---------- Main content ---------- */
.main-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  padding: 24px 28px;
  background-image: var(--gradient-subtle);
  background-repeat: no-repeat;
  background-size: 100% 380px;
}

.search-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px 0;
  background: transparent;
}

#search-form {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding-top: 14px;
}
#search-form i {
  position: absolute;
  left: 18px;
  top: calc(50% + 7px);
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
}
.search-label {
  position: absolute;
  top: -2px;
  left: 18px;
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

#live {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
#live:focus {
  outline: none;
  background-color: #2a1c12;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
#live::placeholder { color: var(--text-dim); }

/* ---------- Content area ---------- */
.content {
  flex: 1;
  min-height: 0;
  padding-bottom: calc(var(--player-h) + 40px);
}

#h2-forliked, #h2-forrecents {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 20px !important;
  letter-spacing: -0.5px;
}

/* Random play */
.random-play {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  margin: 0 0 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-accent);
  transition: transform var(--t-fast), box-shadow var(--t-med);
}
.random-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.random-play:active { transform: translateY(0); }

/* ---------- Song list (desktop rows) ---------- */
.song-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#song-list li {
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
}

#song-list li:hover {
  background: var(--bg-card-hover);
}

#song-list li.active {
  background: var(--bg-card-active);
  border-color: rgba(201, 48, 41, 0.35);
}
#song-list li.active .song-name { color: var(--accent-hover); }

#song-list li .song-icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(245, 233, 212, 0.05);
  flex-shrink: 0;
}
#song-list li.active .song-icon {
  background: var(--accent-soft);
}

#song-list li .song-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
}

#song-list li .fa-link,
#song-list li .fa-heart {
  color: var(--text-dim);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), transform var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
#song-list li .fa-link:hover { color: var(--accent-hover); background: var(--bg-card-hover); }
#song-list li .fa-heart:hover { color: var(--like); background: var(--bg-card-hover); transform: scale(1.08); }
#song-list li .fa-heart.liked { color: var(--like); }

#song-list li.error,
#song-list li.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  background: none;
  cursor: default;
  justify-content: center;
}

/* ---------- Song actions menu (mobile kebab) ---------- */
.song-action-menu {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 1001;
  backdrop-filter: blur(24px);
}
.song-action-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background var(--t-fast);
}
.song-action-menu .menu-item:hover { background: var(--bg-card-hover); }
.song-action-menu .menu-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}
.song-action-menu .menu-item .fa-heart { color: var(--like); }

/* ---------- Desktop player ---------- */
.player {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform var(--t-med);
}
.player.active { display: block; }

.desktop-player {
  display: none;
  background: rgba(23, 16, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: var(--player-h);
  width: 100%;
  gap: 20px;
}

.desktop-player .song-info {
  display: flex;
  align-items: center;
  width: 28%;
  min-width: 220px;
  gap: 14px;
}
.desktop-player .song-info img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.song-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.song-details p {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.like {
  background: none;
  border: none;
  color: var(--text-muted);
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.like:hover { color: var(--text); background: var(--bg-card-hover); transform: scale(1.08); }
.like.liked, .like.liked i { color: var(--like); }

/* Player controls */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44%;
  max-width: 640px;
  gap: 8px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.controls button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.controls button:hover { color: var(--text); background: var(--bg-card-hover); }

.controls #desktop-play-btn {
  background: var(--text);
  color: var(--bg);
  width: 40px;
  height: 40px;
  font-size: 15px;
  margin: 0 8px;
  box-shadow: var(--shadow-md);
}
.controls #desktop-play-btn:hover {
  transform: scale(1.06);
  background: #fff;
  color: var(--bg);
}

.shuffle.active, .repeat.active {
  color: var(--accent) !important;
}
.shuffle.active::after, .repeat.active::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.shuffle, .repeat { position: relative; }

/* Progress bar */
.progress-bar {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.progress-bar .time {
  font-size: 11px;
  color: var(--text-dim);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Sliders (shared) */
input[type="range"].bar,
input[type="range"].volume-bar {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
    var(--accent) var(--fill, 0%),
    rgba(245, 233, 212, 0.14) var(--fill, 0%));
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: height var(--t-fast);
}
input[type="range"].bar::-webkit-slider-thumb,
input[type="range"].volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
input[type="range"].bar::-moz-range-thumb,
input[type="range"].volume-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.progress-bar:hover input[type="range"].bar::-webkit-slider-thumb,
.volume-controls:hover input[type="range"].volume-bar::-webkit-slider-thumb,
.expanded-progress:hover input[type="range"].bar::-webkit-slider-thumb {
  opacity: 1;
}
.progress-bar:hover input[type="range"].bar::-moz-range-thumb,
.volume-controls:hover input[type="range"].volume-bar::-moz-range-thumb,
.expanded-progress:hover input[type="range"].bar::-moz-range-thumb {
  opacity: 1;
}

/* Volume */
.volume-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 28%;
  gap: 10px;
}
.volume-controls #desktop-sound-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast);
}
.volume-controls #desktop-sound-btn:hover { color: var(--text); background: var(--bg-card-hover); }
.volume-controls #desktop-volume-bar { width: 120px; }

/* ---------- Mobile player ---------- */
.mobile-player {
  margin: 0 10px 10px;
}

.player-minimized {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  gap: 12px;
}

.minimized-song-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
  cursor: pointer;
}
.minimized-song-info img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.minimized-song-details {
  min-width: 0;
  flex: 1;
}
.minimized-song-details h4 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.minimized-song-details p {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minimized-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.minimized-controls button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.minimized-controls button:hover { background: var(--bg-card-hover); }
.minimized-controls #minimized-play-btn { font-size: 22px; }
.minimized-controls .like.liked { color: var(--like); }

/* Expanded mobile player */
.player-expanded {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 40px;
  background:
    radial-gradient(ellipse at top, rgba(201, 48, 41, 0.38), transparent 70%),
    var(--bg);
  height: 100%;
  color: var(--text);
  overflow-y: auto;
}

.expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.expanded-header > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.expanded-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.expanded-header i {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.expanded-header i:hover { color: var(--text); }
.expanded-header .fa-heart.liked { color: var(--like); }

.expanded-album-art {
  display: flex;
  justify-content: center;
  margin: 16px 0 28px;
}
.expanded-album-art img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), var(--shadow-accent);
}

.expanded-song-info { text-align: center; margin: 8px 0 24px; }
.expanded-song-info h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.expanded-song-info p { font-size: 14px; color: var(--text-muted); }

.expanded-progress { width: 100%; margin: 16px 0; }
.expanded-progress .progress-bar { width: 100%; }
.expanded-progress .time-display {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.expanded-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding: 0 12px;
}
.expanded-controls button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.expanded-controls button:hover { background: var(--bg-card-hover); }
.expanded-controls .shuffle.active,
.expanded-controls .repeat.active { color: var(--accent); }

#mobile-expanded-play-btn {
  background: var(--text) !important;
  color: var(--bg) !important;
  width: 64px !important;
  height: 64px !important;
  font-size: 22px !important;
  box-shadow: var(--shadow-accent) !important;
}
#mobile-expanded-play-btn:hover {
  transform: scale(1.06);
  background: #fff !important;
}

/* ---------- Discography Hero (landing poster) ---------- */
.discography-hero {
  padding: 24px 0 36px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: hero-rise 720ms var(--ease) both;
  border-bottom: 1px solid var(--border);
  margin-right: clamp(0px, 6vw, 72px);
}

.hero-eyebrow {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--accent);
  opacity: 0.9;
}

.hero-wordmark {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 13vw, 196px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(135deg, #bf2a22 0%, #e8a22b 60%, #f0e3cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8a22b; /* fallback */
  text-shadow: 0 0 40px rgba(201, 48, 41, 0.18);
}

.hero-rule {
  width: 96px;
  height: 3px;
  background: var(--accent);
  margin: 4px 0 2px;
}

.hero-strap {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text);
  letter-spacing: 0.01em;
}
.hero-strap em {
  font-style: italic;
  color: var(--accent-hover);
  margin-right: 4px;
}

.hero-lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 2px;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- View transitions ---------- */
.view-enter {
  animation: view-enter 320ms var(--ease) both;
}
@keyframes view-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Song row cascade (page-load stagger) ---------- */
#song-list li {
  animation: row-in 460ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 38ms);
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Track numbers (replaces the old song-icon chip) */
.track-no {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  width: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color var(--t-fast);
}
#song-list li:hover .track-no { color: var(--accent-hover); }
#song-list li.active .track-no {
  color: transparent;
}
#song-list li.active .track-no .track-bars { display: flex; }

.track-bars {
  display: none;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 4px;
}
.track-bars i {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: track-bar 900ms var(--ease) infinite;
}
.track-bars i:nth-child(1) { height: 55%; animation-delay: -100ms; }
.track-bars i:nth-child(2) { height: 80%; animation-delay: -350ms; }
.track-bars i:nth-child(3) { height: 40%; animation-delay: -600ms; }
@keyframes track-bar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* Inline duration on desktop rows — revealed on hover */
.song-duration-inline {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--t-fast);
  margin-right: 8px;
  flex-shrink: 0;
}
#song-list li:hover .song-duration-inline,
#song-list li.active .song-duration-inline { opacity: 1; }

/* Restyle existing section headers in Anton */
#h2-forliked, #h2-forrecents {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(36px, 5vw, 56px) !important;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  background: linear-gradient(135deg, #bf2a22 0%, #e8a22b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8a22b;
  position: relative;
  padding-bottom: 14px;
  margin: 14px 0 22px !important;
}
#h2-forliked::after, #h2-forrecents::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 72px;
  height: 3px;
  background: var(--accent);
}

/* ---------- Album section ("The Discography") ---------- */
.album-section {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 8px 0 48px;
  max-width: 1080px;
}

.album-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.album-cover {
  position: relative;
  aspect-ratio: 1 / 1;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(245, 233, 212, 0.06);
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transition: transform var(--t-slow);
}
.album-cover:hover img { transform: scale(1.015); }
.album-cover-frame {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.65;
  pointer-events: none;
  transition: inset var(--t-slow), opacity var(--t-slow);
}
.album-cover:hover .album-cover-frame { inset: 20px -20px -20px 20px; opacity: 1; }

.album-intro { display: flex; flex-direction: column; gap: 14px; }

.album-eyebrow {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 12px;
  color: var(--accent);
  opacity: 0.9;
}

.album-title {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(135deg, #bf2a22 0%, #e8a22b 60%, #f0e3cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8a22b;
}

.album-artist {
  font-family: 'Lobster', cursive;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.album-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.5;
}
.album-tagline em { color: var(--accent-hover); font-style: italic; margin-right: 2px; }

.album-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.album-meta > div { display: flex; flex-direction: column; gap: 2px; }
.album-meta dt {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  color: var(--text-dim);
}
.album-meta dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.album-play-cta {
  align-self: flex-start;
  margin-top: 12px;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform var(--t-fast), box-shadow var(--t-med);
}
.album-play-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px var(--accent-glow); }
.album-play-cta:active { transform: translateY(0); }

/* Section titles inside the album page */
.album-section-title {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  color: var(--text);
}
.album-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

/* Liner notes — editorial prose */
.album-liner p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--text);
  max-width: 66ch;
}
.album-liner p + p { margin-top: 14px; }
.album-liner strong {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent-hover);
}
.album-liner em { color: var(--text-muted); }

/* Themes — 2×2 grid of numbered cards */
.theme-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
}
.theme-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(201, 48, 41, 0.04), transparent 70%);
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med);
}
.theme-grid li:hover {
  border-color: rgba(201, 48, 41, 0.45);
  background: linear-gradient(160deg, rgba(201, 48, 41, 0.10), transparent 70%);
  transform: translateY(-2px);
}
.theme-no {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.theme-grid h4 {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
}
.theme-grid p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Highlights — setlist style */
.highlight-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.highlight-list li {
  display: grid;
  grid-template-columns: 56px auto 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast), padding-left var(--t-fast);
}
.highlight-list li:hover {
  background: rgba(201, 48, 41, 0.05);
  padding-left: 12px;
}
.hl-no {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hl-title {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
}
.hl-note {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Credits */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
}
.credits-grid > div { display: flex; flex-direction: column; gap: 4px; }
.credits-grid dt {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--text-dim);
}
.credits-grid dd {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .album-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .album-cover { max-width: 360px; margin: 0 auto; width: 100%; }
  .album-intro { align-items: flex-start; }
  .theme-grid { grid-template-columns: 1fr; gap: 18px; }
  .highlight-list li {
    grid-template-columns: 42px auto;
    row-gap: 4px;
  }
  .hl-note { grid-column: 1 / -1; padding-left: 62px; }
  .credits-grid { grid-template-columns: 1fr; gap: 18px; }
  .album-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .album-meta { grid-template-columns: 1fr; gap: 12px; }
  .album-title { font-size: clamp(44px, 13vw, 72px); }
  .footer-monogram { font-size: clamp(56px, 18vw, 120px); letter-spacing: -0.02em; }
}

/* ---------- About section ---------- */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 8px 0 48px;
  max-width: 1040px;
}

.about-hero {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.about-hero h2 {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #bf2a22 0%, #e8a22b 60%, #f0e3cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8a22b;
  margin-bottom: 20px;
}

.about-lead {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--text);
  max-width: 40ch;
  font-style: italic;
}
.about-lead::first-letter {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-style: normal;
  float: left;
  font-size: 5.2em;
  line-height: 0.82;
  padding: 4px 14px 0 0;
  color: var(--accent);
  text-transform: uppercase;
}

.about-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.about-block:last-of-type { border-bottom: none; }
.about-block.reverse { grid-template-columns: 1fr 320px; }
.about-block.reverse .about-figure { order: 2; }

.about-figure { margin: 0; position: relative; }
.about-figure::after {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.6;
  transition: inset var(--t-med), opacity var(--t-med);
}
.about-figure:hover::after { inset: 14px -14px -14px 14px; opacity: 1; }

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(1.05) contrast(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-med);
  display: block;
}
.about-figure:hover img { transform: translate(-2px, -2px); }

.about-copy h3 {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}
.about-copy h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}
.about-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 62ch;
}
.about-copy p + p { margin-top: 14px; }

.about-pullquote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--text);
  max-width: 22ch;
  margin: 8px auto;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  text-align: left;
}

@media (max-width: 768px) {
  .about-section { gap: 40px; }
  .about-block,
  .about-block.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 32px;
  }
  .about-block.reverse .about-figure { order: 0; }
  .about-figure img { max-width: 360px; margin: 0 auto; display: block; }
  .about-figure::after { inset: 8px -8px -8px 8px; }
  .about-pullquote {
    font-size: 22px;
    max-width: none;
    padding-left: 18px;
  }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 72px;
  padding: 36px 16px calc(var(--player-h) + 32px);
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer-monogram {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(72px, 16vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(232, 162, 43, 0.85) 0%, rgba(191, 42, 34, 0.35) 80%, rgba(191, 42, 34, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(232, 162, 43, 0.6);
  margin: -4px 0 24px;
  opacity: 0.9;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}
.footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.footer p em { color: var(--text-dim); font-style: normal; }
.footer a {
  color: var(--accent-hover);
  transition: color var(--t-fast);
}
.footer a:hover { color: var(--text); text-decoration: underline; }

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.icons img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.icons img:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 24px;
  width: max-content;
  max-width: 90vw;
  border-radius: var(--radius-pill);
  z-index: 2000;
  display: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  animation: toast-in 180ms var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Overlay / Popup ---------- */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
}
.popup {
  background: var(--bg-elevated);
  color: var(--text);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
}

/* ---------- Lyrics Modal ---------- */
.lyrics-popup {
  text-align: left;
  padding: 20px 24px;
  width: min(560px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.lyrics-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#lyrics-close-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
#lyrics-close-btn:hover { color: var(--text); background: var(--bg-card-hover); }
.lyrics-body {
  white-space: pre-wrap;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}

.lyrics {
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (max-width: 576px) {
  .lyrics-popup {
    width: 95vw;
    max-height: 80vh;
    padding: 16px 18px;
  }
  .lyrics-body { font-size: 14px; }
}

/* ---------- Desktop (≥577px) ---------- */
@media (min-width: 577px) {
  .container {
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: 1fr;
  }
  .sidebar { display: block; }
  .desktop-player { display: flex; }
  .mobile-player { display: none; }
  .mobile-bottom-menu { display: none !important; }

  .main-content { padding: 24px 36px 0; }
}

/* ---------- Mobile (≤576px) ---------- */
@media (max-width: 576px) {
  .main-content {
    padding: 16px 14px;
    padding-bottom: calc(var(--mobile-player-h) + var(--mobile-menu-h) + 20px);
  }

  .mobile-bottom-menu { display: flex; justify-content: space-around; }
  .desktop-player { display: none !important; }
  .mobile-player { display: block; }

  .search-container { margin-bottom: 18px; }
  #search-form { max-width: none; }

  .content { padding-bottom: 20px; }

  .random-play { width: 100%; justify-content: center; margin-bottom: 20px; }

  .song-grid { gap: 2px; }

  #song-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    gap: 12px;
  }
  #song-list li:hover,
  #song-list li:active { background: var(--bg-card-hover); }
  #song-list li.active { background: var(--bg-card-active); border: none; }

  #song-list li .song-icon { display: none; }

  /* Mobile: shrink track numbers so title/duration/actions breathe */
  #song-list li .track-no {
    width: 26px;
    font-size: 15px;
    flex-shrink: 0;
  }

  /* Larger tap targets for row icons */
  #song-list li .fa-link,
  #song-list li .fa-heart {
    padding: 10px;
    font-size: 14px;
  }

  /* Album CTA: allow wrap + center on narrow screens */
  .album-play-cta {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    letter-spacing: 0.02em;
  }

  #song-list li .song-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #song-list li .song-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  #song-list li .song-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #song-list li.active .song-title { color: var(--accent-hover); }

  #song-list li .song-duration {
    font-size: 12px;
    color: var(--text-dim);
    margin: 0 8px;
    font-variant-numeric: tabular-nums;
  }
  #song-list li .song-actions {
    color: var(--text-dim);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background var(--t-fast);
  }
  #song-list li .song-actions:hover {
    color: var(--text);
    background: var(--bg-card-hover);
  }

  /* Mobile expanded player pops to full screen */
  .player.player-expanded-open .player-expanded {
    position: fixed;
    inset: 0;
    z-index: 1001;
    margin: 0;
    border-radius: 0;
  }
  .player.player-expanded-open .player-minimized { display: none; }
  .player:not(.player-expanded-open) .player-expanded { display: none; }
  .player:not(.player-expanded-open) .player-minimized { display: flex; }

  .player.active { bottom: var(--mobile-menu-h); }
  .player.active.player-expanded-open { bottom: 0; }

  .footer { padding-bottom: 40px; }

  .toast { bottom: calc(var(--mobile-player-h) + var(--mobile-menu-h) + 16px); }
}

/* ---------- Focus ring (keyboard a11y) ---------- */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}
button:focus:not(:focus-visible) { outline: none; }

/* Motion pref */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
