:root {
  --bg: #0b0d12; --bg2: #11141b; --card: #171b24; --card2: #1d2230; --line: #262c3a; --line2: #313849;
  --text: #eef1f7; --dim: #9aa3b5; --faint: #6b7385;
  --accent: #ffb648; --accent2: #ff5e62; --live: #ff3b4e; --good: #3ddc97;
  --sports: #3b82f6; --news: #a78bfa; --movies: #f59e0b; --kids: #34d399; --other: #64748b;
  --radius: 14px; --top: 0px; --side: 88px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
* { scrollbar-color: #2c3342 transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--text); }
h1, h2, h3 { font-family: Outfit, Inter, sans-serif; letter-spacing: -.01em; margin: 0; }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- side bar (bottom tab bar on phones) ---------- */
.side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; width: var(--side); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0;
  background: linear-gradient(90deg, rgba(7,8,12,.98), rgba(9,11,16,.92)); border-right: 1px solid rgba(255,255,255,.04); }
.brand img { width: 34px; height: 34px; margin-bottom: 18px; }
#nav { display: flex; flex-direction: column; gap: 4px; }
#nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; padding: 10px 0 8px; border-radius: 14px; color: var(--faint); transition: color .2s, background .2s; }
#nav a svg { width: 23px; height: 23px; fill: currentColor; }
#nav a span { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
#nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
#nav a.on { color: var(--accent); background: rgba(255,182,72,.1); }
#nav a.on::before { content: ''; position: absolute; left: -9px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); }
#nav a[data-v="settings"] { margin-top: 18px; }
.live-dot { position: absolute; top: 8px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,59,78,.6) } 60% { box-shadow: 0 0 0 6px rgba(255,59,78,0) } }
body { padding-left: var(--side); }

main { padding: 0 0 60px; }
.page { padding: 28px 28px 0; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head .spacer { flex: 1; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); font-weight: 600; transition: transform .15s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: #262c3c; border-color: #3d4659; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; color: #1a0f05; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); font-size: 16px; }
.icon-btn:hover { background: rgba(255,255,255,.2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--dim); font-weight: 600; font-size: 13px; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { color: #120c03; background: var(--accent); border-color: var(--accent); }
.chip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.input, select.input { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); outline: none; min-width: 0; }
.input:focus { border-color: var(--accent); }
.row-flex { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(58vh, 560px); min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; transform: scale(1.04); animation: slowzoom 30s ease-out forwards; }
@keyframes slowzoom { to { transform: scale(1.12) } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.95) 0%, rgba(11,13,18,.55) 45%, rgba(11,13,18,.1) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,13,18,0) 45%); }
.hero .info { position: relative; z-index: 2; padding: 0 28px 44px; max-width: 640px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.02; margin-bottom: 12px; }
.hero p { color: #cfd5e2; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .meta { display: flex; gap: 12px; color: var(--dim); font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.hero .actions { display: flex; gap: 10px; }
.hero.plain { height: auto; min-height: 0; padding-top: 34px; }
.hero.plain::after { display: none; }

/* ---------- rows of cards ---------- */
.shelf { margin: 30px 0 0; }
.shelf h2 { font-size: 20px; font-weight: 600; padding: 0 28px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.shelf h2 a { margin-left: auto; font: 600 13px Inter, sans-serif; color: var(--dim); }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 28px 14px; scroll-padding-inline: 28px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 16px; }

.poster { position: relative; width: 168px; cursor: pointer; }
.grid .poster { width: auto; }
.poster .art { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .3s var(--ease), box-shadow .3s; }
.poster:hover .art { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 2px rgba(255,182,72,.6); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .t { margin-top: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster .s { color: var(--faint); font-size: 13px; }
.fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; font: 700 18px/1.15 Outfit, sans-serif; color: rgba(255,255,255,.92); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.5); }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.7); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.badge.offline { background: rgba(120,120,130,.85); }
.badge.new { background: var(--accent); color: #140d03; }

.wide { position: relative; width: 300px; cursor: pointer; }
.wide .art { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--card); transition: transform .3s var(--ease), box-shadow .3s; }
.wide:hover .art { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 2px rgba(255,182,72,.55); }
.wide img { width: 100%; height: 100%; object-fit: cover; }
.wide .t { margin-top: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wide .s { color: var(--faint); font-size: 13px; }
.play-ico { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; background: rgba(0,0,0,.25); }
.play-ico::before { content: ''; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23111'/%3E%3C/svg%3E") center/26px no-repeat; }
.wide:hover .play-ico, .poster:hover .play-ico { opacity: 1; }

/* ---------- movies / TV browse ---------- */
.browse-head { margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.tabs a { padding: 7px 16px; border-radius: 9px; font-weight: 600; color: var(--dim); transition: all .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--card2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.browse-hero { height: min(46vh, 440px); min-height: 300px; }
.browse-hero .info { padding-bottom: 30px; }
.kidtag { color: var(--kids); }
.genre { position: relative; display: block; width: 260px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .3s var(--ease), box-shadow .3s; }
.genre:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 2px rgba(255,182,72,.6); }
.genre .gbd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.genre:hover .gbd { transform: scale(1.06); }
.genre .collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.genre .collage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .5s var(--ease); }
.genre:hover .collage img { transform: scale(1.06); }
.genre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,14,.92) 0%, rgba(8,10,14,.45) 55%, rgba(8,10,14,.2) 100%); }
.genre .gname { position: absolute; left: 16px; bottom: 12px; right: 16px; z-index: 2; }
.genre .gname b { display: block; font: 700 22px Outfit, sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.genre .gname span { font-size: 13px; color: #c3cad6; font-weight: 600; }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.genre-grid .genre { width: auto; }
.crumb { margin: 14px 0 18px; font-size: 15px; color: var(--dim); }
.crumb a { color: var(--accent); font-weight: 600; }
.page-head .tabs + .spacer + .chips { margin-left: auto; }

/* ---------- score cards ---------- */
.scores-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 28px 14px; scrollbar-width: none; }
.scores-strip::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 auto; width: 230px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.mini:hover { border-color: var(--line2); transform: translateY(-2px); }
.mini .hd { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.mini .hd .lv { color: var(--live); }
.mini .tm { display: flex; align-items: center; gap: 8px; height: 26px; }
.mini .tm img { width: 22px; height: 22px; object-fit: contain; }
.mini .tm b { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .tm .sc { font: 700 18px Outfit, sans-serif; min-width: 26px; text-align: right; }
.mini .tm.lose { color: var(--faint); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.game { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.game:hover { transform: translateY(-2px); border-color: var(--line2); }
.game .tint { position: absolute; inset: 0; opacity: .22; pointer-events: none; }
.game .inner { position: relative; padding: 16px 18px 14px; }
.game .top-line { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.game .top-line .st { margin-left: auto; }
.livepill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(255,59,78,.16); color: #ff7482; }
.livepill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.team { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.team img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.team .nm { flex: 1; min-width: 0; }
.team .nm b { display: block; font: 600 18px Outfit, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .nm span { font-size: 12px; color: var(--faint); }
.team .pts { font: 700 34px/1 Outfit, sans-serif; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; transition: color .3s; }
.team.lose .pts, .team.lose .nm b { color: var(--faint); }
.team .pos { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: -4px; }
.team.flash .pts { animation: scoreflash 2.4s var(--ease); }
@keyframes scoreflash { 0% { color: var(--accent); transform: scale(1.35); text-shadow: 0 0 22px rgba(255,182,72,.9) } 30% { transform: scale(1) } 100% { color: inherit; text-shadow: none } }
.game.flash { animation: cardflash 2.4s var(--ease); }
@keyframes cardflash { 0% { box-shadow: 0 0 0 2px var(--accent), 0 0 40px rgba(255,182,72,.35) } 100% { box-shadow: none } }
.game .sit { margin-top: 8px; font-size: 13px; color: var(--dim); }
.game .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.watch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; background: rgba(255,182,72,.12); border: 1px solid rgba(255,182,72,.3); color: var(--accent); font-weight: 700; font-size: 13px; }
.watch:hover { background: rgba(255,182,72,.22); }
.watch img { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; background: rgba(255,255,255,.06); }
.league-head { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font: 600 18px Outfit, sans-serif; }
.league-head img { width: 30px; height: 30px; object-fit: contain; }
.league-head .livepill { font: 700 11px Inter, sans-serif; }
.league-head .n { color: var(--faint); font: 500 13px Inter, sans-serif; }

/* ---------- guide ---------- */
.guide-page { padding: 18px 0 0; }
.guide-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 28px 16px; }
.guide-tools h1 { font-size: 26px; margin-right: 8px; }
.guide-tools .spacer { flex: 1; }
.now-card { display: flex; gap: 18px; margin: 0 28px 16px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); align-items: center; min-height: 112px; }
.now-card .lg { width: 132px; height: 84px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; flex: none; }
.now-card .lg img { max-width: 80%; max-height: 70%; object-fit: contain; }
.now-card h3 { font-size: 21px; margin-bottom: 4px; }
.now-card p { margin: 6px 0 0; color: var(--dim); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-card .when { color: var(--accent); font-weight: 700; font-size: 13px; }
.now-card .act { margin-left: auto; display: flex; gap: 8px; }
.guide { --ch: 210px; --rowh: 66px; position: relative; margin: 0 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.guide-scroll { position: relative; overflow: auto; height: calc(100vh - var(--top) - 260px); min-height: 360px; overscroll-behavior: contain; }
.guide-inner { position: relative; }
.ruler { position: sticky; top: 0; z-index: 5; height: 40px; display: flex; background: #141823; border-bottom: 1px solid var(--line); }
.ruler .corner { position: sticky; left: 0; z-index: 2; flex: none; width: var(--ch); background: #141823; border-right: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 13px; color: var(--dim); }
.ruler .ticks { position: relative; flex: none; }
.ruler .tick { position: absolute; top: 0; bottom: 0; padding: 11px 10px; font-size: 13px; font-weight: 600; color: var(--dim); border-left: 1px solid var(--line); white-space: nowrap; }
.ruler .tick.day { color: var(--accent); }
.g-row { position: absolute; left: 0; height: var(--rowh); display: flex; border-bottom: 1px solid rgba(38,44,58,.7); }
.g-ch { position: sticky; left: 0; z-index: 3; flex: none; width: var(--ch); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; background: #131722; border-right: 1px solid var(--line); cursor: pointer; }
.g-ch:hover { background: #181d2a; }
.g-ch .num { width: 34px; font-size: 12px; font-weight: 700; color: var(--faint); text-align: right; flex: none; }
.g-ch .logo { width: 56px; height: 40px; display: grid; place-items: center; flex: none; }
.g-ch .logo img { max-width: 56px; max-height: 36px; object-fit: contain; }
.g-ch .logo .ltxt { font: 700 11px Inter; color: var(--dim); text-align: center; line-height: 1.1; }
.g-ch .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.g-ch .star { border: 0; background: none; color: var(--faint); font-size: 15px; padding: 4px; opacity: 0; transition: opacity .2s; }
.g-ch:hover .star, .g-ch .star.on { opacity: 1; }
.g-ch .star.on { color: var(--accent); }
.g-progs { position: relative; flex: none; }
.prog { position: absolute; top: 5px; bottom: 5px; border-radius: 9px; padding: 8px 12px 0 14px; background: var(--card); border: 1px solid transparent; overflow: hidden; cursor: pointer; transition: background .15s, border-color .15s; }
.prog::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--k, var(--other)); }
.prog:hover { background: var(--card2); border-color: var(--line2); }
.prog.now { background: #1b2130; }
.prog.past { opacity: .45; }
.prog b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog span { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog .lscore { position: absolute; right: 8px; top: 7px; padding: 2px 7px; border-radius: 6px; background: rgba(255,59,78,.18); color: #ff8a96; font: 700 12px Outfit; }
.prog .tagl { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .05em; vertical-align: 1px; background: rgba(255,59,78,.2); color: #ff8a96; }
.prog .tagn { background: rgba(61,220,151,.18); color: var(--good); }
.prog.sel { border-color: var(--accent); }
.g-empty { position: absolute; top: 5px; bottom: 5px; border-radius: 9px; padding: 10px 14px; color: var(--faint); font-size: 13px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px); }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--live); z-index: 4; pointer-events: none; box-shadow: 0 0 10px rgba(255,59,78,.6); }
.nowline::before { content: ''; position: absolute; top: 34px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.k-sports { --k: var(--sports); } .k-news { --k: var(--news); } .k-movies { --k: var(--movies); } .k-kids { --k: var(--kids); } .k-other { --k: var(--other); }

/* ---------- details & show ---------- */
.detail-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.detail-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.97) 0%, rgba(11,13,18,.7) 50%, rgba(11,13,18,.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 50%); }
.detail-hero .wrap { position: relative; z-index: 2; display: flex; gap: 30px; padding: 40px 28px 32px; align-items: flex-end; }
.detail-hero .poster { width: 210px; flex: none; cursor: default; }
.detail-hero .poster:hover .art { transform: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.detail-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.05; }
.detail-hero .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--dim); font-weight: 600; margin: 10px 0 14px; font-size: 14px; }
.detail-hero .meta .pill { padding: 1px 8px; border: 1px solid var(--line2); border-radius: 6px; font-size: 12px; }
.detail-hero p { max-width: 720px; color: #d0d6e2; margin: 0 0 18px; }
.seasons { display: flex; gap: 8px; padding: 0 28px; margin: 18px 0; flex-wrap: wrap; }
.eps { padding: 0 28px; display: grid; gap: 10px; }
.ep { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.ep:hover { background: var(--card); }
.ep .art { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--card2); }
.ep .art img { width: 100%; height: 100%; object-fit: cover; }
.ep:hover .play-ico { opacity: 1; }
.ep h3 { font: 600 16px Inter, sans-serif; }
.ep p { margin: 4px 0 0; color: var(--dim); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .n { color: var(--faint); font-weight: 700; font-size: 13px; }
.ep .done { color: var(--good); font-weight: 700; font-size: 13px; }

/* ---------- fix match ---------- */
.match-list { display: grid; gap: 8px; margin-top: 16px; max-height: 46vh; overflow: auto; }
.match { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); transition: border-color .2s, background .2s; }
.match:hover { border-color: var(--accent); background: #161a24; }
.match.on { border-color: var(--good); }
.match .mp { flex: none; width: 54px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; }
.match .mp img { width: 100%; height: 100%; object-fit: cover; }
.match .mt { min-width: 0; }
.match .md { display: block; margin-top: 3px; font-size: 13px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- settings ---------- */
.settings { max-width: 980px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 20px; margin-bottom: 4px; }
.panel > p { margin: 0 0 18px; color: var(--dim); }
.add-lib { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.add-lib select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.ok { color: var(--good); } .status.ok::before { background: var(--good); }
.status.off { color: #ff8a96; } .status.off::before { background: var(--live); }
.lib-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); margin-top: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; padding: 70px 20px; color: var(--dim); }
.empty h2 { color: var(--text); font-size: 24px; margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- sheet (pop-up) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5,6,10,.7); backdrop-filter: blur(6px); animation: fade .2s; padding: 16px; }
.sheet .box { width: min(560px, 100%); max-height: 86vh; overflow: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.sheet .box h2 { font-size: 22px; margin-bottom: 6px; }
.sheet .box .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.player video { flex: 1; width: 100%; min-height: 0; background: #000; }
.player-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(180deg, rgba(0,0,0,.8), transparent); transition: opacity .4s; }
.player.idle .player-bar { opacity: 0; }
.player-title b { display: block; font: 600 18px Outfit, sans-serif; }
.player-title span { color: #b8bfcc; font-size: 13px; }
.player-score { margin-left: auto; display: flex; gap: 10px; }
.player-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #ddd; pointer-events: none; }
.player-msg div { max-width: 520px; pointer-events: auto; background: rgba(20,22,30,.9); padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line2); }
.up-next { position: absolute; right: 24px; bottom: 90px; z-index: 3; width: 340px; padding: 16px; border-radius: 16px; background: rgba(20,22,30,.94); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: fade .3s; }
.up-next .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.up-next h3 { font-size: 17px; margin: 4px 0 12px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70; padding: 12px 18px; border-radius: 12px; background: #232938; border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-weight: 600; animation: fade .25s; }

/* ---------- phones and tablets ---------- */
@media (max-width: 860px) {
  .guide-tools .input { width: 100% !important; order: 5; }
  .guide-scroll { height: 72vh; }
  .now-card p { -webkit-line-clamp: 1; }
  .page, .hero .info, .detail-hero .wrap { padding-left: 16px; padding-right: 16px; }
  .shelf h2, .rail, .scores-strip, .guide-tools, .seasons, .eps { padding-left: 16px; padding-right: 16px; }
  .guide, .now-card { margin-left: 16px; margin-right: 16px; }
  .guide { --ch: 128px; --rowh: 60px; }
  .g-ch .nm, .g-ch .num { display: none; }
  .g-ch .star { opacity: 1; }
  .now-card { flex-wrap: wrap; } .now-card .lg { width: 90px; height: 60px; } .now-card .act { margin-left: 0; }
  .poster { width: 132px; }
  .genre { width: 210px; }
  .genre-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .genre .gname b { font-size: 18px; }
  .wide { width: 250px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; }
  .games { grid-template-columns: 1fr; }
  .detail-hero .wrap { flex-direction: column; align-items: flex-start; }
  .detail-hero .poster { width: 130px; }
  .ep { grid-template-columns: 130px 1fr; }
  .ep > :last-child { display: none; }
  .up-next { left: 16px; right: 16px; width: auto; }
  .lib-row { grid-template-columns: 1fr; }
}
.game.playable { cursor: pointer; }
.game.playable:hover .inner { filter: brightness(1.12); }
.game.focus { border-color: var(--accent, #ff7a45); box-shadow: 0 0 0 2px var(--accent, #ff7a45), 0 10px 40px rgba(255, 122, 69, .25); transition: box-shadow .4s, border-color .4s; }

/* phones: the side bar becomes a tab bar at the bottom */
@media (max-width: 760px) {
  body { padding-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .side { top: auto; right: 0; width: auto; height: calc(62px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: center; padding: 4px 4px env(safe-area-inset-bottom);
    border-right: 0; border-top: 1px solid rgba(255,255,255,.06); background: rgba(9,11,16,.96); backdrop-filter: blur(14px); }
  .side .brand { display: none; }
  #nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  #nav a { width: auto; flex: 1; padding: 8px 0 6px; border-radius: 12px; }
  #nav a svg { width: 21px; height: 21px; }
  #nav a span { font-size: 9.5px; }
  #nav a.on::before { left: 30%; right: 30%; top: -5px; bottom: auto; width: auto; height: 3px; }
  #nav a[data-v="settings"] { margin-top: 0; }
  .live-dot { right: calc(50% - 16px); top: 5px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   LyTV look: big cinematic hero, poster rows with a clear focus ring,
   detail pages over the backdrop, compact sports cards
   ===================================================================== */
.btn.glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255,255,255,.18); }
.btn.big { padding: 13px 26px; font-size: 16px; border-radius: 14px; }

/* home hero */
.home-hero { height: min(82vh, 780px); min-height: 440px; align-items: center; }
.home-hero .bg { background-position: center 22%; animation: slowzoom 24s ease-out forwards, fadein .8s ease; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.home-hero::after { background: linear-gradient(90deg, rgba(11,13,18,.96) 0%, rgba(11,13,18,.7) 32%, rgba(11,13,18,.05) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(11,13,18,.55) 18%, rgba(11,13,18,0) 42%), linear-gradient(180deg, rgba(11,13,18,.5) 0%, transparent 20%); }
.home-hero .info { padding: 0 40px 120px; max-width: 700px; animation: fade .6s var(--ease); }
.hero .tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(255,182,72,.14); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1, .detail-hero h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.5); margin-bottom: 14px; }
.hero .meta, .detail-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #c9cfdb; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.star { color: var(--accent); }
.hero p { font-size: 16px; color: #d3d8e3; max-width: 600px; }
.dots { position: absolute; z-index: 3; left: 40px; bottom: 92px; display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.35); transition: width .3s var(--ease), background .3s; }
.dots button.on { width: 26px; background: var(--accent); }
/* the first row tucks up into the hero */
.home-hero + .shelf { position: relative; z-index: 2; margin-top: -70px; }

/* rows */
.shelf { margin-top: 34px; }
.shelf h2 { font-size: 21px; font-weight: 700; padding: 0 40px; }
.rail, .scores-strip { padding-left: 40px; padding-right: 40px; scroll-padding-inline: 40px; }
.rail { gap: 16px; padding-top: 8px; padding-bottom: 18px; }
.page { padding-left: 40px; padding-right: 40px; }
.poster { width: 176px; }
.poster .art { border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.45); outline: 3px solid transparent; outline-offset: 3px; transition: transform .3s var(--ease), outline-color .2s, box-shadow .3s; }
.poster:hover .art, .poster:focus-visible .art { transform: scale(1.04); outline-color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.poster .t { transition: color .2s; } .poster:hover .t { color: #fff; }
.bar { height: 4px; background: rgba(255,255,255,.18); }
.bar i { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.wide .art { border-radius: 10px; outline: 3px solid transparent; outline-offset: 3px; transition: transform .3s var(--ease), outline-color .2s; }
.wide:hover .art { transform: scale(1.03); outline-color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.genre { outline: 3px solid transparent; outline-offset: 3px; }
.genre:hover { outline-color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.browse-hero { height: min(62vh, 600px); }
.browse-hero .info { padding: 0 40px 50px; }
.browse-hero + .page { margin-top: -40px; position: relative; z-index: 2; }

/* movie / show pages */
.detail-hero { min-height: min(78vh, 720px); align-items: center; }
.detail-hero .bg { background-position: center 18%; }
.detail-hero::after { background: linear-gradient(90deg, rgba(11,13,18,.97) 0%, rgba(11,13,18,.8) 30%, rgba(11,13,18,.15) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(11,13,18,0) 35%), linear-gradient(180deg, rgba(11,13,18,.45) 0%, transparent 18%); }
.detail-hero .wrap { padding: 60px 40px 50px; gap: 34px; align-items: center; }
.detail-hero .dinfo { max-width: 720px; }
.detail-hero .meta .pill { padding: 1px 7px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 5px; font-size: 12px; color: #fff; }
.detail-hero p { font-size: 16px; line-height: 1.6; color: #d3d8e3; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.detail-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.dposter { flex: none; width: 220px; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.dposter img { width: 100%; height: 100%; object-fit: cover; }
.file-line { padding: 0 40px; font-size: 12px; margin-top: -18px; position: relative; z-index: 2; }
.seasons, .eps { padding-left: 40px; padding-right: 40px; }
.ep .art { outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.ep:hover .art { outline-color: #fff; }

/* search */
.search-page { padding-top: 40px; }
.search-box { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); max-width: 760px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 24px; height: 24px; fill: var(--dim); flex: none; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font: 600 22px Outfit, sans-serif; min-width: 0; }
.sh { font-size: 20px; margin: 30px 0 14px; }
.scores-strip.flush { padding-left: 0; padding-right: 0; }

/* sports */
.sports-page .page-head { margin-bottom: 16px; }
.sports-page .page-head h1 { font-size: 36px; }
.livecount .livepill { font-size: 13px; font-weight: 700; }
.badges { display: flex; gap: 16px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.badges::-webkit-scrollbar { display: none; }
.lbadge { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; padding: 0; border: 0; background: none; color: var(--dim); font-size: 12px; font-weight: 600; }
.lbadge .disc { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a3346, #161b26); border: 2px solid var(--line2); font: 700 15px Outfit, sans-serif; color: #fff; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.lbadge .disc img { width: 62%; height: 62%; object-fit: contain; }
.lbadge:hover .disc { transform: scale(1.06); border-color: #fff; }
.lbadge.on { color: #fff; }
.lbadge.on .disc { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,182,72,.25); }
.lbadge .ln { max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint { font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.league-head { margin: 26px 0 12px; font-size: 20px; font-weight: 700; }
.games { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.game { border-radius: 14px; background: linear-gradient(180deg, #171c27, #131720); border: 1.5px solid var(--line); padding: 14px 16px 12px; }
.game:hover { border-color: #3c465c; transform: translateY(-2px); }
.game.playable:hover { border-color: rgba(255,182,72,.7); }
.game .top-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--dim); font-weight: 600; }
.game .top-line img { width: 18px; height: 18px; object-fit: contain; }
.game .top-line > :last-child { margin-left: auto; }
.game .time { color: var(--accent); font-weight: 700; font-size: 13px; }
.game .final { color: var(--faint); font-weight: 700; }
.game .team { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.game .team img { width: 26px; height: 26px; }
.game .team b { flex: 1; min-width: 0; font: 600 16px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .team .rk { color: var(--faint); font-size: 12px; margin-right: 5px; }
.game .team .rec { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.game .team .pts { font: 700 22px/1 Outfit, sans-serif; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.game .team.lose b, .game .team.lose .pts { color: var(--faint); }
.game .team .pos { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.game .sit { font-size: 12px; margin-top: 4px; }
.game .foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; gap: 8px; flex-wrap: nowrap; }
.game .tv { color: #cbd2de; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game.playable .tv { color: var(--accent); }
.game .tv.off { color: var(--faint); font-weight: 500; }
.nsrc { margin-left: auto; flex: none; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--dim); font-size: 11.5px; font-weight: 700; }
.ch-list { display: grid; gap: 8px; margin-top: 14px; max-height: 50vh; overflow: auto; }
.ch-pick { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg2); transition: border-color .15s, background .15s; }
.ch-pick:hover, .ch-pick:focus-visible { border-color: var(--accent); background: #171c27; outline: none; }
.ch-pick.best { border-color: rgba(255,182,72,.55); background: linear-gradient(90deg, rgba(255,182,72,.1), transparent 70%); }
.ch-pick .go { grid-row: span 2; font-style: normal; color: var(--accent); font-size: 14px; }
.tagb { margin-left: 6px; padding: 1px 7px; border-radius: 5px; background: var(--accent); color: #140d03; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.src-head { display: flex; align-items: center; gap: 14px; }
.src-head img { width: 44px; height: 44px; object-fit: contain; }
.src-head > div { flex: 1; min-width: 0; text-align: center; }
.src-head h2 { font-size: 20px; }
.src-sub { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 4px; font-size: 13px; color: var(--dim); }
.ch-pick img, .ch-pick .nologo { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.06); }
.ch-pick span { font-size: 12px; }

@media (max-width: 860px) {
  .page, .shelf h2, .rail, .scores-strip, .seasons, .eps, .file-line { padding-left: 16px; padding-right: 16px; }
  .home-hero { height: 70vh; min-height: 420px; align-items: flex-end; }
  .home-hero .info, .browse-hero .info { padding: 0 16px 96px; }
  .dots { left: 16px; bottom: 74px; }
  .home-hero + .shelf { margin-top: -54px; }
  .hero p { -webkit-line-clamp: 3; font-size: 14px; }
  .poster { width: 128px; }
  .detail-hero { min-height: 62vh; align-items: flex-end; }
  .detail-hero .wrap { padding: 40px 16px 30px; }
  .dposter { display: none; }
  .detail-hero p { -webkit-line-clamp: 4; font-size: 14px; }
  .btn.big { padding: 11px 20px; font-size: 15px; }
  .search-page { padding-top: 22px; }
  .search-box input { font-size: 18px; }
  .lbadge { width: 64px; } .lbadge .disc { width: 54px; height: 54px; }
  .games { grid-template-columns: 1fr; }
}

/* game pop-up: stats and sources */
.sheet .box.wide-sheet { width: min(720px, 100%); }
.gs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gs-team { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.gs-team img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.gs-team b { font: 700 17px Outfit, sans-serif; } .gs-team span { font-size: 12px; color: var(--faint); }
.gs-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gs-score { font: 800 40px/1 Outfit, sans-serif; font-variant-numeric: tabular-nums; display: flex; gap: 12px; align-items: center; }
.gs-score i { font-style: normal; color: var(--faint); font-size: 26px; }
.gs-score .lose { color: var(--faint); }
.gs-vs { font: 700 18px Outfit, sans-serif; color: var(--faint); }
.gs-mid .time { color: var(--accent); font-weight: 700; }
.gs-lg { font-size: 11px; color: var(--faint); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gs-body { min-height: 60px; }
.gs-sec { margin-top: 16px; }
.gs-cap, .gs-h { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.gs-h { margin: 22px 0 0; }
.wp { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--bg2); }
.wp span { display: block; height: 100%; transition: width .6s var(--ease); }
.wp-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; }
.ls { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.ls th { text-align: left; font-weight: 700; padding: 6px 4px; white-space: nowrap; }
.ls th img { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 8px; }
.ls td { text-align: center; padding: 6px 4px; color: var(--dim); }
.ls thead td { font-size: 12px; color: var(--faint); font-weight: 700; }
.ls .tot { font-weight: 800; color: var(--text); }
.ls tbody tr + tr { border-top: 1px solid var(--line); }
.gs-play { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); font-size: 13px; color: var(--dim); border-left: 3px solid var(--accent); }
.ldrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 7px 0; }
.ldrow + .ldrow { border-top: 1px solid var(--line); }
.ld { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ld.r { flex-direction: row-reverse; text-align: right; }
.ld img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--card2); flex: none; }
.ld div { min-width: 0; } .ld b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld span { font-size: 12.5px; color: var(--dim); }
.ldcat { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; text-align: center; max-width: 110px; }
.tstats { display: grid; gap: 2px; }
.tsr { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; padding: 5px 0; font-variant-numeric: tabular-nums; }
.tsr b:first-child { text-align: left; } .tsr b:last-child { text-align: right; }
.tsr span { text-align: center; font-size: 12.5px; color: var(--faint); }
.gs-foot { margin-top: 16px; font-size: 12px; }
@media (max-width: 760px) {
  .sheet { align-items: end; padding: 0; }
  .sheet .box { border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .gs-team img { width: 44px; height: 44px; }
  .gs-score { font-size: 32px; }
  .ld img { width: 32px; height: 32px; }
}

/* channel cards: On now (favorites) and Sports on now */
.shelf h2 .sub { font: 700 12px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.chcard { flex: 0 0 auto; width: 270px; border-radius: 12px; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); cursor: pointer; outline: 3px solid transparent; outline-offset: 3px; transition: transform .25s var(--ease), outline-color .2s, border-color .2s; }
.chcard:hover, .chcard:focus-visible { transform: scale(1.03); outline-color: #fff; border-color: transparent; }
.chlogo { position: relative; height: 118px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #232a39, #141821); }
.chlogo img { max-width: 62%; max-height: 64%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
.chlogo b { font: 700 20px Outfit, sans-serif; padding: 0 16px; text-align: center; }
.chcard:hover .play-ico { opacity: 1; }
.livetag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; background: rgba(255,59,78,.16); color: #ff7482; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.livetag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.chinfo { padding: 11px 14px 13px; border-top: 1px solid var(--line); }
.chn { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chn .num { color: var(--faint); font-weight: 600; margin-right: 4px; }
.chp { margin-top: 3px; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar { margin-top: 9px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width .6s; }
@media (max-width: 860px) { .chcard { width: 220px; } .chlogo { height: 96px; } }
.seek-flash { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); padding: 12px 18px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font: 700 16px Outfit, sans-serif; pointer-events: none; animation: fade .2s; }
.seek-flash.l { left: 12%; } .seek-flash.r { right: 12%; }

/* sign-in */
body.auth { padding-left: 0; padding-bottom: 0; }
body.auth .side { display: none; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 30% 0%, rgba(255,182,72,.12), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(255,94,98,.1), transparent 50%); }
.auth-card { width: min(400px, 100%); display: grid; gap: 14px; padding: 32px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-logo { width: 54px; height: 54px; }
.auth-card h1 { font-size: 26px; }
.auth-card p { margin: -6px 0 4px; }
.auth-card .btn { justify-content: center; }
.auth-err { color: #ff8a96; min-height: 1em; margin: 0 !important; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check.small { font-size: 13px; }

/* LyTV's own player controls (sound-fix mode) */
.pctl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); transition: opacity .4s; }
.player.idle .pctl { opacity: 0; }
.pctl .icon-btn { flex: none; width: 44px; height: 44px; font-size: 14px; font-weight: 800; }
.pctl .ct { flex: none; font-variant-numeric: tabular-nums; font-size: 13px; color: #d7dbe4; min-width: 44px; text-align: center; }
.pctl input[type=range] { flex: 1; min-width: 60px; accent-color: var(--accent); height: 28px; }
@media (max-width: 560px) { .pctl { gap: 6px; padding-left: 10px; padding-right: 10px; } .pctl .icon-btn { width: 38px; height: 38px; } #cBack, #cFwd { display: none; } }

/* subtitles */
video::cue { font: 600 clamp(18px, 2.6vw, 34px)/1.3 Inter, system-ui, sans-serif; color: #fff; background: rgba(0,0,0,.62); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.cc-btn { flex: none; font: 800 13px Inter, sans-serif; letter-spacing: .04em; }
.cc-btn.on { background: var(--accent); color: #140d03; }
.cc-menu { position: absolute; top: 66px; right: 16px; z-index: 5; width: min(320px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; padding: 8px; border-radius: 14px; background: rgba(18,21,29,.97); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: fade .15s; }
.cc-menu .cc-h { padding: 6px 10px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cc-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 600; font-size: 15px; }
.cc-menu button span { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; }
.cc-menu button:hover { background: rgba(255,255,255,.07); }
.cc-menu button.on { color: var(--accent); }
.cc-menu button.on::before { content: '✓'; }
/* in the game pop-up the sources aren't a box of their own: the whole pop-up scrolls as one, so the best source can't be scrolled past */
.wide-sheet .ch-list { max-height: none; overflow: visible; }
.buf-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); letter-spacing: .02em; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(0,0,0,.65); font-weight: 700; font-size: 14px; pointer-events: none; animation: fade .2s; }
.unmute { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 10px 18px; border-radius: 99px; border: 0; background: var(--accent); color: #140d03; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

