/* Fixtr: navy with a teal-to-green accent, Inter for text, Poppins for headings and numbers. */
:root {
  --accent: #2DD4BF;
  --accent-2: #4ADE80;
  --accent-grad: linear-gradient(90deg, #2DD4BF, #4ADE80);
  --accent-soft: rgba(45, 212, 191, 0.14);
  --accent-glow: rgba(45, 212, 191, 0.42);
  --accent-ink: #8BE9DC; /* accent lightened for small text on dark */
  --on-accent: #052620;
  --bg: #070C18;
  --surface: #111A30;
  --surface-focused: #18243F;
  --text: #F1F5F9;
  --lead: #C7D0DE;
  --muted: #A3AEC2;
  --chip: rgba(255, 255, 255, 0.16);
  --live: #EF4444;
  --sidebar: #0C1428;
  --card: #111A30;
  --label: #8E9AB0;
  --selected: rgba(45, 212, 191, 0.12);
  --hover: #16203A;
  --line: rgba(255, 255, 255, 0.12);
  --highlight: rgba(45, 212, 191, 0.14);
  --sidebar-width: 255px;
  --display: Poppins, Inter, system-ui, sans-serif; /* Fixtr: Poppins for headings */
  font-family: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); }
/* The page background: a soft glow from the top right that fades out evenly. It sits on <html>, so it covers the
   whole window (on <body> it started below the breadcrumb's top margin and left a hard-edged strip above). */
html { background: radial-gradient(ellipse 85% 75% at 72% -15%, rgba(22, 40, 76, 0.75) 0%, rgba(14, 26, 50, 0.4) 40%, rgba(7, 12, 24, 0) 78%) fixed var(--bg); }
body { background: transparent; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------- sidebar */
.side {
  position: fixed; left: 14px; top: 14px; bottom: 8px; width: calc(var(--sidebar-width) - 27px);
  background: var(--sidebar); border-radius: 16px; display: flex; flex-direction: column;
  padding: 0 10px 0; z-index: 30;
}
.side-head { display: flex; align-items: center; height: 70px; padding: 0 3px 0 8px; flex: none; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-text b { color: var(--accent); font-weight: 700; }
.side-head .logo { flex: 1; padding-left: 0; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--label); }
.icon-btn:hover { color: var(--text); background: var(--hover); }
.side-list { flex: 1; overflow-y: auto; min-height: 0; padding-top: 6px; scrollbar-width: none; }
.side-list::-webkit-scrollbar { display: none; } /* still scrolls on short screens, without a visible bar */
.side-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--label); padding: 0 12px; height: 38px; display: flex; align-items: flex-end; padding-bottom: 7px; }
.side-label:first-child { height: 28px; }
.nav {
  display: flex; align-items: center; gap: 14px; height: 42px; margin: 2px 0; padding: 0 13px;
  border-radius: 10px; font-size: 16px; color: var(--text); width: 100%; text-align: left;
}
.nav svg { color: var(--lead); }
.nav:hover { background: var(--hover); }
.nav.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 22px rgba(45, 212, 191, 0.22); font-weight: 600; }
.nav.on svg { color: var(--accent); }
.nav.sport-main svg { color: var(--accent); }
.nav.more { color: var(--muted); }
.nav.more svg { color: var(--muted); }
.notice {
  position: relative; background: #1A1C21; border-radius: 10px; padding: 9px 34px 9px 12px; margin: 8px 0 9px;
  font-size: 13px; line-height: 18px; color: var(--lead); flex: none;
}
.notice a { color: var(--accent); }
.notice .x { position: absolute; right: 7px; top: 8px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--lead); border-radius: 6px; }
.notice .x:hover { color: var(--text); background: var(--hover); }
.side-foot { flex: none; padding-bottom: 14px; }

body.collapsed .side { width: 56px; padding: 0 6px; }
body.collapsed .logo-text, body.collapsed .nav span, body.collapsed .side-label, body.collapsed .notice { display: none; }
body.collapsed .side-head { flex-direction: column; justify-content: center; gap: 10px; height: 96px; padding: 0; }
body.collapsed .side-head .logo { flex: none; }
body.collapsed .nav { justify-content: center; padding: 0; }
body.collapsed .side-list::before { content: ""; display: block; height: 1px; background: var(--selected); margin: 0 8px 8px; }
body.collapsed .main { margin-left: 84px; }

.topbar { display: none; }
.scrim { display: none; }

/* ------------------------------------------------------------- main */
.main { margin-left: var(--sidebar-width); padding: 0 0 48px 26px; min-height: 100vh; }
.page-title { font-size: 15px; font-weight: 700; height: 24px; line-height: 24px; margin: 26px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip {
  height: 36px; padding: 0 15px; border-radius: 18px; font-size: 14px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); color: var(--lead); background: var(--bg);
}
.chip:hover { background: var(--selected); }
.chip.on { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; font-weight: 700; }
.chip svg { width: 16px; height: 16px; }

.day + .day { margin-top: 40px; }
.day h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; height: 28px; line-height: 28px; }
.row { display: flex; gap: 14px; overflow-x: auto; padding-right: 30px; scrollbar-width: none; scroll-snap-type: x proximity; }
.row::-webkit-scrollbar { display: none; }

.card {
  flex: none; width: 300px; height: 170px; border-radius: 12px; background: var(--card); overflow: hidden;
  position: relative; text-align: left; scroll-snap-align: start; display: block;
}
.card:hover { background: var(--surface-focused); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.card:hover .banner { filter: brightness(1.06); }
.banner { position: relative; height: 96px; overflow: hidden; }
.split { position: absolute; inset: 0; }
.split .home { position: absolute; inset: 0; clip-path: polygon(0 0, 58% 0, 46% 100%, 0 100%); }
.split::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.24)); }
.badge {
  position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 10px; border-radius: 12px; z-index: 2;
  background: rgba(12, 13, 15, 0.84); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 24px; color: var(--text);
}
.badge.remind::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 7px; vertical-align: 1px; }
.crest {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; background: #EEEEF0; padding: 5px; z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.crest i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.card .crest { top: 35px; transform: translateX(-50%); }
.card .crest.h { left: 23.7%; }
.card .crest.a { left: 76%; }
.card-title { position: absolute; left: 14px; right: 10px; top: 109px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs { color: var(--muted); font-weight: 400; }
.card-sub { position: absolute; left: 14px; right: 10px; top: 139px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub b { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- match page */
.crumb { font-size: 15px; font-weight: 700; margin: 26px 0 20px; height: 24px; line-height: 24px; color: var(--text); }
.crumb a { color: var(--lead); }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--muted); font-weight: 400; margin: 0 4px; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 25px; padding-right: 30px; align-items: start; }
.hero { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.hero .split .home { clip-path: polygon(0 0, 58% 0, 45% 100%, 0 100%); }
.hero .split { filter: brightness(0.42); }
.hero .split::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35)); }
.hero .crest { width: 64px; height: 64px; top: 50%; transform: translate(-50%, -50%); opacity: 0.35; }
.hero .crest.h { left: 24%; }
.hero .crest.a { left: 76%; }
.hero-text { position: relative; z-index: 2; text-align: center; padding: 0 20px; margin-top: -2%; }
.hero-text h1 { margin: 0; font-size: clamp(28px, 4.4vw, 64px); font-weight: 700; line-height: 1.1; color: #FFFFFF; text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45); letter-spacing: -0.01em; }
.hero-text p { margin: 14px 0 0; font-size: 16px; color: var(--text); }
.below { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.below h2 { font-size: 20px; margin: 0 0 12px; width: 100%; }
.pair { display: flex; }
.pair .crest { position: relative; width: 36px; height: 36px; padding: 3px; }
.pair .crest + .crest { margin-left: -7px; }
.meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.meta b { font-size: 15px; }
.meta span { font-size: 13px; color: var(--muted); }
.pill { height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; border: 1px solid var(--line); color: var(--lead); display: inline-flex; align-items: center; gap: 8px; }
.pill:hover { background: var(--selected); }
.pill.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.watch { margin-top: 30px; }
.watch h3, .panel h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--label); margin: 0 0 12px; }
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ch {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); text-align: left; width: 100%; min-width: 0;
}
.ch:hover { background: var(--surface-focused); }
.ch-logo { width: 40px; height: 40px; border-radius: 8px; background: #0F1115 center / contain no-repeat; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); overflow: hidden; }
.ch-text { min-width: 0; flex: 1; }
.ch-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .play { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.ch .play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.empty-box { background: var(--surface); border-radius: 12px; padding: 18px 20px; color: var(--lead); font-size: 14px; line-height: 21px; }
.empty-box a, .link { color: var(--accent); }

.panel { background: #101216; border: 1px solid #1C1F25; border-radius: 14px; padding: 18px 12px 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.panel-head { padding: 0 4px 0 4px; margin-bottom: 26px; }
.panel-head b { display: block; font-size: 15px; }
.panel-head span { font-size: 12px; color: var(--lead); }
.panel h4 { padding-left: 8px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 13px; margin-bottom: 26px; }
.table th { font-size: 11px; font-weight: 400; color: var(--label); height: 30px; }
.table td { height: 29px; }
.table tr.mine td { background: var(--highlight); font-weight: 700; }
.table tr.mine td:first-child { border-radius: 6px 0 0 6px; }
.table tr.mine td:last-child { border-radius: 0 6px 6px 0; }
.table .n { text-align: right; width: 40px; padding-right: 8px; color: var(--muted); font-weight: 400; }
.table .club { display: flex; align-items: center; gap: 8px; height: 29px; }
.table .num { text-align: center; width: 36px; }
.table .pts { font-weight: 700; }
.mf { display: inline-block; width: 18px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); flex: none; }
.note { color: var(--muted); font-size: 13px; padding: 0 8px; margin: -8px 0 26px; line-height: 19px; }
.fixtures { overflow-y: auto; min-height: 0; scrollbar-width: none; }
.fixtures::-webkit-scrollbar { display: none; }
.fx {
  display: grid; grid-template-columns: 34px 1fr 18px 62px 18px 1fr; align-items: center; gap: 6px; height: 31px; margin: 2px 0;
  padding: 0 8px; border-radius: 6px; font-size: 13px; width: 100%; text-align: left;
}
.fx:hover { background: var(--hover); }
.fx.on { background: var(--highlight); }
.fx .d { font-size: 11px; color: var(--lead); }
.fx .hn { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx .an { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx .t { text-align: center; font-weight: 700; }

/* ------------------------------------------------------------- other pages */
.page { max-width: 760px; padding-right: 30px; }
.page.wide { max-width: none; }
.big { font-size: 28px; font-weight: 700; margin: 12px 0 10px; }
.body { font-size: 16px; color: var(--lead); line-height: 24px; margin: 0 0 12px; }
.tag { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--lead); }
.input {
  height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 0 14px; font-size: 15px; color: var(--text); width: 100%;
}
.input:focus { outline: none; border-color: var(--accent); }
.btn { height: 42px; padding: 0 20px; border-radius: 21px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--lead); border: 1px solid var(--line); font-weight: 400; }
.btn.ghost:hover { background: var(--selected); }
.tabs { display: flex; gap: 8px; margin: 18px 0 18px; flex-wrap: wrap; }
.err { color: #FF8A8E; font-size: 14px; margin: 10px 0; line-height: 20px; }
.ok { color: var(--accent); font-size: 14px; margin: 10px 0; }
.check { display: flex; align-items: center; gap: 12px; font-size: 16px; margin: 0 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.stat { background: var(--surface); border-radius: 10px; padding: 12px 16px; min-width: 120px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { max-width: 360px; }
select.input { max-width: 280px; }
.count { color: var(--muted); font-size: 13px; }
.results { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.result { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface); }
.result:hover { background: var(--surface-focused); }
.result .pair .crest { width: 30px; height: 30px; }
.result .when { margin-left: auto; color: var(--muted); font-size: 13px; }
.bullets { padding-left: 20px; color: var(--lead); line-height: 26px; font-size: 16px; }

/* ------------------------------------------------------------- player and toast */
.btn.icon { width: 42px; padding: 0; display: inline-grid; place-items: center; }
body.playing { overflow: hidden; }

/* ------------------------------------------------------------- providers + series */
.provs { display: flex; flex-direction: column; gap: 10px; }
.prov { display: flex; gap: 16px; align-items: center; background: var(--surface); border-radius: 12px; padding: 16px 18px; border: 1px solid transparent; flex-wrap: wrap; }
.prov.on { border-color: rgba(212, 255, 63, 0.45); }
.prov-main { flex: 1; min-width: 220px; }
.prov-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; word-break: break-all; }
.prov-facts { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 19px; }
.prov-counts { display: flex; gap: 16px; font-size: 13px; color: var(--lead); margin-top: 8px; }
.prov-counts b { color: var(--text); }
.prov-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tag.small { font-size: 11px; padding: 3px 9px; letter-spacing: 0.04em; }
.empty-box.warn { border: 1px solid #5A3A12; background: #1D150B; color: #F2D7A6; margin-bottom: 18px; }
code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }
.hint { font-size: 13px; line-height: 19px; margin-top: 14px; color: var(--muted); }
.ch .play.go { background: var(--selected); color: var(--lead); }
.ch .play.go svg { fill: none; stroke: currentColor; width: 16px; height: 16px; }
.show-head { display: flex; gap: 22px; margin-bottom: 22px; padding-right: 30px; max-width: 980px; }
.show-cover { width: 150px; aspect-ratio: 2 / 3; flex: none; border-radius: 10px; background: var(--surface) center / cover no-repeat; }
@media (max-width: 600px) { .show-head { flex-direction: column; } .show-cover { width: 120px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--surface-focused); color: var(--text); padding: 10px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: 0.2s; pointer-events: none; z-index: 70; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loadbar { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 65; width: min(460px, calc(100vw - 32px));
  padding: 18px 20px 14px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); transition: opacity 0.35s, transform 0.35s; }
.loadbar.done { opacity: 0; transform: translate(-50%, -14px); }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.lb-head b { font-size: 16px; }
.lb-note, .lb-foot { font-size: 12px; color: var(--muted); }
.lb-foot { margin: 12px 0 0; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; transition: opacity 0.3s; }
.lb-row.wait { opacity: 0.45; }
.lb-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.lb-ic svg { width: 18px; height: 18px; }
.lb-row.loading .lb-ic, .lb-row.done .lb-ic { background: rgba(45, 212, 191, 0.14); color: var(--accent); }
.lb-main { flex: 1; min-width: 0; }
.lb-top { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.lb-count { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pct { font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; display: inline-flex; }
.lb-pct svg { width: 16px; height: 16px; color: var(--accent); }
.lb-row.failed .lb-pct { color: var(--muted); font-weight: 500; }
.lb-track { height: 5px; margin-top: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.lb-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent-grad, var(--accent)); transition: width 0.3s ease; }

/* ------------------------------------------------------------- phones and narrow windows */
@media (max-width: 1180px) {
  .match { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: none; }
  .fixtures { max-height: 420px; }
}
@media (max-width: 820px) {
  .topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; position: sticky; top: 0; background: var(--bg); z-index: 20; border-bottom: 1px solid #14161A; }
  .topbar .icon-btn { color: var(--text); }
  .side { transform: translateX(-110%); transition: transform 0.2s; left: 8px; top: 8px; bottom: 8px; width: 260px; z-index: 50; }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 40; }
  body.collapsed .side { width: 260px; padding: 0 10px; }
  body.collapsed .logo-text, body.collapsed .nav span, body.collapsed .side-label, body.collapsed .notice { display: revert; }
  body.collapsed .nav { justify-content: flex-start; padding: 0 13px; }
  .side-head .collapse { display: none; }
  .main, body.collapsed .main { margin-left: 0; padding: 0 0 40px 16px; }
  .page-title { margin-top: 18px; }
  .card { width: 268px; }
  .match { padding-right: 16px; }
  .page { padding-right: 16px; }
  .hero-text p { font-size: 13px; margin-top: 8px; }
  .hero .crest { width: min(100%, 96px); height: auto; }
  .hero-kicker { margin-bottom: 4px; }
}

/* ------------------------------------------------------------- TV mode (html.tv): 10-foot layout + remote focus */
html.tv { --tv-x: 48px; --tv-y: 27px; } /* Android TV overscan-safe margins (5% of 960x540) */
html.tv .side { left: calc(var(--tv-x) / 2); top: var(--tv-y); bottom: var(--tv-y); }
html.tv .main { padding-top: calc(var(--tv-y) - 26px + 8px); padding-bottom: 60px; }
html.tv .row, html.tv .page, html.tv .match, html.tv .ch-list { padding-right: var(--tv-x); }
html.tv .side { overflow-y: auto; scrollbar-width: none; }
html.tv .side::-webkit-scrollbar { display: none; }
html.tv .side-list { flex: none; overflow: visible; }
html.tv .notice { display: none; }
html.tv a, html.tv button, html.tv input, html.tv select { scroll-margin: 70px 60px; }
html.tv .row { padding-top: 6px; padding-bottom: 8px; padding-left: 4px; margin-left: -4px; }
html.tv :focus { outline: none; }
html.tv :focus-visible { outline: none; }
html.tv .nav:is(:focus, .is-focus) { background: var(--accent); color: var(--on-accent); }
html.tv .nav:is(:focus, .is-focus) svg { color: var(--on-accent); }
html.tv .card { transition: transform 0.12s ease, box-shadow 0.12s ease; }
html.tv .card:is(:focus, .is-focus) { transform: scale(1.05); box-shadow: 0 0 0 3px var(--accent), 0 8px 24px rgba(0, 0, 0, 0.5); background: var(--surface-focused); z-index: 2; }
html.tv .ch:is(:focus, .is-focus) { background: var(--surface-focused); box-shadow: 0 0 0 3px var(--accent); }
html.tv .chip:is(:focus, .is-focus), html.tv .pill:is(:focus, .is-focus), html.tv .btn:is(:focus, .is-focus), html.tv .fx:is(:focus, .is-focus), html.tv .result:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); }
html.tv .btn.ghost:is(:focus, .is-focus), html.tv .chip:is(:focus, .is-focus):not(.on) { background: var(--selected); color: var(--text); }
html.tv .input:is(:focus, .is-focus), html.tv .check input:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); border-color: var(--accent); }
html.tv .crumb a:is(:focus, .is-focus), html.tv .link:is(:focus, .is-focus), html.tv .empty-box a:is(:focus, .is-focus), html.tv .notice a:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); border-radius: 4px; }
html.tv .icon-btn:is(:focus, .is-focus), html.tv .notice .x:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); color: var(--text); }
html.tv .ch .play { width: 34px; height: 34px; }
html.tv .ch-name { font-size: 15px; }

/* ------------------------------------------------------------- real fixtures: live, scores, crests */
.badge.live { background: var(--live); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.badge.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live); margin-right: 9px; vertical-align: 2px; animation: pulse 1.4s ease-in-out infinite; }
.crest.logo { background: #F4F5F7; padding: 7px; }
.crest img { display: block; width: 100%; height: 100%; object-fit: contain; }
.crest b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #2A2D33; color: var(--lead); font-size: 15px; }
.pair .crest b { font-size: 11px; }
.mf.logo { object-fit: contain; box-shadow: none; width: 18px; height: 18px; border-radius: 0; }
.card-title .sc { color: var(--accent); font-variant-numeric: tabular-nums; margin: 0 4px; }
.card.done { opacity: 0.72; }
.sample-note { padding: 0; margin: -6px 0 18px; }
.fx.is-live .t { color: var(--live); }
.panel .credit { margin: 10px 0 0; font-size: 12px; }
.hero-text h1 { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- stream finder */
.hero-text .watch-btn { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; font-size: 15px; }
.hero-text .watch-btn svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.ch.stream .ch-sub { display: flex !important; align-items: center; gap: 5px; overflow: hidden; }
.conf, .tagc { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; padding: 1px 6px; border-radius: 4px; line-height: 15px; }
.conf.certain { background: var(--accent); color: var(--on-accent); }
.conf.very-likely { background: #8FB82A; color: var(--on-accent); }
.conf.likely { background: #3A4152; color: var(--text); }
.conf.maybe { background: #2A2D33; color: var(--muted); }
.tagc { background: #23262C; color: var(--lead); }
.ch.stream .why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; margin-left: 3px; }
.guide-note { padding: 0; margin: 12px 0 0; }
.prov-guide { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 18px; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 17px; }

/* ------------------------------------------------------------- match cards (stadium, three per row) */
.page-title, .day h2, .big { font-family: var(--display); }
.hub-head { display: flex; align-items: center; }
.hub-title { flex: 1; }
.hub-clock { font-family: var(--display); font-size: 22px; font-weight: 600; padding-right: 30px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.day h2 { display: flex; align-items: center; gap: 10px; }
.day-count { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 500; color: var(--label); }
.row-wrap { position: relative; }
.row { gap: 20px; padding: 6px 30px 14px 6px; margin-left: -6px; }

.mc {
  position: relative; display: block; flex: none; isolation: isolate; overflow: hidden;
  width: calc((100% - 40px) / 3); min-width: 280px; aspect-ratio: 445 / 250; border-radius: 20px;
  /* Text scales with the card: about 16px on a 450px card. */
  font-size: max(9px, min(17px, calc((100vw - 360px) / 84)));
  color: var(--text); scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  background:
    radial-gradient(ellipse 45% 60% at 8% -10%, rgba(214, 236, 255, 0.5), rgba(214, 236, 255, 0) 70%),
    radial-gradient(ellipse 45% 60% at 92% -10%, rgba(214, 236, 255, 0.45), rgba(214, 236, 255, 0) 70%),
    linear-gradient(180deg, #1B2D52 0%, #12223F 45%, #0E2C2B 100%);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
/* The pitch, in perspective. Static and unblurred, so it costs nothing on a TV stick. */
.mc::before, .hero.stadium::before {
  content: ""; position: absolute; left: -30%; right: -30%; bottom: -46%; height: 82%; z-index: -1;
  transform: perspective(500px) rotateX(60deg); transform-origin: 50% 0;
  background: repeating-linear-gradient(90deg, #1F7044 0 46px, #1A6139 46px 92px); opacity: 0.75;
}
.mc::after, .hero.stadium::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 12, 24, 0.45), rgba(7, 12, 24, 0.18) 45%, rgba(7, 12, 24, 0.62)); }
.mc-tint { position: absolute; inset: 0; }
.mc-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: 0.85em 1.2em 1.2em; }
.mc.done .mc-body { opacity: 0.82; }
.mc-league { text-align: center; font-size: 0.72em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lead); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4.5em; }
.mc-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.4em; }
.mc-team { width: 34%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.65em; }
.mc-crest { width: 4.4em; height: 4.4em; flex: none; border-radius: 50%; background: #F8FAFC; display: grid; place-items: center; overflow: hidden; }
.mc-crest.logo { padding: 0.6em; }
.mc-crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-crest i { width: 100%; height: 100%; border-radius: 50%; display: block; }
.mc-crest b { font-family: var(--display); font-size: 1.1em; color: #1F2937; }
.mc-name { max-width: 100%; font-size: 0.92em; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; text-align: center; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-name.long { font-size: 0.76em; letter-spacing: 0; }
.mc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.35em; margin-top: -1.4em; }
.mc-score { font-family: var(--display); font-size: 2.3em; font-weight: 700; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-time { font-family: var(--display); font-size: 1.5em; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-min { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.85em; font-weight: 600; color: #FCA5A5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-min.big { font-size: 1.15em; color: var(--text); }
.mc-min i { width: 0.45em; height: 0.45em; flex: none; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px rgba(239, 68, 68, 0.9); }
.mc-ft { font-size: 0.75em; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.mc-progress { position: absolute; left: 0; bottom: 0; z-index: 2; height: 3px; background: var(--live); box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
.mc.live { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.1), 0 14px 32px rgba(0, 0, 0, 0.42); }
.mc-tag {
  position: absolute; top: 0.7em; right: 0.7em; z-index: 2; height: 1.75em; padding: 0 0.7em 0 0.55em;
  display: none; align-items: center; gap: 0.35em; border-radius: 1em; background: var(--accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.55); font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-ink);
}
.mc-tag svg { width: 0.85em; height: 0.85em; fill: currentColor; stroke: none; }
/* Selected: hover with a mouse, focus with a keyboard or remote. */
.mc:hover, .mc:focus-visible, .mc.is-focus {
  /* A 2px outline over the 1px border: it hugs the rounded corners and takes no space, so names never re-wrap. */
  border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px;
  /* A soft halo: bright and tight near the outline, fading out wide. No solid ring. */
  box-shadow: 0 0 6px rgba(45, 212, 191, 0.65), 0 0 16px rgba(45, 212, 191, 0.4), 0 0 32px rgba(45, 212, 191, 0.22), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.mc:hover .mc-tag, .mc:focus-visible .mc-tag, .mc.is-focus .mc-tag { display: inline-flex; }
html.tv .mc.is-focus, html.tv .mc:focus { transform: none; }

.row-more {
  position: absolute; right: 6px; top: 50%; margin-top: -32px; z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); background: rgba(12, 20, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.row-more span { position: absolute; top: 100%; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.row-more:hover, .row-more.is-focus, .row-more:focus-visible { border-color: var(--accent); outline: none; }

/* Match page header: the same stadium as the cards. */
.hero.stadium { isolation: isolate; background:
    radial-gradient(ellipse 40% 60% at 10% -10%, rgba(214, 236, 255, 0.5), rgba(214, 236, 255, 0) 70%),
    radial-gradient(ellipse 40% 60% at 90% -10%, rgba(214, 236, 255, 0.45), rgba(214, 236, 255, 0) 70%),
    linear-gradient(180deg, #1B2D52 0%, #12223F 45%, #0E2C2B 100%); }
.hero.stadium::before { background: repeating-linear-gradient(90deg, #1F7044 0 90px, #1A6139 90px 180px); }
.hero .mc-tint { z-index: 0; }
.hero-text h1 { font-family: var(--display); }

@media (max-width: 820px) {
  .mc { font-size: 10.5px; min-width: 78%; }
}
/* Where the browser can measure the row (Chrome 105+), size card text from the card's real width. */
@supports (width: 1cqw) {
  .row-wrap { container-type: inline-size; }
  .mc { font-size: clamp(10px, calc((100cqw - 76px) / 84), 18px); }
  @media (max-width: 820px) { .mc { font-size: clamp(10px, calc(78cqw / 28), 15px); } }
}

/* TV: a slimmer menu so three match cards fit across a 960px-wide TV page. */
html.tv { --sidebar-width: 214px; }
html.tv .mc { min-width: 0; }
html.tv .nav { white-space: nowrap; }
html.tv .nav span { overflow: hidden; text-overflow: ellipsis; }
html.tv .mc-time { font-size: 1.25em; }
html.tv .mc-crest { width: 4em; height: 4em; }

/* Crests sit straight on the card: no white disc, just a soft shadow. Flags stay round with a faint edge. */
.mc-crest { width: 4.8em; height: 4.8em; background: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.mc-crest.logo { padding: 0; }
.mc-crest i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.mc-crest b { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
html.tv .mc-crest { width: 4.4em; height: 4.4em; }
.crest, .crest.logo { background: none; padding: 0; box-shadow: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.crest i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.crest b { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.hero .crest { opacity: 0.5; }

/* Stadium photo (app/img/stadium.webp, pre-blurred). app.js adds html.has-stadium once it has loaded;
   until then the drawn floodlights and pitch stand in. */
html.has-stadium .mc { background: #0E1A30 url("../img/stadium-card.webp") center 40% / cover no-repeat; }
html.has-stadium .hero.stadium { background: #0E1A30 url("../img/stadium.webp") center 40% / cover no-repeat; }
html.has-stadium .mc::before, html.has-stadium .hero.stadium::before { display: none; }
/* Over the team colours: a light top (floodlights), a darker bottom for the names, and a soft vignette. */
.mc::after, .hero.stadium::after {
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, rgba(7, 12, 24, 0) 55%, rgba(7, 12, 24, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 12, 24, 0.15) 0%, rgba(7, 12, 24, 0.05) 40%, rgba(7, 12, 24, 0.55) 100%);
}
/* A fine bright line along the top edge: the glass catching the light. */
.mc-body::before { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)); }

/* Match page header: big, solid crests either side of the score. */
/* Three columns (crest | text | crest), so the text can never run over a crest or flag. */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); place-items: center; column-gap: 2%; padding: 0 3%; }
.hero .crest { position: relative; left: auto; top: auto; transform: none; grid-row: 1; width: min(88%, 240px); height: auto; aspect-ratio: 1; opacity: 1; z-index: 2; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55)); }
.hero .crest.h { grid-column: 1; left: auto; }
.hero .crest.a { grid-column: 3; left: auto; }
.hero .hero-text { grid-column: 2; grid-row: 1; padding: 0; margin-top: 0; min-width: 0; }
.hero-text h1 { font-size: clamp(30px, 4.6vw, 72px); overflow-wrap: anywhere; }
.hero-kicker { margin-bottom: 8px; font-size: clamp(13px, 1.25vw, 18px); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.hero .crest img { width: 100%; height: 100%; object-fit: contain; }
.hero .crest i, .hero .crest b { width: 100%; height: 100%; }
/* The crest box is a plain block so a 100%-tall image is held to the box (in a grid it grew past it and covered the name). */
.mc-crest { display: block; }
/* Room inside the scrolling row for the selected card's ring and glow (the row clips anything outside it).
   The negative margins keep the cards exactly where they were on the page. */
.row, html.tv .row { padding: 18px 30px 30px 16px; margin: -12px 0 -16px -16px; }
.row, html.tv .row { scroll-padding: 0 30px 0 16px; } /* snap cards to the padding, not the clipped edge */
/* More room for the wider, softer halo (cards stay in place thanks to the matching negative margins). */
.row, html.tv .row { padding: 30px 34px 40px 30px; margin: -24px 0 -26px -30px; scroll-padding: 0 34px 0 30px; }

/* ------------------------------------------------------------- favourites panels */
.sheet-wrap { position: fixed; inset: 0; z-index: 55; background: rgba(3, 6, 14, 0.62); display: grid; place-items: center; padding: 24px; }
.sheet-wrap[hidden] { display: none; }
.sheet::-webkit-scrollbar { display: none; }
body.sheet-open { overflow: hidden; }
.sheet {
  width: min(640px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none;
  background: linear-gradient(180deg, #121B31, #0C1426); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); padding: 22px 22px 26px;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-size: 24px; }
.sheet-head .btn { background: var(--accent-grad); height: 38px; padding: 0 20px; }
.sheet-intro { margin: 8px 0 16px; font-size: 14px; color: var(--lead); line-height: 20px; }
.sheet-tabs { margin-bottom: 14px; }
.chip em, .sheet-tabs em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(5, 38, 32, 0.25); font-size: 12px; font-weight: 800; }
.chip:not(.on) em { background: var(--accent); color: var(--on-accent); }
.sheet-q { margin-bottom: 14px; }
.sheet-count { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile-team {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
}
.tile-team:hover { background: rgba(255, 255, 255, 0.08); }
.tile-team img { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.tile-team span { min-width: 0; display: flex; flex-direction: column; }
.tile-team b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-team small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-team.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 14px rgba(45, 212, 191, 0.25); }
.tile-team i { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.tile-team i svg { width: 12px; height: 12px; stroke-width: 2.4; }
.link-btn { margin-top: 16px; font-size: 14px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { opacity: 0.6; text-decoration: none; }
.comp-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.comp-list li { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 8px 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.comp-n { width: 22px; font-family: var(--display); font-weight: 700; color: var(--accent); }
.comp-name { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-list .icon-btn:disabled { opacity: 0.25; cursor: default; }
.chip.add { border-style: dashed; }
.chip.add small { color: var(--muted); margin-left: 4px; }
.row-star svg, .chip.fav svg { color: #FBBF24; fill: #FBBF24; }
.row-star { display: inline-flex; margin-right: 2px; }
@media (max-width: 600px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------- settings: grouped cards */
.page.set { max-width: 640px; }
.set-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--label); margin: 26px 0 10px; }
.set-label:first-child { margin-top: 6px; }
.set-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.set-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.05); min-width: 0;
}
.set-tile.wide { grid-column: 1 / -1; }
a.set-tile { margin-top: 0; }
.set-tile:hover { background: var(--surface-focused); }
.set-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.set-tile small { font-size: 13px; color: var(--muted); }
.set-tile b { font-size: 16px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-group { border-radius: 16px; background: var(--surface); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; }
.set-row + .set-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.set-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-row b { font-size: 15px; font-weight: 600; }
.set-row small { font-size: 13px; color: var(--muted); line-height: 18px; }
.set-input { max-width: 150px; height: 40px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.18); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible, html.tv .switch.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
html.tv .set-tile.is-focus, html.tv .tile-team.is-focus, html.tv .comp-list .icon-btn.is-focus, html.tv .link-btn.is-focus { box-shadow: 0 0 0 3px var(--accent); }

/* Corners: keep the photo inside the border (it showed through the translucent edge as a light halo)
   and calm the bright floodlights at the top corners. */
.mc { background-clip: padding-box; border-color: rgba(255, 255, 255, 0.12); }
html.has-stadium .mc { background-clip: padding-box; }
.mc::after {
  background:
    radial-gradient(ellipse 115% 105% at 50% 45%, rgba(7, 12, 24, 0) 52%, rgba(7, 12, 24, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 12, 24, 0.18) 0%, rgba(7, 12, 24, 0.05) 40%, rgba(7, 12, 24, 0.55) 100%);
  border-radius: inherit;
}
.mc-tint { border-radius: inherit; }

/* ------------------------------------------------------------- family sign-in (login code) */
body.signing-in .side, body.signing-in .main, body.signing-in .topbar { display: none; }
.signin { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #15284B 0%, #0A1224 55%, var(--bg) 100%); }
.signin-box { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.signin-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.signin-logo .logo-mark { width: 40px; height: 40px; }
.signin-logo .logo-text { font-size: 28px; }
.signin h1 { margin: 0; font-family: var(--display); font-size: 32px; }
.signin p { margin: 0; color: var(--lead); line-height: 22px; }
.code-input { height: 72px; width: 100%; text-align: center; font-family: var(--display); font-size: 38px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; border-radius: 16px; margin-top: 8px; }
.signin .btn { width: 100%; height: 52px; font-size: 17px; background: var(--accent-grad); }
.signin .err { min-height: 22px; }

/* ------------------------------------------------------------- Movies & Series: posters, rows, categories */
.media-page { padding-right: 30px; }
.media-page .toolbar .input { max-width: 420px; }
.media-row { margin: 8px 0 30px; }
.media-row h2 { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.poster-row { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 16px; overflow-x: auto; padding: 4px 4px 10px; margin: -4px -4px 0; scroll-snap-type: x proximity; scrollbar-width: thin; }
.poster-row .poster { scroll-snap-align: start; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.poster { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; }
.poster-img { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.poster-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-weight: 700; font-size: 14px; color: var(--lead); background: linear-gradient(160deg, #18243F, #0E1628); }
.poster:hover .poster-img, .poster:focus-visible .poster-img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 12px 26px rgba(0, 0, 0, 0.5); }
.poster:focus-visible { outline: none; }
.poster-name { margin-top: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-sub { margin-top: 2px; font-size: 12px; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat-tile { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 600; }
.cat-tile span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tile em { font-style: normal; font-size: 12px; color: var(--label); font-weight: 500; }
.cat-tile:hover, .cat-tile:focus-visible { background: var(--surface-focused); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.4); outline: none; }

/* ------------------------------------------------------------- one movie / one series */
.media-detail { max-width: 1100px; margin: 0 auto; padding-right: 30px; }
.m-hero { position: relative; aspect-ratio: 16 / 8.4; min-height: 300px; border-radius: 18px; overflow: hidden; background: #0E1628 center 25% / cover no-repeat; display: flex; align-items: flex-end; }
.m-hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7, 12, 24, 0.85) 0%, rgba(7, 12, 24, 0.45) 38%, rgba(7, 12, 24, 0) 65%),
  linear-gradient(0deg, rgba(7, 12, 24, 0.9) 0%, rgba(7, 12, 24, 0.25) 40%, rgba(7, 12, 24, 0) 65%); }
.m-hero-text { position: relative; padding: 0 40px 36px; max-width: 75%; }
.m-hero h1 { margin: 0 0 20px; font-family: var(--display); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; font-weight: 700; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5); overflow-wrap: anywhere; }
.m-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-play { height: 48px; padding: 0 26px; border-radius: 24px; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; background: var(--accent-grad); }
.m-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.m-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px; background: rgba(20, 28, 46, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-weight: 700; font-size: 15px; backdrop-filter: blur(6px); }
.m-ver { cursor: pointer; }
.m-ver select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 15px; }
.m-ver svg { width: 16px; height: 16px; }
.m-ver:hover, .m-ver:focus-within { background: rgba(32, 44, 70, 0.9); border-color: rgba(45, 212, 191, 0.5); }
.m-round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 28, 46, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; backdrop-filter: blur(6px); }
.m-round svg { width: 15px; height: 15px; fill: currentColor; stroke: none; margin-left: 2px; }
.m-round:hover, .m-round:focus-visible { background: rgba(32, 44, 70, 0.9); border-color: rgba(45, 212, 191, 0.5); outline: none; }
.m-info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; margin: 30px 0 34px; }
.m-meta { margin: 0 0 12px; font-size: 15px; color: var(--lead); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-badge { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: #fff; color: #0B1220; }
.m-plot { margin: 0; font-size: 16px; line-height: 26px; color: var(--text); }
.m-facts { margin: 0; }
.m-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.m-facts > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.m-facts dt { color: var(--label); }
.m-facts dd { margin: 0; color: var(--text); }
.cast { display: flex; flex-wrap: wrap; gap: 10px; }
.cast-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 22px; background: var(--surface); font-size: 14px; font-weight: 600; }
.cast-chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--on-accent); background: linear-gradient(135deg, #2DD4BF, #4ADE80); }
.episodes { display: flex; flex-direction: column; gap: 10px; }
.ep { display: flex; align-items: center; gap: 18px; width: 100%; padding: 8px; border-radius: 14px; background: var(--surface); text-align: left; border: 2px solid transparent; }
.ep:hover, .ep:focus-visible { background: var(--surface-focused); outline: none; border-color: rgba(45, 212, 191, 0.55); }
.ep.next { border-color: rgba(255, 255, 255, 0.85); }
.ep-img { position: relative; flex: none; width: 176px; aspect-ratio: 16 / 9; border-radius: 9px; background: #0E1628 center / cover no-repeat; display: grid; place-items: center; }
.ep-img b { font-family: var(--display); font-size: 22px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.ep-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 12px; }
.ep-name { font-size: 15px; font-weight: 700; }
.ep-sub { font-size: 12.5px; color: var(--label); }
.ep-plot { font-size: 13px; line-height: 19px; color: var(--lead); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trailer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(3, 6, 14, 0.85); backdrop-filter: blur(4px); padding: 24px; }
.trailer-box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.trailer-box iframe { width: 100%; height: 100%; border: 0; }
.trailer-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: #fff; }
@media (max-width: 900px) {
  .media-page, .media-detail { padding-right: 16px; }
  .m-hero { aspect-ratio: auto; min-height: 340px; }
  .m-hero-text { padding: 0 20px 22px; max-width: 100%; }
  .m-info { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .poster-row { grid-auto-columns: 124px; gap: 12px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .ep-img { width: 128px; }
  .ep-plot { display: none; }
}
html.tv .poster.is-focus .poster-img, html.tv .cat-tile.is-focus, html.tv .ep.is-focus, html.tv .m-ver.is-focus, html.tv .m-round.is-focus { box-shadow: 0 0 0 3px var(--accent); }

/* ------------------------------------------------------------- featured hero on Movies / Series */
.fhero { position: relative; display: flex; align-items: flex-end; gap: 32px; min-height: 460px; margin: 0 0 30px; padding: 40px 36px 34px; border-radius: 18px; overflow: hidden; background: #0B1324; isolation: isolate; }
.fhero-bg { position: absolute; inset: 0; z-index: -1; background: center 20% / cover no-repeat; animation: fhero-in 0.6s ease; }
.fhero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7, 12, 24, 0.94) 0%, rgba(7, 12, 24, 0.7) 34%, rgba(7, 12, 24, 0.15) 64%, rgba(7, 12, 24, 0.45) 100%),
  linear-gradient(0deg, rgba(7, 12, 24, 0.85) 0%, rgba(7, 12, 24, 0) 45%); }
@keyframes fhero-in { from { opacity: 0.25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fhero-bg { animation: none; } }
.fhero-text { flex: 1; min-width: 0; max-width: 620px; }
.fhero-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12px; color: var(--lead); }
.fhero-kicker b { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.fhero h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 700; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5); overflow-wrap: anywhere; }
.fhero h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fhero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; color: var(--lead); }
.fhero-plot { margin: 0 0 20px; font-size: 15px; line-height: 23px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 23px; }
.fhero .m-pill { cursor: pointer; }
.fhero .m-pill svg { width: 17px; height: 17px; }
.m-list.on { border-color: rgba(45, 212, 191, 0.6); color: var(--accent); }
.m-round.m-list svg, .m-pill.m-list svg { fill: none; stroke: currentColor; stroke-width: 2; margin: 0; }
.fhero-side { flex: none; width: 236px; display: flex; flex-direction: column; gap: 12px; }
.fhero-poster { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
.fhero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fhero-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fhero-thumb { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface); opacity: 0.55; border: 2px solid transparent; padding: 0; transition: opacity 0.15s; }
.fhero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fhero-thumb:hover, .fhero-thumb:focus-visible { opacity: 0.9; outline: none; }
.fhero-thumb.on { opacity: 1; border-color: #fff; }
@media (max-width: 900px) {
  .fhero { min-height: 380px; padding: 24px 20px; }
  .fhero-side { display: none; }
}
html.tv .fhero-thumb.is-focus, html.tv .m-list.is-focus { box-shadow: 0 0 0 3px var(--accent); opacity: 1; }

/* Title logos (TMDB) in place of the text title */
.t-logo { display: block; max-width: min(460px, 100%); max-height: 150px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55)); }
h1.has-logo { line-height: 0; }
h1.has-logo a:hover { text-decoration: none; }
.fhero h1.has-logo { margin-bottom: 18px; }
@media (max-width: 900px) { .t-logo { max-height: 100px; max-width: 80%; } }

/* TMDB credit at the foot of Movies / Series pages */
.credit-tmdb { display: flex; align-items: center; gap: 14px; margin: 34px 0 10px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); max-width: 640px; }
.credit-tmdb p { margin: 0; font-size: 12px; line-height: 18px; color: var(--label); }
.tmdb-mark { flex: none; display: grid; place-items: center; }
.tmdb-mark img { display: block; height: 18px; width: auto; }
.tmdb-mark b { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: #0D253F; background: linear-gradient(90deg, #90CEA1, #01B4E4); }

/* Poster rows: no scrollbar; arrows appear on hover (TV remotes and keyboards move by focus instead). */
.poster-row { scrollbar-width: none; }
.poster-row::-webkit-scrollbar { display: none; }
.row-wrap { position: relative; }
.row-arrow { position: absolute; top: 4px; bottom: 54px; z-index: 3; width: 46px; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity 0.15s; }
.row-arrow svg { width: 26px; height: 26px; stroke-width: 2.4; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)); }
.row-arrow.prev { left: -4px; background: linear-gradient(90deg, rgba(7, 12, 24, 0.9), rgba(7, 12, 24, 0)); }
.row-arrow.prev svg { transform: rotate(180deg); }
.row-arrow.next { right: -4px; background: linear-gradient(270deg, rgba(7, 12, 24, 0.9), rgba(7, 12, 24, 0)); }
.row-wrap:hover .row-arrow { opacity: 1; }
@media (hover: none) { .row-arrow { display: none; } }
html.tv .row-arrow { display: none; }
.media-row h2 small { margin-left: 8px; font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 500; color: var(--label); }
/* Top 10: a big outlined number tucked behind each poster */
.poster-row.top10 { grid-auto-columns: 222px; gap: 12px; }
.t10 { display: flex; align-items: flex-start; min-width: 0; }
.t10-n { flex: none; width: 76px; margin-right: -14px; font-family: var(--display); font-size: 150px; font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; text-align: right; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.28); user-select: none; }
.t10 .poster { flex: 1; min-width: 0; position: relative; }
@media (max-width: 900px) { .poster-row.top10 { grid-auto-columns: 176px; } .t10-n { width: 58px; font-size: 112px; } }
/* Page scrollbar: thin and dark rather than the bright default */
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }

/* While a title's logo is downloading, its text keeps the space but stays invisible (no text-then-logo jump). */
.t-wait { visibility: hidden; }
.poster-row.top10 .poster { scroll-snap-align: none; }
.t10 { scroll-snap-align: start; }

/* ------------------------------------------------------------- featured hero, take 2 (matched to Couchside's proportions)
   Edge to edge across the page (no card), backdrop fading into the page top and bottom, a 640px text column at the
   bottom left, and a 240x360 poster with small thumbnails at the right. */
.fhero { min-height: 580px; margin: -6px -30px 34px -26px; padding: 56px 36px 32px; border-radius: 0; gap: 48px; align-items: flex-end; background: transparent; overflow: hidden; }
.fhero-bg { background-position: 50% 25%; }
.fhero-bg::after { background:
  linear-gradient(180deg, #070C18 0%, rgba(7, 12, 24, 0.6) 9%, rgba(7, 12, 24, 0) 24%),
  linear-gradient(0deg, #070C18 0%, rgba(7, 12, 24, 0.25) 55%, rgba(7, 12, 24, 0.35) 100%),
  linear-gradient(90deg, rgba(7, 12, 24, 0.78), rgba(7, 12, 24, 0) 60%); }
.fhero-text { max-width: 640px; }
.fhero-kicker { margin: 0 0 16px; font-size: 14px; color: #A9AEB8; gap: 10px; }
.fhero-kicker b { display: inline-block; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: #F4F5F7; }
.fhero h1 { margin: 0 0 16px; font-family: "Roboto Condensed", "Arial Narrow", var(--display); font-size: clamp(48px, 5.6vw, 92px); font-weight: 800; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.005em; color: #F4F5F7; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.fhero h1.has-logo { margin-bottom: 20px; }
.fhero .t-logo { max-width: min(560px, 100%); max-height: 170px; }
.fhero-meta { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: #C9CDD4; }
.fhero-plot { margin: 0 0 26px; max-width: 560px; font-size: 17px; line-height: 26px; color: #DFE2E7; }
.fhero .m-actions { gap: 12px; }
.fhero .m-play, .fhero .m-pill { height: 52px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 800; }
.fhero .m-pill { background: rgba(255, 255, 255, 0.12); border: 0; backdrop-filter: blur(8px); }
.fhero .m-pill:hover, .fhero .m-pill:focus-visible { background: rgba(255, 255, 255, 0.2); outline: none; }
.fhero .m-list.on { background: rgba(45, 212, 191, 0.18); color: var(--accent); }
.fhero-side { width: auto; display: grid; gap: 16px; justify-items: end; }
.fhero-poster { width: 240px; height: 360px; aspect-ratio: auto; border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9); }
.fhero-thumbs { display: flex; gap: 8px; justify-content: flex-end; }
.fhero-thumb { flex: none; width: 44px; height: 62px; aspect-ratio: auto; border-radius: 8px; opacity: 0.55; }
.fhero-thumb.on { opacity: 1; border-color: #F4F5F7; }
@media (max-width: 1100px) { .fhero-side { display: none; } }
@media (max-width: 900px) {
  .fhero { min-height: 460px; margin: -6px -16px 26px -16px; padding: 40px 16px 24px; }
  .fhero .t-logo { max-height: 110px; max-width: 85%; }
}
/* The Top 10 row starts at #1: no snapping there (snapping pulled the first poster to the edge and hid its number). */
.poster-row.top10 { scroll-snap-type: none; }
.fhero-side { margin-left: auto; }

/* Top 10 numbers, cleaner: each number gets its own space beside its poster (nothing hidden behind the poster,
   so "10" reads in full), sits on the same line as the poster bottom, with a slightly brighter outline. */
.poster-row.top10 { grid-auto-columns: max-content; gap: 18px; }
.t10 { align-items: flex-start; gap: 6px; }
.t10-n { width: auto; margin: 0; padding-top: 118px; font-size: 132px; line-height: 0.82; letter-spacing: -0.07em; text-align: right; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.34); }
.t10 .poster { flex: none; width: 150px; }
@media (max-width: 900px) { .t10-n { padding-top: 92px; font-size: 104px; } .t10 .poster { width: 120px; } }

/* Other sports: event cards (a Grand Prix, a UFC card, a golf or tennis tournament) */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding-right: 30px; margin-bottom: 8px; }
.ev-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(160deg, #15213B, #0E1628); border: 1px solid rgba(255, 255, 255, 0.06); min-height: 120px; }
.ev-league { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.ev-name { font-size: 16px; line-height: 21px; }
.ev-when { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.ev-venue { font-size: 12px; color: var(--label); }

.ev-chs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ev-ch { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255, 255, 255, 0.08); font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-ch svg { width: 10px; height: 10px; fill: currentColor; stroke: none; flex: none; }
.ev-ch:hover, .ev-ch:focus-visible { background: var(--selected); outline: none; box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.5); }

/* Event cards (a Grand Prix session, a golf round, a fight night, a tournament), sized like match cards */
.ec { position: relative; display: flex; flex-direction: column; flex: none; width: calc((100% - 40px) / 3); min-width: 280px; aspect-ratio: 445 / 250; border-radius: 20px; overflow: hidden; text-align: left; color: var(--text); background: #111A30; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42); scroll-snap-align: start; transition: box-shadow 0.15s, border-color 0.15s; font-size: clamp(10px, calc((100cqw - 76px) / 84), 18px); }
.ec-top { position: relative; flex: 0 0 48%; display: flex; align-items: flex-start; justify-content: space-between; padding: 0.9em 1em; background:
  radial-gradient(ellipse 70% 120% at 85% 120%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%),
  linear-gradient(135deg, var(--ec) 0%, color-mix(in srgb, var(--ec) 65%, #000) 100%); }
.ec-badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0.7em; border-radius: 999px; background: rgba(5, 8, 16, 0.55); backdrop-filter: blur(6px); font-size: 0.72em; font-weight: 800; letter-spacing: 0.06em; color: #fff; white-space: nowrap; }
.ec-badge.live { background: rgba(200, 16, 46, 0.9); }
.ec-logo { position: absolute; right: 1em; bottom: -1.5em; width: 3.6em; height: 3.6em; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
.ec-logo img { width: 72%; height: 72%; object-fit: contain; }
.ec-logo b { color: #0B1220; font-size: 1.1em; }
.ec-body { flex: 1; display: flex; flex-direction: column; gap: 0.25em; padding: 0.9em 5em 0.9em 1em; min-width: 0; }
.ec-name { font-size: 1.15em; line-height: 1.2; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-sub { font-size: 0.88em; color: var(--lead); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-meta { margin-top: auto; font-size: 0.78em; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec:hover, .ec:focus-visible { border-color: rgba(45, 212, 191, 0.6); box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.5), 0 18px 40px rgba(0, 0, 0, 0.5); outline: none; }
@media (max-width: 820px) { .ec { min-width: 78%; font-size: 10.5px; } }
html.tv .ec.is-focus { box-shadow: 0 0 0 3px var(--accent); }
.chip.extra:not(.on) { color: var(--label); }

/* "SportsHub has been updated" */
.update-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: #15213B; border: 1px solid rgba(45, 212, 191, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 14px; font-weight: 600; }
.update-bar .btn.small { height: 34px; padding: 0 16px; border-radius: 17px; }
.update-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--label); }
.update-x:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* Event cards: the competition colour over the same stadium photo the match cards use. */
.ec-top { flex-basis: 54%; background:
  linear-gradient(135deg, color-mix(in srgb, var(--ec) 82%, transparent) 0%, color-mix(in srgb, var(--ec) 52%, transparent) 100%),
  linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.25)),
  #0E1A30 url("../img/stadium-card.webp") center 40% / cover no-repeat; }
.ec-body { background: linear-gradient(180deg, #131D35, #0F172B); }
.mc-date { display: block; margin-bottom: 0.15em; font-family: Inter, system-ui, sans-serif; font-size: 0.42em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); text-align: center; }
.mc-time.with-day { text-align: center; }

/* Match page: one card per channel, a button per copy (4K, RAW, HD, SD, HEVC) */
.ch-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ch-group { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.05); }
.ch-group.top { border-color: rgba(45, 212, 191, 0.45); background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), var(--surface)); }
.ch-group .ch-logo { flex: none; }
.chg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.chg-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chg-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--label); min-width: 0; }
.chg-sub .why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.q-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); font-size: 12px; font-weight: 700; color: var(--text); }
.q-pill svg { width: 9px; height: 9px; fill: currentColor; stroke: none; }
.q-pill:hover, .q-pill:focus-visible { border-color: rgba(45, 212, 191, 0.6); background: var(--selected); outline: none; }
.q-pill.best { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
html.tv .q-pill.is-focus { box-shadow: 0 0 0 3px var(--accent); }
.q-more { align-self: center; font-size: 12px; color: var(--label); padding: 0 4px; }

/* Goal Rush tile: Premier League purple and green */
.ec.goal-rush .ec-top { background:
  linear-gradient(135deg, rgba(61, 25, 91, 0.9) 0%, rgba(61, 25, 91, 0.65) 100%),
  #0E1A30 url("../img/stadium-card.webp") center 40% / cover no-repeat; }
.ec.goal-rush .ec-name { font-size: 1.3em; }
.ec.goal-rush .ec-top { flex: 1 1 100%; }
.ec.goal-rush .gr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74%; max-height: 62%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.gr-title { line-height: 0; margin: 6px 0 12px !important; }
.gr-title img { width: min(360px, 70vw); height: auto; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55)); }

/* ------------------------------------------------------------- player: full screen, Couchside-style */
.player { position: fixed; inset: 0; z-index: 60; background: #000; }
.player[hidden] { display: none; }
.pl { --pad-x: max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); position: absolute; inset: 0; overflow: hidden; background: #000;
  user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; outline: none; font-family: Inter, system-ui, sans-serif; }
.pl.idle { cursor: none; }
.pl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl video.fill { object-fit: cover; }
.pl-surface { position: absolute; inset: 0; }
.pl button { font: inherit; color: inherit; cursor: pointer; }
.pl svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pl-top, .pl-bottom { position: absolute; left: 0; right: 0; transition: opacity 0.25s; z-index: 2; }
.pl.idle .pl-top, .pl.idle .pl-bottom { opacity: 0; pointer-events: none; }
.pl-top { top: 0; display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) var(--pad-x) 28px calc(var(--pad-x) - 18px);
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.pl-title { margin: 0 auto 0 0; min-width: 0; display: grid; font-weight: 700; font-size: 16px; }
.pl-title, .pl-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title small { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.78); }
.pl-stream { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: 14px; white-space: nowrap; }
.pl .muted { color: rgba(255, 255, 255, 0.72); }
.pl-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.pl-label .t, .pk-top .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .cc { flex: none; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.16); font-size: 0.68em; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; color: var(--text); }

.pl-bottom { bottom: 0; display: grid; gap: 6px; padding: 40px var(--pad-x) max(10px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)); }
.pl-bar { display: flex; align-items: center; gap: 4px; margin: 0 -14px 0 -14px; }
.pl-grow { flex: 1; }
.pl-icon { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; transition: background 0.15s, transform 0.1s; }
.pl-icon.sm { width: 32px; height: 32px; margin-left: auto; }
.pl-icon.sm svg { width: 20px; height: 20px; }
.pl-icon:hover, .pl-icon:focus-visible, html.tv .pl-icon.is-focus:focus { background: rgba(255, 255, 255, 0.14); outline: none; }
.pl-icon:active, .pl-pill:active { transform: scale(0.92); }
.pl-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.15s, transform 0.1s; }
.pl-pill svg { width: 18px; height: 18px; }
.pl-pill:hover, .pl-pill:focus-visible, html.tv .pl-pill.is-focus:focus { background: rgba(255, 255, 255, 0.22); outline: none; }
.pl-live { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: #fff; }
.pl-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.pl-live:focus-visible, html.tv .pl-live.is-focus:focus { background: rgba(255, 255, 255, 0.14); outline: none; }
.pl-volume { display: flex; align-items: center; }
.pl input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255, 255, 255, 0.28) var(--p, 100%)); }
.pl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.pl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.pl-vol { width: 72px; margin: 0 8px 0 2px !important; }
.pl-seek { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-scrub { flex: 1; --p: 0%; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, 0.28) var(--p)) !important; }
@media (pointer: coarse) { .pl-vol { display: none; } }

/* connecting / failed */
.pl-spin { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none; text-align: center; padding: 24px; }
.pl-spin[hidden] { display: none; }
.pl-spin .spinner { width: 42px; height: 42px; box-shadow: 0 0 0 8px rgba(10, 11, 13, 0.6); background: rgba(10, 11, 13, 0.6); }
.pl-spin #player-status-text { max-width: 36em; padding: 8px 14px; border-radius: 12px; background: rgba(10, 11, 13, 0.75); font-weight: 600; color: #C9CDD4; }
.pl-spin.failed { background: rgba(7, 8, 10, 0.85); pointer-events: auto; z-index: 3; }
.pl-spin.failed .spinner { display: none; }
.pl-spin.failed #player-status-text { background: none; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 15px; line-height: 22px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seek-pop { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 14px 20px; border-radius: 999px;
  background: rgba(10, 11, 13, 0.6); backdrop-filter: blur(8px); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.seek-pop[hidden] { display: none; }

/* the Streams list */
.pl-picker { position: absolute; z-index: 4; top: 76px; bottom: 96px; right: var(--pad-x); width: min(440px, 100% - 32px); display: grid; align-content: start; gap: 6px;
  padding: 0 14px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 16px;
  background: rgba(12, 13, 16, 0.94); backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.pl-picker::-webkit-scrollbar { display: none; }
.pl-picker[hidden] { display: none; }
.pk-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0 -14px; padding: 14px 14px 8px 20px; background: rgb(12, 13, 16); font-weight: 800; }
.pk-row { position: relative; display: grid; gap: 8px; min-width: 0; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); transition: background 0.15s; }
.pk-row.on, .pk-row:hover { background: #1B1E25; }
.pk-row.now { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.4); }
.pk-main { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font-size: 15px; font-weight: 600; }
.pk-main::after { content: ""; position: absolute; inset: 0; }
.pk-main small { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pk-chips { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s, color 0.15s; }
.pk-chip svg { width: 10px; height: 10px; fill: currentColor; stroke: none; opacity: 0.7; }
.pk-chip:hover, .pk-chip.pick { border-color: var(--accent); background: rgba(255, 255, 255, 0.12); }
.pk-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pl-eq { display: inline-flex; align-items: flex-end; gap: 1.5px; width: 10px; height: 9px; }
.pl-eq i { flex: 1; height: 100%; border-radius: 1px; background: currentColor; transform-origin: center bottom; animation: pl-eq 1s ease-in-out infinite; }
.pl-eq i:nth-child(2) { animation-delay: -0.35s; }
.pl-eq i:nth-child(3) { animation-delay: -0.7s; }
@keyframes pl-eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .pl-eq i { animation: none; } }

@media (max-width: 600px) {
  .pl-stream, .pl-pill span { display: none; }
  .pl-pill { padding: 0 12px; }
  .pl-picker { inset: auto 0 0; width: auto; max-height: 70%; border-radius: 18px 18px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) {
  .pl-top { padding-bottom: 16px; }
  .pl-bottom { padding-top: 24px; }
  .pl-picker { top: 12px; bottom: 12px; }
}
html.tv .pl { --pad-x: var(--tv-x, 48px); }
html.tv .pl-title { font-size: 20px; }
svg.ic.fill { fill: currentColor; stroke: none; }

/* Settings: Competitions per sport, Commentary languages, account */
.sheet-gap { height: 14px; }
.sheet-tabs.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px 0 6px; }
.sheet-tabs.scroll::-webkit-scrollbar { display: none; }
.sheet-tabs.scroll .chip { flex: none; }
.sheet-tabs .chip svg.ic { width: 17px; height: 17px; }
.sheet-q[hidden] { display: none; }
.comp-head { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 2px 10px; }
.comp-head span { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.comp-head small { font-size: 12px; color: var(--label); }
.comp-drag { display: grid; place-items: center; width: 22px; height: 34px; color: var(--label); cursor: grab; touch-action: none; flex: none; }
.comp-drag svg.ic { width: 16px; height: 16px; }
.comp-list li.dragging { background: rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); cursor: grabbing; }
.comp-list .tv-only { display: none; }
html.tv .comp-list .tv-only { display: grid; }
html.tv .comp-drag { display: none; }
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lang-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 16px;
  border-radius: 12px; border: 1.5px solid transparent; background: rgba(255, 255, 255, 0.05); text-align: left; color: var(--text); }
.lang-tile b { font-size: 16px; }
.lang-tile small { font-size: 12px; color: var(--muted); }
.lang-tile:hover { background: rgba(255, 255, 255, 0.08); }
.lang-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.lang-tile i { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 12px; font-weight: 800; }
.lang-tile.more { border: 1.5px dashed rgba(255, 255, 255, 0.18); background: none; color: var(--muted); font-weight: 600; justify-content: center; align-items: center; }
html.tv .lang-tile:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); }
@media (max-width: 600px) { .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.set-account { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.set-account .set-ic { margin: 0; }
.set-acc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btn.small { height: 34px; padding: 0 16px; font-size: 13px; }
.set-tile.set-account { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; min-height: 0; padding: 14px 18px; }

/* Favourite channels: a star on each channel row (match page and the player's Streams list) */
.ch-star, .pk-star { margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--label); background: none; border: 0; cursor: pointer; }
.ch-star svg.ic, .pk-star svg.ic { width: 18px; height: 18px; }
.ch-star:hover, .pk-star:hover, .ch-star:focus-visible, .pk-star:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.08); outline: none; }
.ch-star.on, .pk-star.on { color: #FACC15; }
.ch-star.on svg.ic, .pk-star.on svg.ic { fill: currentColor; }
.pk-star { position: absolute; top: 6px; right: 6px; z-index: 1; }
.pk-row.starrable .pk-main { padding-right: 34px; }
.tagc.last { background: var(--accent-soft); color: var(--accent-ink); }
html.tv .ch-star:is(:focus, .is-focus), html.tv .pk-star:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); }

/* The player on a match page: in place of the header, 16:9, with the same controls */
.match-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 4px; }
.player.inline { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.player.inline .pl { --pad-x: 18px; }
.player.inline .pl-title { font-size: 15px; }
.player.inline .pl-picker { top: 12px; bottom: 64px; right: 12px; width: min(380px, 100% - 24px); }
.player.inline:fullscreen .pl { --pad-x: max(24px, env(safe-area-inset-left)); }
.player.inline:fullscreen .pl-picker { top: 76px; bottom: 96px; right: var(--pad-x); width: min(440px, 100% - 32px); }
.ch-group.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Curated Live TV */
.lu-chips { margin: 4px 0 18px; }
.lu-chips .chip.rush { background: linear-gradient(90deg, #3D195B, #00A86B); border-color: transparent; color: #fff; }
.lu-card .chg-head { gap: 8px; }
.lu-card .chg-main { flex: 1; min-width: 0; }
.lu-fav { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: -4px -6px 0 0; border-radius: 50%; color: var(--muted); }
.lu-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lu-fav:hover, .lu-fav:focus-visible { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.lu-fav.on { color: #FBBF24; }
.lu-fav.on svg { fill: #FBBF24; stroke: #FBBF24; }
.chip.fav svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.lu-no { flex: none; min-width: 34px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 800; text-align: center; color: var(--lead); font-variant-numeric: tabular-nums; }
.lu-now { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); min-width: 0; }
.lu-now .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-bar { flex: none; width: 70px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.lu-bar i { display: block; height: 100%; background: var(--accent); }
.lu-next { font-size: 12px; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Watch on TV: getting the app */
.tv-app .dl-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.tv-app .dl-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tv-app .dl-value { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; word-break: break-all; }
.tv-app .dl-card.code .dl-value { font-size: 26px; letter-spacing: 0.08em; }
.tv-app .dl-card.mine { border-color: var(--accent); background: var(--accent-soft); margin-bottom: 22px; }
.tv-app .dl-note { font-size: 13px; color: var(--lead); margin-top: 6px; }
.tv-app .dl-btn { display: inline-flex; align-items: center; text-decoration: none; margin: 4px 0 14px; }
.tv-app .dl-how { margin: 6px 0 18px; }
.tv-app .dl-how summary { color: var(--accent-ink); cursor: pointer; font-size: 15px; padding: 6px 0; }
.tv-app .dl-how ol { color: var(--lead); font-size: 15px; line-height: 23px; padding-left: 22px; margin: 10px 0 12px; }
.tv-app .dl-how li { margin-bottom: 8px; }
.tv-app .dl-alt { color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

/* Android app: the video is drawn by the app behind the page (js/native.js), so the page is see-through where it
   is. html.nv: a video is showing; body.nv-full: the player covers the screen, so nothing else is drawn under it. */
html.nv, html.nv body, html.nv .match-stage, html.nv .player, html.nv .pl, html.nv .pl video.native { background: transparent !important; }
.pl video.native { opacity: 0; } /* the app draws the picture; the WebView would paint its grey "play" placeholder here */
html.nv body.nv-full { visibility: hidden; }
html.nv body.nv-full #player, html.nv body.nv-full .toast, html.nv body.nv-full #sheet { visibility: visible; }
#player.fake-full { position: fixed; inset: 0; z-index: 60; border-radius: 0; }

/* TV: keep each frame cheap to draw. A TV draws 1920×1080 every frame, often on a modest chip, so:
   - the page's glow sits on its own fixed layer instead of a "fixed" background that is repainted on every scroll;
   - no backdrop blurs (each one re-blurs what's behind it on every frame) and no transitions (focus moves instantly,
     as in native TV apps); focus rings are solid, without soft shadows. */
html.tv { background: var(--bg); }
html.tv body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; will-change: transform;
  background: radial-gradient(ellipse 85% 75% at 72% -15%, rgba(22, 40, 76, 0.75) 0%, rgba(14, 26, 50, 0.4) 40%, rgba(7, 12, 24, 0) 78%); }
html.tv *, html.tv *::before, html.tv *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transition: none !important; }
html.tv .card:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); }
html.tv .pl-picker { box-shadow: none; }
html.nv body::before { display: none; } /* would sit over the app's picture */
.media-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 0; }

/* ------------------------------------------------------------- Streams shelf (Down in the player, as Couchside does)
   Slides up over the bottom of the picture: a row of stream cards, then a row of other games on now. */
.pl .pl-picker { position: absolute; z-index: 4; inset: auto 0 0 0; top: auto; width: auto; max-height: none; overflow: visible; display: grid; gap: 14px;
  padding: 70px 0 max(22px, env(safe-area-inset-bottom)); border-radius: 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.94)); box-shadow: none; }
.pl .pl-picker[hidden] { display: none; }
.pl.shelf .pl-bottom { opacity: 0; pointer-events: none; }
.sh-sec h2 { margin: 0 0 8px; padding: 0 var(--pad-x); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.sh-sec h2 span { margin-left: 6px; color: rgba(255, 255, 255, 0.45); }
.sh-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px var(--pad-x) 6px; scrollbar-width: none; }
.sh-row::-webkit-scrollbar { display: none; }
.sh-card { position: relative; flex: none; width: 232px; display: grid; align-content: start; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, 0.09); color: #F4F7FB; text-align: left; }
.sh-main { display: grid; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.sh-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sh-top { display: flex; align-items: center; gap: 6px; min-height: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; }
.sh-top .cc { margin-left: auto; font-style: normal; }
.sh-fav { font-style: normal; color: #FACC15; }
.sh-name { font-size: 17px; line-height: 21px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-card small { min-height: 15px; font-size: 12px; color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #EF4444; }
.sh-card.now { box-shadow: inset 0 0 0 2px var(--accent); }
.sh-card.now .sh-top { color: var(--accent); }
.sh-vers { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-ver { padding: 4px 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.12); color: inherit; font-size: 12px; font-weight: 700; }
.sh-ver.on { background: var(--accent); color: var(--on-accent); }
/* The card the remote is on: white, like the focused card on the rest of the TV app's big screens. */
.sh-card.pick, html:not(.tv) .sh-card:hover { background: #F4F7FB; color: #0B0F18; }
.sh-card.pick .sh-top, .sh-card.pick small, html:not(.tv) .sh-card:hover .sh-top, html:not(.tv) .sh-card:hover small { color: rgba(11, 15, 24, 0.65); }
.sh-card.pick .sh-ver:not(.on), html:not(.tv) .sh-card:hover .sh-ver:not(.on) { background: rgba(11, 15, 24, 0.1); }
.sh-card.open { box-shadow: inset 0 0 0 2px #F4F7FB; background: rgba(255, 255, 255, 0.16); }
.sh-ver.pick { box-shadow: 0 0 0 2px #F4F7FB; background: #F4F7FB; color: #0B0F18; }
@media (max-width: 700px) { .sh-card { width: 180px; } .sh-name { font-size: 15px; } }

/* TV: a shorter featured hero on Movies and Series, so the Top 10 shows below it without scrolling. */
html.tv .fhero { min-height: 0; height: auto; margin: -6px -30px 10px -26px; padding: 20px 30px 18px; gap: 28px; }
html.tv .fhero h1 { margin-bottom: 8px; font-size: 40px; }
html.tv .fhero h1.has-logo { margin-bottom: 12px; }
html.tv .fhero .t-logo { max-height: 72px; max-width: 340px; }
html.tv .fhero-kicker { margin-bottom: 10px; font-size: 12px; }
html.tv .fhero-meta { margin-bottom: 8px; font-size: 13px; }
html.tv .fhero-plot { margin-bottom: 14px; font-size: 14px; line-height: 20px; -webkit-line-clamp: 2; }
html.tv .fhero .m-play, html.tv .fhero .m-pill { height: 40px; padding: 0 18px; font-size: 14px; }
html.tv .fhero-poster { width: 140px; height: 210px; }
html.tv .fhero-thumbs { display: none; }
.sh-vers { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
.sh-vers::-webkit-scrollbar { display: none; }
.sh-ver { flex: none; }
.sh-card.pick .cc { background: rgba(11, 15, 24, 0.12); color: #0B0F18; }
.pl.shelf .player-status .row-btns { display: none; }
/* A grid item grows to fit its content unless told otherwise, so without this a row of cards ran off the screen
   instead of scrolling to follow the remote. */
.pl .pl-picker { grid-template-columns: minmax(0, 1fr); }
.sh-sec, .sh-row, .sh-card { min-width: 0; }

/* TV: no soft (blurred) shadows or drop-shadow filters. Fire TV's WebView draws at the panel's full 4K, where each
   blurred shadow and filter is redrawn on every focus move: they made frames take 85 ms instead of 21 ms on a Fire TV
   Cube. Focus keeps a solid ring. */
html.tv .mc, html.tv .mc.live, html.tv .row-more, html.tv .ec, html.tv .tile-team.on, html.tv .mc-min i, html.tv .mc-progress { box-shadow: none; }
html.tv .mc:is(:focus-visible, .is-focus) { box-shadow: none; }
html.tv .nav.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
html.tv .card:is(:focus, .is-focus) { box-shadow: 0 0 0 3px var(--accent); }
html.tv .mc-crest, html.tv .crest, html.tv .crest.logo, html.tv .hero .crest, html.tv .tile-team img, html.tv .t-logo,
html.tv .row-arrow svg, html.tv .ec.goal-rush .gr-logo, html.tv .gr-title img { filter: none; }
/* TV: four match cards across (Couchside-sized), not three. */
html.tv .mc, html.tv .ec { width: calc((100% - 40px) / 3.25); } /* three across, the next one peeking in (as SmartTube) */

/* ------------------------------------------------------------- TV guide (Live TV on a TV; js/app.js guidePage)
   The highlighted programme's details, then a grid of channels and the next two hours. Flat colours, no shadows or
   blurs: it's redrawn on every key press. */
.eg { --eg-ch: 230px; display: grid; gap: 10px; padding-right: var(--tv-x, 30px); }
.eg-info { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 24px; height: 150px; }
.eg-info-text { min-width: 0; display: flex; flex-direction: column; }
.eg-chline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted, #9AA4B2); }
.eg-chline b { color: var(--text); font-weight: 700; }
.eg-no { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 700; color: var(--text); }
.eg-star { display: inline-flex; color: #FACC15; }
.eg-star svg { width: 13px; height: 13px; fill: currentColor; }
.eg-info h2 { margin: 6px 0 4px; font-size: 26px; line-height: 31px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-when { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.eg-bar { width: 120px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.eg-bar i { display: block; height: 100%; background: var(--accent); }
.eg-desc { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: rgba(244, 247, 251, 0.75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eg-next { margin-top: auto; font-size: 12px; color: var(--muted, #9AA4B2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-preview { position: relative; display: grid; place-items: center; border-radius: 12px; background: #0E1628; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.eg-biglogo { width: 150px; height: 84px; background: center / contain no-repeat; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: rgba(255, 255, 255, 0.5); }
.eg-hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.eg-tools { display: flex; align-items: center; gap: 10px; }
.eg-groupbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; }
.eg-groupbtn svg { width: 16px; height: 16px; }
.eg-groupbtn small { color: var(--muted, #9AA4B2); font-weight: 600; }
.eg-search.input { height: 36px; width: 260px; padding: 0 12px; font-size: 14px; }
.eg-grid { position: relative; outline: none; border-radius: 12px; }
.eg-ruler { display: flex; height: 22px; }
.eg-rulerpad { flex: none; width: var(--eg-ch); }
.eg-times { position: relative; flex: 1; }
.eg-times span { position: absolute; top: 2px; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 600; color: var(--muted, #9AA4B2); }
.eg-rows { position: relative; }
.eg-row { display: flex; height: 52px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.eg-ch { flex: none; width: var(--eg-ch); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; min-width: 0; }
.eg-ch b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-logo { flex: none; width: 48px; height: 30px; background: center / contain no-repeat; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.5); }
.eg-line { position: relative; flex: 1; min-width: 0; }
.eg-p { position: absolute; top: 4px; bottom: 4px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05);
  box-shadow: inset -2px 0 0 #070C18; overflow: hidden; font-size: 13px; color: rgba(244, 247, 251, 0.82); }
.eg-p b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-p.live { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.eg-p.none { color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.03); }
.eg-row.on .eg-ch { background: rgba(255, 255, 255, 0.06); border-radius: 8px; }
.eg-row.on .eg-ch b { color: var(--text); font-weight: 800; }
.eg-grid:focus .eg-p.pick, .eg-grid.is-focus .eg-p.pick { background: #F4F7FB; color: #0B0F18; }
.eg-p.pick { background: rgba(45, 212, 191, 0.25); color: var(--text); }
.eg-nowline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.eg-panel { position: absolute; z-index: 5; left: 0; top: 0; bottom: 0; width: 300px; overflow-y: auto; scrollbar-width: none; padding: 8px; border-radius: 12px; background: #0E1628; border: 1px solid rgba(255, 255, 255, 0.12); }
.eg-panel::-webkit-scrollbar { display: none; }
.eg-g { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: rgba(244, 247, 251, 0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-g svg { width: 15px; height: 15px; fill: #FACC15; stroke: none; }
.eg-g.on { color: var(--accent-ink); }
.eg-g.pick { background: #F4F7FB; color: #0B0F18; }
/* Top 10: the place in a small badge on the poster's corner (instead of big outlined numbers beside it). */
.poster-rank { position: absolute; z-index: 2; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center;
  border-radius: 7px; background: rgba(7, 12, 24, 0.82); border: 1px solid rgba(255, 255, 255, 0.18); color: #F4F7FB; font: 800 14px/1 var(--display, inherit); }
html.tv .poster-img { box-shadow: none; } /* a soft shadow per poster is costly at 4K (see the TV shadow rule above) */

/* TV: the side menu is a rail of icons; it opens over the page while the remote is in it (Left from the page),
   and folds away again when you go back Right. The page keeps the room of the rail only. */
html.tv { --sidebar-width: 96px; }
html.tv .side .collapse { display: none; } /* the rail opens and closes by itself on a TV */
html.tv body.collapsed .main { margin-left: var(--sidebar-width); }
html.tv body.collapsed .side { width: 64px; padding: 0 6px; }
html.tv body.collapsed.side-open .side { width: 236px; padding: 0 10px; background: #0E1628; border: 1px solid rgba(255, 255, 255, 0.1); z-index: 40; }
html.tv body.collapsed.side-open .logo-text, html.tv body.collapsed.side-open .nav span, html.tv body.collapsed.side-open .side-label { display: revert; }
html.tv body.collapsed.side-open .side-label { display: flex; }
html.tv body.collapsed.side-open .side-head { flex-direction: row; justify-content: flex-start; height: 70px; padding: 0 3px 0 8px; }
html.tv body.collapsed.side-open .nav { justify-content: flex-start; padding: 0 13px; }
html.tv body.collapsed.side-open .side-list::before { display: none; }
/* The open menu pushes the page over (as TiviMate's does) instead of covering it: the page narrows to fit. */
html.tv body.collapsed.side-open .main { margin-left: calc(236px + 32px); }
html.tv body.collapsed.side-open .side { border: 0; background: var(--sidebar); }
.eg-p.none.game { color: rgba(244, 247, 251, 0.8); background: rgba(255, 255, 255, 0.07); } /* a league-pass game: its name, not "no guide" */

/* TV: one focus look for the buttons on films, series and the Movies/Series banner (Play, version, Trailer,
   My list): white with dark text, as elsewhere on the TV. Unfocused they keep their own colours. */
html.tv :is(.m-actions, .fhero) :is(.m-play, .m-pill, .m-round, .btn):is(:focus, .is-focus) {
  background: #F4F7FB !important; color: #0B0F18 !important; border-color: #F4F7FB !important; box-shadow: none !important; outline: none; }
html.tv :is(.m-actions, .fhero) :is(.m-play, .m-pill, .m-round, .btn):is(:focus, .is-focus) svg { color: #0B0F18; }
/* TV: "Exit SportsHub?" (Back from the menu). */
.sheet.exit-ask { width: min(420px, 92vw); padding: 28px 28px 24px; text-align: center; }
.exit-ask h2 { margin: 0 0 22px; font-size: 24px; }
.exit-btns { display: flex; justify-content: center; gap: 12px; }
.exit-btns .btn { min-width: 130px; justify-content: center; }
html.tv .exit-btns .btn:is(:focus, .is-focus) { background: #F4F7FB; color: #0B0F18; box-shadow: none; }
/* TV: nothing animates forever. Even a pulsing dot makes a Fire TV redraw the whole 4K screen every frame (626 frames
   while pressing 18 keys on Football, against ~90 elsewhere), which slows everything else down. */
html.tv .live-dot, html.tv .badge.live i, html.tv .pl-eq i { animation: none; }

/* ------------------------------------------------------------- Settings, full width (as Couchside's) */
.page.set.set-wide { max-width: none; padding-right: var(--tv-x, 30px); }
.set-h { margin: 26px 0 12px; font-size: 22px; font-weight: 800; }
.set-h:first-child { margin-top: 4px; }
.set-sports { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.set-sport { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 104px; padding: 14px 16px;
  border-radius: 14px; background: var(--surface); color: var(--text); }
.set-sport .set-ic { position: absolute; left: 16px; top: 14px; color: var(--lead); }
.set-sport .set-ic svg { width: 26px; height: 26px; }
.set-sport b { font-size: 17px; font-weight: 800; }
.set-sport small { color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.set-sport.yours .set-ic { color: var(--accent); }
.set-live { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.set-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.set-wide .set-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.set-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.set-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface); }
.set-card small { color: var(--muted, #9AA4B2); font-weight: 700; }
.set-card b { font-size: 18px; }
.set-card p { margin: 2px 0 10px; color: rgba(244, 247, 251, 0.75); font-size: 14px; }
.set-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.set-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.set-choice { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 0; background: var(--surface); color: var(--text); text-align: left; font: inherit; }
.set-choice b { font-size: 17px; }
.set-choice small { color: rgba(244, 247, 251, 0.7); font-size: 13px; line-height: 18px; }
.set-choice.on b { color: var(--accent-ink); }
.set-choice i { position: absolute; right: 14px; top: 14px; color: var(--accent); }
.set-choice i svg { width: 18px; height: 18px; }
.set-group.set-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
html.tv :is(.set-sport, .set-card .btn, .set-choice, .set-tile):is(:focus, .is-focus) { background: #F4F7FB; color: #0B0F18; box-shadow: none; }
html.tv :is(.set-sport, .set-choice):is(:focus, .is-focus) :is(small, .set-ic, .set-live, b) { color: #0B0F18; }
html.tv .set-row:focus-within { background: rgba(255, 255, 255, 0.08); }
/* Event cards (wrestling, boxing, other sports): their picture and text span the whole card. Something set
   align-items: flex-start on them, which left the picture in the corner and the logo over the title. */
.ec { align-items: stretch; }
.ec > .ec-top, .ec > .ec-body { width: auto; align-self: stretch; }
.ec-logo img { width: 80%; height: 80%; }
.ec-logo.dark { background: #0B1220; border: 2px solid rgba(255, 255, 255, 0.18); } /* (wrestling logos are mostly white) */
/* The sports in Competitions / Your teams wrap onto more lines rather than scrolling sideways (a mouse couldn't). */
.sheet-tabs.scroll { flex-wrap: wrap; overflow: visible; }
.ec-brand { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); max-width: 46%; max-height: 62%; object-fit: contain; pointer-events: none; }
.set-btns .btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; font-size: 15px; font-weight: 700; line-height: 1; box-sizing: border-box; }

/* ------------------------------------------------------------- Fixtr logo: the wordmark (its "x" is the symbol);
   the symbol alone where there's only room for an icon (the folded menu). */
.logo-word { display: block; height: 26px; width: auto; }
.logo .logo-mark { display: none; width: 30px; height: 30px; }
body.collapsed .logo .logo-mark { display: block; }
html.tv body.collapsed.side-open .logo .logo-mark { display: none; }
.signin-logo .logo-mark { display: none; }
.signin-logo .logo-word { height: 44px; }
.topbar .logo-word { height: 24px; }
/* The wordmark a little bigger than the old text logo was: it reads small at text size. */
.side .logo-word { height: 38px; }
html.tv .side .logo-word { height: 34px; }
.topbar .logo-word { height: 30px; }
.side-head { min-height: 84px; }
/* The wordmark's "x" is exactly the size of the folded menu's symbol (30px symbol = 47px wordmark: the x is 50.4%
   of the wordmark's height, the symbol's strokes 79% of its box), so folding the menu just drops "fi" and "tr". */
.side .logo-word, html.tv .side .logo-word { height: 47px; }
.logo .logo-mark, body.collapsed .logo .logo-mark { width: 30px; height: 30px; }
