/* ========== Base reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --accent: #0a84ff;
  --accent-dark: #0063d0;
  --text: #f2f2f7;
  --text-muted: #9a9aa6;
  --text-faint: #7c7c88;
  --surface: rgba(28, 30, 38, 0.72);
  --surface-border: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 0;
  gap: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, #0b0d12 0%, #12151d 50%, #0a0b10 100%);
  background-attachment: fixed;
}

/* ========== Player card ========== */
/* The card fills the screen height so the button pad can sit at the
   vertical middle; lyrics stay at the top, progress + controls at the bottom. */
.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  min-height: max(100dvh, 700px);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
}

/* ========== Top menu button (empty placeholder, hidden) ========== */
.menu-header {
  display: none;
}

/* ========== Pop-up song panel ========== */
.menu-panel {
  position: fixed;
  left: 50%;
  width: calc(100% - 24px);
  max-width: 416px;
  bottom: 84px;
  max-height: 45vh;
  overflow-y: auto;
  background: rgba(34, 37, 46, 0.97);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border-radius: 28px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  z-index: 100;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.menu-panel.open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* ========== Song list ========== */
.song-list {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
  border-radius: 20px;
  scrollbar-width: thin;
  scrollbar-color: #4a4d58 transparent;
}

.song-list::-webkit-scrollbar {
  width: 3px;
}

.song-list::-webkit-scrollbar-thumb {
  background: #4a4d58;
  border-radius: 10px;
}

.song-item {
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.song-item:active {
  background: rgba(255, 255, 255, 0.07);
}

.song-item.active {
  background: rgba(10, 132, 255, 0.22);
  color: #6cb4ff;
  font-weight: 560;
}

.song-item .index {
  opacity: 0.5;
  font-size: 12px;
  min-width: 20px;
}

.empty-state {
  padding: 20px 10px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

/* ========== Bottom icon bar ========== */
.icon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px;
  margin: 6px auto 0;
  width: 100%;
  max-width: 400px;
  padding: 6px 8px;
  background: rgba(46, 49, 60, 0.85);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 10px rgba(0, 0, 0, 0.35);
}

.icon-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 14px;
  font-size: 18px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  touch-action: manipulation;
  user-select: none;
  line-height: 1;
  font-variant-emoji: text;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .icon-btn:hover {
    background: rgba(255, 255, 255, 0.07);
  }
}

.icon-btn.danger {
  color: #ff6b5e;
}

.speed-btn,
.sleep-btn {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.speed-btn.active,
.sleep-btn.active {
  color: #6cb4ff;
}

.icon-btn.loop-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.45);
}

/* Seconds dropdown */
.icon-select {
  width: 52px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(62, 66, 80, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  text-align-last: center;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  margin: 0 2px;
}

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

/* ========== Triangle play pad ========== */
/* Only the pad's position changed: it is now centered on the card, so
   rewind/forward sit just above the middle and play just below it.
   The buttons themselves are unchanged. */
.triangle-pad {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(76vw, 320px);
  aspect-ratio: 1 / 0.92;
  margin: 0;
}

.triangle-pad .giant-btn {
  position: absolute;
  width: 45%;
  aspect-ratio: 1 / 1;
  font-size: clamp(28px, 8vw, 52px);
}

.triangle-pad .back-pos {
  left: 0;
  top: 0%;
}

.triangle-pad .forward-pos {
  right: 0;
  top: 0%;
}

.triangle-pad .play-pos {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #007aff;
  color: #fff;
}

.triangle-pad .play-pos:active {
  transform: translateX(-50%) scale(0.92);
  background: #0063d0;
}

.giant-btn {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;
  background: #f0f0f2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-weight: 300;
  color: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  line-height: 1;
}

.giant-btn:active {
  transform: scale(0.92);
  background: #e3e3e8;
}

.giant-btn span {
  transform: translateY(-2px);
}

.menu-btn, .ctrl-btn, .giant-btn {
  font-variant-emoji: text;
  font-weight: 450;
  letter-spacing: 0.3px;
}

/* ========== Lyrics box (swipe to select a sentence) ========== */
.lyrics-box {
  height: 150px;
  flex-shrink: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 12px 0 4px;
  position: relative;
  color: #888;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.lyrics-box::-webkit-scrollbar {
  display: none;
}

.lyrics-box p {
  height: 150px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #6f7380;
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
  padding: 0 20px;
  box-sizing: border-box;
  transition: color 0.25s ease, font-size 0.25s ease;
}

.lyrics-box p.active {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.lyrics-box.hidden {
  visibility: hidden;
}

.now-playing {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ========== Hidden media element ========== */
#smPlayer {
  width: 100%;
  max-height: 40vh;
  border-radius: 28px;
  background: transparent;
  display: none;
  margin: 12px 0;
}

#smPlayer.show-video {
  display: none;
}

audio {
  display: none;
}

/* ========== Progress bar ========== */
.progress-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 0 14px; /* pushes progress + controls to the bottom */
}

.progress-track {
  flex: 1;
  height: 8px;
  background: #3a3d48;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  touch-action: none;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4da3ff, var(--accent));
  border-radius: 10px;
  transition: width 0.05s linear;
  pointer-events: none;
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 26px;
  background: var(--accent);
  border-radius: 6px;
  border: 2px solid #f2f2f7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  transition: transform 0.08s ease;
}

.progress-handle:active {
  transform: translate(-50%, -50%) scale(1.15);
  cursor: grabbing;
}

.progress-track.dragging .progress-fill {
  background: var(--accent-dark);
}

.time-label {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 44px;
  letter-spacing: 0.1px;
}

.time-label:first-child {
  text-align: left;
}

.time-label:last-child {
  text-align: right;
}

/* ========== Albums page (VLC-style home) ========== */
[hidden] {
  display: none !important;
}

.top-bar {
  display: flex;
  justify-content: flex-start;
}

.albums-link {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  font-variant-emoji: text;
}

.albums-link:active {
  background: rgba(255, 255, 255, 0.16);
}

.albums-page {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
}

body.view-albums .player-card {
  display: none;
}

body.view-albums .albums-page {
  display: flex;
}

.albums-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.albums-head h1 {
  flex: 1;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.albums-actions {
  display: flex;
  gap: 8px;
}

.albums-nav {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  font-variant-emoji: text;
}

.albums-nav:active {
  background: rgba(255, 255, 255, 0.16);
}

.albums-search {
  height: 38px;
  margin: 14px 0 12px;
  padding: 0 16px;
  border: none;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.albums-search::placeholder {
  color: var(--text-faint);
}

.albums-search:focus {
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  align-content: start;
  padding-bottom: 8px;
}

.album-card {
  display: block;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease;
}

.album-card:active {
  transform: scale(0.97);
}

.album-cover,
.mini-cover,
.hero-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.album-cover {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  font-size: 46px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.album-name {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.album-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.albums-empty {
  grid-column: 1 / -1;
  padding: 48px 12px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.6;
}

.albums-empty .pill-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  font-variant-emoji: text;
}

.pill:active {
  background: rgba(255, 255, 255, 0.18);
}

.pill-accent {
  background: var(--accent);
  color: #fff;
}

.pill-accent:active {
  background: var(--accent-dark);
}

.pill-danger {
  color: #ff6b5e;
}

.hero-actions {
  display: flex;
  gap: 8px;
}

/* Album detail */
.track-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 16px;
}

.hero-cover {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 20px;
  font-size: 44px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.track-hero-info {
  min-width: 0;
}

.track-hero-title {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.track-hero-meta {
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.track-row:active {
  background: rgba(255, 255, 255, 0.07);
}

.track-row.active {
  background: rgba(10, 132, 255, 0.22);
  color: #6cb4ff;
  font-weight: 560;
}

.track-no {
  min-width: 22px;
  font-size: 13px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.track-row.active .track-no {
  color: #6cb4ff;
}

.track-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mini player (return to the player page) */
.mini-bar {
  position: sticky;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 22px;
  background: rgba(46, 49, 60, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.mini-cover {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  font-size: 18px;
}

.mini-text {
  flex: 1;
  min-width: 0;
}

.mini-title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-sub {
  margin-top: 1px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  font-variant-emoji: text;
}

.mini-btn:active {
  background: var(--accent-dark);
}

/* ========== Theme: frosted glass, color, background picture ========== */
:root {
  --bg-color: #0b0d12;
  --glass-blur: 24px;
  --bg-dim: 0;
  --surface: rgba(28, 30, 38, 0.55);
}

body {
  background: var(--bg-color);
}

/* Full-screen background: dimming layer, optional picture, color gradient. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, var(--bg-dim)), rgba(0, 0, 0, var(--bg-dim))),
    var(--bg-image, none) center / cover no-repeat,
    linear-gradient(160deg,
      color-mix(in srgb, var(--bg-color), #fff 9%) 0%,
      var(--bg-color) 50%,
      color-mix(in srgb, var(--bg-color), #000 45%) 100%);
}

/* Full-screen pages: no card box. The frosted glass sits on the smaller parts. */
.player-card,
.albums-page {
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
}

.lyrics-box,
.icon-bar,
.mini-bar,
.menu-panel {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
}

.lyrics-box,
.icon-bar,
.mini-bar {
  background: var(--surface);
}

.icon-bar {
  max-width: 480px;
}

.menu-panel {
  background: rgba(34, 37, 46, 0.82);
}

@media (min-width: 520px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Appearance sheet */
.theme-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.theme-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.theme-panel {
  position: relative;
  width: calc(100% - 16px);
  max-width: 440px;
  max-height: 86dvh;
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: rgba(30, 33, 42, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  color: var(--text);
}

.theme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-head h2 {
  font-size: 18px;
  font-weight: 650;
}

.theme-row {
  margin-top: 18px;
}

.theme-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 560;
  color: var(--text-muted);
}

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

.swatch {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
}

.swatch.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.9);
}

.swatch-custom {
  overflow: hidden;
  background: conic-gradient(#f55, #fc5, #5f7, #5cf, #85f, #f5c, #f55);
}

.swatch-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
}

.theme-actions {
  display: flex;
  gap: 10px;
}

.theme-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.pill:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.theme-note {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
}

.theme-foot {
  display: flex;
  margin-top: 14px;
}

/* ========== Toast (sleep timer, shortcuts) ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 22px;
  background: rgba(46, 49, 60, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========== Responsive ========== */
@media (max-width: 440px) {
  .player-card,
  .albums-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .icon-bar {
    padding: 5px 4px;
    gap: 0;
  }

  .icon-btn {
    font-size: 16px;
    height: 38px;
  }

  .icon-select {
    width: 46px;
    height: 38px;
  }

  .menu-panel {
    padding: 14px 12px 12px;
  }
}

/* ========== PC only: card look (phones stay full-screen) ========== */
@media (min-width: 768px) {
  .player-card,
  .albums-page {
    isolation: isolate;
    max-width: 480px;
    margin: 16px 0;
    border: 1px solid var(--surface-border);
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
  }

  .player-card {
    min-height: max(calc(100dvh - 32px), 700px);
    padding: 18px 16px 14px;
  }

  .albums-page {
    min-height: calc(100dvh - 32px);
    padding: 16px 14px 12px;
  }

  /* Frosted-glass layer behind the card content (keeps the fixed song panel working). */
  .player-card::before,
  .albums-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--surface);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    pointer-events: none;
  }
}
