:root {
  --bg: #0b0b0d; --s1: #141417; --s2: #1c1c20; --s3: #26262b; --line: #2e2e34;
  --t1: #f3efe7; --t2: #b9b4ab; --t3: #7f7b74;
  --accent: #d7c29d; --accent-ink: #1a1408; --good: #8fc79a; --warn: #e3b26b; --bad: #e58a7d;
  --r: 10px; --r-sm: 6px; --rail: 84px; --gutter: clamp(16px, 4vw, 56px);
  --poster: clamp(118px, 12.5vw, 196px); --wide: clamp(220px, 22vw, 340px);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 15px/1.5 var(--sans); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; opacity: 0; transition: opacity .35s var(--ease); }
img.in { opacity: 1; } img.broken { visibility: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
.keys :focus-visible { outline: 3px solid var(--t1); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------ shell */
#rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 0; background: linear-gradient(90deg, rgba(11,11,13,.96), rgba(11,11,13,.7) 70%, transparent); }
#rail .brand { margin-bottom: 18px; } #rail .brand svg { width: 36px; height: 36px; }
#rail a { width: 64px; padding: 10px 0 8px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--t3);
  text-decoration: none; font-size: 11px; font-weight: 500; transition: color .2s, background .2s; }
#rail a:hover, #rail a:focus-visible { color: var(--t1); background: var(--s2); }
#rail a[aria-current="page"] { color: var(--accent); }
#rail .spacer { flex: 1; }
#app { margin-left: var(--rail); min-height: 100vh; padding-bottom: 64px; }
.page { padding: 34px var(--gutter) 40px; max-width: 1680px; }
.page-title { font: 600 clamp(26px, 3vw, 38px)/1.15 var(--serif); margin: 6px 0 22px; }
.muted { color: var(--t2); } .faint { color: var(--t3); } .small { font-size: 13px; }

@media (max-width: 760px) {
  :root { --rail: 0px; --poster: 112px; --wide: 236px; }
  #rail { inset: auto 0 0 0; width: auto; height: calc(62px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: space-around;
    padding: 0 6px env(safe-area-inset-bottom); background: rgba(11,11,13,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  #rail .brand, #rail .spacer { display: none; }
  #rail a { width: auto; flex: 1; border-radius: 0; }
  #app { padding-bottom: 96px; }
  .page { padding-top: 22px; }
}

/* ------------------------------------------------------------ buttons, chips, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  border: 0; background: var(--s3); color: var(--t1); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, transform .18s var(--ease); }
.btn:hover { background: #33333a; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--t1); color: #111; } .btn.primary:hover { background: #fff; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--t2); } .btn.ghost:hover { background: var(--s2); color: var(--t1); }
.btn.round { width: 44px; padding: 0; border-radius: 50%; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .4; cursor: default; }
.keys .btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--t1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--s2); color: var(--t2);
  border: 1px solid transparent; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--t1); color: #111; }
.keys .chip:focus-visible { outline: 0; border-color: var(--t1); color: var(--t1); }
.keys .chip[aria-pressed="true"]:focus-visible { color: #111; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--t1); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--t2);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.tag.gold { background: rgba(215,194,157,.16); color: var(--accent); } .tag.warn { background: rgba(227,178,107,.14); color: var(--warn); }
.tag.good { background: rgba(143,199,154,.14); color: var(--good); }
.field { display: grid; gap: 6px; margin-bottom: 14px; } .field label { font-size: 13px; color: var(--t2); font-weight: 500; }
.input { height: 46px; width: 100%; padding: 0 14px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line); }
.input:focus { border-color: var(--accent); }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--s3); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--t2); transition: transform .2s var(--ease), background .2s; }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(18px); background: var(--accent-ink); }
.keys .switch:focus-visible { outline: 3px solid var(--t1); outline-offset: 3px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: min(78vh, 760px); min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: -40px; }
.hero-art, .hero-art img, .hero-art iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hero-art img { object-position: 50% 20%; }
.hero-art iframe { opacity: 0; transition: opacity 1.2s; transform: scale(1.35); pointer-events: none; }
.hero-art iframe.on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 2%, rgba(11,11,13,.55) 32%, rgba(11,11,13,0) 62%), linear-gradient(90deg, rgba(11,11,13,.9) 0%, rgba(11,11,13,.45) 38%, rgba(11,11,13,0) 66%); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) 92px; max-width: 720px; }
.hero-logo { max-width: min(420px, 70vw); max-height: 150px; object-fit: contain; object-position: left bottom; margin-bottom: 18px; }
.hero h1 { font: 600 clamp(32px, 4.4vw, 60px)/1.04 var(--serif); margin-bottom: 14px; }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--t2); font-size: 14px; margin-bottom: 14px; }
.meta .dot::before { content: '·'; margin-right: 14px; color: var(--t3); }
.overview { color: var(--t2); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 22px; }
.hero .overview { -webkit-line-clamp: 2; }
.hero-mute { position: absolute; right: var(--gutter); bottom: 100px; z-index: 3; }
@media (max-width: 760px) { .hero { height: 72vh; min-height: 420px; } .hero-copy { padding-bottom: 70px; } .hero::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(11,11,13,.7) 40%, rgba(11,11,13,.1) 80%); } }

/* ------------------------------------------------------------ rows and cards */
.row { position: relative; z-index: 3; margin: 0 0 30px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin-bottom: 4px; }
.row-head h2 { font-size: 19px; } .row-head .why { color: var(--t3); font-size: 13px; }
.row-track { display: flex; gap: 14px; overflow-x: auto; overflow-y: visible; padding: 14px var(--gutter) 18px; scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.row-track::-webkit-scrollbar { display: none; }
.card { flex: none; width: var(--poster); scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.card .art { position: relative; aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; background: var(--s2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 600 15px/1.25 var(--serif); color: var(--t2); }
.card .label { margin-top: 9px; font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { color: var(--t3); font-size: 12.5px; margin-top: 2px; }
.card:hover .art { transform: translateY(-3px); }
.keys .card:focus-visible { outline: 0; }
.keys .card:focus-visible .art { transform: scale(1.06); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--t1), 0 18px 40px rgba(0,0,0,.6); }
.card.wide { width: var(--wide); } .card.wide .art { aspect-ratio: 16/9; }
.card .badge { position: absolute; top: 8px; left: 8px; }
.card .progress, .progress-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.card .progress i, .progress-bar i { display: block; height: 100%; background: var(--accent); }
.card .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 55%); }
.card .over { position: absolute; left: 12px; right: 12px; bottom: 22px; font-size: 13px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--poster), 1fr)); gap: 22px 16px; }
.grid .card { width: auto; }
.skeleton { background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 40px 0; color: var(--t2); max-width: 520px; } .empty h3 { color: var(--t1); font: 600 22px var(--serif); margin-bottom: 8px; }

/* ------------------------------------------------------------ title page */
.title-page .hero { height: min(82vh, 820px); }
.title-page .hero-copy { max-width: 760px; }
.ratings { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rating { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 600; }
.rating b { color: var(--t3); font-weight: 600; font-size: 11px; letter-spacing: .06em; }
.section { position: relative; z-index: 3; padding: 0 var(--gutter); margin-bottom: 34px; }
.section > h2 { font-size: 19px; margin-bottom: 12px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.episodes { display: flex; gap: 16px; overflow-x: auto; padding: 14px 2px 18px; scrollbar-width: none; }
.ep { flex: none; width: var(--wide); border: 0; padding: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.ep .art { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--s2); transition: transform .25s var(--ease), box-shadow .25s; }
.ep .art img { width: 100%; height: 100%; object-fit: cover; }
.ep h3 { font-size: 14.5px; margin: 10px 0 3px; } .ep h3 span { color: var(--t3); font-weight: 500; margin-right: 6px; }
.ep p { margin: 0; color: var(--t2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.watched .art::after { content: '✓ Watched'; position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: rgba(0,0,0,.7); }
.ep.unaired { opacity: .45; }
.keys .ep:focus-visible { outline: 0; } .keys .ep:focus-visible .art { transform: scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--t1); }
.cast { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 14px; scrollbar-width: none; }
.person { flex: none; width: 112px; text-align: center; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.person .face { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--s2); display: grid; place-items: center; color: var(--t3); }
.person .face img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-size: 13px; font-weight: 600; } .person span { display: block; font-size: 12px; color: var(--t3); }
.keys .person:focus-visible { outline: 0; } .keys .person:focus-visible .face { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--t1); }

/* ------------------------------------------------------------ sheets */
.layer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.layer.open { background: rgba(0,0,0,.55); } .layer.closing { background: rgba(0,0,0,0); }
.sheet { width: min(720px, 100%); max-height: 88vh; background: var(--s1); border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
  transform: translateY(30px); opacity: 0; transition: transform .25s var(--ease), opacity .2s; box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.layer.open .sheet { transform: none; opacity: 1; } .layer.closing .sheet { transform: translateY(30px); opacity: 0; }
@media (min-width: 761px) {
  .layer { align-items: stretch; justify-content: flex-end; }
  .sheet { width: min(520px, 92vw); max-height: none; height: 100%; border-radius: 0; transform: translateX(40px); }
  .sheet.wide { width: min(760px, 94vw); }
  .layer.closing .sheet { transform: translateX(40px); }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px 24px; }
.sheet-head h2 { font: 600 22px var(--serif); }
.sheet-body { overflow-y: auto; padding: 4px 24px 28px; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px; border-radius: var(--r); border: 0;
  background: var(--s2); color: var(--t1); text-align: left; cursor: pointer; transition: background .15s; }
.list-row:hover { background: var(--s3); }
.list-row .grow { flex: 1; min-width: 0; } .list-row .title { font-weight: 600; } .list-row .detail { color: var(--t2); font-size: 13px; }
.list-row[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.keys .list-row:focus-visible { outline: 0; background: var(--t1); color: #111; }
.keys .list-row:focus-visible .detail, .keys .list-row:focus-visible .faint, .keys .list-row:focus-visible .muted { color: #3a3a3a; }
.keys .list-row:focus-visible .tag { background: rgba(0,0,0,.1); color: #222; }
.group-title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin: 22px 0 10px; }

/* stream picker */
.stream { align-items: flex-start; }
.stream .q { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stream .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.stream .from { color: var(--t3); font-size: 12.5px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream .note { color: var(--warn); font-size: 12.5px; margin-top: 5px; }
.best-pill { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 16px; max-width: min(560px, 92vw);
  padding: 12px 14px 12px 18px; border-radius: 10px; background: var(--t1); color: #111; font-weight: 500; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: rise .25s var(--ease); transition: opacity .3s; }
.toast.gone { opacity: 0; }
.toast-action { border: 0; background: #111; color: var(--t1); padding: 7px 12px; border-radius: 6px; font-weight: 600; cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (max-width: 760px) { .toast { bottom: 84px; } }

/* ------------------------------------------------------------ search */
.searchbar { position: relative; max-width: 760px; margin-bottom: 22px; }
.searchbar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--t3); }
.searchbar input { height: 58px; padding-left: 50px; font-size: 18px; border-radius: 12px; background: var(--s1); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { height: 84px; border-radius: var(--r); border: 0; background: var(--s2); color: var(--t1); font: 600 17px var(--serif); cursor: pointer; text-align: left; padding: 0 18px; }
.tile:hover { background: var(--s3); } .keys .tile:focus-visible { outline: 0; background: var(--t1); color: #111; }

/* ------------------------------------------------------------ settings */
.settings { display: grid; gap: 14px; max-width: 860px; }
.panel { background: var(--s1); border-radius: 14px; padding: 22px 24px; }
.panel h2 { font: 600 20px var(--serif); margin-bottom: 4px; } .panel > p { color: var(--t2); margin: 0 0 16px; font-size: 14px; }
.setting { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.setting .grow { flex: 1; min-width: 0; } .setting .title { font-weight: 600; } .setting .detail { color: var(--t2); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t3); display: inline-block; margin-right: 8px; }
.status-dot.on { background: var(--good); }
.code { font: 700 34px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--accent); margin: 10px 0 14px; }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--t2) 50%), linear-gradient(135deg, var(--t2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ------------------------------------------------------------ sports */
.fixtures { display: grid; gap: 10px; }
.fixture { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--s1); }
.fixture .when { color: var(--t2); font-size: 13px; } .fixture .when b { display: block; color: var(--t1); font-size: 14px; }
.fixture .teams { display: grid; gap: 6px; } .fixture .team { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.fixture .team img { width: 22px; height: 22px; object-fit: contain; } .fixture .team .score { margin-left: auto; font-weight: 700; }
.fixture .res { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.res.W { background: rgba(143,199,154,.18); color: var(--good); } .res.D { background: var(--s3); color: var(--t2); } .res.L { background: rgba(229,138,125,.16); color: var(--bad); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; } .table td, .table th { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.table td:nth-child(2), .table th:nth-child(2) { text-align: left; } .table tr.me td { color: var(--accent); font-weight: 600; }
.table img { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-right: 8px; object-fit: contain; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.news a { text-decoration: none; background: var(--s1); border-radius: var(--r); overflow: hidden; display: block; }
.news a img { aspect-ratio: 16/9; width: 100%; object-fit: cover; } .news a div { padding: 12px 14px 16px; } .news a b { display: block; margin-bottom: 4px; }
.keys .news a:focus-visible { outline: 3px solid var(--t1); outline-offset: 3px; }
@media (max-width: 760px) { .fixture { grid-template-columns: 1fr auto; } .fixture .when { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ player */
.player { position: fixed; inset: 0; z-index: 50; background: #000; color: var(--t1); cursor: default; }
.player.idle { cursor: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player video::cue { font: 500 clamp(18px, 2.4vw, 34px)/1.3 var(--sans); background: rgba(0,0,0,.55); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.p-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 30%, transparent 55%), linear-gradient(180deg, rgba(0,0,0,.65) 0%, transparent 22%); }
.p-top, .p-bottom { position: absolute; left: 0; right: 0; padding: 22px clamp(18px, 4vw, 56px); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.p-top { top: 0; display: flex; align-items: center; gap: 16px; transform: translateY(-8px); }
.p-top h1 { font: 600 clamp(18px, 2vw, 26px) var(--serif); } .p-top .faint { font-size: 14px; }
.p-bottom { bottom: 0; transform: translateY(8px); padding-bottom: clamp(18px, 4vh, 40px); }
.player.show .p-shade, .player.show .p-top, .player.show .p-bottom { opacity: 1; transform: none; }
.player:not(.show) .p-top, .player:not(.show) .p-bottom { pointer-events: none; }
.p-timeline { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; margin-bottom: 6px; }
.p-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); transition: height .15s; }
.p-timeline:hover .p-track, .p-timeline:focus-visible .p-track { height: 7px; }
.p-buf, .p-played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.p-buf { background: rgba(255,255,255,.35); } .p-played { background: var(--accent); }
.p-mark { position: absolute; top: 0; bottom: 0; background: rgba(243,239,231,.85); border-radius: 2px; }
.p-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--t1); box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.keys .p-timeline:focus-visible { outline: 0; } .keys .p-timeline:focus-visible .p-knob { box-shadow: 0 0 0 4px rgba(215,194,157,.6); transform: scale(1.25); }
.p-hover { position: absolute; bottom: 24px; transform: translateX(-50%); padding: 4px 8px; border-radius: 5px; background: rgba(0,0,0,.8); font-size: 13px; font-weight: 600; pointer-events: none; }
.p-times { display: flex; justify-content: space-between; color: var(--t2); font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.p-controls { display: flex; align-items: center; gap: 6px; }
.p-controls .btn { background: transparent; height: 48px; } .p-controls .btn:hover { background: rgba(255,255,255,.1); }
.p-controls .btn.round { width: 48px; } .p-controls .play { width: 58px; height: 58px; background: var(--t1); color: #111; }
.p-controls .play:hover { background: #fff; }
.p-controls .grow { flex: 1; }
.keys .p-controls .btn:focus-visible { background: var(--t1); color: #111; box-shadow: none; }
.p-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #000; z-index: 2; transition: opacity .5s; }
.p-loading .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.28) blur(2px); transform: scale(1.04); }
.p-loading .inner { position: relative; text-align: center; max-width: 520px; padding: 0 24px; }
.p-loading h2 { font: 600 clamp(22px, 3vw, 36px) var(--serif); margin: 18px 0 6px; }
.p-loading .steps { margin: 22px auto 0; display: grid; gap: 8px; text-align: left; width: fit-content; color: var(--t3); font-size: 14px; }
.p-loading .steps .now { color: var(--t1); } .p-loading .steps .done { color: var(--t2); }
.p-loading .steps .done::before { content: '✓  '; color: var(--good); } .p-loading .steps .now::before { content: '•  '; color: var(--accent); }
.p-loading.gone { opacity: 0; pointer-events: none; }
.p-skip { position: absolute; right: clamp(18px, 4vw, 56px); bottom: 150px; z-index: 3; }
.p-skip .btn { height: 50px; padding: 0 22px; background: rgba(20,20,23,.85); border: 1.5px solid rgba(243,239,231,.6); backdrop-filter: blur(8px); }
.keys .p-skip .btn:focus-visible, .p-skip .btn:hover { background: var(--t1); color: #111; }
.p-next { position: absolute; right: clamp(18px, 4vw, 56px); bottom: 150px; z-index: 3; width: 340px; background: rgba(20,20,23,.92); border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); }
.p-next img { width: 100%; aspect-ratio: 16/9; object-fit: cover; } .p-next .in-copy { padding: 12px 14px 14px; }
.p-next .eyebrow { margin-bottom: 4px; } .p-next .btn-row { margin-top: 10px; }
.p-toast { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: rgba(0,0,0,.7); font-weight: 600; pointer-events: none; transition: opacity .3s; }
.p-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 4; background: rgba(16,16,19,.96); backdrop-filter: blur(14px); padding: 22px 20px; overflow-y: auto;
  animation: slide .22s var(--ease); }
.p-panel h2 { font: 600 20px var(--serif); margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.p-panel .list-row { background: transparent; } .p-panel .list-row:hover { background: rgba(255,255,255,.06); }
.p-panel .list-row[aria-checked="true"]::after { content: '✓'; color: var(--accent); font-weight: 700; }
.p-info { font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; color: var(--t2); white-space: pre-wrap; }
.stepper { display: flex; align-items: center; gap: 10px; } .stepper output { min-width: 80px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .p-controls .opt { display: none; } .p-next { width: calc(100% - 36px); } }
