/* TivEPG Remote Help. Same palette, type and buttons as tivepg.com (docs/site.css). */
:root {
  --ground: #0A0E15;
  --ground-2: #0F1520;
  --card: #121A27;
  --card-2: #182234;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #EEF2F7;
  --text-2: #A9B4C4;
  --text-3: #6F7B8D;
  --blue: #5FB7E6;
  --brand-blue: #1E7CFF;
  --red: #E5484D;
  --amber: #F2A93B;
  --green: #46C27A;
  --radius: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 17px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(95,183,230,.20), transparent 70%);
}
[hidden] { display: none !important; }
.sprite { position: absolute; }
a { color: inherit; text-decoration: none; }
b { font-weight: 650; }
svg { width: 22px; height: 22px; flex: 0 0 auto; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 5; height: 60px;
  background: rgba(10,14,21,.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-get {
  height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: #000;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center;
}
.nav-get:hover { background: #E8ECF1; }

/* ---------- Type ---------- */
main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.display { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; font-size: clamp(38px, 7vw, 68px); }
.headline { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(26px, 4.4vw, 40px); }
.accent { color: var(--red); }
.lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); max-width: 620px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.section-title { margin-top: 28px; margin-bottom: 10px; }
.muted { color: var(--text-3); }
.hint { color: var(--text-2); font-size: 15px; margin: 4px 0 14px; }
.error { color: #ff8a8d; font-weight: 600; text-align: center; }

/* ---------- Screens ---------- */
.screen { display: flex; flex-direction: column; gap: 18px; padding-top: 40px; }
.screen.center { align-items: center; text-align: center; padding-top: 90px; }
.hero { align-items: center; text-align: center; padding-top: 56px; }
.hero .lede { margin: 0 auto; }
.icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5); margin-bottom: 8px; }
.pulse { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

.join-card {
  width: 100%; max-width: 460px; margin-top: 14px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.how { list-style: none; width: 100%; max-width: 760px; margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 12px; text-align: left; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { display: flex; gap: 12px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.how p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.how-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(30,124,255,.18); color: var(--blue); font-weight: 800; font-size: 15px;
}
.devices-row { display: flex; gap: 10px; margin-top: 10px; color: var(--blue); }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; color: var(--text-3); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--text-2); }

/* ---------- Form ---------- */
label { font-size: 14px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
input, select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.28); color: var(--text);
  font: inherit; font-size: 17px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder { color: var(--text-3); }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(95,183,230,.2); }
.code-input { height: 76px; font-size: 42px; font-weight: 800; letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-white { background: #fff; border-color: #fff; color: #000; }
.btn-white:hover { background: #E8ECF1; border-color: #E8ECF1; }
.btn.danger { color: #ff8a8d; border-color: rgba(229,72,77,.45); }
.btn.small { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.icon { width: 36px; padding: 0; }
.btn.wide { width: 100%; margin-top: 14px; height: 54px; font-size: 18px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Connected ---------- */
.device-head { display: flex; align-items: center; gap: 16px; }
.device-head .grow { flex: 1; min-width: 0; }
.device-glyph, .done-glyph {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--brand-blue), #0B3F8F); color: #fff;
  box-shadow: 0 14px 40px rgba(30,124,255,.35);
}
.device-glyph svg, .done-glyph svg { width: 34px; height: 34px; }
.done-glyph { background: linear-gradient(145deg, #2fae66, #13643a); box-shadow: 0 14px 40px rgba(70,194,122,.3); }
.pill { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: rgba(70,194,122,.15); color: var(--green); }
.pill.warn { background: rgba(242,169,59,.15); color: var(--amber); }
.banner {
  background: rgba(95,183,230,.1); border: 1px solid rgba(95,183,230,.3); color: var(--blue);
  border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 15px;
}

.tabs {
  position: sticky; top: 68px; z-index: 4;
  display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 999px;
  background: rgba(18,26,39,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-2); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: #000; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.server { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.server-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.server-head .grow { flex: 1; min-width: 0; }
.server-name { font-size: 19px; font-weight: 700; }
.server-meta { color: var(--text-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.badge.bad { background: rgba(229,72,77,.15); color: #ff8a8d; }
.badge.good { background: rgba(70,194,122,.15); color: var(--green); }
.badge.off { background: rgba(255,255,255,.08); color: var(--text-3); }
.server-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pass-wrap { display: flex; gap: 8px; }
.pass-wrap input { flex: 1; }

.switch { position: relative; width: 52px; height: 30px; flex: 0 0 auto; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); cursor: pointer; transition: background .2s; }
.switch span::after {
  content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%;
  background: #fff; transition: transform .2s var(--ease);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .5; cursor: default; }

.list { display: flex; flex-direction: column; gap: 6px; }
.item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); min-height: 54px;
}
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .num { color: var(--text-3); font-size: 13px; width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.item.dim .title { color: var(--text-2); }
.cat-columns { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .cat-columns { grid-template-columns: 1fr 1fr; } }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cat-head .row-actions { margin-top: 0; }
.search { margin-bottom: 8px; }
.empty { color: var(--text-3); font-size: 15px; padding: 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; }
.more { color: var(--text-3); font-size: 14px; text-align: center; padding: 8px; }

/* ---------- Category pills (the app's Display Order / per-playlist bar) ---------- */
.subtabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font: inherit; font-weight: 650; font-size: 14px; cursor: pointer;
}
.subtab:hover { color: var(--text); }
.subtab.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.subtab-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; display: inline-grid; place-items: center; }
.subtab.active .subtab-badge { background: rgba(255,255,255,.25); }
.source-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.source-tools .search { flex: 1 1 220px; margin: 0; }
.row-actions.tight { margin-top: 0; }
.sort-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.small-label { font-size: 13px; font-weight: 650; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cat-tile {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; text-align: left;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.cat-tile:hover { border-color: var(--line-2); }
.cat-tile.on { background: rgba(30,124,255,.16); border-color: rgba(30,124,255,.6); color: var(--text); }
.cat-tile .tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 800;
}
.cat-tile.on .tick { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.cat-name { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Sports Hub (Manage Sports) ---------- */
.hub-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.hub-section { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 24px 6px 8px; }
.hub-section-row { display: flex; align-items: flex-end; justify-content: space-between; }
.hub-section-row .btn { margin-bottom: 6px; }
.hub-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 60px; }
.hub-row + .hub-row { border-top: 1px solid var(--line); }
.hub-row.depth-1 { padding-left: 34px; background: rgba(255,255,255,.015); }
.hub-row.depth-2 { padding-left: 54px; background: rgba(255,255,255,.03); }
.hub-row .grow { flex: 1; min-width: 0; }
.hub-row .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-row .sub { color: var(--text-3); font-size: 13px; }
.hub-row .sub.gold { color: #F5C451; }
.row-expander { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.chev { color: var(--text-3); font-size: 22px; transition: transform .2s var(--ease); }
.chev.open { transform: rotate(90deg); }
.hub-switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.hub-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.hub-switch.on { background: var(--green); }
.hub-switch.on span { transform: translateX(22px); }
.hub-switch.mixed { background: var(--brand-blue); }
.hub-switch.mixed span { transform: translateX(11px); }
.hub-switch:disabled { opacity: .6; }
.star { background: none; border: 0; color: var(--text-3); font-size: 22px; cursor: pointer; width: 34px; height: 34px; flex: 0 0 auto; }
.star.on { color: #F5C451; }
.empty.flat { border: 0; }
.foot-note { margin-top: 16px; }

/* ---------- Footer & toast ---------- */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 14px; }
.foot .wrap { display: flex; gap: 20px; }
.foot a:hover { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: #1d2a3d; border: 1px solid var(--line-2); color: var(--text);
  font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 10;
}
.toast.bad { border-color: rgba(229,72,77,.6); }

@media (max-width: 560px) {
  .nav-get { height: 32px; padding: 0 12px; font-size: 13px; }
  .device-glyph { width: 52px; height: 52px; border-radius: 15px; }
  .device-glyph svg { width: 28px; height: 28px; }
  .tabs { top: 64px; }
  .tab { padding: 0 12px; font-size: 14px; }
  .device-head .headline { font-size: 24px; }
  .device-head { align-items: flex-start; flex-wrap: wrap; }
}

/* ---------- Reordering ---------- */
.handle {
  flex: 0 0 auto; width: 30px; height: 40px; display: grid; place-items: center;
  color: var(--text-3); font-size: 20px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.handle:active { cursor: grabbing; color: var(--text); }
.item, .hub-row { transition: transform .18s var(--ease); }
.dragging { transition: none !important; position: relative; z-index: 3; box-shadow: 0 16px 40px rgba(0,0,0,.55); background: var(--card-2) !important; border-color: var(--brand-blue) !important; }
@media (max-width: 560px) {
  .btn.fine { display: none; }
  .item { gap: 6px; padding: 8px 8px 8px 4px; }
  .item .btn.small { padding: 0 9px; }
}

/* ---------- Team lists (the app's team picker) ---------- */
.hub-row.depth-3 { padding-left: 74px; background: rgba(255,255,255,.045); }
.team-tools { flex-wrap: wrap; }
.team-tools .sub { min-width: 200px; }
.gold-btn { color: #F5C451; border-color: rgba(245,196,81,.5); }
.team-search { margin: 0; height: 42px; }
@media (max-width: 560px) {
  .hub-row.depth-2 { padding-left: 34px; }
  .hub-row.depth-3 { padding-left: 44px; }
}

/* ---------- Check-up ---------- */
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.health-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.health-head .grow { flex: 1; }
.health-head h3 { font-size: 22px; }
.health-dot { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.health-error .health-dot { background: rgba(229,72,77,.2); color: #ff8a8d; }
.health-warn .health-dot { background: rgba(242,169,59,.2); color: var(--amber); }
.health-info .health-dot { background: rgba(95,183,230,.18); color: var(--blue); }
.health-ok .health-dot { background: rgba(70,194,122,.18); color: var(--green); }
.title.wrap, .hub-row .title.wrap { white-space: normal; }
.fix-note { max-width: 220px; text-align: right; }
.small-spin { width: 30px; height: 30px; margin: 20px auto; border-width: 3px; }

/* ---------- Settings ---------- */
.setting-wide { flex-wrap: wrap; }
.setting-wide > .grow { flex: 1 1 260px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.setting-select { width: auto; min-width: 200px; height: 42px; }
.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setting-value { min-width: 78px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper input[type=range] { width: 180px; height: 30px; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--brand-blue); }

/* ---------- Remote ---------- */
.now-playing { margin-top: 0; }
.np-row { align-items: center; }
.title-lg { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Copy Setup ---------- */
.copy-steps { margin-top: 10px; grid-template-columns: 1fr !important; }
.small-code { height: 64px; font-size: 34px; margin: 10px 0; }
.copy-row { cursor: pointer; margin: 0; color: var(--text); font-size: 17px; font-weight: 400; }
.copy-row input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--brand-blue); }
.ok-banner { background: rgba(70,194,122,.1); border-color: rgba(70,194,122,.35); color: var(--green); margin-bottom: 12px; }

/* ---------- App-style home: cards ---------- */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 6px; }
.home-card {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 16px;
  text-align: left; border-radius: 20px; border: 1px solid var(--line); cursor: pointer; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), var(--card);
  font: inherit; transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.home-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.home-card:active { transform: scale(.98); }
.home-card.alert { border-color: rgba(229,72,77,.55); }
.home-icon {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.home-icon svg { width: 26px; height: 26px; }
.tint-blue .home-icon { background: linear-gradient(145deg, #2f8bff, #0b4fb8); }
.tint-red .home-icon { background: linear-gradient(145deg, #ff6b6f, #b4262b); }
.tint-purple .home-icon { background: linear-gradient(145deg, #a477ff, #5b2fc2); }
.tint-teal .home-icon { background: linear-gradient(145deg, #34d1bd, #0f7d70); }
.tint-green .home-icon { background: linear-gradient(145deg, #4cd384, #187a43); }
.tint-gold .home-icon { background: linear-gradient(145deg, #ffcf5c, #c58a12); }
.tint-grey .home-icon { background: linear-gradient(145deg, #7c889c, #3d4656); }
.home-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.home-title { font-weight: 750; font-size: 18px; letter-spacing: -0.01em; }
.home-sub { color: var(--text-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-card.alert .home-sub { color: #ff8a8d; font-weight: 600; }
.home-badge { position: absolute; top: 10px; right: 12px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.home-chev { color: var(--text-3); font-size: 26px; line-height: 1; }

.section-bar {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px;
  margin: 0 -20px; padding: 10px 20px; background: rgba(10,14,21,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.section-bar h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.back-btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--blue); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.back-btn:hover { background: rgba(95,183,230,.1); }

/* ---------- Collapsible Display Order groups ---------- */
.order-tools { justify-content: flex-end; margin-bottom: 8px; }
.group-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-top: 8px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-weight: 700; font-size: 16px; text-align: left; cursor: pointer;
}
.group-head.open { border-color: var(--line-2); background: var(--card-2); }
.group-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-list { margin: 6px 0 4px 10px; }

/* ---------- Custom categories ---------- */
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; color: var(--text-2); font-weight: 400; font-size: 15px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--brand-blue); }

@media (max-width: 560px) {
  .home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-card { flex-direction: column; align-items: flex-start; min-height: 128px; padding: 14px; gap: 10px; }
  .home-chev { display: none; }
  .home-title { font-size: 16px; }
  .home-sub { white-space: normal; font-size: 13px; }
  .section-bar h2 { font-size: 19px; }
}
.copy-row.dim { opacity: .55; cursor: default; }
.device-banner { margin-bottom: 12px; }

/* ---------- Phone remote: guide and Sports Hub browsers ---------- */
.remote-modes { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 12px; }
.crumb { border: 0; background: rgba(255,255,255,.06); color: var(--blue); font: inherit; font-weight: 650; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.crumb.current { background: transparent; color: var(--text); cursor: default; padding-left: 4px; }
.crumb + .crumb::before, .crumb + .crumb.current::before { content: ""; }
button.item.cat-row { width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
button.item.cat-row:hover { border-color: var(--line-2); background: var(--card-2); }
.item.chan { align-items: flex-start; padding: 12px; }
.item.chan .btn { margin-top: 2px; }
.now-line { font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-title { color: var(--text); font-weight: 600; }
.prog { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 6px 0 4px; overflow: hidden; max-width: 320px; }
.prog-fill { display: block; height: 100%; background: var(--brand-blue); }
.event-row .event-right { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-row.live { border-color: rgba(229,72,77,.45); }
.live-dot { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--red); padding: 3px 7px; border-radius: 6px; }
.live-head { color: #ff8a8d; }
.event-card { margin: 0 0 12px; }

/* Display Order pins and the Remote's tab list */
.pin-btn { white-space: nowrap; }
.pin-btn.on { background: rgba(95,183,230,.14); border-color: rgba(95,183,230,.45); color: var(--blue); }
.tab-ico { width: 28px; font-size: 20px; text-align: center; }
.item.current-tab { border-color: rgba(95,183,230,.45); background: rgba(95,183,230,.08); }
.btn.icon.bin svg { display: block; margin: auto; }
.pin-btn:not(.on) { filter: grayscale(1); opacity: .7; }
.pin-btn:not(.on):hover { filter: none; opacity: 1; }

/* The playing controls */
.now-playing .np-row { align-items: flex-start; }
.now-playing .tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--blue); background: rgba(95,183,230,.16); padding: 3px 7px; border-radius: 6px; }
.np-fixture { margin-top: 8px; font-weight: 700; }
.seek { width: 100%; margin: 14px 0 4px; accent-color: var(--blue); height: 28px; }
.seek-times { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.transport { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0 6px; flex-wrap: wrap; }
.btn.ctl { min-width: 56px; height: 48px; border-radius: 999px; font-size: 16px; font-weight: 800; padding: 0 14px; }
.btn.ctl.small { height: 38px; font-size: 14px; }
.btn.ctl-main { width: 64px; height: 64px; font-size: 22px; background: #fff; color: #000; border-color: #fff; }
.btn.ctl-live { color: #fff; background: var(--red); border-color: var(--red); }
.ctl-row { justify-content: center; margin-top: 4px; }
.np-options { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 6px; display: grid; gap: 2px; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.opt-row.disabled .title { opacity: .55; }
.opt-row .seg { display: flex; gap: 6px; flex: 0 0 auto; }
.track-select { max-width: 55%; }
.now-playing .grow { flex: 1 1 0; min-width: 0; }
.now-playing .np-row { flex-wrap: nowrap; }
.now-playing .sub { font-size: 14px; color: var(--text-2, #A9B3C1); }
.opt-row .sub { font-size: 13px; margin-top: 2px; }
.center-row { justify-content: center; margin-top: 12px; }
.item.cat-row:disabled { opacity: .6; cursor: default; }

/* Channel rows: catch-up (timeshift) icon after the name, the app's clock-with-arrow mark. */
.item .title.chan-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chan-name .chan-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.catchup-ico {
  flex: none; width: 15px; height: 15px; background: var(--brand-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Remote: artwork (device-sent data: thumbnails) ---------- */
.art {
  flex: none; position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--card-2), #0d131d); border: 1px solid var(--line);
  color: var(--text-3); font-weight: 800;
}
.art img { width: 100%; height: 100%; display: block; animation: art-in .25s var(--ease); }
@keyframes art-in { from { opacity: 0; } to { opacity: 1; } }
.art-letter { font-size: 18px; }
.art.has-img .art-letter { display: none; }
.art-logo { width: 52px; height: 52px; border-radius: 12px; background: #1b2433; }
.art-logo img { object-fit: contain; padding: 6px; }
.art-poster { width: 58px; height: 87px; border-radius: 10px; }
.art-poster img { object-fit: cover; }
.art-poster .art-letter { font-size: 22px; }
.art-still { width: 132px; height: 74px; border-radius: 10px; }
.art-still img { object-fit: cover; }
.art-still .prog { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; }
.item.with-art { gap: 12px; align-items: center; }
.item.chan.with-art { align-items: center; }
.item.with-art .grow { min-width: 0; }
.cat-line { color: var(--blue); font-size: 13px; font-weight: 600; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .title.clamp2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.vod-actions { margin-top: 8px; justify-content: flex-start; }

/* Episodes: still, title, length, plot, play */
.item.episode { align-items: flex-start; gap: 12px; padding: 10px; }
.item.episode .plot { color: var(--text-2); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.episode .row-actions { margin-top: 8px; justify-content: flex-start; }
.card.show-head { display: flex; flex-direction: row; gap: 14px; align-items: center; margin-bottom: 12px; }
.card.show-head .grow { min-width: 0; }
@media (max-width: 420px) { .art-still { width: 112px; height: 63px; } }

/* One block per playlist */
.group-stack { display: flex; flex-direction: column; gap: 6px; }
.source-group { margin-top: 14px; }
.source-group:first-child { margin-top: 4px; }
.source-head { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; }
.source-name { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Catch-up scrub bar ---------- */
.scrub { margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.scrub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.scrub-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.seg.small .subtab { padding: 4px 10px; font-size: 13px; }
.scrub-label { min-height: 44px; margin-bottom: 6px; }
.scrub-label strong { font-size: 20px; letter-spacing: -0.01em; }
.scrub-prog-now { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scrub-track { position: relative; height: 44px; border-radius: 10px; background: #0d131d; overflow: hidden; touch-action: none; }
.scrub-prog { position: absolute; top: 0; bottom: 0; background: rgba(30,124,255,0.18); border-right: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; overflow: hidden; }
.scrub-prog.alt { background: rgba(30,124,255,0.28); }
.scrub-prog-title { font-size: 11px; color: var(--text-2); padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.scrub-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.scrub-range::-moz-range-track { height: 100%; background: transparent; }
.scrub-range::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 44px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(30,124,255,0.55), 0 0 14px rgba(30,124,255,0.6); }
.scrub-range::-moz-range-thumb { width: 4px; height: 44px; border: 0; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(30,124,255,0.55); }
.scrub-live { color: var(--red); font-weight: 800; letter-spacing: .06em; }
/* Channel names wrap to two lines beside a logo: "Sky Sports Main Event FHD" must read whole. */
.item.with-art .chan-name { align-items: flex-start; }
.item.with-art .chan-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.item.with-art .chan-name .catchup-ico { margin-top: 2px; }
@media (max-width: 420px) { .item.chan.with-art .btn.small { padding-left: 12px; padding-right: 12px; } }

/* ---------- Match centre (the app's match screen) ---------- */
.mc-head {
  position: relative; overflow: hidden; border-radius: 22px; padding: 16px 14px 14px; margin: 8px 0 0;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--home) 38%, transparent), transparent 60%),
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--away) 38%, transparent), transparent 60%),
    linear-gradient(180deg, #172133, #0f1622);
  border: 1px solid var(--line-2);
}
.mc-league { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.mc-league .art-logo { width: 24px; height: 24px; border-radius: 6px; }
.mc-league .art-logo img { padding: 2px; }
.mc-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 14px; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mc-team .art-logo { width: 62px; height: 62px; border-radius: 16px; background: rgba(255,255,255,0.06); border-color: transparent; }
.mc-team-name { font-weight: 800; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.mc-mid { text-align: center; }
.mc-score { display: flex; align-items: center; gap: 8px; font-size: 44px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.mc-dash { color: var(--text-3); font-weight: 600; }
.mc-kickoff { font-size: 30px; font-weight: 800; }
.mc-vs { font-size: 18px; font-weight: 800; color: var(--text-3); }
.mc-cricket-line { font-size: 15px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mc-cricket-line.batting { color: var(--text); }
.mc-note { border-bottom: 1px solid rgba(255,255,255,0.04); padding: 8px 0; }
.mc-note:last-child { border-bottom: 0; }
.mc-status-row { display: flex; justify-content: center; margin-top: 10px; }
.mc-status { font-size: 13px; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text-2); }
.mc-status.live { background: var(--red); color: #fff; }
.mc-status.brk { background: #3a4456; color: #dfe6f0; }
.mc-situation { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 8px; }
.mc-scorer-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.mc-scorers.home { text-align: right; }
.mc-ball { opacity: .7; font-size: 12px; padding-top: 1px; }
.mc-sync { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: #9fe0b8; }
.mc-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(70,194,122,0.18); animation: mc-pulse 2s infinite; }
@keyframes mc-pulse { 50% { box-shadow: 0 0 0 7px rgba(70,194,122,0.05); } }

.mc-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 14px 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab { flex: none; background: none; border: 0; color: var(--text-3); font: inherit; font-size: 15px; font-weight: 700; padding: 6px 0 10px; border-bottom: 3px solid transparent; cursor: pointer; }
.mc-tab.active { color: var(--text); border-bottom-color: var(--brand-blue); }
.mc-body { display: flex; flex-direction: column; gap: 12px; }
.mc-card { padding: 14px; }
.mc-card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.mc-card-title .art-logo { width: 22px; height: 22px; border-radius: 6px; }

/* Key events */
.mc-timeline { display: flex; flex-direction: column; }
.mc-ev { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; min-height: 46px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mc-ev-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-ev-side.home { justify-content: flex-end; text-align: right; }
.mc-ev-min { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mc-ev-icon { font-size: 15px; line-height: 1; }
.mc-ev-icon.yellow, .mc-ev-icon.red { width: 11px; height: 15px; border-radius: 2px; background: #F5C518; }
.mc-ev-icon.red { background: var(--red); }
.mc-ev-icon.sub { color: var(--green); font-weight: 900; }
.mc-ev-icon.var { font-size: 10px; font-weight: 900; color: var(--amber); }
.mc-ev-icon.penmiss { color: var(--red); font-weight: 900; }
.mc-ev-text { min-width: 0; }
.mc-ev-main { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-ev-text .sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-ev-score { flex: none; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.mc-period { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 0; }
.mc-note { color: var(--text-2); font-size: 14px; padding: 4px 2px; }

/* Facts, venue, form */
.mc-fact { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; }
.mc-fact:last-child { border-bottom: 0; }
.mc-fact span:last-child { text-align: right; font-weight: 600; }
.art-venue { width: 100%; height: 150px; border-radius: 14px; margin-bottom: 8px; }
.art-venue img { object-fit: cover; }
.mc-form-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mc-form-row .art-logo, .mc-form-game .art-logo { width: 30px; height: 30px; border-radius: 8px; }
.mc-form-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-form { display: flex; gap: 4px; }
.mc-wdl { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: #5b6575; flex: none; }
.mc-wdl.W { background: var(--green); } .mc-wdl.L { background: var(--red); } .mc-wdl.D { background: #8a94a6; }
.mc-form-game { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; }
.mc-form-game:last-child { border-bottom: 0; }

/* Stats */
.mc-stats-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mc-stats-head .art-logo { width: 30px; height: 30px; border-radius: 8px; }
.mc-stats-head .mc-card-title { justify-content: center; margin: 0; }
.mc-stat { padding: 8px 0; }
.mc-stat-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-variant-numeric: tabular-nums; }
.mc-stat-label { color: var(--text-2); font-size: 13px; text-align: center; }
.mc-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.mc-bar-half { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.07); display: flex; overflow: hidden; }
.mc-bar-half.home { justify-content: flex-end; }
.mc-bar-fill { height: 100%; border-radius: 3px; }
.mc-bar-fill.dim { opacity: .45; }
.mc-countdown .title-lg { margin-top: 4px; }

/* Line-ups: the pitch */
.mc-side-pick .subtab { display: inline-flex; align-items: center; gap: 6px; }
.mc-side-pick .art-logo { width: 22px; height: 22px; border-radius: 6px; }
.mc-pitch-card { padding: 14px 10px; }
.mc-pitch { position: relative; aspect-ratio: 68 / 92; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1d6b3d 0 9.09%, #1a6337 9.09% 18.18%); border: 1px solid rgba(255,255,255,0.12); }
.mc-pitch-lines { position: absolute; inset: 4%; border: 2px solid rgba(255,255,255,0.28); border-radius: 4px; }
.mc-pitch-lines::before { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 15%; border: 2px solid rgba(255,255,255,0.28); border-bottom: 0; }
.mc-pitch-lines::after { content: ""; position: absolute; left: 50%; top: -18%; width: 36%; aspect-ratio: 1; transform: translateX(-50%); border: 2px solid rgba(255,255,255,0.22); border-radius: 50%; }
.mc-pitch-row { position: absolute; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-evenly; padding: 0 2%; }
.mc-player { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 20%; min-width: 0; }
.mc-shirt { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff;
  background: var(--kit); border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 4px 10px rgba(0,0,0,0.35); }
.mc-shirt.gk { background: #F2A93B; color: #111; }
.mc-player-name { font-size: 11.5px; font-weight: 700; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-marks { position: absolute; top: -6px; right: -12px; display: flex; gap: 1px; }
.mc-marks.inline { position: static; gap: 4px; }
.pm { font-size: 11px; line-height: 1; }
.pm.yellow, .pm.red { width: 8px; height: 11px; border-radius: 1.5px; background: #F5C518; display: inline-block; }
.pm.red { background: var(--red); }
.pm.off { color: var(--red); font-size: 10px; font-weight: 900; }
.pm.on { color: var(--green); font-size: 10px; font-weight: 900; }
.mc-player-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; }
.mc-player-row:last-child { border-bottom: 0; }
.mc-num { width: 28px; text-align: center; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Tables (league, cricket) */
.mc-table-card { padding: 12px 8px; overflow-x: auto; }
.mc-league-table, .mc-cricket { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mc-league-table th, .mc-cricket th { color: var(--text-3); font-weight: 700; font-size: 12px; padding: 6px 5px; text-align: center; }
.mc-league-table td, .mc-cricket td { padding: 7px 5px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.mc-league-table .team, .mc-cricket .team { text-align: left; }
/* Real table cells throughout (a flex <td> splits the row lines): the club column takes the
   spare width and truncates; the numbers size to fit. */
.mc-league-table th, .mc-league-table td { width: 1%; white-space: nowrap; }
.mc-league-table .team { width: 100%; max-width: 0; }
.mc-league-table .team-in { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-league-table .team-in span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-league-table .art-logo { width: 22px; height: 22px; border-radius: 5px; }
.mc-league-table .art-logo img { padding: 1px; }
.mc-league-table tr.ours td { background: rgba(30,124,255,0.14); font-weight: 700; }
.pts { font-weight: 800; }
.mc-cricket td.team .sub { font-size: 12px; }
.mc-cricket tr.notout td { color: var(--text); font-weight: 600; }
.np-fixture.row-actions { align-items: center; }
/* Phones: the points column must fit; long club names truncate instead. */
.mc-league-table th, .mc-league-table td { padding-left: 3px; padding-right: 3px; }
.mc-league-table td.team .art-logo { width: 20px; height: 20px; }
@media (max-width: 420px) { .mc-league-table { font-size: 13px; } }

/* Home: the check-up spans the row (it flags problems first). */
.home-card.home-wide { grid-column: 1 / -1; }
/* Playlists page tools */
.tool-card { padding: 14px; }
.tool-card .opt-row select { max-width: 52%; }
.tool-status { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--amber); margin-bottom: 8px; }
.tool-status .live-dot { color: var(--amber); background: none; padding: 0; animation: mc-pulse 1.4s infinite; }
.tool-hint { margin: 10px 0 0; }
.bad-text { color: var(--amber); font-weight: 700; }
@media (max-width: 560px) {
  /* The full-width check-up reads as a banner: icon beside the text, not above it. */
  .home-card.home-wide { flex-direction: row; align-items: center; min-height: 0; }
  .home-card.home-wide .home-chev { display: block; }
  .home-card.home-wide .home-badge { position: static; }
}
.item .sub.wrap-sub { white-space: normal; }
/* The row on their screen right now */
.btn.btn-playing { background: rgba(70,194,122,0.16); color: #8fe3b1; border-color: rgba(70,194,122,0.45); }
.btn.btn-playing::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; animation: mc-pulse 2s infinite; }

/* ---------- Remote: Sports Hub, as the app draws it ----------
   .hub-tv = the Apple TV layout (a computer), .hub-ios = the iPhone layout (a phone).
   Colours are the app's own hub theme (set inline from their device's Sports Hub theme). */

.hub {
  overflow: clip !important;
  --h-g1: #131922; --h-g2: #0E1219; --h-g3: #080B11; --h-card: #1E2530; --h-panel: #101216; --h-chrome: #08090C;
  --h-line: rgba(255,255,255,.10); --h-line-2: rgba(255,255,255,.16); --h-wash: 255,255,255;
  --h-accent: #6E86A8; --h-t1: #ECEAE7; --h-t2: #B8BDC7; --h-t3: #8B909C; --h-t4: #666B77;
  --h-live: #E5484D;
  position: relative; margin-top: 14px; color: var(--h-t1);
  background:
    radial-gradient(70% 50% at 0% 0%, color-mix(in srgb, var(--h-accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--h-g1), var(--h-g2) 45%, var(--h-g3));
  border: 1px solid var(--h-line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hub button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
.hub .hint { color: var(--h-t3); }
.hub-crest { background: rgba(var(--h-wash), .06); border-color: transparent; border-radius: 50%; color: var(--h-t3); }
.hub-crest img { object-fit: contain; padding: 14%; }
.hub-crest .art-letter { font-size: 12px; }
.hub-crest.xs { width: 16px; height: 16px; } .hub-crest.xs img { padding: 0; } .hub-crest.xs { background: none; }
.hub-crest.xs .art-letter { font-size: 8px; }
.hub-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--h-live); box-shadow: 0 0 8px var(--h-live); animation: hub-blink 1.4s infinite; flex: none; }
@keyframes hub-blink { 50% { opacity: .35; } }

/* Ticker */
.hub-ticker { display: flex; align-items: stretch; height: 40px; background: var(--h-chrome); border-bottom: 1px solid var(--h-line); }
.tk-badge { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 14px; font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--h-t2); border-right: 1px solid var(--h-line); }
.tk-badge.live { color: #fff; }
.tk-window { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-lane { display: flex; width: max-content; height: 100%; animation: tk-belt var(--tk-dur, 60s) linear infinite; }
.hub-ticker:hover .tk-lane, .tk-lane:active { animation-play-state: paused; }
@keyframes tk-belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-lane { animation: none; } .tk-window { overflow-x: auto; } }
.tk-run { display: flex; align-items: center; gap: 4px; padding-right: 4px; }
.tk-league { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 14px; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--h-t3); white-space: nowrap; }
.hub .tk-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; white-space: nowrap; font-size: 13px; font-weight: 700; }
.hub .tk-chip:hover { background: rgba(var(--h-wash), .07); }
.tk-team { color: var(--h-t1); }
.tk-score { font: 800 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-t1); }
.tk-time { font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-t2); }
.tk-clock { font-size: 10px; font-weight: 900; color: #fff; background: var(--h-live); padding: 1px 5px; border-radius: 4px; }
.tk-ft { font-size: 10px; font-weight: 900; color: var(--h-t3); letter-spacing: .06em; }

/* Header */
.hub-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--h-chrome); border-bottom: 1px solid var(--h-line); }
.hub-crest.head { width: 52px; height: 52px; background: rgba(var(--h-wash), .89); }
.hub-place-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--h-accent) 26%, transparent); color: var(--h-t1); flex: none; }
.hub-place-ico svg { width: 26px; height: 26px; }
.hub-head-text { min-width: 0; flex: 1; }
.hub-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--h-t3); }
.hub-eyebrow.live { color: var(--h-t2); }
.hub .hub-title { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; border-radius: 10px; padding: 0 6px; margin-left: -6px; }
.hub .hub-title:hover { background: rgba(var(--h-wash), .06); }
.hub-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-caret { font-size: 16px; color: var(--h-t3); }
.hub-places { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(var(--h-wash), .05); border: 1px solid var(--h-line); }
.hub .hub-seg { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--h-t2); }
.hub .hub-seg svg { width: 17px; height: 17px; }
.hub .hub-seg.on { background: rgba(var(--h-wash), .14); color: var(--h-t1); }
.hub .hub-seg:not(.on):hover { background: rgba(var(--h-wash), .07); }
.hub-clock { font: 700 18px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-t2); padding-left: 6px; }
.hub-head-back { padding: 12px 16px; }
.hub .hub-back { font-size: 15px; font-weight: 700; color: var(--h-t2); padding: 6px 10px; border-radius: 10px; }
.hub .hub-back:hover { background: rgba(var(--h-wash), .07); color: var(--h-t1); }

/* Shelf: mode tabs (underlined, HubTabStrip) or Upcoming's sport chips */
.hub-shelf { display: flex; align-items: stretch; gap: 6px; padding: 0 20px; height: 48px; background: rgba(0,0,0,.18); border-bottom: 1px solid var(--h-line); overflow-x: auto; scrollbar-width: none; }
.hub-shelf::-webkit-scrollbar { display: none; }
.hub .hub-tab { position: relative; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--h-t3); white-space: nowrap; }
.hub .hub-tab:hover { color: var(--h-t2); }
.hub .hub-tab.on { color: var(--h-t1); }
.hub .hub-tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--h-accent); }
.hub-chips { align-items: center; }
.hub .hub-chip { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--h-t2); background: rgba(var(--h-wash), .05); border: 1px solid var(--h-line); white-space: nowrap; }
.hub .hub-chip.on { background: var(--h-t1); color: var(--h-chrome); border-color: transparent; }

/* Body: the list, and on the TV layout the table beside it */
.hub-body { padding: 6px 20px 24px; }
.hub-body.with-table { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.hub-day { display: flex; align-items: center; gap: 8px; margin: 18px 4px 10px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--h-t3); }
.hub-day::after { content: ""; flex: 1; height: 1px; background: var(--h-line); margin-left: 6px; }
.hub-day.live { color: var(--h-t1); }
.hub-empty { text-align: center; padding: 56px 20px; }
.hub-empty-title { font-size: 18px; font-weight: 700; color: var(--h-t2); }
.hub-empty-sub { font-size: 14px; color: var(--h-t3); margin-top: 4px; }

/* Cards: shared */
.hub .fx { position: relative; display: block; width: 100%; margin-bottom: 12px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--h-card) 96%, white), var(--h-card));
  border: 1px solid var(--h-line); box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.hub .fx:hover { transform: translateY(-2px) scale(1.008); box-shadow: 0 18px 40px rgba(0,0,0,.45); border-color: var(--h-line-2); }
.hub .fx:focus-visible { outline: 3px solid var(--h-accent); outline-offset: 2px; }
.hub .fx.playing { border-color: color-mix(in srgb, var(--green) 60%, transparent); }
.fx-on { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.fx-tv .fx-on { position: absolute; right: 14px; bottom: 8px; }
.fx-chip { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: rgba(var(--h-wash), .2); color: var(--h-t2); }
.fx-chip.live { background: var(--h-live); color: #fff; }

/* TV card: name + crest | score/time | crest + name | league crest bay */
.hub .fx-tv { display: flex; align-items: stretch; min-height: 108px; }
.fx-tv > .fx-side, .fx-tv > .fx-centre, .fx-tv > .fx-tourn { display: flex; align-items: center; }
.fx-side { flex: 1 1 0; min-width: 0; gap: 16px; padding: 0 18px; }
.fx-side.lead { justify-content: flex-end; text-align: right; }
.fx-side .fx-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fx-tv.done .fx-side:not(.win) .fx-name { color: var(--h-t2); }
.hub-crest.team { width: 58px; height: 58px; }
.fx-centre { flex: none; width: 180px; flex-direction: column; justify-content: center; gap: 4px; }
.fx-score { display: flex; gap: 8px; font: 900 40px/1.05 ui-monospace, SFMono-Regular, Menlo, monospace; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.fx-score .dash { color: var(--h-t3); }
.fx-tv.live .fx-score { color: #fff; }
.fx-time { font: 700 32px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fx-when { font-size: 12px; font-weight: 700; color: var(--h-t3); letter-spacing: .02em; }
.fx-at { font-size: 15px; font-weight: 800; color: var(--h-t3); }
.fx-bay { flex: none; width: 108px; display: grid; place-items: center; background: rgba(0,0,0,.28); border-left: 1px solid var(--h-line); }
.hub-crest.bay { width: 70px; height: 70px; background: none; border-radius: 12px; }
.hub-crest.bay img { padding: 0; }
.fx-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 3px 14px; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--h-t2);
  background: color-mix(in srgb, var(--h-chrome) 72%, transparent); border: 1px solid var(--h-line); border-top: 0; border-radius: 0 0 10px 10px; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.fx-tv:has(.fx-bay) .fx-notch { left: calc(50% - 54px); }
.fx-tourn { flex: 1; flex-direction: column; justify-content: center; align-items: flex-start !important; padding: 0 26px; gap: 6px; }
.fx-tourn-name { font-size: 24px; font-weight: 800; }
.fx-tourn-sub { font-size: 14px; color: var(--h-t2); font-weight: 600; }

/* iPhone card: status rail | two team rows, then the info bar */
.hub-ios { margin-left: -8px; margin-right: -8px; border-radius: 20px; }
.hub-ios .hub-head { padding: 12px 14px; gap: 11px; }
.hub-ios .hub-crest.head, .hub-ios .hub-place-ico { width: 40px; height: 40px; }
.hub-ios .hub-place-ico svg { width: 21px; height: 21px; }
.hub-ios .hub-title { font-size: 21px; }
.hub-ios .hub-eyebrow { font-size: 10px; }
.hub-ios .hub-seg span { display: none; }
.hub-ios .hub-seg { padding: 0 10px; }
.hub-ios .hub-shelf { padding: 0 8px; height: 44px; }
.hub-ios .hub-tab { font-size: 14px; flex: 1; text-align: center; }
.hub-ios .hub-chips { padding: 0 12px; }
.hub-ios .hub-body { padding: 2px 10px 16px; }
.hub-ios .hub-day { margin: 16px 4px 8px; font-size: 11px; }
.hub .fx-ios { margin-bottom: 10px; border-radius: 16px; }
.hub .fx-ios:hover { transform: none; }
.fx-main { display: flex; min-height: 88px; }
.fx-rail { flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(0,0,0,.18); border-right: 1px solid var(--h-line); }
.fx-ios.live .fx-rail { background: linear-gradient(180deg, color-mix(in srgb, var(--h-live) 22%, transparent), rgba(0,0,0,.18)); }
.fx-live { font-size: 9px; font-weight: 900; letter-spacing: .1em; color: #fff; background: var(--h-live); padding: 2px 6px; border-radius: 4px; }
.fx-clock { font: 900 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-t1); text-shadow: 0 0 8px rgba(229,72,77,.35); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--h-live); box-shadow: 0 0 6px var(--h-live); }
.fx-ft { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--h-t3); }
.fx-date { font-size: 9px; font-weight: 600; color: var(--h-t4); }
.fx-ko { font: 900 16px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-t1); }
.fx-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.fx-team { display: flex; align-items: center; gap: 9px; padding: 4px 12px; }
.fx-disc { width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--h-wash), .08); display: grid; place-items: center; flex: none; }
.hub-crest.phone { width: 22px; height: 22px; background: none; border-radius: 4px; }
.hub-crest.phone img { padding: 0; }
.fx-team .fx-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(var(--h-wash), .92); }
.fx-team.win .fx-name { font-weight: 800; color: var(--h-t1); }
.fx-team.lost .fx-name { color: rgba(var(--h-wash), .65); }
.fx-pts { font: 900 21px ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 28px; text-align: right; color: var(--h-t1); }
.fx-team.lost .fx-pts { color: rgba(var(--h-wash), .55); }
.fx-rule { height: 1px; margin: 0 14px; background: linear-gradient(90deg, transparent, rgba(var(--h-wash), .10), transparent); }
.fx-tourn-line { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--h-t3); padding: 0 12px 0 51px; }
.fx-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: rgba(var(--h-wash), .03); border-top: 1px solid var(--h-line); font-size: 10px; font-weight: 600; color: var(--h-t4); }
.fx-bar-left, .fx-bar-right { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.fx-bar-left { overflow: hidden; }
.fx-league { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--h-t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-round { font-weight: 900; letter-spacing: .06em; color: var(--h-t3); white-space: nowrap; }
.fx-chev { font-size: 13px; color: var(--h-t4); }

/* Skeleton */
.sk-card { height: 108px; background: linear-gradient(90deg, var(--h-card), color-mix(in srgb, var(--h-card) 85%, white), var(--h-card)) !important; background-size: 200% 100% !important; animation: hub-shimmer 1.4s infinite linear; box-shadow: none !important; }
.fx-ios.sk-card { height: 118px; }
.sk-bar { display: block; height: 10px; width: 120px; border-radius: 5px; background: rgba(var(--h-wash), .08); }
@keyframes hub-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Table: the TV sidebar and the phone's Table tab */
.hub-side { position: sticky; top: 74px; margin-top: 18px; background: color-mix(in srgb, var(--h-panel) 86%, transparent); border: 1px solid var(--h-line); border-radius: 18px; overflow: hidden; }
.hub-side-head { padding: 12px 16px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--h-t2); background: var(--h-chrome); border-bottom: 1px solid var(--h-line); }
.hub-side .hub-table { max-height: calc(100vh - 160px); overflow-y: auto; }
.hub-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hub-table th { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--h-t4); text-align: center; padding: 8px 6px; }
.hub-table td { text-align: center; padding: 7px 6px; color: var(--h-t2); border-top: 1px solid var(--h-line); }
.hub-table .rk { width: 30px; color: var(--h-t3); }
.hub-table .team { text-align: left; }
/* One table: every cell stays a real table cell (a flex <td> broke out of the grid and split the
   row lines into two blocks). The team column takes all spare width; the numbers size to fit. */
.hub-table th, .hub-table td { width: 1%; white-space: nowrap; }
.hub-table .team { width: 100%; max-width: 0; }
.hub-table td.team { color: var(--h-t1); font-weight: 600; }
.hub-table .team-in { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hub-table .team-in span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hub-crest.row { width: 20px; height: 20px; background: none; border-radius: 4px; }
.hub-crest.row img { padding: 0; }
.hub-table .pts { font-weight: 900; color: var(--h-t1); }
.hub-table-name { padding: 12px 12px 2px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--h-t3); }
.hub-ios .hub-table { margin-top: 12px; background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 16px; overflow: hidden; }
@media (max-width: 420px) { .hub-ios .hub-table table { font-size: 13px; } .hub-ios .hub-table td, .hub-ios .hub-table th { padding-left: 4px; padding-right: 4px; } }

/* A match */
.hx { margin: 16px 20px 6px; padding: 18px 20px 20px; border-radius: 20px; border: 1px solid var(--h-line);
  background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--h-accent) 22%, transparent), transparent 70%), var(--h-card); }
.hx-league { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--h-t3); }
.hx-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 16px; }
.hx-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.hub-crest.big { width: 84px; height: 84px; }
.hx-name { font-size: 19px; font-weight: 800; line-height: 1.2; }
.hx-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; }
.hx-score { font: 900 46px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hx-time { font: 800 36px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hx-when { font-size: 13px; font-weight: 700; color: var(--h-t3); }
.hx-tourn { font-size: 24px; font-weight: 800; text-align: center; grid-column: 1 / 3; }
.hx-actions { display: flex; justify-content: center; margin-top: 16px; }
.hub-watch { padding: 0 20px 22px; }
.hub-watch .list, .hub-watch .group-stack { color: var(--text); }
.hub-ios .hx { margin: 12px 10px 4px; padding: 14px 12px 16px; }
.hub-ios .hub-crest.big { width: 60px; height: 60px; }
.hub-ios .hx-name { font-size: 15px; }
.hub-ios .hx-score { font-size: 36px; }
.hub-ios .hx-time { font-size: 28px; }
.hub-ios .hx-mid { min-width: 90px; }
.hub-ios .hub-watch { padding: 0 10px 16px; }

/* The competition picker: a centred panel over a dim (TV), a sheet (phone) */
.pk-dim { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 70px 24px 24px; animation: art-in .18s var(--ease); }
.pk-sheet { width: min(900px, 100%); max-height: min(78vh, 760px); display: flex; flex-direction: column; background: var(--h-panel); border: 1px solid var(--h-line-2); border-radius: 22px; box-shadow: 0 40px 100px rgba(0,0,0,.6); overflow: hidden; }
.pk-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.pk-title { font-size: 20px; font-weight: 800; }
.hub .pk-close { font-size: 14px; font-weight: 700; color: var(--h-t2); padding: 6px 12px; border-radius: 10px; background: rgba(var(--h-wash), .07); }
.pk-search { margin: 8px 18px 12px; width: calc(100% - 36px); height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--h-line); background: rgba(var(--h-wash), .05); color: var(--h-t1); font: inherit; font-size: 15px; outline: none; }
.pk-search:focus { border-color: var(--h-accent); }
.pk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--h-line); }
.pk-sports { overflow-y: auto; padding: 10px; border-right: 1px solid var(--h-line); background: rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; }
.hub .pk-sport-btn { padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--h-t2); white-space: nowrap; }
.hub .pk-sport-btn:hover { background: rgba(var(--h-wash), .06); }
.hub .pk-sport-btn.on { background: rgba(var(--h-wash), .14); color: var(--h-t1); }
.hub .pk-sport-btn.place { color: var(--h-t1); margin-bottom: 6px; border-bottom: 1px solid var(--h-line); border-radius: 10px 10px 0 0; }
.pk-grid { overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.hub .pk-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 12px 8px; border-radius: 16px; text-align: center;
  background: var(--h-card); border: 1px solid var(--h-line); transition: transform .2s var(--ease), border-color .2s; }
.hub .pk-tile:hover { transform: translateY(-2px); border-color: var(--h-line-2); }
.hub .pk-tile.on { border-color: var(--h-accent); box-shadow: inset 0 -3px 0 var(--h-accent); }
.hub-crest.tile { width: 54px; height: 54px; background: rgba(var(--h-wash), .89); }
.pk-name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.pk-sport { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--h-t3); }
.pk-none { grid-column: 1 / -1; text-align: center; color: var(--h-t3); padding: 30px 0; }
.hub-ios .pk-dim { position: fixed; padding: 0; align-items: flex-end; z-index: 40; }
.hub-ios .pk-sheet { width: 100%; max-height: 92vh; height: 92vh; border-radius: 22px 22px 0 0; }
.hub-ios .pk-body { display: flex; flex-direction: column; }
.hub-ios .pk-sports { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--h-line); padding: 8px 10px; flex: none; scrollbar-width: none; }
.hub-ios .pk-sport-btn { padding: 7px 12px; font-size: 13px; border-radius: 999px; }
.hub-ios .pk-sport-btn.place { margin: 0 4px 0 0; border-bottom: 0; border-radius: 999px; }
.hub-ios .pk-grid { flex: 1; grid-template-columns: 1fr 1fr; padding: 10px; }
.hub-ios .pk-tile { min-height: 104px; }

/* Beside the table the cards have less room: smaller crests and names that wrap to two lines. */
.with-table .fx-side { gap: 12px; padding: 0 14px; }
.with-table .fx-side .fx-name { font-size: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.with-table .hub-crest.team { width: 46px; height: 46px; }
.with-table .fx-centre { width: 140px; }
.with-table .fx-score { font-size: 34px; }
.with-table .fx-time { font-size: 27px; }
@media (max-width: 1100px) { .hub-body.with-table { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; } }
.hub-crest.tile .art-letter, .hub-crest.head .art-letter { color: #3a4150; font-size: 18px; }

/* ---------- Remote: app-style tab bar ---------- */
.remote-modes {
  position: sticky; top: 68px; z-index: 3; margin: 6px -4px 14px; padding: 5px; gap: 4px;
  border-radius: 16px; background: rgba(18,26,39,.88); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.remote-modes .subtab {
  flex: 1 0 auto; border: 0; background: transparent; color: var(--text-2);
  border-radius: 12px; padding: 10px 14px; font-weight: 700; justify-content: center;
}
.remote-modes .subtab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.remote-modes .subtab.active { background: var(--brand-blue); color: #fff; box-shadow: 0 6px 18px rgba(30,124,255,.35); }

/* ---------- Remote: docked now-playing (mini + sheet) ---------- */
body.has-dock { padding-bottom: 96px; }
#np-dock[hidden] { display: none; }
.np-mini {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(720px, calc(100% - 24px)); z-index: 30; display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 8px; border-radius: 18px; overflow: hidden;
  background: rgba(24,34,50,.92); border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.np-mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.np-mini-info .grow { min-width: 0; display: flex; flex-direction: column; }
.np-mini-art { flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(145deg, var(--brand-blue), #0b3f8f); }
.np-mini-title { font-weight: 750; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-mini-sub { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-mini-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; padding: 0; }
.np-mini-btn:hover { background: rgba(255,255,255,.08); }
.np-mini-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand-blue); border-radius: 0 2px 2px 0; }
.np-scrim { position: fixed; inset: 0; z-index: 31; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.np-sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 32; width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  transform: translate(-50%, 105%); transition: transform .35s var(--ease);
  background: var(--bg, #0B111B); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 6px 16px max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.np-sheet .now-playing { margin-top: 4px; background: transparent; border: 0; padding: 4px 2px; }
.np-grab { display: block; width: 100%; height: 26px; background: none; border: 0; cursor: pointer; }
.np-grab span { display: block; margin: 0 auto; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }
#np-dock.open .np-sheet { transform: translate(-50%, 0); }
#np-dock.open .np-scrim { opacity: 1; pointer-events: auto; }
#np-dock.open .np-mini { opacity: 0; pointer-events: none; }

/* Collapsible playlist groups (Sports Hub event channels) */
.source-toggle { width: 100%; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 10px; }
.source-toggle:hover { background: rgba(255,255,255,.04); }
.source-toggle .source-name { flex: 1; }
.source-chev { font-size: 20px; color: var(--text-3); transform: rotate(90deg); transition: transform .2s var(--ease); }
.source-group.collapsed .source-chev { transform: rotate(0deg); }
.source-group.collapsed > :not(.source-head) { display: none; }

.section-bar #section-title { flex: 1; min-width: 0; }
.home-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; }
.home-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- Guide: the Apple TV guide without its player ---------- */
.np-mini-info .art { flex: none; width: 46px; height: 46px; border-radius: 11px; }
.np-mini-info .art-poster { width: 34px; height: 50px; border-radius: 7px; }

.epg { --epg-chan: 108px; --epg-row: 64px; --epg-head: 40px; }
@media (min-width: 900px) { .epg { --epg-chan: 230px; --epg-row: 84px; --epg-head: 46px; } }
.epg .search { margin-bottom: 12px; }
.epg-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.epg-pills::-webkit-scrollbar { display: none; }
.epg-pill { flex: none; border: 1px solid rgba(255,255,255,0.10); background: linear-gradient(180deg, var(--e-head2), var(--e-head1));
  color: #c9cfda; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.epg-pill.on { background: linear-gradient(180deg, var(--e-live1), var(--e-live3)); color: #fff; border-color: var(--e-accent); }

.epg-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px;
  background: linear-gradient(180deg, var(--e-surf1), var(--e-surf2)); border: 1px solid rgba(255,255,255,0.08); }
.epg-picked.live { border-color: var(--e-accent); }
.epg-picked .art-logo { width: 46px; height: 46px; }
.epg-picked-title { font-weight: 700; font-size: 16px; color: #eef1f6; }

.epg-grid { position: relative; overflow: auto; max-height: calc(100vh - 230px); min-height: 320px; border-radius: 16px;
  background: linear-gradient(180deg, var(--e-head1), #05070c); border: 1px solid rgba(255,255,255,0.07); overscroll-behavior: contain; }
.epg-grid.loading { display: grid; place-items: center; }
.epg-inner { position: relative; }
.epg-head { position: sticky; top: 0; z-index: 4; display: flex; height: var(--epg-head);
  background: linear-gradient(180deg, var(--e-head1), var(--e-head2)); border-bottom: 1px solid rgba(255,255,255,0.08); }
.epg-corner { position: sticky; left: 0; z-index: 5; flex: none; width: var(--epg-chan); display: flex; align-items: center; padding-left: 14px;
  font-size: 13px; font-weight: 700; color: var(--e-accent); background: var(--e-head1); border-right: 1px solid rgba(255,255,255,0.08); }
.epg-times { position: relative; flex: none; }
.epg-tick { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 10px; font-size: 13px; font-weight: 600;
  color: #aeb6c4; border-left: 1px solid rgba(255,255,255,0.08); font-variant-numeric: tabular-nums; }
.epg-body { position: relative; }
.epg-row { display: flex; height: var(--epg-row); border-bottom: 1px solid rgba(255,255,255,0.05); }
.epg-chan { position: sticky; left: 0; z-index: 3; flex: none; width: var(--epg-chan); display: flex; align-items: center; gap: 10px; padding: 0 10px;
  border: 0; border-right: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, var(--e-head2), var(--e-head1)); color: #e6eaf0; font: inherit; text-align: left; cursor: pointer; }
.epg-chan .art-logo { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.06); }
@media (min-width: 900px) { .epg-chan .art-logo { width: 60px; height: 60px; border-radius: 12px; } }
.epg-chan-name { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.epg-chan-name .chan-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 899px) { .epg-chan-name { display: none; } .epg-chan { justify-content: center; } }
.epg-chan.playing { box-shadow: inset 3px 0 0 var(--green, #34c759); }
.epg-lane { position: relative; flex: none; }
.epg-cell { position: absolute; top: 4px; bottom: 4px; display: flex; flex-direction: column; justify-content: center; gap: 3px; overflow: hidden;
  padding: 0 12px; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; background: linear-gradient(180deg, var(--e-surf1), var(--e-surf2));
  color: #e8ecf2; font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; margin-left: 2px; }
.epg-cell.ended { background: linear-gradient(180deg, var(--e-end1), var(--e-end2)); color: #8d95a3; }
.epg-cell.live { background: linear-gradient(180deg, var(--e-live1), var(--e-live2) 55%, var(--e-live3)); border-color: var(--e-accent); color: #fff; }
.epg-cell.picked, .epg-cell:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.epg-cell.empty-cell { color: #7f8796; font-size: 13px; }
.epg-cell-title { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-cell-time { font-size: 12px; opacity: .72; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .epg-cell-title { font-size: 16px; } .epg-cell-time { font-size: 13px; } }
.epg-cell-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.85); }
.epg-now { position: absolute; top: 0; bottom: 0; width: 2px; z-index: 2; background: var(--e-accent); box-shadow: 0 0 8px var(--e-accent); pointer-events: none; }

/* ---------- Sports Hub: Highlights (the tvOS Highlights tab) ---------- */
.hub-seg svg { width: 18px; height: 18px; }
.hub-places { display: flex; gap: 8px; }
.hl-page { display: flex; flex-direction: column; gap: 26px; padding-bottom: 20px; }
.hl-billboard { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--h-line); background: var(--h-card); }
.hl-bb-wash { position: absolute; inset: 0; opacity: .55;
  background: radial-gradient(120% 140% at 0% 0%, var(--hl-home) 0%, transparent 55%), radial-gradient(120% 140% at 100% 100%, var(--hl-away) 0%, transparent 55%); }
.hl-bb-body { position: relative; display: flex; gap: 28px; align-items: center; padding: 26px; }
.hl-bb-text { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hl-bb-league { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--h-t2); }
.hl-bb-title { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--h-t1); }
.hl-bb-sub { font-size: 14px; color: var(--h-t3); font-weight: 600; letter-spacing: .04em; }
.hl-bb-sources { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hl-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hl-src-label { font-size: 14px; color: var(--h-t2); min-width: 0; flex: 1 1 160px; }
@media (max-width: 899px) { .hl-bb-body { flex-direction: column; align-items: stretch; padding: 16px; gap: 16px; } .hl-bb-title { font-size: 24px; } }

.hl-art { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; display: block; background: #1a2232; }
.hl-art-hero { flex: none; width: min(46%, 560px); border-radius: 18px; }
@media (max-width: 899px) { .hl-art-hero { width: 100%; } }
.hl-art-card { width: 100%; }
.hl-kit { position: absolute; top: 0; bottom: 0; width: 58%; }
.hl-kit.left { left: 0; clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.hl-kit.right { right: 0; clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.hl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); pointer-events: none; }
.hl-crest-slot { position: absolute; top: 50%; width: 30%; transform: translateY(-50%); display: grid; place-items: center; z-index: 1; }
.hl-crest-slot.l { left: 7%; } .hl-crest-slot.r { right: 7%; }
.hl-art .hl-crest { width: 100%; height: auto; aspect-ratio: 1; background: none; border: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.hl-art .hl-crest img { object-fit: contain; padding: 0; }
.hl-art.event { display: grid; place-items: center; background: linear-gradient(145deg, #23314a, #0e1420); }
.hl-art.event .hl-crest { width: 34%; }
.hl-bug { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 2; padding: 3px 10px; border-radius: 8px;
  background: rgba(246,246,244,.94); color: #10141c; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hl-art-hero .hl-bug { font-size: 26px; padding: 5px 16px; border-radius: 12px; }
.hl-new { position: absolute; left: 0; top: 12%; z-index: 2; padding: 3px 8px 3px 7px; border-radius: 0 7px 7px 0; background: var(--red, #e5484d); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.hl-tag { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); z-index: 2; padding: 3px 10px; border-radius: 999px; max-width: 80%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(10,14,22,.55); backdrop-filter: blur(8px); color: #eef1f6; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hl-tick { position: absolute; right: 8px; top: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,14,22,.7); color: #fff; font-size: 12px; font-weight: 900; }

.hl-rail-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.hl-rail-head .hub-crest { align-self: center; }
.hl-rail-title { font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--h-t1); }
.hl-rail-sub { font-size: 13px; color: var(--h-t3); font-weight: 600; }
.hl-rail-track { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hl-card { flex: none; width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hub-ios .hl-card { width: 230px; }
.hl-card .hl-art { transition: transform .18s var(--ease, ease), box-shadow .18s; }
.hl-card:hover .hl-art, .hl-card:focus-visible .hl-art { transform: scale(1.04); box-shadow: 0 0 0 2px var(--h-accent), 0 10px 26px rgba(0,0,0,.4); }
.hl-card.picked .hl-art { box-shadow: 0 0 0 3px #f2f2ef; }
.hl-card.watched .hl-art { opacity: .78; }
.hl-cap { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.hl-cap-title { font-size: 14px; font-weight: 700; color: var(--h-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-cap-sub { font-size: 12px; color: var(--h-t3); }
.hl-spine { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); align-self: stretch; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--h-t3); border-left: 1px solid var(--h-line); padding: 0 4px; }

.hl-result-btn { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--h-line);
  background: var(--h-panel); color: var(--h-t1); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hl-result-btn svg { width: 16px; height: 16px; color: var(--h-accent); }
.hl-result-src { color: var(--h-t3); font-weight: 600; }

.hl-sheet-scrim, .hl-player-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 20px; }
.hl-sheet { width: min(520px, 100%); background: #141a26; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; color: #e9edf3; }
.hl-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hl-player-box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.hl-player { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #000; }
.hl-player-x { position: absolute; top: -44px; right: 0; }

/* Guide on a big screen: use the width, not the 900px column. */
body.wide-guide main { max-width: min(1680px, 100%); padding-left: 28px; padding-right: 28px; }
body.wide-guide .epg-grid { max-height: calc(100vh - 210px); }

/* Guide on a phone: channel list with now and next; long names wrap instead of vanishing. */
.guide-list .item.chan { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.guide-list .item.chan .art-logo { width: 46px; height: 46px; flex: none; margin-top: 2px; }
.guide-list .item .title.chan-name { white-space: normal; }
.guide-list .chan-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; font-size: 15px; line-height: 1.25; }
.guide-list .now-line { margin-top: 3px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-list .now-line .sub { display: inline; white-space: nowrap; }
@media (max-width: 699px) { .guide-list .item.chan > .btn.small { padding: 0 12px; height: 36px; font-size: 13px; } }
.guide-list .item .sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.guide-list .prog { max-width: none; }
.guide-list .item.chan > .btn { flex: none; align-self: center; }


/* ---------- The Remote as an app screen ----------
   One slim sticky bar (back, the Remote's tabs, home); the Sports Hub's ticker, header and
   shelf pinned under it; edge to edge on a phone. */
body.remote-app { --appbar: 56px; }
body.remote-app::before { display: none; }
body.remote-app #screen-help { padding-top: 0; gap: 0; }
body.remote-app #loading-banner { margin: 10px 0; }
body.remote-app .section-bar { height: var(--appbar); padding-top: 0; padding-bottom: 0; gap: 8px; background: rgba(8,11,17,.92); }
body.remote-app #section-title { display: none; }
body.remote-app .back-btn { width: 38px; padding: 0; font-size: 0; flex: none; display: grid; place-items: center; }
body.remote-app .back-btn::before { content: "‹"; font-size: 26px; line-height: 1; margin-top: -3px; }
body.remote-app .home-btn { flex: none; width: 38px; height: 38px; }
.remote-bar { flex: 1; min-width: 0; }
.remote-bar .remote-modes { display: flex; gap: 4px; margin: 0; padding: 3px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; margin: 0 auto; }
.remote-bar .remote-modes::-webkit-scrollbar { display: none; }
.remote-bar .subtab { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.remote-bar .subtab.active { background: var(--brand-blue); color: #fff; box-shadow: 0 4px 14px rgba(36,121,255,.35); }
body.remote-app #tab-remote { padding-top: 12px; }
body.remote-app #tab-remote > .hub { margin-top: -12px; }

/* Sports Hub: ticker + header + shelf pinned under the app bar. */
.hub-top { position: sticky; top: var(--appbar, 0px); z-index: 5; background: var(--h-chrome); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.hub-top .hub-shelf { background: var(--h-chrome); }
.hub-top .hub-ticker { border-radius: 0; }

@media (max-width: 699px) {
  body.remote-app main { padding-left: 12px; padding-right: 12px; }
  body.remote-app .section-bar { margin: 0 -12px; padding-left: 8px; padding-right: 8px; }
  body.remote-app .remote-bar .remote-modes { margin: 0; }
  body.remote-app .remote-bar .subtab { padding: 0 11px; font-size: 13.5px; }
  body.remote-app .home-btn { display: none; }
  /* The hub runs edge to edge like the app's screen. */
  body.remote-app .hub-ios { margin-left: -12px; margin-right: -12px; border-radius: 0; border: 0; box-shadow: none; }
  .hub-ios .hub-ticker { height: 36px; }
  .hub-ios .hub-head { padding: 8px 12px; gap: 10px; }
  .hub-ios .hub-crest.head, .hub-ios .hub-place-ico { width: 34px; height: 34px; }
  .hub-ios .hub-place-ico svg { width: 18px; height: 18px; }
  .hub-ios .hub-title { font-size: 19px; }
  .hub-ios .hub-eyebrow { font-size: 9.5px; letter-spacing: .14em; }
  .hub-ios .hub-shelf { height: 42px; }
  .hub-ios .hub .hub-seg, .hub-ios .hub-seg { height: 32px; }
}
@media (min-width: 700px) {
  body.remote-app .hub-tv .hub-top, body.remote-app .hub .hub-top { border-radius: 0; }
}


/* ---------- Use the whole screen ----------
   The Remote fills the window on a laptop or desktop (the guide already did): the hub, its
   match list in columns, and every list (categories, films, episodes, channels) as a grid of
   rows instead of one long narrow column. Settings-style sections get a wider column too. */
body.remote-app main { max-width: min(1680px, 100%); }
@media (min-width: 700px) { body.remote-app main { padding-left: 28px; padding-right: 28px; } body.remote-app .section-bar { margin: 0 -28px; padding-left: 28px; padding-right: 28px; } }
main:has(#screen-help:not([hidden])) { max-width: min(1200px, 100%); }
body.remote-app main:has(#screen-help:not([hidden])) { max-width: min(1680px, 100%); }
@media (min-width: 1000px) {
  .home-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  #tab-remote .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; align-items: stretch; }
  #tab-remote .list > :not(.item) { grid-column: 1 / -1; }
  #tab-remote .list > .item { margin: 0; }
  #tab-remote .list .item.episode { min-height: 100%; }
  #tab-remote .group-stack .list { display: grid; }
}
@media (min-width: 1400px) {
  .hub-body.with-table { grid-template-columns: minmax(0, 1fr) 420px; }
  .hl-card { width: 340px; }
}
/* Match cards stay one column (never side by side) and stop growing past a readable width;
   the hub's top (ticker, header, shelf) keeps the full width, and a table sits beside them. */
.hub-list { max-width: 1040px; width: 100%; }
.hub-body:not(.with-table) .hub-list { margin: 0 auto; }
.hub-body.with-table { grid-template-columns: minmax(0, 1040px) minmax(320px, 1fr); }
@media (max-width: 1100px) { .hub-body.with-table { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Guide category drop-down (replaces the pill bar). */
.epg-cat-btn { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, var(--e-head2), var(--e-head1)); color: #eef1f6; font: inherit; text-align: left; }
.epg-cat-btn:hover, .epg-cat-btn.open { border-color: var(--e-accent); }
.epg-cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.epg-cat-group { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--e-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-cat-name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-cat-caret { color: #aeb6c4; font-size: 14px; }
@media (min-width: 700px) { .epg-cat-btn { width: auto; min-width: 320px; max-width: 520px; } }
.epg-cat-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px 16px; }
.epg-cat-menu { width: min(520px, 100%); max-height: calc(100vh - 100px); display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: #121826; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); color: #e9edf3; }
.epg-cat-menu-head { display: flex; align-items: center; gap: 8px; }
.epg-cat-menu-head strong { flex: 1; font-size: 17px; }
.epg-cat-menu .search { margin: 0; }
.epg-cat-list { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; padding: 0 6px; }
.epg-cat-head { display: flex; align-items: center; gap: 10px; padding: 11px 10px; margin-top: 6px; border: 0; border-radius: 10px; background: #1b2232;
  color: #e9edf3; font: inherit; font-weight: 800; font-size: 14px; text-align: left; cursor: pointer; position: sticky; top: 0; z-index: 1; backdrop-filter: blur(10px); }
.epg-cat-head .chev { display: inline-block; transition: transform .15s; color: #9aa3b2; }
.epg-cat-head .chev.open { transform: rotate(90deg); }
.epg-cat-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 34px; border: 0; border-radius: 10px; background: none; color: #d6dbe4;
  font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.epg-cat-row:hover { background: rgba(255,255,255,.06); }
.epg-cat-row.on { background: color-mix(in srgb, var(--brand-blue, #2479ff) 22%, transparent); color: #fff; font-weight: 700; }
.epg-cat-tick { color: var(--blue, #5fb7e6); font-weight: 900; }
@media (max-width: 699px) {
  .epg-cat-scrim { align-items: flex-end; padding: 0; }
  .epg-cat-menu { width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* Phone guide rows: text gets the width; a round play button. */
.gl { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; column-gap: 12px; align-items: start; padding: 12px 12px 12px 12px; }
.gl-row + .gl-row { border-top: 1px solid var(--line); }
.gl-row.playing { background: rgba(48,209,88,.07); }
.gl-row .art-logo { width: 44px; height: 44px; border-radius: 10px; margin-top: 1px; }
.gl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gl-name { display: flex; align-items: flex-start; gap: 6px; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--text); }
.gl-name-text { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.gl-name .catchup-ico { flex: none; margin-top: 2px; }
.gl-now { font-size: 14px; line-height: 1.3; color: var(--text); }
.gl-now-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #cfd6e2; font-weight: 600; }
.gl-none { font-size: 13px; color: var(--text-3); }
.gl-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.gl-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.10); overflow: hidden; }
.gl-fill { display: block; height: 100%; background: var(--brand-blue, #2479ff); }
.gl-left { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gl-next { display: flex; gap: 8px; font-size: 13px; color: var(--text-3); line-height: 1.3; }
.gl-next-time { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-2); }
.gl-next-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-play { width: 44px; height: 44px; align-self: center; border-radius: 50%; border: 0; background: #f4f5f7; color: #0b0f16; display: grid; place-items: center; cursor: pointer; }
.gl-play:active { transform: scale(.94); }
.gl-tri { width: 0; height: 0; margin-left: 3px; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.gl-play.on { background: rgba(48,209,88,.16); color: var(--green, #30d158); box-shadow: inset 0 0 0 1.5px var(--green, #30d158); }
.gl-eq { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.gl-eq i { width: 3px; background: currentColor; border-radius: 1px; animation: gl-eq 1s infinite ease-in-out; }
.gl-eq i:nth-child(1) { height: 60%; } .gl-eq i:nth-child(2) { height: 100%; animation-delay: .2s; } .gl-eq i:nth-child(3) { height: 40%; animation-delay: .4s; }
@keyframes gl-eq { 50% { transform: scaleY(.4); } }
@media (prefers-reduced-motion: reduce) { .gl-eq i { animation: none; } }

/* ---------- Match centre on big screens ---------- */
body.mc-open #tab-remote { width: 100%; max-width: 1240px; margin: 0 auto; }
.mc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mc-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@media (min-width: 900px) { .mc-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }
/* A pitch is tall: keep it a size you can see whole on a laptop. */
.mc-pitch { width: min(100%, 440px, calc((100vh - 240px) * 0.739)); margin: 0 auto; }
@media (min-width: 900px) { .mc-pitch-card .mc-card-title { text-align: center; justify-content: center; } }
.mc-highlights .mc-card-title svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--blue); }
.mc-hl-body { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.mc-hl-body .hl-art { max-width: 420px; }
@media (min-width: 700px) { .mc-hl-body { grid-template-columns: 220px 1fr; align-items: center; } }
.mc-hl-sources { display: flex; flex-direction: column; gap: 8px; }
.mc-hl-sources .hl-src-label { color: var(--text-2); }
@media (max-width: 699px) {
  .mc-hl-body .hl-art { display: none; }
  .mc-hl-sources .hl-src { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
  .mc-hl-sources .hl-src-label { font-size: 13px; }
}

/* League view: the table gets a real share of a wide screen (W/D/L shown from 1300px). */
.hub-body.with-table { grid-template-columns: minmax(0, 1fr) clamp(340px, 38%, 640px) !important; }
.hub-body.with-table .hub-list { max-width: none; }

/* ---------- Live: teletext, and the SportsHub Live L-frame round it ---------- */
body.live-on main { max-width: none !important; }
body.live-on footer, body.live-on #np-dock { display: none !important; }
.shl {
  --sb: #1E7CFF; --sr: #FF1E1E; --pn: #0B1F3F; --pt: #0E2850; --pl: #081830; --dp: #050916;
  --e: #EFF2F7; --i: #E2E8F2; --i2: #9FB0D2; --i3: #62729A; --hr: rgba(140,170,240,.16);
  position: fixed; top: var(--appbar, 56px); left: 0; right: 0; bottom: 0; z-index: 5; background: #000; color: var(--i);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
}
.shl button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
.shl.focused { grid-template-columns: minmax(0, 1fr) clamp(300px, 26%, 460px); grid-template-rows: minmax(0, 1fr) clamp(160px, 24vh, 240px); background: var(--dp); }
.shl-empty { display: grid; place-items: center; color: var(--i2); }
.shl-centre { grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; display: grid; place-items: center; padding: 14px; overflow: auto; }
.shl.focused .shl-centre { border-right: 2px solid var(--sb); border-bottom: 2px solid var(--sb); background: #000; }

/* Teletext: 40 columns, scaled to the space it has. */
.tt { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; container-type: size; }
.tt-screen { --ch: min(calc(100cqw / 40 / .6), calc((100cqh - 60px) / 25 / 1.18)); font-size: var(--ch); line-height: 1.18;
  font-family: "Courier New", ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: #fff; background: #000;
  white-space: pre; letter-spacing: 0; padding: .4em .6em; text-shadow: 0 0 .15em rgba(255,255,255,.25); }
.tt-l { display: block; height: 1.18em; }
.tt-l.dh { height: 2.36em; } .tt-l.dh span { display: inline-block; transform: scaleY(2); transform-origin: top; }
.tt-l.link { cursor: pointer; } .tt-l.link:hover { background: rgba(0,87,255,.35); }
.tt-l.bg-b { background: #0000aa; } .tt-l.bg-bl { background: #0057ff; } .tt-l.bg-r { background: #c00000; }
.c-w { color: #fff; } .c-y { color: #ffff00; } .c-c { color: #00ffff; } .c-g { color: #00ff00; } .c-r { color: #ff3030; } .c-m { color: #ff00ff; } .c-b { color: #4d7dff; }
.c-k { color: #000; background: #ffff00; }
.tt-flash { animation: tt-blink 1s steps(1) infinite; } @keyframes tt-blink { 50% { opacity: .25; } }
.tt-fast { display: flex !important; height: 1.4em !important; margin-top: .25em; }
.tt-fast button { flex: 1; font: inherit !important; text-align: left !important; padding: 0 .3em !important; white-space: pre; }
.tt-fast button:hover { text-decoration: underline; }
.tt-pad { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.tt-input { width: 76px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid #333; background: #111; color: #ff0; font: 700 15px "Courier New", monospace; text-align: center; }
.tt-chip { padding: 5px 10px; border-radius: 6px; border: 1px solid #222 !important; background: #0a0a0a !important; color: #9aa !important; font: 700 12px "Courier New", monospace !important; white-space: nowrap; }
.tt-chip.on { color: #ff0 !important; border-color: #ff0 !important; }
.shl.focused .tt-pad { display: none; }

/* The L: rail + strip */
.shl-rail { grid-column: 2; grid-row: 1 / 3; min-height: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--pt), var(--pn) 40%, var(--pl)); }
.shl-ident { flex: none; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 16px; background: var(--dp); border-bottom: 1px solid var(--hr); }
.shl-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(145deg, #2b8cff, #0a4fd6); display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.shl-word { font-weight: 900; font-size: 15px; color: var(--e); } .shl-word em { font-style: normal; color: var(--i2); font-weight: 700; }
.shl-livetag { padding: 2px 6px; border-radius: 4px; background: var(--sr); color: var(--e); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.shl-clk { margin-left: auto; color: var(--i2); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.shl-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08) !important; color: var(--e); font-size: 13px; }
.shl-tabs { flex: none; display: flex; padding: 6px 10px 0; border-bottom: 1px solid var(--hr); }
.shl-tab { flex: 1; text-align: center !important; padding: 10px 4px; font-size: 12.5px; font-weight: 800; color: var(--i3); border-bottom: 2px solid transparent !important; }
.shl-tab.on { color: var(--e); border-bottom-color: var(--sb) !important; }
.shl-rbody { flex: 1; min-height: 0; overflow: auto; padding: 12px 14px 20px; scrollbar-width: thin; }
.shl-rbody .card { background: rgba(5,9,22,.45); border-color: var(--hr); }
.shl-rbody .mc-pitch { width: 100%; }
.shl-s { color: var(--i2); font-size: 13px; }
.shl-watch { display: block; width: 100%; margin-top: 14px; padding: 11px; border-radius: 10px; background: var(--e) !important; color: #0b1f3f !important; font-weight: 900; text-align: center !important; }
.shl-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.shl-tbl td { padding: 6px 4px; border-bottom: 1px solid var(--hr); }
.shl-tbl td.rk { color: var(--i3); width: 22px; } .shl-tbl td.n { text-align: right; color: var(--i2); } .shl-tbl td.p { text-align: right; font-weight: 900; color: var(--e); }
.shl-tbl tr.me td { background: rgba(30,124,255,.14); }
.shl-tbl .hub-crest.xs { width: 16px; height: 16px; vertical-align: -3px; }

.shl-strip { grid-column: 1; grid-row: 2; position: relative; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 42px; background: linear-gradient(180deg, var(--pn), var(--pl)); overflow: hidden; }
.shl-stop { display: grid; grid-template-columns: minmax(240px, 30%) 1fr; min-height: 0; }
.shl-score { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 20px; border-right: 1px solid var(--hr); min-width: 0; }
.shl-score .meta { display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: .1em; color: var(--i3); }
.shl-score .mn { padding: 2px 8px; border-radius: 5px; background: rgba(255,255,255,.1); color: var(--e); letter-spacing: 0; font-size: 12px; } .shl-score .mn.live { background: var(--sr); }
.shl-score .row { display: grid; grid-template-columns: 5px 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.shl-score .kit { height: 30px; border-radius: 3px; }
.shl-score .nm { font-size: clamp(16px, 2.2vh, 22px); font-weight: 800; color: var(--i); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shl-score .sc { font-size: clamp(26px, 3.8vh, 40px); font-weight: 900; color: var(--e); font-variant-numeric: tabular-nums; }
.shl-tl { position: relative; margin: 16px 26px 18px; }
.shl-tl .axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--hr); }
.shl-tl .ht { position: absolute; left: 50%; top: 18%; bottom: 18%; width: 1px; background: var(--hr); }
.shl-tl .now { position: absolute; top: 6%; bottom: 6%; width: 2px; background: var(--sr); box-shadow: 0 0 8px var(--sr); }
.shl-tl .mk { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--i2); white-space: nowrap; }
.shl-tl .mk.t { bottom: 53%; } .shl-tl .mk.b { top: 53%; flex-direction: column-reverse; }
.shl-tl .ball { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #1b2c55; border: 2px solid var(--e); }
.shl-tl .cd { width: 9px; height: 13px; border-radius: 2px; background: #F5C518; } .shl-tl .mk.red .cd { background: var(--sr); }
.shl-tl .lbls { position: absolute; left: 0; right: 0; bottom: -16px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: var(--i3); }
.shl-band { display: flex; background: var(--dp); border-top: 1px solid var(--hr); overflow: hidden; }
.shl-band .bl { flex: none; display: flex; align-items: center; padding: 0 14px; font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--e); background: var(--sb); }
.shl-belt { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.shl-lane { display: flex; width: max-content; height: 100%; animation: tk-belt var(--dur, 60s) linear infinite; }
.shl-band:hover .shl-lane { animation-play-state: paused; }
.shl-lane .run { display: flex; align-items: center; }
.shl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--i); }
.shl-chip .lg { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--i3); }
.shl-chip b { color: var(--e); }
.shl-chip .mn { font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 4px; background: var(--sr); color: var(--e); }
.shl-flash { position: absolute; inset: 0 0 0 30%; z-index: 3; display: flex; align-items: center; gap: 24px; padding: 0 32px; background: linear-gradient(100deg, #c8102e, #7a0010); animation: shl-in .55s cubic-bezier(.2,.9,.25,1.1); }
@keyframes shl-in { from { transform: translateX(100%); } }
.shl-flash .big { font-size: clamp(36px, 6vh, 64px); font-weight: 900; color: #F4F5F8; }
.shl-flash .who { font-size: clamp(16px, 2.4vh, 24px); font-weight: 800; color: #F4F5F8; }
.shl-flash .who small { display: block; font-size: .62em; opacity: .85; margin-top: 4px; font-weight: 700; }

/* Phone: teletext fills the width; picking a game stacks the L below it. */
@media (max-width: 899px) {
  .shl, .shl.focused { position: static; display: flex; flex-direction: column; margin: 0 -12px; min-height: calc(100vh - var(--appbar, 56px)); }
  .shl-centre { padding: 8px 4px; height: auto; }
  .tt { height: auto; container-type: inline-size; }
  .tt-screen { --ch: calc(100cqw / 41.5 / .61); padding: .3em .25em; max-width: 100%; overflow: hidden; }
  .shl.focused .shl-centre { border: 0; border-bottom: 2px solid var(--sb); }
  .shl-strip { order: 2; grid-template-rows: auto 38px; }
  .shl-stop { grid-template-columns: 1fr; }
  .shl-score { padding: 12px 14px; border-right: 0; }
  .shl-tl { display: none; }
  .shl-flash { inset: 0; }
  .shl-rail { order: 3; min-height: 70vh; }
}
.tt-fast button.c-r { color: #ff3030 !important; } .tt-fast button.c-g { color: #00ff00 !important; }
.tt-fast button.c-y { color: #ffff00 !important; } .tt-fast button.c-c { color: #00ffff !important; }

/* ---------- Site menu (join + ended screens only; never while connected) ---------- */
.rh-nav { display: none; position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(10,14,21,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body:has(#screen-join:not([hidden])) .rh-nav,
body:has(#screen-ended:not([hidden])) .rh-nav { display: block; }
.rh-nav-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rh-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.rh-brand img { width: 28px; height: 28px; border-radius: 8px; }
.rh-links { list-style: none; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.rh-links a { color: var(--text-2); transition: color .2s var(--ease); }
.rh-links a:hover, .rh-links a.current { color: var(--text); }
.rh-links .rh-get { color: #0A0E15; background: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.rh-links .rh-get:hover { color: #0A0E15; }
@media (max-width: 860px) {
  .rh-nav-in { padding: 0 16px; height: 58px; }
  .rh-links li:not(:last-child) { display: none; }
}
