:root {
  color-scheme: dark;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #111720;
  color: #eef3fa;
  --panel: #171f2a;
  --line: #2a3848;
  --muted: #a7b4c6;
  --blue: #a9cdff;
  --deep: #152235;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #c0dbff; outline-offset: 3px; }
[hidden] { display: none !important; }
.masthead {
  width: min(1330px, calc(100% - 96px)); margin: auto;
  min-height: 78px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; gap: 12px; align-items: center; font-weight: 650; }
.mark { display: inline-flex; align-items: center; gap: 3px; height: 24px; margin-right: 3px; }
.mark i { width: 3px; height: 10px; border-radius: 2px; background: var(--blue); }
.mark i:nth-child(2), .mark i:nth-child(4) { height: 16px; }
.mark i:nth-child(3) { height: 24px; }
.divider { width: 1px; height: 16px; background: var(--line); }
.masthead-date { color: var(--muted); font-size: .92rem; white-space: nowrap; }
main { width: min(1330px, calc(100% - 96px)); margin: 0 auto; padding: 43px 0 64px; }
h1, h2, h3, p { margin: 0; }
h1 { margin-bottom: 30px; font-size: clamp(2rem, 4.3vw, 4.2rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.05; }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(325px, 1fr); gap: 24px; align-items: start; }
.player-panel, .queue { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; min-width: 0; overflow: hidden; }
.screen {
  aspect-ratio: 16 / 9; min-height: 200px; position: relative; isolation: isolate;
  background: radial-gradient(ellipse at 18% 80%, #31527d, transparent 70%), linear-gradient(138deg, #223957, #141b2b);
  display: grid; place-items: center;
}
.cover, .embed { position: absolute; inset: 0; }
.cover { display: grid; place-items: center; z-index: 1; }
.cover::after { content: ""; position: absolute; inset: 0; background: rgba(12, 23, 39, .25); pointer-events: none; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover img:not([src]) { display: none; }
.cover-play {
  z-index: 1; width: clamp(60px, 7vw, 88px); aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid #c6dfff; border-radius: 50%; background: #c4ddff; box-shadow: 0 8px 40px #0006;
}
.cover-play:hover { background: #e2efff; }
.cover-play span { border-block: 11px solid transparent; border-left: 17px solid #14253d; margin-left: 4px; }
.embed[aria-hidden="true"] { visibility: hidden; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.audio-screen .cover { pointer-events: none; }
.screen audio { width: min(calc(100% - 32px), 480px); align-self: end; margin-bottom: 16px; z-index: 2; }
.player-info { padding: clamp(16px, 2.25vw, 30px); }
.player-kicker {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 9px;
  color: var(--blue); font-size: .9rem; font-weight: 650;
}
#current-range { color: var(--muted); font-variant-numeric: tabular-nums; }
#current-range::before { content: "·"; margin-right: 10px; }
#current-title { font-size: clamp(1.35rem, 2.6vw, 2.28rem); font-weight: 650; letter-spacing: -.038em; line-height: 1.17; }
.timeline { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
progress { display: block; flex: 1; width: 100%; height: 5px; overflow: hidden; appearance: none; border: none; border-radius: 5px; background: #2d3e52; color: var(--blue); }
progress::-webkit-progress-bar { background: #2d3e52; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.controls button, .controls select { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #202b39; }
.controls button:hover:not(:disabled), .controls select:hover { background: #2c3d52; }
.controls .primary { padding: 0 21px; color: #14253d; background: var(--blue); border-color: var(--blue); font-weight: 700; }
.controls .primary:hover:not(:disabled) { background: #d5e8ff; }
.step-controls { display: flex; gap: 6px; }
.step-controls button { width: 44px; font-size: 1.07rem; }
.speed { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: .9rem; }
.speed select { padding: 0 10px; color: #eef3fa; }
.external { display: inline-block; color: var(--blue); margin-top: 17px; font-size: .93rem; text-underline-offset: 4px; }
#status { margin-top: 16px; color: #ffd6a6; font-size: .93rem; line-height: 1.5; }
.queue-header { padding: 22px 20px 17px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: start; justify-content: space-between; }
.queue h2 { font-size: 1.42rem; letter-spacing: -.03em; }
.queue-header p { margin-top: 5px; color: var(--muted); font-size: .92rem; }
#completed { color: var(--blue); font-size: .86rem; white-space: nowrap; padding-top: 4px; font-variant-numeric: tabular-nums; }
.group-title { padding: 14px 20px 8px; color: var(--blue); font-size: .91rem; font-weight: 650; line-height: 1.45; }
.group-title span { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; }
.queue ol { list-style: none; padding: 0 10px 9px; margin: 0; }
.queue section + section { border-top: 1px solid var(--line); }
.clip {
  width: 100%; min-height: 57px; padding: 6px 9px; border-radius: 9px; border: 1px solid transparent; background: transparent;
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left;
}
.clip:hover { background: #232e3c; }
.clip[aria-current="true"] { background: #243750; border-color: #385578; }
.tile {
  display: grid; place-items: center; align-content: center; width: 58px; aspect-ratio: 16 / 10; overflow: hidden;
  position: relative; border-radius: 5px; background: #243954; color: var(--blue); font-size: .75rem; font-weight: 700;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-copy { display: grid; gap: 3px; }
.clip-title { color: #eef3fa; font-size: .9rem; line-height: 1.2; font-weight: 640; }
.clip-source, .clip-time { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.clip-time { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clip-time span { display: block; }
.clip-time .watched { color: #b6dfbf; }
@media (max-width: 1050px) {
  .masthead, main { width: calc(100% - 48px); }
  .layout { gap: 18px; }
}
@media (max-width: 800px) {
  .masthead, main { width: calc(100% - 32px); }
  .masthead { min-height: 61px; }
  main { padding-top: 27px; }
  h1 { margin-bottom: 21px; }
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .wordmark { gap: 7px; font-size: .86rem; }
  .mark { margin-right: 0; }
  .masthead-date { font-size: .75rem; }
  .speed span { display: none; }
  .clip { grid-template-columns: 45px minmax(0, 1fr) auto; }
  .tile { width: 45px; }
}
