:root {
  --bg: #07121e; --panel: #0c1b2b; --rule: #1a2c3f; --text: #e9eef3; --muted: #8296a9;
  --dim: #4f6377; --green: #00a65a; --green-hi: #19c172; --red: #ff3b47; --ice: #9fc6e8;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --nav: 62px;
  --hover: #10243a;
  color-scheme: dark;
}
/* Light theme: picked in the header, or follows the device when set to System. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f3; --panel: #ffffff; --rule: #dde2e6; --text: #0d1b29; --muted: #4a5b6c;
    --dim: #87939f; --green: #00843d; --green-hi: #00843d; --red: #d42b39; --ice: #1d5a92; --hover: #eef2f5;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f3; --panel: #ffffff; --rule: #dde2e6; --text: #0d1b29; --muted: #4a5b6c;
  --dim: #87939f; --green: #00843d; --green-hi: #00843d; --red: #d42b39; --ice: #1d5a92; --hover: #eef2f5;
  color-scheme: light;
}

/* Theme switch in the header */
.theme { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; line-height: 0; margin-left: auto; }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme:hover { color: var(--text); }
@media (min-width: 900px) { .theme { margin-left: 0; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--body); }
a { color: inherit; }
button { font: inherit; color: inherit; }
main { max-width: 620px; margin: 0 auto; padding: 0 16px calc(var(--nav) + 90px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; align-items: center;
  justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 12px; border-bottom: 2px solid var(--text); }
.mark { font: 800 1.6rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.mark span { color: var(--green-hi); }
.mark a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mark .logo { width: 34px; height: 33px; flex: none; }
.mark span { margin-left: -2px; }
.onair { font: 700 .78rem var(--display); letter-spacing: .14em; color: var(--dim);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.onair.lit { color: var(--red); }
.onair.lit i { background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,71,.5); } 100% { box-shadow: 0 0 0 8px rgba(255,59,71,0); } }

.label { font: 700 .74rem var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.label .live { color: var(--red); }

/* Show art */
.art { flex: none; width: 48px; height: 48px; background: var(--panel); object-fit: cover; display: grid; place-items: center;
  font: 800 1rem var(--display); color: var(--ice); letter-spacing: .02em; }
.art.lg { width: 96px; height: 96px; font-size: 1.8rem; }

/* Game strip (Listen tab) */
.strip { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 10px 12px;
  background: var(--panel); border: 0; border-left: 3px solid var(--green); cursor: pointer; text-align: left; }
.strip.on { border-left-color: var(--red); }
.strip img { width: 26px; height: 26px; }
.strip .k { font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.strip.on .k { color: var(--red); }
.strip .v { font: 700 1.05rem var(--display); text-transform: uppercase; letter-spacing: .03em; }
.strip .go { margin-left: auto; color: var(--dim); font: 700 1.1rem var(--display); }

/* Now playing */
.hero { display: flex; gap: 14px; align-items: flex-start; }
.hero h2 { font: 800 1.8rem/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.hero .who { color: var(--muted); font-size: .9rem; }
.note { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.playrow { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.bigplay { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--green);
  display: grid; place-items: center; cursor: pointer; flex: none; text-decoration: none; }
.bigplay:hover { background: var(--green-hi); }
.bigplay svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.bigplay.off { background: var(--rule); cursor: default; }
.cta { font: 700 1.05rem var(--display); text-transform: uppercase; letter-spacing: .04em; }
.cta small { display: block; font: 400 .82rem var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.ghost { background: none; border: 1px solid var(--rule); padding: 7px 11px; cursor: pointer;
  font: 600 .82rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.ghost:hover { border-color: var(--muted); }
.player { margin-top: 12px; }
.player iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
/* Compact mode stays visible: YouTube requires embeds of at least 200x200. */
.player.compact iframe { height: 200px; aspect-ratio: auto; }
.player .row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.also { margin-top: 12px; font-size: .9rem; }
.also b { color: var(--red); font: 700 .74rem var(--display); letter-spacing: .14em; margin-right: 6px; }
.also button { background: none; border: 0; color: var(--ice); cursor: pointer; padding: 0 8px 0 0; text-decoration: underline; }

/* Tuner dial */
.dial { position: relative; overflow-x: auto; scrollbar-width: none; background: var(--panel);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dial::-webkit-scrollbar { display: none; }
.scale { position: relative; height: 84px; }
.tick { position: absolute; bottom: 0; width: 1px; background: var(--rule); height: 8px; }
.tick.h { height: 14px; background: var(--dim); }
.tick span { position: absolute; bottom: 1px; left: 4px; font: 600 .72rem var(--display); color: var(--dim); white-space: nowrap; letter-spacing: .04em; }
.slot { position: absolute; top: 10px; height: 38px; border: 0; border-left: 3px solid var(--ice); background: rgba(159,198,232,.08);
  padding: 3px 8px; font: 700 .82rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; color: var(--text); text-align: left; }
.slot small { display: block; font: 500 .7rem var(--body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.slot.on { border-left-color: var(--red); background: rgba(255,59,71,.12); }
.slot.game { border-left-color: var(--green-hi); background: rgba(25,193,114,.1); cursor: default; }
.needle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); pointer-events: none; }
.needle::before { content: ""; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: var(--red); }

/* Lists */
.list { border-top: 1px solid var(--rule); }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.item .grow { flex: 1; min-width: 0; }
.item .t, summary .t { font: 700 1.02rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.item .m, summary .m { color: var(--muted); font-size: .84rem; }
.item .r { font: 600 .95rem var(--display); color: var(--muted); white-space: nowrap; text-align: right; letter-spacing: .03em; }
.day { font: 700 .72rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 14px 0 4px; }
.empty { color: var(--muted); padding: 12px 0; font-size: .9rem; }
.badge { font: 700 .66rem var(--display); letter-spacing: .12em; color: #fff; background: var(--red); padding: 1px 5px; vertical-align: 2px; margin-left: 6px; }

/* Shows tab: one row per show, tap to expand */
details.show { border-bottom: 1px solid var(--rule); }
details.show summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
details.show summary::-webkit-details-marker { display: none; }
details.show summary .grow { flex: 1; min-width: 0; }
details.show summary .chev { display: inline-block; color: var(--green-hi); font: 700 1.25rem/1 var(--display); margin-left: 2px;
  vertical-align: -1px; transition: transform .15s; }
details.show[open] summary .chev { transform: rotate(90deg); }
.more { padding: 0 0 14px 60px; font-size: .88rem; }
.more .m { color: var(--muted); }
.more .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.more a { color: var(--ice); }
.ep { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.ep button { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: none; cursor: pointer; display: grid; place-items: center; }
.ep button:hover { border-color: var(--green-hi); }
.ep button svg { width: 12px; height: 12px; fill: var(--green-hi); margin-left: 2px; }
.follow { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.follow a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule);
  border-radius: 50%; color: var(--ice); text-decoration: none; }
.follow a:hover { border-color: var(--ice); color: var(--text); }
.follow svg { width: 16px; height: 16px; fill: currentColor; }
.follow a.txt { width: auto; border-radius: 18px; padding: 0 12px; font-size: .8rem; }

/* Games tab */
.board { margin-top: 14px; background: var(--panel); border-top: 3px solid var(--green); padding: 14px 16px; }
.board.on { border-top-color: var(--red); }
.board .head { font: 700 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.board.on .head { color: var(--red); }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0 6px; }
.team { display: flex; align-items: center; gap: 10px; }
.team.r { justify-content: flex-end; }
.team img { width: 44px; height: 44px; }
.team b { font: 700 1.3rem var(--display); letter-spacing: .03em; }
.team .n { font: 800 2.6rem/1 var(--display); }
.clock { font: 600 1rem/1.1 var(--display); color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.board .sub { color: var(--muted); font-size: .86rem; }
.board .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.board .kiss { border-color: var(--green); color: var(--green-hi); }
.game-row img { width: 30px; height: 30px; flex: none; }
.wl { font: 800 1.02rem var(--display); }
.wl.w { color: var(--green-hi); } .wl.l { color: var(--red); }

/* Bottom: episode bar + tab bar */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 1px solid var(--rule); }
#bar { padding: 8px 16px; border-bottom: 1px solid var(--rule); background: var(--panel); }
#bar > div { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
#bar .t { flex: 1; min-width: 0; font: 700 .8rem var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bar audio { height: 32px; max-width: 58%; }
#bar .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 0 4px; }
nav.tabs { display: flex; max-width: 620px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
nav.tabs button { flex: 1; height: var(--nav); background: none; border: 0; cursor: pointer; color: var(--dim);
  font: 700 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; display: grid; place-items: center; gap: 2px; padding: 8px 0 6px; }
nav.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
nav.tabs button[aria-selected="true"] { color: var(--text); }
nav.tabs button[aria-selected="true"] svg { stroke: var(--green-hi); }

footer { color: var(--dim); font-size: .78rem; margin-top: 28px; line-height: 1.6; }

.radio { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px;
  background: var(--green); color: #fff; text-decoration: none; }
.radio:hover { background: var(--green-hi); }
.radio .cta small { color: rgba(255,255,255,.85); }
.radio .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* Big listen button on the Listen tab */
.playrow { flex-wrap: wrap; }
.listen { flex: 1 1 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px;
  background: var(--green); color: #fff; border: 0; cursor: pointer; text-decoration: none; text-align: left;
  font: 800 1.3rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(0,166,90,.25); transition: background .15s, transform .1s; }
.listen:hover { background: var(--green-hi); }
.listen:active { transform: scale(.98); }
.listen svg { width: 30px; height: 30px; fill: #fff; flex: none; padding: 7px; border-radius: 50%; background: rgba(0,0,0,.18); box-sizing: content-box; }
.listen small { display: block; font: 500 .85rem var(--body); text-transform: none; letter-spacing: 0; opacity: .9; margin-top: 2px; }
.listen.alt { background: none; border: 2px solid var(--green); box-shadow: none; color: var(--text); }
.listen.alt svg { fill: var(--green-hi); background: rgba(25,193,114,.12); }
.listen.alt:hover { background: rgba(25,193,114,.1); }
.listen.off { background: var(--rule); box-shadow: none; cursor: default; }
.soon { flex: 1 1 100%; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.playrow .ghost { padding: 10px 14px; }

/* Solid action button used in lists and the scoreboard */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--green); color: #fff !important;
  border: 0; cursor: pointer; text-decoration: none; font: 700 .9rem var(--display); letter-spacing: .08em; text-transform: uppercase; }
.btn:hover { background: var(--green-hi); }
.btn svg { width: 12px; height: 12px; fill: #fff; }

/* "Also live" pills */
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.also b { margin-right: 2px; }
.also .pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--red); border-radius: 18px;
  background: rgba(255,59,71,.08); color: var(--text); text-decoration: none; font: 700 .85rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.also .pill:hover { background: rgba(255,59,71,.2); }
.also .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Make clickable things feel clickable */
.slot:not(.game):hover { background: rgba(159,198,232,.18); }
.slot.on:hover { background: rgba(255,59,71,.24); }
.strip:hover { background: var(--hover); }
.radio::after { content: "\203A"; margin-left: auto; font: 700 1.6rem var(--display); }
details.show summary:hover .t { color: var(--green-hi); }
a, button { -webkit-tap-highlight-color: rgba(25,193,114,.2); }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }

/* Desktop: all three sections side by side, no tab bar. */
/* Desktop: a top navigation bar and one clean, centred page at a time. */
.topnav { display: none; }
@media (min-width: 900px) {
  main { max-width: 860px; padding: 0 32px 110px; }
  .mast { gap: 28px; }
  .topnav { display: flex; gap: 4px; margin-left: auto; }
  .topnav button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px 14px;
    font: 700 .9rem var(--display); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; }
  .topnav button:hover { color: var(--text); }
  .topnav button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--green-hi); }
  nav.tabs { display: none; }
  main { padding-bottom: 90px; }
  #bar > div { max-width: 860px; }
  .hero h2 { font-size: 2.4rem; }
  .art.lg { width: 140px; height: 140px; }
}

/* Favourite star */
.fav { background: none; border: 0; padding: 6px; margin: -6px 0; cursor: pointer; color: var(--dim); line-height: 0; flex: none; }
.fav svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.fav:hover { color: var(--muted); }
.fav.on { color: #f5c542; }
.hero h2 .fav { vertical-align: 4px; }
.hero h2 .fav svg { width: 22px; height: 22px; }

/* Goal flash on the score strip */
.strip.goal { animation: goal 1s ease-in-out 4; }
.strip.goal.van { border-left-color: var(--green-hi); }
.strip.goal.van .k { color: var(--green-hi); }
@keyframes goal { 50% { background: var(--hover); } }

/* Alert bells */
.bell svg { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bell.on { color: var(--green-hi); }
.alertrow { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; color: var(--muted); font-size: .88rem; }
.alertrow .fav { margin: 0; border: 1px solid var(--rule); border-radius: 50%; padding: 7px; }
.alertrow .fav.on { border-color: var(--green-hi); }

/* Share button */
.share { display: inline-flex; align-items: center; gap: 6px; }
.share svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.playrow .share { padding: 10px 14px; }

/* Show page (opened from a shared link) */
.label .back { background: none; border: 0; color: var(--ice); cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; }
.label .back:hover { color: var(--text); }
.spot { margin-top: 14px; font-size: .9rem; }
.spot .m { color: var(--muted); }
.spot a { color: var(--ice); }
.share.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.share.fav.on { color: var(--green-hi); }

/* Where tomorrow starts on the tuner */
.daymark { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--dim); }
.daymark span { position: absolute; top: 2px; left: 6px; font: 700 .68rem var(--display); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ice); white-space: nowrap; }

/* Scoring summary on the scoreboard */
.scoring { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.scoring .h, .scoring .per { font: 700 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scoring .per { color: var(--dim); margin: 10px 0 4px; }
.goal { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: .9rem; }
.goal .tm { font: 600 .82rem var(--display); color: var(--dim); width: 36px; flex: none; }
.goal b { font: 700 .82rem var(--display); letter-spacing: .06em; color: var(--muted); width: 32px; flex: none; }
.goal.van b { color: var(--green-hi); }
.goal .who small { display: block; color: var(--muted); font-size: .8rem; }
.goal i { font: 700 .66rem var(--display); font-style: normal; letter-spacing: .1em; color: var(--ice); border: 1px solid var(--rule); padding: 0 4px; }
.label.group { margin-top: 26px; }

/* About and questions (also what search engines read) */
.about { margin-top: 28px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.about h2 { font: 800 1.2rem var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin: 0 0 8px; }
.about h3 { font: 700 .74rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.about ul { padding-left: 18px; margin: 0; }
.about li { margin-bottom: 6px; }
.about a { color: var(--ice); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 10px 0; color: var(--text); font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--dim); }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 12px; }

/* On air light is a button: plays what's live, or pops up what's next */
button.onair { background: none; border: 0; cursor: pointer; padding: 6px 0 6px 8px; }
.nextpop { position: absolute; right: 0; top: 100%; margin-top: 8px; z-index: 6; width: min(300px, 90vw); padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: .88rem; color: var(--muted); }
.nextpop b { display: block; font: 700 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.nextpop div { margin-top: 4px; }
.nextpop a { color: var(--green-hi); }

/* Latest videos as thumbnails */
.clips { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; scrollbar-width: none; }
.clips::-webkit-scrollbar { display: none; }
.clip { flex: 0 0 168px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--text); }
.clip .thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--rule); overflow: hidden; }
.clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip .thumb svg { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; fill: #fff;
  padding: 8px; border-radius: 50%; background: rgba(0,0,0,.55); box-sizing: content-box; }
.clip:hover .thumb svg { background: var(--green); }
.clip .ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; line-height: 1.3; margin-top: 6px; }
.clip .m { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }

/* Standings */
.standings { margin: 16px 0 6px; }
.standings .h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font: 700 .72rem var(--display);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.standings .h span:last-child { color: var(--green-hi); }
.standings table { width: 100%; border-collapse: collapse; font: 600 .9rem var(--display); letter-spacing: .03em; }
.standings th { font-size: .7rem; color: var(--dim); text-align: right; padding: 4px 6px; font-weight: 700; }
.standings td { padding: 6px; text-align: right; border-top: 1px solid var(--rule); color: var(--muted); }
.standings td:first-child, .standings th:first-child { text-align: left; }
.standings td:first-child img { width: 20px; height: 20px; vertical-align: -5px; margin: 0 6px 0 2px; }
.standings tr.van td { color: var(--text); background: rgba(25,193,114,.07); }
.standings td b { color: var(--text); }
.standings .m { color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* Show row actions sit apart from the name, with room between them so taps land where intended */
details.show .acts { display: flex; gap: 6px; flex: none; }
details.show .acts .fav { padding: 9px; margin: 0; }

/* Full episode, podcast and clips */
.more .sub, .spot .sub { font: 700 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px; }
.clip.full { display: block; width: 100%; max-width: 420px; }
.clip.full .ct { font-size: .9rem; }

/* Games tab section headers: title on the left, controls on the right */
.shead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.shead h3 { margin: 0; font: 700 .78rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px 10px;
  font: 700 .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-selected="true"] { background: var(--green); color: #fff; }
.ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ranks span { font: 700 .74rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  background: var(--panel); border: 1px solid var(--rule); padding: 4px 8px; }
.standings { margin-top: 6px; }
.standings th.l10, .standings td.l10 { color: var(--dim); }
.standings tr.van td.l10 { color: var(--muted); }
.pillbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--rule); border-radius: 16px;
  padding: 6px 12px; cursor: pointer; color: var(--muted); font: 700 .74rem var(--display); letter-spacing: .08em; text-transform: uppercase; }
.pillbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pillbtn.on { color: var(--green-hi); border-color: var(--green-hi); }
.pillbtn.on svg { fill: currentColor; }
.pillbtn:hover { border-color: var(--muted); }

/* ---------- Tuner dial, refreshed ---------- */
.dial { border: 1px solid var(--rule); border-radius: 12px; background: var(--panel);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.scale { height: 92px; }
.tick { bottom: 22px; top: 0; height: auto; width: 1px; background: var(--rule); opacity: .35; }
.tick.h { height: auto; background: var(--rule); opacity: 1; }
.tick span { top: auto; bottom: -20px; left: -12px; width: 24px; text-align: center; font-size: .68rem; color: var(--dim); }
.slot { top: 10px; height: 46px; border-radius: 8px; border-left: 0; padding: 6px 10px; box-shadow: none;
  background: color-mix(in srgb, var(--ice) 10%, transparent); transition: background .15s, transform .1s; }
.slot:not(.game):hover { background: color-mix(in srgb, var(--ice) 20%, transparent); }
.slot:active { transform: scale(.98); }
.slot.past { opacity: .45; }
.slot.on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent);
  background: color-mix(in srgb, var(--red) 14%, transparent); }
.slot.on:hover { background: color-mix(in srgb, var(--red) 22%, transparent); }
.slot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px;
  animation: pulse 1.6s infinite; }
.slot.game { box-shadow: none; background: color-mix(in srgb, var(--green-hi) 12%, transparent); }
.slot small { margin-top: 2px; }
.needle { width: 2px; border-radius: 1px; bottom: 22px; }
.needle::before { display: none; }
.needle span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff;
  font: 700 .6rem var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; }
.daymark { border-left: 0; bottom: 22px; width: 1px; background: repeating-linear-gradient(var(--dim) 0 4px, transparent 4px 8px); }
.daymark span { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); background: var(--panel); padding: 0 4px; }

/* ---------- Player toolbar ---------- */
.player iframe { border-radius: 10px 10px 0 0; }
.ptools { display: flex; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 10px 10px; background: var(--panel); overflow: hidden; }
.ptools > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px;
  background: none; border: 0; cursor: pointer; color: var(--text); text-decoration: none;
  font: 700 .78rem var(--display); letter-spacing: .1em; text-transform: uppercase; }
.ptools > * + * { border-left: 1px solid var(--rule); }
.ptools > *:hover { background: var(--hover); }
.ptools svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ptools a svg { fill: #ff0033; stroke: none; width: 18px; height: 18px; }
.ptools .stop svg { fill: currentColor; stroke: none; }
.ptools .stop { color: var(--red); }

/* ---------- Mini player (shown on other tabs while a show plays) ---------- */
#mini { padding: 8px 16px; border-bottom: 1px solid var(--rule); background: var(--panel); }
#mini > div { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
#mini .mt { flex: 1; min-width: 0; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text);
  font: 700 .85rem var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .mt .live { color: var(--red); }
#mini .mt small { display: block; font: 400 .74rem var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
#mini .mb { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--green); cursor: pointer; display: grid; place-items: center; flex: none; }
#mini .mb svg { width: 16px; height: 16px; fill: #fff; }
#mini .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.3rem; padding: 0 4px; }
@media (min-width: 900px) { #mini > div { max-width: 860px; } }

/* Standings header: full-width view switch, then one tidy row of Canucks numbers */
.standings .shead { flex-direction: column; align-items: stretch; gap: 10px; }
.standings .seg { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 8px; overflow: hidden; }
.standings .seg button { padding: 9px 4px; }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 0; margin: 4px 0 10px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; }
.ranks div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; text-align: center; }
.ranks div + div { border-left: 1px solid var(--rule); }
.ranks b { font: 800 1.15rem/1 var(--display); color: var(--text); letter-spacing: .02em; }
.ranks span { margin-top: 4px; padding: 0; border: 0; background: none; font: 600 .62rem var(--display); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Start-up screen (home screen app only): the radio switches on and tunes in */
#splash { position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--text); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; transition: opacity .4s ease; }
#splash.off { opacity: 0; pointer-events: none; }
#splash svg { width: 132px; height: 136px; overflow: visible; }
#splash .ant { transform-origin: 150px 170px; animation: ant-up .7s cubic-bezier(.3,1.4,.5,1) both; }
#splash .ring { transform-origin: 186px 295px; animation: spin 1.6s linear infinite; }
#splash .tuner { transform-origin: 290px 249px; animation: tune 1.1s ease-in-out .2s infinite alternate; }
#splash .k1 { animation: knob 1.1s ease-in-out infinite; }
#splash .k2 { animation: knob 1.1s ease-in-out .55s infinite; }
#splash .tune { font: 700 .8rem var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
#splash .tune::after { content: ""; display: inline-block; width: 1.5em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes ant-up { from { transform: rotate(-26deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tune { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
@keyframes knob { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { #splash * { animation: none !important; } }

/* "Add to Home Screen" sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0); display: flex; align-items: flex-end; justify-content: center;
  transition: background .25s; }
.sheet.open { background: rgba(0,0,0,.45); }
.sheet .card { position: relative; width: 100%; max-width: 480px; background: var(--panel); color: var(--text); border-radius: 18px 18px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease; }
.sheet.open .card { transform: none; }
.sheet img { display: block; border-radius: 13px; margin-bottom: 12px; }
.sheet h2 { margin: 0 0 6px; font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.sheet p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.sheet ol { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.sheet li { counter-increment: step; position: relative; padding: 9px 0 9px 38px; border-top: 1px solid var(--rule); font-size: .95rem; line-height: 1.4; }
.sheet li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font: 700 .85rem/26px var(--display); text-align: center; }
.sheet .ico { width: 18px; height: 18px; vertical-align: -4px; margin: 0 2px; fill: none; stroke: var(--ice); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.sheet .ico circle { fill: var(--ice); stroke: none; }
.sheet .go { width: 100%; padding: 13px; border: 0; border-radius: 10px; background: var(--green); color: #fff; cursor: pointer;
  font: 700 .95rem var(--display); letter-spacing: .1em; text-transform: uppercase; }
.sheet .close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
@media (min-width: 900px) { .sheet { align-items: center; } .sheet .card { border-radius: 18px; } }

/* Header radio comes alive: switches on when the page opens, spins its dial while loading,
   and keeps turning slowly while something is playing. */
.mark .logo { overflow: visible; }
.mark .logo .ant { transform-origin: 150px 170px; animation: ant-up .7s cubic-bezier(.3,1.4,.5,1) .1s both; }
.mark .logo .ring { transform-origin: 186px 295px; animation: spin 1.2s ease-out .1s 1; }
body.loading .mark .logo .ring { animation: spin 1.2s linear infinite; }
body.tuned .mark .logo .ring { animation: spin 6s linear infinite; }
.mark a:hover .logo .ring { animation: spin 1.2s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .mark .logo * { animation: none !important; } }
.sheet li small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.sheet .have { display: block; width: 100%; margin-top: 8px; padding: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 .85rem var(--body); }

/* Top game card: a clean matchup, no side stripe */
.strip { display: block; width: 100%; margin-top: 14px; padding: 12px 16px 14px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--rule); border-left: 1px solid var(--rule); border-radius: 14px; color: var(--text); }
.strip.on { border-color: color-mix(in srgb, var(--red) 45%, var(--rule)); }
.strip .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.strip .k { font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.strip.on .k { color: var(--red); }
.strip .k .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 6px;
  vertical-align: 1px; animation: pulse 1.6s infinite; }
.strip .tv { font: 600 .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.strip .match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 10px; }
.strip .tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.strip .match .tm:last-child { flex-direction: row-reverse; }
.strip .tm img, .strip .tm .lg { width: 34px; height: 34px; flex: none; }
.strip .tm b { font: 800 1.25rem var(--display); letter-spacing: .03em; }
.strip .tm .sc { font: 800 1.9rem/1 var(--display); margin: 0 4px; }
.strip .match .tm:first-child .sc { margin-left: auto; }
.strip .match .tm:last-child .sc { margin-right: auto; }
.strip .time { font: 800 1.15rem var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.strip .vs { font: 700 1.2rem var(--display); color: var(--dim); }
.strip.goal.van { border-color: var(--green-hi); }

/* Pull to refresh */
#ptr { height: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
#ptr.snap { transition: height .25s ease; }
#ptr .in { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; color: var(--muted);
  font: 700 .74rem var(--display); letter-spacing: .16em; text-transform: uppercase; }
#ptr svg { width: 30px; height: 30px; color: var(--text); overflow: visible; }
#ptr .ring { transform-origin: 186px 295px; }
#ptr.ready .in { color: var(--green-hi); }
#ptr.ready .ant { transform-origin: 150px 170px; animation: ant-up .5s cubic-bezier(.3,1.4,.5,1) both; }
#ptr.spin .ring { animation: spin .9s linear infinite; }

/* About page and the link to it */
.aboutlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; color: var(--text); text-decoration: none; }
.aboutlink b { display: block; font: 700 .95rem var(--display); letter-spacing: .08em; text-transform: uppercase; }
.aboutlink small { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; }
.aboutlink i { font: 700 1.5rem var(--display); font-style: normal; color: var(--green-hi); }
.aboutlink:hover { background: var(--hover); }
.backlink { background: none; border: 0; cursor: pointer; color: var(--green-hi); padding: 14px 0 0;
  font: 700 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
#tab-about .about { margin-top: 10px; }
.about .lead { font-size: 1rem; color: var(--text); line-height: 1.55; margin: 0 0 6px; }
.about h3 { margin-top: 26px; }
.faqs { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 0 16px; }
.faqs .faq:last-child { border-bottom: 0; }
.faq summary { padding: 14px 24px 14px 0; position: relative; }
.faq summary::after { position: absolute; right: 0; top: 13px; float: none; font-size: 1.1rem; }
.aboutshows { display: grid; gap: 8px; }
.aboutshows a { display: block; padding: 12px 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px;
  color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.45; }
.aboutshows a b { display: block; color: var(--text); font: 700 .95rem var(--display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.aboutshows a:hover { background: var(--hover); }
.about .fine { margin-top: 22px; font-size: .8rem; color: var(--dim); }
details.show summary .nw { white-space: nowrap; }
details.show summary .nw .chev { margin-left: 6px; }
