/* Player layout. Tokens and primitives (.glass, .chip, .pill-btn, .toggle…) come from base.css. */

:root { --cover-max: 520px; }

body {
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
/* Shown when WebGL is unavailable: a soft gradient from the current palette. */
.backdrop-fallback {
  position: fixed;
  inset: -10%;
  z-index: 0;
  display: none;
  background:
    radial-gradient(60% 50% at 30% 30%, var(--accent) 0%, transparent 70%),
    radial-gradient(50% 50% at 70% 70%, var(--accent-2) 0%, transparent 70%),
    var(--bg);
  filter: blur(60px) saturate(120%);
  opacity: 0.55;
  transition: background 2s var(--ease);
}
body.no-webgl .backdrop-fallback, body.viz-off .backdrop-fallback { display: block; }
body.no-webgl #scene, body.viz-off #scene { display: none; }
body.viz-off .cover-wrap { transform: none; }

/* ---------- layout ---------- */
.app {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: calc(var(--safe-t) + 12px) calc(var(--safe-r) + var(--gutter)) calc(var(--safe-b) + 16px) calc(var(--safe-l) + var(--gutter));
}

/* Three columns with equal sides, so the waves switcher sits in the true centre of the page. */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; grid-column: 1; }
.topbar .waves-bar { grid-column: 2; }
.topbar .top-actions { grid-column: 3; justify-self: end; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 19%),
    conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 18px var(--glow);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 31% 46%, #000 47%);
  mask: radial-gradient(circle, #000 0 30%, transparent 31% 46%, #000 47%);
  flex: none;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- waves ---------- */
.waves-bar {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: min(100%, 720px);
  min-width: 0;
}
.waves-bar::-webkit-scrollbar { display: none; }
.wave-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.35s var(--ease), color 0.35s;
}
@media (hover: hover) {
  .wave-pill:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
  .play-btn:hover { transform: scale(1.04); }
}
.wave-pill[aria-current='true'] { color: var(--fg); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.wave-pill .wp-art {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent);
}
.wave-pill:not([aria-current='true']) .wp-art { filter: saturate(0.6) brightness(0.8); }
.topbar:has(.waves-bar:not([hidden])) .brand-name { display: none; }
/* Phones: brand + actions on one row (the name shortens, never wraps), waves on the second. */
@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand actions' 'waves waves';
    row-gap: 10px;
  }
  .brand { grid-area: brand; }
  .topbar .top-actions { grid-area: actions; }
  .topbar .waves-bar { grid-area: waves; max-width: 100%; }
  .topbar:has(.waves-bar:not([hidden])) .brand-name { display: inline; }
}
@media (max-width: 760px) and (pointer: coarse) {
  #btn-fullscreen { display: none; }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6);
  animation: live 2s infinite;
}
.app:not([data-state='playing']) .live-dot { animation: none; background: var(--fg-3); box-shadow: none; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 77, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}
.listeners { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); letter-spacing: 0.02em; padding-left: 8px; border-left: 1px solid var(--glass-line); }
.listeners svg { width: 13px; height: 13px; fill: currentColor; }
.listeners b { font-weight: 600; }

/* ---------- stage ---------- */
.stage {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: clamp(14px, 3svh, 32px);
  padding-top: 8px;
}
/* The artwork is sized from the space actually left by the top bar and the card,
   so it never slides under the card on any screen (phones, tablets, car displays). */
.cover-zone { container-type: size; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; width: 100%; height: 100%; }
.cover-zone > * { --cover: min(100cqw - 8px, 100cqh - 8px, var(--cover-max)); }

.cover-wrap {
  position: relative;
  width: var(--cover);
  aspect-ratio: 1;
  border-radius: clamp(18px, calc(var(--cover) * 0.06), 30px);
  transform: scale(var(--pulse, 1)) translate3d(0, 0, 0);
  will-change: transform;
}
.cover-shadow {
  position: absolute;
  inset: 8% 6% -6%;
  border-radius: inherit;
  background: var(--glow);
  filter: blur(40px);
  opacity: calc(0.55 + var(--energy, 0) * 0.45);
  transition: background 2s var(--ease);
}
.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(14px) saturate(120%);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  background: rgba(255, 255, 255, 0.04);
}
.cover.shown { opacity: 1; transform: scale(1); filter: none; }
.cover-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  mix-blend-mode: screen;
}

.tap-to-listen {
  --ttl-size: clamp(72px, calc(var(--cover) * 0.24), 104px);
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
/* The button sits exactly in the middle of the artwork; the caption hangs below it. */
.ttl-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: var(--ttl-size);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 255, 255, 0.35);
  animation: breathe 2.8s var(--ease) infinite;
}
/* The play path is drawn with its centroid at the icon centre: no extra nudge needed. */
.ttl-icon svg { width: 48%; height: 48%; color: #fff; }
.ttl-text {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + var(--ttl-size) / 2 + 14px);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 255, 255, 0.28); }
  50% { transform: scale(1.05); box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 0 0 16px rgba(255, 255, 255, 0); }
}
.app:not([data-state='idle']) .tap-to-listen { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- now playing card ---------- */
.now {
  container: now / inline-size;
  width: min(100%, 560px);
  padding: clamp(18px, 2.6vw, 28px);
  display: grid;
  gap: 14px;
  transition: background 0.8s var(--ease), border-color 0.8s var(--ease), box-shadow 0.8s var(--ease), backdrop-filter 0.8s;
}
.now-head { display: grid; gap: 4px; min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -8px -8px 0 0; }
.eyebrow-row .eyebrow { margin-bottom: 0; }
.reactions { display: flex; gap: 2px; flex: none; }
/* Rating buttons: outline = not set, filled = set (tap again to take it back). */
.react { color: var(--fg-2); transition: color 0.3s, transform 0.25s var(--ease), background 0.3s; }
.react svg { transition: fill 0.25s; }
.react[aria-pressed='true'] svg { fill: currentColor; }
.react[aria-pressed='true'] { color: #fff; }
.react.like[aria-pressed='true'] { color: #ff6b8b; }
@media (hover: hover) {
  .react:hover { color: var(--fg); }
}
.react.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.app.immersive .reactions { opacity: 0; pointer-events: none; }
/* "Sound is on" equaliser: dim bars while paused, dancing while playing (still bars without motion). */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: var(--accent); transform-origin: bottom; transform: scaleY(var(--h)); opacity: 0.45; transition: opacity 0.4s; }
.eq i:nth-child(1) { --h: 0.55; }
.eq i:nth-child(2) { --h: 1; animation-delay: -0.3s !important; }
.eq i:nth-child(3) { --h: 0.75; animation-delay: -0.6s !important; }
.app[data-state='playing'] .eq i { opacity: 1; animation: eq 0.9s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.title {
  margin: 0;
  font-size: clamp(22px, 3.2vw + 8px, 36px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artist {
  margin: 0;
  font-size: clamp(15px, 1vw + 10px, 19px);
  color: var(--fg-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title, .artist, .chips { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.now.swapping .title, .now.swapping .artist, .now.swapping .chips { opacity: 0; transform: translateY(6px); filter: blur(6px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.chips:empty { display: none; }

.progress { display: grid; gap: 6px; }
.wave {
  position: relative;
  height: 28px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
/* Bars are drawn by main.js in device pixels. */
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; font-weight: 600; }

.controls { display: flex; align-items: center; gap: 14px; min-width: 0; }
.transport { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.play-btn {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #0b0c10;
  background: #fff;
  box-shadow: 0 10px 30px -8px var(--glow), 0 0 0 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.4s;
}
.play-btn:active { transform: scale(0.95); }
.play-btn svg { position: absolute; width: 26px; height: 26px; fill: currentColor; transition: opacity 0.25s, transform 0.35s var(--ease); }
.play-btn .i-stop, .play-btn .i-spin { opacity: 0; transform: scale(0.6); }
/* Softly rounded corners on the play triangle. */
.ttl-icon svg, .play-btn .i-play { fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.play-btn .i-spin { width: 60px; height: 60px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 40 200; }
.app[data-state='playing'] .play-btn .i-play { opacity: 0; transform: scale(0.6); }
.app[data-state='playing'] .play-btn .i-stop { opacity: 1; transform: none; }
.app[data-state='connecting'] .play-btn .i-play { opacity: 0.35; }
.app[data-state='connecting'] .play-btn .i-spin { opacity: 1; transform: none; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.volume { display: flex; align-items: center; gap: 4px; flex: none; }
.volume svg { stroke-width: 1.7; }
.volume .x { display: none; }
.volume.muted .w1, .volume.muted .w2 { display: none; }
.volume.muted .x { display: block; }
.volume.low .w2 { display: none; }
body.ios .volume input { display: none; }
/* On a narrow card "Далее" keeps its room: the slider gives way (device volume keys still work). */
@container now (max-width: 400px) { .volume { display: none; } }

.next-up {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}
.next-up img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.06); }
.next-up > div { display: grid; min-width: 0; }
.next-up .label { color: var(--fg-3); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }
.next-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--fg-2); max-width: 220px; }

.status-line { margin: -4px 0 0; font-size: 12px; color: var(--fg-3); min-height: 0; }
.status-line:empty { display: none; }
.lyrics-btn[aria-pressed='true'] { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- synced lyrics ---------- */
.cover-zone > * { grid-area: 1 / 1; }
.cover-wrap { transition: opacity 0.7s var(--ease), scale 0.7s var(--ease); }
.lyrics-view {
  width: min(92vw, max(var(--cover), 520px));
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.app.lyrics-mode:not([data-state='idle']) .lyrics-view { opacity: 1; visibility: visible; }
.app.lyrics-mode:not([data-state='idle']) .cover-wrap { opacity: 0; scale: 0.88; pointer-events: none; }
.lyrics-lines { display: grid; gap: 0.55em; will-change: transform; transition: transform 0.9s var(--ease); }
.lyric {
  font-size: clamp(22px, 2.2vw + 12px, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.26);
  filter: blur(1.4px);
  transform-origin: 0 50%;
  transition: color 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease), text-shadow 0.6s;
  text-wrap: balance;
}
.lyric.past { color: rgba(255, 255, 255, 0.38); filter: blur(0.6px); }
.lyric.active { color: #fff; filter: none; transform: scale(1.03); text-shadow: 0 0 34px var(--glow); }
.lyric.pause { font-size: 0.7em; letter-spacing: 0.4em; }
.lyrics-view.plain .lyric { filter: none; color: rgba(255, 255, 255, 0.8); font-size: clamp(18px, 1.2vw + 12px, 26px); font-weight: 700; }
.app.lyrics-mode.immersive .lyrics-view { -webkit-mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%); }

/* ---------- immersive (UI fades away while you just listen) ---------- */
.app.immersive { cursor: none; }
.app.immersive .topbar { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.app.immersive .now { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app.immersive .controls, .app.immersive .progress, .app.immersive .chips, .app.immersive .status-line { opacity: 0; pointer-events: none; }
.app.immersive .eyebrow { opacity: 0.6; }
/* While the interface fades back in after a tap, nothing in it reacts yet. */
.app.waking .topbar, .app.waking .controls, .app.waking .reactions, .app.waking .progress, .app.waking .chips { pointer-events: none; }
.controls, .progress, .eyebrow { transition: opacity 0.8s var(--ease); }
.app.immersive .title, .app.immersive .artist { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }

/* ---------- landscape / desktop / car screens ---------- */
@media (min-aspect-ratio: 5/4) and (min-width: 700px) {
  :root { --cover-max: 680px; }
  .stage {
    grid-template-rows: minmax(0, 1fr);
    /* The artwork keeps most of its share on narrower screens instead of giving it all to the card. */
    grid-template-columns: minmax(min(40vw, 640px), min(44vw, 700px)) minmax(320px, 500px);
    justify-content: center;
    column-gap: clamp(32px, 6vw, 96px);
    padding-bottom: 4svh;
  }
  .now { align-self: center; }
  .lyrics-view { width: min(100cqw, max(var(--cover), 380px)); }
}
@media (min-aspect-ratio: 5/4) and (max-height: 520px) {
  /* Phones in landscape and short car displays */
  .stage { grid-template-columns: minmax(0, min(42vw, 520px)) minmax(280px, 1fr); column-gap: 28px; padding-top: 0; }
  .topbar { min-height: 40px; }
  .now { padding: 16px 18px; gap: 10px; }
  .title { font-size: clamp(20px, 3.4vh + 8px, 28px); }
  .progress .wave { height: 20px; }
  .play-btn { width: 52px; height: 52px; }
}
@media (max-width: 420px) {
  .next-title { max-width: 150px; }
  .live-badge { padding: 0 11px; }
}
@media (max-height: 640px) and (max-aspect-ratio: 5/4) {
  .now { padding: 16px; gap: 10px; }
  .progress .wave { height: 20px; }
}
@media (min-width: 1600px) and (min-height: 900px) {
  :root { --cover-max: 760px; }
  .now { max-width: 560px; }
}

/* ---------- sheet ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 4; background: rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.4s; }
.sheet-scrim.open { opacity: 1; }
.sheet {
  position: fixed;
  z-index: 5;
  right: calc(var(--safe-r) + 12px);
  top: calc(var(--safe-t) + 12px);
  bottom: calc(var(--safe-b) + 12px);
  width: min(420px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(22, 24, 34, 0.72), rgba(12, 13, 20, 0.66));
  transform: translateX(calc(100% + 40px));
  transition: transform 0.55s var(--ease);
  user-select: text;
  -webkit-user-select: text;
}
.sheet.open { transform: none; }
.sheet-grip { display: none; }
.sheet .tabs { margin: 16px 18px 0; flex: none; }
.tab-panel { display: grid; gap: 26px; }
.plain-lyrics { margin: 0; font: inherit; font-size: 14px; line-height: 1.75; color: var(--fg-2); white-space: pre-wrap; }
.search-box { position: relative; margin-bottom: 8px; }
.list .media-row .mr-action { display: flex; align-items: center; gap: 6px; }
.vote-btn { min-width: 54px; }
.vote-btn.down { min-width: 32px; padding: 0 9px; color: var(--fg-3); }
.vote-btn[aria-pressed='true'] { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #111; border-color: transparent; }
.vote-btn.down[aria-pressed='true'] { background: rgba(255, 107, 129, 0.18); color: var(--danger); border-color: rgba(255, 107, 129, 0.35); }
.vote-btn svg { width: 12px; height: 12px; fill: currentColor; }
.manual-request summary { cursor: pointer; font-size: 13px; color: var(--fg-2); padding: 8px 0; list-style: none; }
.manual-request summary::-webkit-details-marker { display: none; }
.manual-request summary::before { content: '+ '; color: var(--accent); font-weight: 800; }
.manual-form { display: grid; gap: 8px; padding-top: 6px; }
.manual-form .pill-btn { justify-self: start; }
.list-empty { font-size: 13px; color: var(--fg-3); padding: 6px; }
.sheet-scroll { overflow-y: auto; padding: 20px 22px 28px; overscroll-behavior: contain; scrollbar-width: thin; flex: 1; }
.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; }
.details dt { color: var(--fg-3); font-weight: 600; }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.details a { color: var(--accent); text-decoration: none; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.list li.current { background: rgba(255, 255, 255, 0.07); }
.list time { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ios-hint { margin-top: 14px; }

@media (max-width: 640px) {
  .sheet {
    left: calc(var(--safe-l) + 8px);
    right: calc(var(--safe-r) + 8px);
    top: auto;
    bottom: calc(var(--safe-b) + 8px);
    width: auto;
    max-height: 82svh;
    transform: translateY(calc(100% + 40px));
  }
  .sheet.open { transform: none; }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); margin: 10px auto 0; flex: none; }
}

.noscript { position: fixed; inset: 0; display: grid; place-items: center; z-index: 9; }

@media (prefers-reduced-motion: reduce) {
  .ttl-icon, .live-dot, .eq i { animation: none !important; }
  .cover-wrap { transform: none !important; }
}
