/* FrankyVision Player */
:root {
  --bg: #0a0714;
  --bg2: #0f0a1f;
  --panel: #140f29;
  --card: #1a1433;
  --card2: #231b45;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #f5f2ff;
  --muted: #a69dc9;
  --dim: #6f6893;
  --pink: #ff3dbb;
  --violet: #8b5cff;
  --cyan: #2fd6ff;
  --gold: #ffc53d;
  --ok: #3ee59a;
  --bad: #ff5a6a;
  --grad: linear-gradient(135deg, var(--pink), var(--violet) 55%, var(--cyan));
  --r: 16px;
  --r-sm: 10px;
  --side: 244px;
  --top: 64px;
  --gut: clamp(16px, 3vw, 36px);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
html.player-open body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
kbd { background: var(--card2); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 16px; }
.flex { flex: 1; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 20px; height: 20px; flex: none; }
.i.big { width: 40px; height: 40px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .22); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- spinner / boot ---------- */
.spin { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--pink); border-right-color: var(--violet); animation: spin .8s linear infinite; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--bg); z-index: 200; }
.boot img { border-radius: 18px; box-shadow: 0 10px 40px rgba(139, 92, 255, .35); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--card2); border: 1px solid var(--line2); color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: #2d2456; border-color: rgba(255, 255, 255, .2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(255, 61, 187, .25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.icon { width: 40px; padding: 0; }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.field {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field.sm { height: 38px; font-size: 14px; }
.field:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 255, .25); }
.field::placeholder { color: var(--dim); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a69dc9' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
select.field option { background: var(--panel); }
input[type=search]::-webkit-search-cancel-button { filter: invert(.7); }
.lbl { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lbl small { font-weight: 400; color: var(--dim); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 999px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg button .i { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; justify-content: center; }
.layout-seg button { padding: 0 9px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.ok { background: rgba(62, 229, 154, .14); color: var(--ok); }
.pill.bad { background: rgba(255, 90, 106, .14); color: var(--bad); }
.bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.bar.big { height: 6px; margin: 12px 0 4px; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(800px 500px at 15% -10%, rgba(255, 61, 187, .22), transparent 60%), radial-gradient(800px 600px at 100% 110%, rgba(47, 214, 255, .14), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 440px; display: grid; gap: 20px; padding: 32px 28px; border-radius: 24px; background: rgba(20, 15, 41, .82); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.login-brand { text-align: center; display: grid; justify-items: center; gap: 10px; }
.login-brand img { border-radius: 16px; box-shadow: 0 8px 30px rgba(139, 92, 255, .4); }
.login-brand h1 { font-size: 26px; font-weight: 700; }
.login-brand h1 b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-brand p { color: var(--muted); }
.login-form { display: grid; gap: 14px; }
.login-form .btn { width: 100%; margin-top: 4px; }
.login-err, .login-warn { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.login-err { background: rgba(255, 90, 106, .12); border: 1px solid rgba(255, 90, 106, .35); color: #ffb3bb; }
.login-warn { background: rgba(255, 197, 61, .1); border: 1px solid rgba(255, 197, 61, .3); color: #ffe2a0; }
.login-help { text-align: center; font-size: 13px; color: var(--dim); }
.pw { position: relative; display: block; }
.pw .field { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }

/* ---------- shell ---------- */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); z-index: 30;
  display: flex; flex-direction: column; gap: 22px; padding: 18px 14px;
  background: var(--bg2); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; }
.brand img { border-radius: 11px; flex: none; }
.brand b { display: block; font-size: 18px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.side-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side-nav a.on { background: linear-gradient(90deg, rgba(255, 61, 187, .16), rgba(139, 92, 255, .1)); color: var(--text); box-shadow: inset 3px 0 0 var(--pink); }
.side-nav a.on .i { color: var(--pink); }
.side-foot { margin-top: auto; }
.acct-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.acct-link .i { color: var(--muted); }
.acct-link span { min-width: 0; }
.acct-link b, .acct-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-link small { color: var(--muted); font-size: 12px; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 25; height: var(--top);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gut);
  background: rgba(10, 7, 20, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top-search { position: relative; display: flex; align-items: center; width: min(460px, 50vw); }
.top-search .i { position: absolute; left: 14px; color: var(--dim); width: 18px; height: 18px; pointer-events: none; }
.top-search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); outline: none; }
.top-search input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 255, .22); }
html[data-route=search] .top-search { visibility: hidden; }
.brand.mob, .mob-only { display: none; }
.view { padding: 28px var(--gut) 60px; max-width: 1680px; outline: none; }
.bottomnav { display: none; }

/* desktop */
[data-layout=desktop] .main { margin-left: var(--side); }
@media (max-width: 1180px) {
  [data-layout=desktop] { --side: 78px; }
  [data-layout=desktop] .sidebar { padding: 18px 12px; align-items: center; }
  [data-layout=desktop] .brand span, [data-layout=desktop] .side-nav span, [data-layout=desktop] .acct-link span { display: none; }
  [data-layout=desktop] .brand { padding: 4px; }
  [data-layout=desktop] .side-nav a { width: 52px; justify-content: center; padding: 0; }
  [data-layout=desktop] .acct-link { padding: 12px; }
}

/* mobile */
[data-layout=mobile] { --top: 56px; --gut: 16px; }
[data-layout=mobile] .sidebar, [data-layout=mobile] .top-search { display: none; }
[data-layout=mobile] .brand.mob { display: flex; padding: 0; gap: 10px; }
[data-layout=mobile] .brand.mob img { border-radius: 9px; }
[data-layout=mobile] .brand.mob b { font-size: 17px; }
[data-layout=mobile] .mob-only { display: inline-flex; width: 38px; height: 38px; background: transparent; border-color: transparent; }
[data-layout=mobile] .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--top) + env(safe-area-inset-top)); gap: 6px; }
[data-layout=mobile] .layout-seg button { height: 28px; padding: 0 7px; }
[data-layout=mobile] .view { padding: 18px var(--gut) calc(96px + env(safe-area-inset-bottom)); }
[data-layout=mobile] .bottomnav {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(15, 10, 31, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
[data-layout=mobile] .bottomnav a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--dim); border-radius: 12px; }
[data-layout=mobile] .bottomnav a.on { color: var(--text); }
[data-layout=mobile] .bottomnav a.on .i { color: var(--pink); }
[data-layout=mobile] .bottomnav .i { width: 22px; height: 22px; }

/* ---------- page header ---------- */
.page-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-h h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-right: auto; }
.page-h h1 small { font-size: 15px; font-weight: 500; margin-left: 6px; }
.page-h .field { width: auto; }
.search-in { position: relative; display: flex; align-items: center; }
.search-in .i { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search-in .field { padding-left: 38px; width: 260px; height: 42px; }
.page-h .sort, .page-h .cat-select { height: 42px; }
.cat-select { max-width: 260px; }
[data-layout=desktop] .page-h .cat-select { display: none; }
[data-layout=desktop] .v-guide .page-h .cat-select { display: block; }
[data-layout=mobile] .page-h { gap: 10px; }
[data-layout=mobile] .page-h h1 { width: 100%; }
[data-layout=mobile] .page-h .search-in { flex: 1 1 100%; order: 3; }
[data-layout=mobile] .page-h .search-in .field { width: 100%; }
[data-layout=mobile] .page-h .cat-select { flex: 1; max-width: none; }
[data-layout=mobile] .page-h .sort { flex: 0 1 auto; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; margin-bottom: 6px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: .15s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.chip.on { background: var(--text); color: var(--bg); border-color: transparent; }
[data-layout=mobile] .v-movies > .chips, [data-layout=mobile] .v-series > .chips { display: none; }

.state { display: grid; justify-items: center; gap: 14px; padding: 70px 20px; text-align: center; color: var(--muted); }
.state .i.big { color: var(--dim); }
.state.err .i.big { color: var(--bad); }
.state p { max-width: 460px; }

/* ---------- artwork ---------- */
.art { position: relative; overflow: hidden; border-radius: var(--r-sm); background: linear-gradient(135deg, hsl(var(--h, 270) 55% 28%), hsl(calc(var(--h, 270) + 40) 60% 16%)); }
.art::before { content: ""; display: block; padding-top: 100%; }
.art.tall::before { padding-top: 150%; }
.art.wide::before { padding-top: 56.25%; }
.art > span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.logo { background: #fff1; border: 1px solid var(--line); }
.art.logo > span { font-size: 14px; }
.art.logo > img { object-fit: contain; padding: 12%; background: rgba(255, 255, 255, .03); }

/* ---------- cards / shelves / grids ---------- */
.card { position: relative; display: block; min-width: 0; cursor: pointer; }
.card .art { transition: transform .2s, box-shadow .2s; }
.card:hover .art { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12); }
.card-t { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-s { display: block; font-size: 12px; color: var(--muted); }
.card .badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; }
.card .badge .i { width: 12px; height: 12px; color: var(--gold); }
.card > .bar, .ep-art > .bar { position: absolute; left: 8px; right: 8px; border-radius: 4px; }
.poster > .bar { top: calc(100% - 52px); }
.cont > .bar { top: calc(100% - 58px); }
.cont-play { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.cont-play .i { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.card:hover .cont-play, .ep:hover .cont-play { opacity: 1; }
.chtile .card-t { text-align: center; font-size: 13px; }

.shelf { margin: 0 0 30px; }
.shelf header, .res header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.shelf h2, .res h2 { font-size: 20px; font-weight: 700; }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; font-weight: 600; }
.more:hover { color: var(--text); }
.more .i { width: 16px; height: 16px; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; margin: -4px -2px 0; scrollbar-width: thin; }
.shelf-row > * { scroll-snap-align: start; }
.shelf-row .cont { width: 280px; }
.shelf-row:has(.cont) { grid-auto-columns: 280px; }
.shelf-row .chtile { width: 150px; }
.shelf.skel .art { animation: pulse 1.4s ease-in-out infinite; background: var(--card); }
@keyframes pulse { 50% { opacity: .5; } }
[data-layout=mobile] .shelf-row { scrollbar-width: none; grid-auto-columns: 118px; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 12px; scroll-padding: 0 var(--gut); }
[data-layout=mobile] .shelf-row:has(.cont) { grid-auto-columns: 220px; }
[data-layout=mobile] .shelf-row .cont { width: 220px; }
[data-layout=mobile] .shelf-row .chtile { width: 112px; }
[data-layout=mobile] .shelf h2 { font-size: 18px; }
[data-layout=mobile] .shelf-row::-webkit-scrollbar { display: none; }

.grid.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
[data-layout=mobile] .grid.posters { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 10px; }
[data-layout=mobile] .card-t { font-size: 13px; }
.sentinel { grid-column: 1 / -1; height: 1px; }

/* ---------- home ---------- */
.hero { position: relative; display: grid; gap: 22px; margin-bottom: 32px; padding: 32px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(600px 300px at 0% 0%, rgba(255, 61, 187, .28), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(47, 214, 255, .2), transparent 70%), var(--panel);
  border: 1px solid var(--line2); }
.eyebrow { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.hero h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; max-width: 720px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.q { position: relative; display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); transition: transform .15s, background .15s; overflow: hidden; }
.q:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); }
.q .i { width: 28px; height: 28px; margin-bottom: 8px; }
.q b { font-size: 17px; }
.q small { color: var(--muted); }
.q-live .i { color: var(--pink); } .q-guide .i { color: var(--gold); } .q-movie .i { color: var(--cyan); } .q-series .i { color: var(--violet); }
[data-layout=mobile] .hero { padding: 20px; border-radius: 20px; margin-bottom: 26px; }
[data-layout=mobile] .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
[data-layout=mobile] .q { padding: 14px; }
[data-layout=mobile] .q .i { width: 24px; height: 24px; margin-bottom: 4px; }

/* ---------- live ---------- */
.live { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.cats { position: sticky; top: calc(var(--top) + 20px); display: grid; gap: 10px; max-height: calc(100vh - var(--top) - 50px); }
.cat-list { overflow-y: auto; display: grid; align-content: start; gap: 2px; padding-right: 4px; scrollbar-width: thin; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.cat-list a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list a small { color: var(--dim); font-size: 12px; }
.cat-list a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.cat-list a.on { background: var(--card2); color: var(--text); }
.cat-list a.on small { color: var(--pink); }
[data-layout=mobile] .live { display: block; }
[data-layout=mobile] .cats { display: none; }
.ch-list { display: grid; gap: 6px; }
.ch-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; min-width: 0; }
.ch-row:hover { background: var(--card); border-color: var(--line2); }
.ch-num { width: 34px; flex: none; text-align: right; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-row .art { width: 64px; flex: none; }
.ch-row .art::before { padding-top: 62%; }
.ch-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ch-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-now { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-now .now-t { color: var(--text); opacity: .85; }
.ch-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; max-width: 320px; opacity: 0; }
.ch-row.has-now .ch-bar { opacity: 1; }
.ch-bar > i { display: block; height: 100%; width: 0; background: var(--grad); }
.tag { color: var(--muted); display: inline-flex; }
.tag .i { width: 16px; height: 16px; }
.fav { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); transition: color .15s, background .15s; }
.fav:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.fav.on { color: var(--pink); }
.fav.on .i { fill: currentColor; }
.fav.btn { width: 48px; color: var(--text); }
.fav.btn.on { color: var(--pink); }
[data-layout=mobile] .ch-row { gap: 10px; padding: 8px 10px; }
[data-layout=mobile] .ch-num { display: none; }
[data-layout=mobile] .ch-row .art { width: 56px; }

/* ---------- guide ---------- */
.v-guide { padding-bottom: 20px; }
.guide { display: flex; flex-direction: column; height: calc(100vh - var(--top) - 48px); height: calc(100dvh - var(--top) - 48px); min-height: 420px; }
.g-bar { margin-bottom: 14px; }
.g-bar h1 { margin-right: 0; }
.g-date { margin-right: auto; font-weight: 600; }
.g-nav { display: flex; gap: 6px; }
.g-scroll { position: relative; flex: 1; overflow: auto; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); overscroll-behavior: contain; }
.g-grid { --chw: 210px; --rowh: 66px; position: relative; width: calc(var(--chw) + var(--w)); }
.g-row { display: flex; height: var(--rowh); border-bottom: 1px solid var(--line); }
.g-head { position: sticky; top: 0; z-index: 4; height: 40px; background: var(--panel); border-bottom-color: var(--line2); }
.g-ch { position: sticky; left: 0; z-index: 2; width: var(--chw); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--panel); border-right: 1px solid var(--line2); cursor: pointer; }
.g-ch:hover { background: var(--card); }
.g-ch .art { width: 54px; flex: none; }
.g-ch .art::before { padding-top: 66%; }
.g-ch span { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-ch small { color: var(--dim); font-weight: 500; margin-right: 6px; }
.g-corner { z-index: 5; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; cursor: default; }
.g-corner:hover { background: var(--panel); }
.g-line { position: relative; width: var(--w); flex: none; }
.g-slot { position: absolute; top: 0; bottom: 0; padding: 11px 10px; border-left: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.g-slot.day { border-left-color: var(--violet); }
.g-slot.day b { color: var(--text); }
.g-prog { position: absolute; top: 5px; bottom: 5px; display: flex; align-items: center; padding: 0 10px; text-align: left; border-radius: 10px; background: var(--card); border: 1px solid var(--line); overflow: hidden; overflow: clip; transition: background .12s, border-color .12s; }
/* titles stay readable when a show started before the visible window */
.g-prog > span { position: sticky; left: calc(var(--chw) + 10px); display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.g-prog:hover { background: var(--card2); border-color: var(--line2); z-index: 1; }
.g-prog b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-prog small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-prog.now { background: linear-gradient(90deg, rgba(255, 61, 187, .22), rgba(139, 92, 255, .18)); border-color: rgba(255, 61, 187, .4); }
.g-prog.past { opacity: .5; }
.g-prog.none { background: transparent; border-style: dashed; color: var(--dim); }
.g-prog.none b { color: var(--muted); font-weight: 500; }
.g-loading { position: absolute; inset: 5px 0; left: 0; width: 100%; border-radius: 10px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent) var(--panel); background-size: 400px 100%; animation: shimmer 1.2s linear infinite; opacity: .6; }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.g-nowline { position: absolute; top: 40px; bottom: 0; width: 2px; margin-left: -1px; background: var(--pink); box-shadow: 0 0 10px var(--pink); z-index: 1; pointer-events: none; }
.g-nowline::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
[data-layout=mobile] .guide { height: calc(100dvh - var(--top) - env(safe-area-inset-top) - 96px - env(safe-area-inset-bottom)); margin: 0 calc(-1 * var(--gut)); }
[data-layout=mobile] .g-bar { padding: 0 var(--gut); }
[data-layout=mobile] .g-bar h1 { width: auto; margin-right: auto; }
[data-layout=mobile] .g-date { display: none; }
[data-layout=mobile] .g-scroll { border-radius: 0; border-left: 0; border-right: 0; }
[data-layout=mobile] .g-grid { --chw: 92px; --rowh: 62px; }
[data-layout=mobile] .g-ch { padding: 0 8px; flex-direction: column; justify-content: center; gap: 3px; }
[data-layout=mobile] .g-ch .art { width: 46px; }
[data-layout=mobile] .g-ch span { font-size: 10px; text-align: center; -webkit-line-clamp: 1; display: block; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
[data-layout=mobile] .g-ch small { display: none; }
[data-layout=mobile] .g-corner { font-size: 10px; }

/* ---------- detail ---------- */
.detail { position: relative; margin: -28px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); min-height: 70vh; }
.d-back { position: absolute; inset: 0 0 auto; height: 520px; background-size: cover; background-position: center 20%; opacity: .45; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.d-back.none { background: radial-gradient(600px 300px at 30% 0, rgba(139, 92, 255, .35), transparent); opacity: 1; }
.detail .back { position: relative; z-index: 2; margin-top: 20px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); }
.d-body { position: relative; z-index: 1; display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-top: 100px; align-items: start; }
.d-poster .art { box-shadow: 0 20px 50px rgba(0, 0, 0, .55); border-radius: 16px; }
.d-info { display: grid; gap: 16px; min-width: 0; }
.d-info h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-weight: 500; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .i { width: 15px; height: 15px; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plot { max-width: 760px; font-size: 16px; line-height: 1.6; color: #dcd6f5; }
.d-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; max-width: 760px; font-size: 14px; }
.d-info dt { color: var(--dim); font-weight: 600; }
.d-info dd { margin: 0; color: var(--muted); }
.d-info > .bar { max-width: 420px; }
.seasons { position: relative; z-index: 1; margin-top: 40px; }
.seasons .chips button { cursor: pointer; }
.eps { display: grid; gap: 10px; }
.ep { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 10px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.ep:hover { background: var(--panel); }
.ep-art { position: relative; }
.ep-art .cont-play { aspect-ratio: auto; inset: 0; bottom: 0; }
.ep-art > .bar { bottom: 8px; }
.ep-info { display: grid; align-content: start; gap: 4px; min-width: 0; }
.ep-info b { font-size: 16px; font-weight: 600; }
.ep-info p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-layout=mobile] .detail { margin-top: -18px; }
[data-layout=mobile] .d-back { height: 360px; }
[data-layout=mobile] .d-body { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
[data-layout=mobile] .d-poster { width: 150px; }
[data-layout=mobile] .actions .btn.primary { flex: 1; }
[data-layout=mobile] .ep { grid-template-columns: 140px 1fr; gap: 12px; padding: 6px 0; }
[data-layout=mobile] .ep-info b { font-size: 14px; }
[data-layout=mobile] .ep-info p { font-size: 13px; }

/* ---------- search ---------- */
.search-big { position: relative; display: flex; align-items: center; margin-bottom: 14px; max-width: 760px; }
.search-big .i { position: absolute; left: 18px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search-big input { width: 100%; height: 56px; padding: 0 20px 0 54px; font-size: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); outline: none; }
.search-big input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 255, .22); }
.tabs .chip { cursor: pointer; }
.res { margin: 8px 0 32px; }
.res .more { cursor: pointer; }

/* ---------- settings ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; max-width: 1200px; }
.panel { display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.panel h2 .i { color: var(--pink); }
.panel .seg { justify-self: start; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--dim); font-weight: 600; }
.kv dd { margin: 0; }
.kv .wrap { word-break: break-all; color: var(--muted); }
.keys dt { white-space: nowrap; }
[data-layout=mobile] .settings { grid-template-columns: 1fr; }

/* ---------- toasts / modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: calc(100% - 32px); }
[data-layout=mobile] .toasts { bottom: calc(90px + env(safe-area-inset-bottom)); }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px; background: rgba(35, 27, 69, .96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: 14px; font-weight: 500; pointer-events: auto; animation: tin .2s ease-out; max-width: 520px; }
.toast button { color: var(--cyan); font-weight: 700; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 12, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fin .15s; }
.modal.out { opacity: 0; transition: opacity .2s; }
@keyframes fin { from { opacity: 0; } }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; display: grid; gap: 12px; padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(14px); } }
.modal-card .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.modal-card h2 { font-size: 22px; padding-right: 30px; }
.sheet-ch { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.sheet-ch .art { width: 58px; }
.sheet-ch .art::before { padding-top: 66%; }
.sheet-ch > div:not(.art) { flex: 1; min-width: 0; }
.sheet-ch .art { flex: none; }
.sheet-ch b, .sheet-ch small { display: block; }
.sheet-desc { color: #d6d0ef; line-height: 1.6; }
.live-dot { color: var(--pink); font-weight: 700; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 5px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.modal-card .actions { margin-top: 8px; }
[data-layout=mobile] .modal.sheet { place-items: end stretch; padding: 0; }
[data-layout=mobile] .modal.sheet .modal-card { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
[data-layout=mobile] .modal-card .actions .btn { flex: 1; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.p-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.p-tap { position: absolute; inset: 0; z-index: 1; }
.player.idle { cursor: none; }
.p-ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; transition: opacity .25s; }
.p-ui > * { pointer-events: auto; }
.player.idle .p-ui, .player.idle .p-big { opacity: 0; pointer-events: none; }
.player.idle .p-ui > * { pointer-events: none; }
.p-top { display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 40px max(18px, env(safe-area-inset-left)); background: linear-gradient(rgba(0, 0, 0, .75), transparent); }
.p-logo:empty { display: none; }
.p-logo .art { width: 52px; border-radius: 8px; }
.p-logo .art::before { padding-top: 66%; }
.p-titles { flex: 1; min-width: 0; }
.p-title { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.p-sub { font-size: 14px; color: rgba(255, 255, 255, .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-live { display: none; padding: 3px 9px; border-radius: 6px; background: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.is-live .p-live { display: inline-block; }
.p-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: background .15s; }
.p-btn:hover { background: rgba(255, 255, 255, .14); }
.p-btn .i { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.p-listbtn { display: none; }
.has-list .p-listbtn { display: grid; }
.p-bottom { padding: 50px max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.p-prog { display: flex; align-items: center; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.p-t0, .p-t1 { min-width: 52px; }
.p-t1 { text-align: right; }
.p-bar { position: relative; flex: 1; height: 20px; cursor: pointer; touch-action: none; }
.p-bar::before, .p-buf, .p-fill { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; transition: height .12s, margin .12s; }
.p-bar::before { right: 0; background: rgba(255, 255, 255, .22); }
.p-buf { background: rgba(255, 255, 255, .35); }
.p-fill { background: var(--grad); }
.p-bar:hover::before, .p-bar:hover .p-buf, .p-bar:hover .p-fill, .scrubbing .p-bar::before, .scrubbing .p-buf, .scrubbing .p-fill { height: 6px; margin-top: -3px; }
.p-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 61, 187, .35); transform: scale(0); transition: transform .12s; }
.p-bar:hover .p-knob, .scrubbing .p-knob, .touch .p-knob { transform: scale(1); }
.p-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .8); font-size: 12px; opacity: 0; pointer-events: none; white-space: nowrap; }
.p-bar:hover .p-tip { opacity: 1; }
.is-live .p-bar { cursor: default; }
.is-live .p-knob, .is-live .p-tip, .is-live .p-buf { display: none; }
.p-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.p-pp .i { width: 28px; height: 28px; }
.p-prev, .p-next { display: none; }
.has-prev .p-prev, .has-next .p-next { display: grid; }
.is-live .p-rew, .is-live .p-fwd { display: none; }
.p-vol { display: flex; align-items: center; }
.p-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--pink); height: 4px; }
.p-vol:hover input, .p-vol input:focus { width: 90px; opacity: 1; margin-right: 8px; }
.p-info { margin-left: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.p-flex { flex: 1; }
.p-spin { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; pointer-events: none; }
.p-spin i { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--pink); border-right-color: var(--violet); animation: spin .8s linear infinite; }
.is-loading .p-spin { display: grid; }
.p-big { position: absolute; left: 50%; top: 50%; z-index: 3; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: none; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; transition: opacity .25s, transform .15s; }
.p-big .i { width: 38px; height: 38px; }
.p-big:hover { transform: scale(1.06); }
.is-paused:not(.is-loading):not(.has-msg) .p-big { display: grid; }
.touch .player:not(.idle):not(.is-loading):not(.has-msg) .p-big { display: grid; }
.p-seekfx { position: absolute; top: 50%; z-index: 3; width: 90px; height: 90px; margin-top: -45px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); opacity: 0; pointer-events: none; }
.p-seekfx .i { width: 36px; height: 36px; }
.p-seekfx-l { left: 12%; }
.p-seekfx-r { right: 12%; }
.p-seekfx.show { animation: seekfx .6s ease-out; }
@keyframes seekfx { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.15); } }
.p-msg { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: rgba(0, 0, 0, .78); }
.p-msg h3 { font-size: 22px; }
.p-msg p { max-width: 520px; color: rgba(255, 255, 255, .78); line-height: 1.55; }
.p-msg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.has-msg .p-ui { z-index: 6; }
.has-msg .p-bottom { visibility: hidden; }
.p-chip { position: absolute; top: max(80px, calc(env(safe-area-inset-top) + 70px)); left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(20, 15, 41, .9); border: 1px solid rgba(255, 255, 255, .15); font-size: 14px; white-space: nowrap; }
.p-chip .i { width: 18px; height: 18px; }
.p-chip button { color: var(--cyan); font-weight: 700; }
.p-menu { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 7; width: 280px; max-height: calc(100% - 180px); overflow-y: auto; padding: 8px; border-radius: 16px; background: rgba(20, 15, 41, .95); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); }
.p-menu-sec { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.p-menu-sec h4 { margin: 4px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.p-menu-sec button { display: flex; width: 100%; padding: 8px 10px 8px 30px; border-radius: 8px; font-size: 14px; text-align: left; position: relative; }
.p-menu-sec button:hover { background: rgba(255, 255, 255, .08); }
.p-menu-sec button.on::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pink); }
.p-menu-foot { padding: 8px 10px 4px; font-size: 12px; color: var(--dim); }
.p-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 8; width: min(360px, 88vw); display: flex; flex-direction: column; background: rgba(12, 9, 26, .94); border-left: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); }
.drawer-open .p-drawer { transform: none; visibility: visible; transition: transform .25s ease; }
.p-drawer-h { display: flex; gap: 8px; padding: 12px; }
.p-drawer-h input { flex: 1; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); outline: none; }
.p-drawer-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.p-dl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.p-dl:hover { background: rgba(255, 255, 255, .07); }
.p-dl.on { background: linear-gradient(90deg, rgba(255, 61, 187, .25), rgba(139, 92, 255, .15)); }
.p-dl .art { width: 46px; flex: none; }
.p-dl .art::before { padding-top: 66%; }
.p-dl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-dl small { color: var(--muted); margin-right: 4px; }
.p-upnext { position: absolute; right: max(24px, env(safe-area-inset-right)); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 6; display: grid; gap: 6px; width: 320px; padding: 18px; border-radius: 18px; background: rgba(20, 15, 41, .95); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.p-upnext small { color: var(--muted); }
.p-upnext > div { display: flex; gap: 8px; margin-top: 8px; }
.p-upnext .btn { flex: 1; height: 38px; }

[data-layout=mobile] .p-title { font-size: 16px; }
[data-layout=mobile] .p-sub { font-size: 13px; }
[data-layout=mobile] .p-logo { display: none; }
[data-layout=mobile] .p-info, [data-layout=mobile] .p-vol input { display: none; }
[data-layout=mobile] .p-rew, [data-layout=mobile] .p-fwd { display: none; }
[data-layout=mobile] .p-btn { width: 42px; height: 42px; }
[data-layout=mobile] .p-big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
[data-layout=mobile] .p-menu { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
[data-layout=mobile] .p-upnext { left: 16px; right: 16px; width: auto; }
@media (orientation: landscape) and (max-height: 500px) {
  .p-top { padding-bottom: 20px; }
  .p-bottom { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- admin panel ---------- */
.admin .adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px var(--gut); background: rgba(10, 7, 20, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.admin .adm-top .brand { padding: 0; }
.admin .adm-top .brand span { display: block; }
.adm { display: grid; gap: 18px; max-width: 920px; margin: 0 auto; padding: 28px var(--gut) 120px; }
.adm .panel .actions { margin-top: 2px; }
.area { height: auto; padding: 10px 14px; resize: vertical; font: inherit; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.icon.sm { width: 34px; padding: 0; }
.btn.danger:hover { color: var(--bad); border-color: rgba(255, 90, 106, .4); }
.dns-list { display: grid; gap: 10px; }
.dns-row { display: grid; grid-template-columns: 28px 150px 1fr auto; align-items: center; gap: 8px 10px; padding: 10px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.dns-row:first-child { border-color: rgba(255, 61, 187, .35); }
.dns-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--card2); font-weight: 700; font-size: 13px; }
.dns-row:first-child .dns-n { background: var(--grad); }
.dns-row .field { height: 40px; }
.dns-btns { display: flex; gap: 6px; }
.dns-st { grid-column: 2 / -1; font-size: 13px; }
.dns-st:empty { display: none; }
.adm-save { position: fixed; left: 50%; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(35, 27, 69, .97); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: translate(-50%, 140%); transition: transform .25s; white-space: nowrap; }
.adm-save.show { transform: translate(-50%, 0); }
.adm-save span { font-weight: 600; font-size: 14px; }
@media (max-width: 680px) {
  .dns-row { grid-template-columns: 28px 1fr; }
  .dns-row .dns-url, .dns-btns { grid-column: 2; }
  .adm-save { left: 12px; right: 12px; transform: translateY(140%); }
  .adm-save.show { transform: none; }
  .adm-save span { display: none; }
  .adm-save .btn { flex: 1; }
}
.adm-tabs { display: flex; gap: 6px; max-width: 920px; margin: 0 auto; padding: 14px var(--gut) 0; overflow-x: auto; scrollbar-width: none; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); color: var(--muted); font-weight: 600; white-space: nowrap; cursor: pointer; }
.adm-tabs button .i { width: 18px; height: 18px; }
.adm-tabs button:hover { color: var(--text); }
.adm-tabs button.on { background: var(--grad); border-color: transparent; color: #fff; }
.adm-tabnote { margin: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.check.feat { align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.check.feat input { margin-top: 2px; flex: none; }
.check.feat span { display: grid; gap: 2px; }
.check.feat b { color: var(--text); font-weight: 600; }
.check.feat small { font-size: 12px; }
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.ev-list { display: grid; gap: 12px; }
.ev-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); align-items: start; }
.ev-poster { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px dashed var(--line2); cursor: pointer; color: var(--muted); text-align: center; }
.ev-poster:hover { border-color: var(--violet); color: var(--text); }
.ev-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-poster span { display: grid; gap: 4px; justify-items: center; font-size: 12px; }
.ev-poster.busy::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='none' stroke='%23ff3dbb' stroke-width='3' stroke-dasharray='40 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 14 14' to='360 14 14' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat; }
.ev-fields { display: grid; gap: 8px; min-width: 0; }
.ev-fields .field { height: 40px; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 680px) {
  .ev-row { grid-template-columns: 84px 1fr; }
  .ev-row > .btn { grid-column: 2; justify-self: end; }
  .ev-grid { grid-template-columns: 1fr; }
}
.ev-poster-url { display: flex; gap: 8px; }
.ev-poster-url .field { flex: 1; min-width: 0; }
.ev-poster-url .btn { height: 40px; flex: none; }
.art-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.art-pick { display: grid; gap: 4px; text-align: left; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.art-pick:hover { border-color: var(--pink); }
.art-pick img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 7px; background: #000; }
.art-pick small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- multiview ---------- */
.p-mvbtn { display: none; }
.is-live.can-mv .p-mvbtn { display: grid; }
.mv { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: #000; color: #fff; }
.mv-bar { display: flex; align-items: center; gap: 10px; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); background: #0a0714; border-bottom: 1px solid var(--line); }
.mv-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.mv-title .i { color: var(--pink); }
.mv-layouts button { min-width: 36px; justify-content: center; }
.mv-layouts button:disabled { opacity: .35; cursor: not-allowed; }
.mv-limit { font-size: 13px; }
.mv-grid { flex: 1; display: grid; gap: 4px; padding: 4px; min-height: 0; }
.mv-grid.mv-2 { grid-template-columns: 1fr 1fr; }
/* 3 screens, all the same size: two on top, one centered below */
.mv-grid.mv-3 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; }
.mv-grid.mv-3 > * { grid-column: span 2; }
.mv-grid.mv-3 > :nth-child(3) { grid-column: 2 / span 2; }
.mv-grid.mv-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mv-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px; background: #08060f; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; cursor: pointer; }
.mv-tile.audio { outline-color: var(--pink); }
.mv-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mv-spin { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.mv-tile.loading .mv-spin { display: grid; }
.mv-label { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px 28px; background: linear-gradient(rgba(0, 0, 0, .75), transparent); pointer-events: none; opacity: 0; transition: opacity .2s; }
.mv-label .art { width: 40px; flex: none; }
.mv-label .art::before { padding-top: 66%; }
.mv-label span { min-width: 0; display: grid; }
.mv-label b, .mv-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-label b { font-size: 14px; }
.mv-label small { font-size: 12px; color: rgba(255, 255, 255, .75); }
.mv-tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10, 7, 20, .8); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.mv-tools .p-btn { width: 36px; height: 36px; }
.mv-tools .p-btn .i { width: 19px; height: 19px; }
.mv-tile:hover .mv-label, .mv-tile:hover .mv-tools, .touch .mv-tile:not(.empty) .mv-tools, .touch .mv-tile:not(.empty) .mv-label, .mv-tile.audio .mv-label { opacity: 1; }
.mv-tile.empty .mv-label, .mv-tile.empty .mv-tools, .mv-tile.empty video { display: none; }
.mv-add { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 10px; color: var(--muted); border: 2px dashed var(--line2); border-radius: 10px; background: radial-gradient(circle at center, rgba(139, 92, 255, .1), transparent 70%); }
.mv-add .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--grad); color: #fff; }
.mv-add span { font-weight: 600; }
.mv-add:hover { color: var(--text); border-color: var(--violet); }
.mv-tile.empty .mv-add { display: grid; }
.mv-msg { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 6px; padding: 16px; text-align: center; background: rgba(0, 0, 0, .8); }
.mv-msg small { color: var(--muted); max-width: 260px; }
.mv-tile.failed .mv-msg { display: grid; }
.mv-pick { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 12, .7); backdrop-filter: blur(6px); }
.mv-pick-card { width: min(520px, 100%); height: min(640px, 100%); display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); border: 1px solid var(--line2); overflow: hidden; }
.mv-pick-card header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; }
.mv-pick-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; }
.mv-pick-tools .search-in .field { width: 100%; }
.mv-pick-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.mv-pick-list .p-dl.on { opacity: .5; }
@media (max-width: 760px) and (orientation: portrait) {
  .mv-grid.mv-2, .mv-grid.mv-4 { grid-template-columns: 1fr; grid-auto-rows: 1fr; grid-template-rows: none; }
  .mv-grid.mv-3 { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .mv-grid.mv-3 > *, .mv-grid.mv-3 > :nth-child(3) { grid-column: auto; }
  .mv-grid.mv-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .mv-limit { display: none; }
  .mv-addscreen { padding: 0 10px; }
  .mv-pick-tools { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* Netflix / Apple TV style                                              */
/* ===================================================================== */
.side-nav { overflow-y: auto; scrollbar-width: none; }
.side-nav a { height: 42px; }
[data-layout=mobile] .bottomnav a { font-size: 9.5px; letter-spacing: -.01em; white-space: nowrap; }
[data-layout=mobile] .bottomnav .i { width: 21px; height: 21px; }
[data-layout=mobile] .bottomnav { padding-left: 2px; padding-right: 2px; }

/* featured banner */
.hero2 { position: relative; height: clamp(330px, 46vh, 500px); margin: -28px calc(-1 * var(--gut)) 26px; overflow: hidden; background: var(--bg2); isolation: isolate; }
.hero2.skel { animation: pulse 1.4s ease-in-out infinite; }
.h-layers, .h-layer, .h-img { position: absolute; inset: 0; }
.h-layer { opacity: 0; transition: opacity .9s ease; }
.h-layer.on { opacity: 1; }
.h-img { background-size: cover; background-position: center 25%; transform: scale(1.02); }
.h-layer.on .h-img { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.h-img.blur { filter: blur(34px) saturate(1.3) brightness(.7); transform: scale(1.25); animation: none !important; }
.h-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 7, 20, .95) 0%, rgba(10, 7, 20, .7) 38%, rgba(10, 7, 20, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 7, 20, 0) 35%); }
.h-body { position: absolute; left: var(--gut); bottom: 52px; width: min(620px, 56%); display: grid; gap: 14px; z-index: 2; animation: fadeup .6s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } }
.h-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.h-kicker .i { width: 16px; height: 16px; }
.h-title { font-size: clamp(28px, 3.6vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.h-plot { color: #e2dcf7; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero2 .meta { color: #d9d2f2; }
.btn.glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, .24); }
.btn.glass.fav.on { color: var(--pink); }
.btn.glass.fav.on .i { fill: currentColor; }
.h-poster { position: absolute; right: calc(var(--gut) + 30px); bottom: 44px; width: clamp(140px, 13vw, 200px); z-index: 2; transform: perspective(900px) rotateY(-8deg); transition: opacity .4s; }
.h-poster .art { border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1); }
.hero2.has-back .h-poster { opacity: 0; }
.h-dots { position: absolute; left: var(--gut); bottom: 20px; z-index: 2; display: flex; gap: 8px; }
.h-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; }
.h-dots button.on { width: 28px; background: #fff; }
[data-layout=mobile] .hero2 { height: 58vh; min-height: 400px; max-height: 520px; margin-top: -18px; }
[data-layout=mobile] .h-shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(10, 7, 20, .75) 45%, rgba(10, 7, 20, .1) 75%); }
[data-layout=mobile] .h-body { left: var(--gut); right: var(--gut); width: auto; bottom: 48px; gap: 10px; text-align: center; justify-items: center; }
[data-layout=mobile] .h-poster { left: 50%; right: auto; top: 18px; bottom: auto; width: 116px; transform: translateX(-50%); }
[data-layout=mobile] .hero2.has-back .h-poster { opacity: 1; }
[data-layout=mobile] .h-plot { font-size: 14px; -webkit-line-clamp: 2; }
[data-layout=mobile] .h-dots { left: 50%; transform: translateX(-50%); bottom: 20px; }
[data-layout=mobile] .hero2 .actions .btn.primary { flex: 0 1 auto; }

/* app tiles (Apple TV) */
.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
.app-tile { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--line2); font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.app-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); background: linear-gradient(150deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); }
.app-tile span { white-space: nowrap; }
@media (max-width: 1100px) { [data-layout=desktop] .app-tile { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 13px; text-align: center; } }
.app-tile .i { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: #fff; flex: none; }
.a-live .i { background: linear-gradient(135deg, #ff3dbb, #ff7a59); }
.a-guide .i { background: linear-gradient(135deg, #ffb72b, #ff6b3d); }
.a-sports .i { background: linear-gradient(135deg, #3ee59a, #12a4d9); }
.a-mv .i { background: linear-gradient(135deg, #8b5cff, #2fd6ff); }
.a-new .i { background: linear-gradient(135deg, #ff3dbb, #8b5cff); }
[data-layout=mobile] .apps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
[data-layout=mobile] .app-tile { flex-direction: column; gap: 6px; padding: 10px 4px; font-size: 11px; text-align: center; border-radius: 14px; }
[data-layout=mobile] .app-tile .i { width: 36px; height: 36px; }

/* rows */
.shelf-wrap { position: relative; }
.shelf-arrow { position: absolute; top: 4px; bottom: 44px; z-index: 3; width: 46px; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s; }
.shelf-arrow.l { left: calc(-1 * var(--gut)); background: linear-gradient(90deg, rgba(10, 7, 20, .9), transparent); }
.shelf-arrow.r { right: calc(-1 * var(--gut)); background: linear-gradient(270deg, rgba(10, 7, 20, .9), transparent); }
.shelf-arrow .i { width: 30px; height: 30px; }
.shelf-wrap:hover .shelf-arrow { opacity: 1; }
[data-layout=mobile] .shelf-arrow, .touch .shelf-arrow { display: none; }
.shelf-row { scrollbar-width: none; }
.shelf-row::-webkit-scrollbar { display: none; }
.card.poster .art, .card.top10 .art { border-radius: 12px; }
.card.poster:hover .art, .card.top10:hover .art { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .5); }
.ribbon { position: absolute; top: 10px; right: -2px; padding: 3px 8px; border-radius: 6px 0 0 6px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 4px 12px rgba(255, 61, 187, .4); }
.wide-row .shelf-row { grid-auto-columns: 300px; }
[data-layout=mobile] .wide-row .shelf-row { grid-auto-columns: 230px; }
.top10-row .shelf-row { grid-auto-columns: 230px; }
.card.top10 { display: flex; align-items: flex-end; }
.card.top10 .rank { flex: none; width: 96px; margin-right: -18px; font-size: 168px; line-height: .78; font-weight: 800; letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 3px rgba(255, 255, 255, .55); text-align: right; z-index: 0; }
.card.top10 .art { flex: 1; z-index: 1; }
[data-layout=mobile] .top10-row .shelf-row { grid-auto-columns: 160px; }
[data-layout=mobile] .card.top10 .rank { width: 64px; font-size: 112px; margin-right: -12px; -webkit-text-stroke-width: 2px; }
.ch-row-shelf .shelf-row { grid-auto-columns: 150px; }
.browse-h { margin-top: 4px; }
.browse-h .cat-select { display: block !important; max-width: 240px; }
[data-layout=mobile] .browse-h .cat-select { flex: 1 1 100%; max-width: none; order: 3; }
.cat-ph { min-height: 320px; }

/* ===================================================================== */
/* Sports                                                                */
/* ===================================================================== */
.live-dot { color: var(--pink); }
h2 .live-dot, .sp-group h2 .live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); margin-right: 10px; vertical-align: 2px; animation: blink 1.6s infinite; }
.sp-group { margin-bottom: 30px; }
.sp-group h2 { font-size: 20px; margin-bottom: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
[data-layout=mobile] .game-grid { grid-template-columns: 1fr; gap: 10px; }
.game { position: relative; display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--c1) 22%, transparent), transparent 55%), linear-gradient(320deg, color-mix(in srgb, var(--c2) 18%, transparent), transparent 55%), var(--panel); border: 1px solid var(--line2); cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
@supports not (background: color-mix(in srgb, red 10%, transparent)) { .game { background: var(--panel); } }
.game:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .22); }
.game.in { border-color: rgba(255, 61, 187, .45); }
.game header { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lg-logo { width: 20px; height: 20px; object-fit: contain; }
.noimg { display: inline-block; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 700; color: var(--muted); white-space: nowrap; }
.st .i { width: 13px; height: 13px; }
.st.live { background: rgba(255, 61, 187, .18); color: #ff8ad6; }
.st.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: blink 1.4s infinite; }
.st.live b { color: #fff; font-weight: 600; margin-left: 2px; }
.st.soon { background: rgba(47, 214, 255, .14); color: var(--cyan); font-variant-numeric: tabular-nums; }
.tm { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; }
.tm-logo { width: 34px; height: 34px; object-fit: contain; }
.tn { min-width: 0; display: grid; font-weight: 700; font-size: 15px; line-height: 1.2; }
.tn small { font-weight: 500; font-size: 12px; color: var(--muted); }
.sc { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tm.lose { opacity: .55; }
.fight { display: grid; gap: 8px; }
.ev-name { font-size: 16px; }
.vs { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.vs em { font-style: normal; color: var(--pink); font-weight: 800; }
.flag { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; }
.game footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 0; }
.game footer:empty { display: none; }
.net { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 600; color: var(--muted); }
.net .i { width: 13px; height: 13px; }
.sit { font-size: 12px; color: var(--gold); font-weight: 600; }
.game-row .shelf-row, .shelf-row.game-row { grid-auto-columns: 310px; }
.shelf-row.game-row .game { height: 100%; }
[data-layout=mobile] .shelf-row.game-row { grid-auto-columns: 280px; }

/* PPV */
.shelf-row.ppv-row { grid-auto-columns: 190px; }
[data-layout=mobile] .shelf-row.ppv-row { grid-auto-columns: 140px; }
.ppv { display: grid; gap: 4px; cursor: pointer; }
.ppv-art { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(150deg, #3b1a5c, #12081f); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); transition: transform .2s, box-shadow .2s; }
.ppv:hover .ppv-art { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 61, 187, .6); }
.ppv-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ppv-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 800; font-size: 18px; line-height: 1.15; background: radial-gradient(circle at 30% 20%, rgba(255, 61, 187, .5), transparent 60%), radial-gradient(circle at 80% 90%, rgba(47, 214, 255, .35), transparent 60%); }
.ppv-badge { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border-radius: 10px; background: rgba(10, 7, 20, .85); backdrop-filter: blur(8px); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.ppv-badge .i { width: 14px; height: 14px; color: var(--cyan); }
.ppv-badge.live { background: var(--pink); }
.ppv-badge.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.ppv b { font-size: 14px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppv small { color: var(--muted); font-size: 12px; }

/* event hero */
.sp-hero { position: relative; margin: -28px calc(-1 * var(--gut)) 28px; padding: 48px var(--gut) 40px; overflow: hidden; background: radial-gradient(800px 400px at 10% 0%, rgba(255, 61, 187, .3), transparent 60%), radial-gradient(800px 400px at 100% 100%, rgba(47, 214, 255, .2), transparent 60%), var(--bg2); }
.sp-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4) brightness(.45); }
.sp-hero-in { position: relative; display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: center; max-width: 1100px; }
.sp-hero-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); background: #12081f; }
.sp-hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-hero-txt { display: grid; gap: 14px; }
.sp-hero-txt h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 800; line-height: 1.02; }
.sp-hero-txt .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--pink); }
.cdown { display: flex; gap: 10px; }
.cdown span { display: grid; justify-items: center; min-width: 74px; padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.cdown b { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cdown small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
[data-layout=mobile] .sp-hero { margin-top: -18px; padding: 26px var(--gut); }
[data-layout=mobile] .sp-hero-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
[data-layout=mobile] .sp-hero-poster { width: 170px; }
[data-layout=mobile] .cdown span { min-width: 64px; }
[data-layout=mobile] .cdown b { font-size: 28px; }
[data-layout=mobile] .sp-hero .actions { justify-content: center; }

/* sheets */
.sheet-league { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding-right: 40px; }
.sheet-score { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 0; }
.sheet-score > div { display: grid; justify-items: center; gap: 4px; }
.sheet-score .tm-logo { width: 56px; height: 56px; }
.sheet-score .sc { font-size: 34px; }
.sheet-score em { font-style: normal; color: var(--muted); font-size: 22px; }
.nets { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-h { font-size: 15px; margin-top: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.watch-box .ch-list { max-height: 320px; overflow-y: auto; }
.ev-sheet { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; padding-right: 30px; }
.ev-sheet-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #12081f; }
.ev-sheet-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-sheet h2 { margin: 4px 0; }
.ev-sheet .eyebrow { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }

/* multiview start page */
.mv-intro { margin-bottom: 20px; max-width: 640px; }
.mv-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 16px; margin-bottom: 30px; }
.mv-shape { display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line2); text-align: left; transition: transform .15s, border-color .15s; }
.mv-shape:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--violet); }
.mv-shape:disabled { opacity: .45; cursor: not-allowed; }
.mv-shape small { color: var(--muted); }
.shape { display: grid; width: 100%; aspect-ratio: 16 / 9; gap: 4px; margin-bottom: 10px; }
.shape i { border-radius: 6px; background: linear-gradient(135deg, rgba(255, 61, 187, .5), rgba(139, 92, 255, .5)); }
.shape.s2 { grid-template-columns: 1fr 1fr; }
.shape.s3 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; }
.shape.s3 i { grid-column: span 2; }
.shape.s3 i:nth-child(3) { grid-column: 2 / span 2; }
.shape.s4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mv-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mv-q { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: left; }
.mv-q:hover { border-color: var(--violet); }
.mv-q .art { width: 50px; flex: none; }
.mv-q .art::before { padding-top: 62%; }
.mv-q span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mv-q .i { color: var(--pink); }
[data-layout=mobile] .mv-shapes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
[data-layout=mobile] .mv-shape { padding: 10px; }
.ev-sheet .ppv-ph { font-size: 13px; overflow-wrap: anywhere; }
.art-results > p { grid-column: 1 / -1; }
/* Desktop layout on a narrow window: drop the floating poster so the text has room */
@media (max-width: 900px) {
  [data-layout=desktop] .h-poster { display: none; }
  [data-layout=desktop] .h-body { width: auto; right: var(--gut); }
}
/* logo + "FrankyVision / WebPlayer" title */
.brand img { border-radius: 12px; box-shadow: 0 4px 18px rgba(139, 92, 255, .35); }
.brand small { letter-spacing: .14em; font-weight: 600; }
.brand.mob span { display: grid; line-height: 1.05; }
.brand.mob small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }
.login-brand img { border-radius: 24px; box-shadow: 0 12px 40px rgba(139, 92, 255, .5), 0 0 0 1px rgba(255, 255, 255, .1); }

/* event channels (title/time read from the channel name) */
.sp-sec-h { font-size: 22px; margin: 34px 0 16px; }
.evc-row { grid-auto-columns: 250px; }
[data-layout=mobile] .evc-row { grid-auto-columns: 220px; }
.evc { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; height: 100%; min-height: 150px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.evc:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .22); }
.evc.in { border-color: rgba(255, 61, 187, .45); background: linear-gradient(150deg, rgba(255, 61, 187, .14), transparent 60%), var(--panel); }
.evc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.evc-top .art { width: 46px; flex: none; }
.evc-top .art::before { padding-top: 62%; }
.evc-top small { color: var(--muted); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evc-title { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
.evc-foot small { color: var(--muted); }
.ch-row.ch-empty { opacity: .55; }
.ch-now .live-dot { font-weight: 700; }
.shelf header h2 .live-dot, .sp-group h2 .live-dot { vertical-align: middle; position: relative; top: -2px; }

/* Home: compact rows so more cards fit on screen */
.v-home .shelf { margin-bottom: 24px; }
.v-home .shelf h2 { font-size: 18px; }
.v-home .shelf-row { grid-auto-columns: 128px; gap: 12px; }
.v-home .card-t { font-size: 13px; margin-top: 6px; }
.v-home .card-s { font-size: 11px; }
.v-home .card .badge { font-size: 11px; padding: 1px 6px; }
.v-home .ribbon { font-size: 9px; padding: 2px 6px; top: 8px; }
.v-home .shelf-row.game-row { grid-auto-columns: 244px; }
.v-home .game { gap: 7px; padding: 10px 12px; border-radius: 14px; }
.v-home .game header { font-size: 11px; }
.v-home .lg-logo { width: 16px; height: 16px; }
.v-home .st { padding: 2px 8px; }
.v-home .tm { grid-template-columns: 26px 1fr auto; gap: 9px; }
.v-home .tm-logo { width: 26px; height: 26px; }
.v-home .tn { font-size: 13px; }
.v-home .tn small { font-size: 11px; }
.v-home .sc { font-size: 19px; }
.v-home .net { font-size: 11px; padding: 2px 7px; }
.v-home .ev-name { font-size: 14px; }
.v-home .shelf-row.ppv-row { grid-auto-columns: 140px; }
.v-home .ppv-art { border-radius: 12px; }
.v-home .ppv-badge { font-size: 12px; padding: 5px; left: 6px; right: 6px; bottom: 6px; }
.v-home .ppv b { font-size: 13px; }
.v-home .wide-row .shelf-row { grid-auto-columns: 240px; }
.v-home .ch-row-shelf .shelf-row { grid-auto-columns: 124px; }
[data-layout=mobile] .v-home .shelf-row { grid-auto-columns: 104px; gap: 10px; }
[data-layout=mobile] .v-home .shelf-row.game-row { grid-auto-columns: 226px; }
[data-layout=mobile] .v-home .shelf-row.ppv-row { grid-auto-columns: 116px; }
[data-layout=mobile] .v-home .wide-row .shelf-row { grid-auto-columns: 200px; }
.ppv-ph { align-content: center; gap: 10px; }
.ppv-ph .ppv-logo { width: 64%; max-height: 64px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.v-home .ppv-ph { font-size: 15px; }
.art-pick { position: relative; }
.art-pick .src { position: absolute; top: 8px; left: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(10, 7, 20, .85); font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .04em; color: var(--cyan); }
.art-pick img { object-fit: contain; background: radial-gradient(circle at 50% 30%, #2a1f4d, #0d0919); }
.art-note { grid-column: 1 / -1; color: var(--gold); }

/* subscription expiry badge */
.exp-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s; }
.exp-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.exp-chip .i { width: 16px; height: 16px; }
.exp-chip.warn { color: #fff; background: rgba(255, 45, 85, .25); border-color: #ff2d55; font-weight: 800; animation: expPulse 1.3s ease-in-out infinite; }
.exp-chip.warn .i { color: #ff8fa6; }
.exp-chip.expired { background: #ff2d55; }
.exp-chip.expired .i { color: #fff; }
@keyframes expPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .75), 0 0 10px rgba(255, 45, 85, .45); transform: scale(1); }
  50% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0), 0 0 28px rgba(255, 45, 85, .95); transform: scale(1.04); }
}
.acct-link.warn { border-color: #ff2d55; animation: expPulse 1.3s ease-in-out infinite; }
.acct-link.warn small { color: #ff8fa6; font-weight: 700; }
/* phones: floating badge just under the top bar */
[data-layout=mobile] .exp-chip { position: fixed; top: calc(var(--top) + env(safe-area-inset-top) + 10px); right: 12px; z-index: 24; height: 30px; padding: 0 11px; font-size: 12px; background: rgba(20, 15, 41, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
[data-layout=mobile] .exp-chip.warn { background: rgba(255, 45, 85, .55); }
[data-layout=mobile] .exp-chip.expired { background: #ff2d55; }
@media (prefers-reduced-motion: reduce) { .exp-chip.warn, .acct-link.warn { animation-duration: 2.6s !important; animation-iteration-count: infinite !important; } }
.addon-list { display: grid; gap: 8px; }
.addon-row { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.addon-row.off { opacity: .55; }
.addon-row img, .addon-ph { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--card); display: grid; place-items: center; }
.addon-info { min-width: 0; display: grid; }
.addon-info b, .addon-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addon-add { display: flex; gap: 8px; }
.addon-add .field { flex: 1; min-width: 0; }

/* sources list (service stream first, then addons) */
.sources { margin-top: 6px; }
.src-list { display: grid; gap: 6px; max-width: 760px; }
.src { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); text-align: left; transition: border-color .15s, background .15s; }
.src:hover { border-color: var(--violet); background: var(--card); }
.src .i { color: var(--muted); }
.src:hover .i { color: var(--text); }
.src.svc { border-color: rgba(255, 61, 187, .45); background: linear-gradient(90deg, rgba(255, 61, 187, .14), transparent 60%), var(--panel); }
.src-badges { display: flex; align-items: center; gap: 6px; min-width: 64px; }
.src-badges .q { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.src-badges .q.svc { background: var(--grad); }
.src-badges .q.hdr { background: rgba(255, 197, 61, .2); color: var(--gold); }
.src-badges .sz { font-size: 12px; color: var(--muted); white-space: nowrap; }
.src-main { min-width: 0; display: grid; }
.src-main b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-main small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-more { display: grid; gap: 6px; }
.ep-src { justify-self: start; margin-top: 6px; }
.modal .sources .src-list { max-height: 55vh; overflow-y: auto; }
[data-layout=mobile] .src { grid-template-columns: 1fr auto; }
[data-layout=mobile] .src-badges { grid-column: 1 / -1; }

/* trailer pop-up */
.modal.trailer { padding: 56px 16px 16px; background: rgba(0, 0, 0, .85); }
.modal.trailer .modal-card { max-width: min(1100px, calc((100vh - 90px) * 16 / 9)); padding: 0; background: #000; overflow: visible; border-radius: 16px; }
.modal.trailer .close { top: -48px; right: 0; background: rgba(255, 255, 255, .12); }
.trailer-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Top 10: rank number in the poster's bottom-left corner */
.top10-row .shelf-row { grid-auto-columns: 170px; gap: 18px; }
.card.top10 { display: block; position: relative; padding-left: 26px; }
.card.top10 .rank { position: absolute; left: 0; bottom: -6px; z-index: 2; width: auto; margin: 0; font-size: 92px; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: var(--bg); -webkit-text-stroke: 3px #fff; text-shadow: 0 6px 18px rgba(0, 0, 0, .7); text-align: left; pointer-events: none; }
.card.top10 .art { z-index: 1; }
.card.top10:hover .rank { -webkit-text-stroke-color: var(--pink); }
[data-layout=mobile] .top10-row .shelf-row { grid-auto-columns: 128px; gap: 14px; }
[data-layout=mobile] .card.top10 { padding-left: 20px; }
[data-layout=mobile] .card.top10 .rank { font-size: 70px; -webkit-text-stroke-width: 2px; }

/* ---------- streaming network tiles ---------- */
.nets-bar { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 10px 4px 18px; margin: -4px -4px 14px; }
.nets-bar::-webkit-scrollbar { display: none; }
.net-tile { position: relative; flex: none; width: 150px; height: 78px; display: grid; place-items: center; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--nc) 26%, transparent), transparent 70%), linear-gradient(160deg, #1d1638, #0d0919);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
@supports not (background: color-mix(in srgb, red 10%, transparent)) { .net-tile { background: linear-gradient(160deg, #1d1638, #0d0919); } }
/* shine that sweeps across on hover / selection */
.net-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%); transform: translateX(-120%); pointer-events: none; }
.net-tile:hover, .net-tile:focus-visible { transform: translateY(-4px) scale(1.05); border-color: var(--nc); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--nc) 55%, transparent); }
.net-tile:hover::after, .net-tile.on::after { animation: netShine 1.1s ease forwards; }
.net-tile.on { transform: translateY(-4px) scale(1.06); border: 2px solid var(--nc); animation: netGlow 2.4s ease-in-out infinite; }
@keyframes netShine { to { transform: translateX(120%); } }
@keyframes netGlow {
  0%, 100% { box-shadow: 0 12px 28px rgba(0, 0, 0, .5), 0 0 14px color-mix(in srgb, var(--nc) 45%, transparent); }
  50% { box-shadow: 0 12px 28px rgba(0, 0, 0, .5), 0 0 34px color-mix(in srgb, var(--nc) 85%, transparent); }
}
.net-tile .nm, .net-head .nm { position: relative; z-index: 2; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
/* wordmarks in each network's colors */
.nw-nfx .nm, .nm.nw-nfx { color: #e50914; font-size: 21px; letter-spacing: .02em; font-weight: 800; transform: scaleY(1.15); }
.nw-amp .nm, .nm.nw-amp { color: #fff; font-weight: 700; font-size: 18px; }
.nw-amp .nm::after, .nm.nw-amp::after { content: ""; display: block; height: 3px; width: 60%; margin: 1px 0 0 2px; border-radius: 0 0 10px 10px; background: #00a8e1; }
.nw-hbm .nm, .nm.nw-hbm { background: linear-gradient(90deg, #fff, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }
.nw-dnp .nm, .nm.nw-dnp { color: #fff; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 22px; font-weight: 700; }
.nw-atp .nm, .nm.nw-atp { color: #f2f2f2; font-weight: 600; font-size: 18px; }
.nw-hlu .nm, .nm.nw-hlu { color: #1ce783; font-size: 24px; letter-spacing: -.03em; }
.nw-pmp .nm, .nm.nw-pmp { color: #fff; font-size: 17px; }
.nw-pmp .nm::first-letter { color: #6fb1ff; }
.nw-pcp .nm, .nm.nw-pcp { color: #fff; font-size: 19px; }
.nw-pcp .nm::before, .nm.nw-pcp::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: 2px; background: conic-gradient(#f5b400, #ff6a00, #e5007e, #6b3fd8, #1ea0e6, #00b96b, #f5b400); }
.net-tile.all .nm { font-size: 18px; }
.net-head { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 18px; }
.net-head .nm { font-size: 34px; }
[data-layout=mobile] .net-tile { width: 112px; height: 60px; border-radius: 13px; }
[data-layout=mobile] .net-tile .nm { font-size: 15px; }
[data-layout=mobile] .nw-nfx .nm { font-size: 16px; }
[data-layout=mobile] .nw-dnp .nm { font-size: 17px; }
[data-layout=mobile] .nw-hlu .nm { font-size: 19px; }
[data-layout=mobile] .net-head .nm { font-size: 26px; }
[data-layout=mobile] .net-head { flex-wrap: wrap; }
/* real network logos on the tiles */
.net-tile .nl { position: relative; z-index: 2; max-width: 74%; max-height: 42%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); transition: transform .25s; pointer-events: none; }
.net-tile:hover .nl, .net-tile.on .nl { transform: scale(1.08); }
.net-tile.nw-dnp .nl { max-height: 78%; max-width: 70%; }
.net-tile.nw-hbm .nl { max-height: 56%; }
.net-tile.nw-atp .nl { max-height: 40%; }
.net-tile.nw-pcp .nl { max-height: 34%; }
.net-tile.nw-amp .nl { max-height: 50%; }
.net-head .nl { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.net-head.nw-dnp .nl { height: 64px; }
.net-head.nw-hbm .nl { height: 52px; }
[data-layout=mobile] .net-head .nl { height: 34px; }
[data-layout=mobile] .net-head.nw-dnp .nl { height: 50px; }

/* ===================================================================== */
/* Live TV + Guide (preview top-left, info top-right, guide below)       */
/* ===================================================================== */
.v-live, .v-guide { padding-top: 18px; padding-bottom: 16px; }
.ltv { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - var(--top) - 34px); height: calc(100dvh - var(--top) - 34px); min-height: 560px; }
.lg-top { flex: none; display: grid; grid-template-columns: minmax(280px, 40%) 1fr; gap: 14px; height: clamp(210px, 36vh, 380px); }
.lg-prev { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line2); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.lg-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lg-spin { position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px; display: none; }
.lg-prev.loading .lg-spin { display: block; }
.lg-tap { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(139, 92, 255, .25), rgba(0, 0, 0, .6)); }
.lg-tap .i { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 8px 26px rgba(255, 61, 187, .45); }
.lg-prev.on .lg-tap { display: none; }
.lg-prev-msg { position: absolute; inset: auto 0 0; padding: 10px 14px; font-size: 13px; color: #ffb3bb; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.lg-prev-msg:empty { display: none; }
.lg-prev-tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10, 7, 20, .75); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.lg-prev:hover .lg-prev-tools, .touch .lg-prev.on .lg-prev-tools { opacity: 1; }
.lg-prev:not(.on) .lg-prev-tools { display: none; }
.lg-prev-tools .p-btn { width: 36px; height: 36px; }
.lg-prev-tools .p-btn .i { width: 19px; height: 19px; }
.lg-info { position: relative; overflow: hidden; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); isolation: isolate; }
.lg-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 25%; opacity: 0; transition: opacity .6s; }
.lg-bg.show { opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.lg-bg.logo-bg { opacity: .14; background-size: 46%; background-repeat: no-repeat; background-position: 92% 50%; filter: blur(2px); }
.lg-info::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--panel) 18%, rgba(20, 15, 41, .55) 55%, rgba(20, 15, 41, .2)); }
.lg-txt { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 24px; max-width: 720px; }
.lg-ch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-ch .art { width: 44px; flex: none; }
.lg-ch .art::before { padding-top: 62%; }
.lg-ch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-title { font-size: clamp(22px, 2.8vw, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-when { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 16px; font-weight: 600; }
.lg-badge { padding: 3px 10px; border-radius: 6px; background: rgba(47, 214, 255, .16); color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.lg-badge.live { background: var(--pink); color: #fff; }
.lg-badge.past { background: rgba(255, 255, 255, .1); color: var(--muted); }
.lg-bar-prog { max-width: 420px; height: 5px; }
.lg-desc { color: #e4def8; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.lg-txt .actions .btn { height: 38px; }
.lg-txt .fav.btn { width: 38px; height: 38px; }
.lg-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lg-bar h1 { font-size: 22px; font-weight: 800; }
.lg-bar .cat-select { display: block !important; height: 38px; max-width: 260px; }
.lg-bar .g-date { margin-right: auto; font-weight: 600; }
.ltv .g-scroll { flex: 1; min-height: 220px; }
.g-row.sel .g-ch { background: linear-gradient(90deg, rgba(255, 61, 187, .3), rgba(139, 92, 255, .18)); box-shadow: inset 3px 0 0 var(--pink); }
.g-prog.sel { border: 2px solid var(--pink); box-shadow: 0 0 16px rgba(255, 61, 187, .45); z-index: 1; }
.g-ch { cursor: pointer; }
[data-layout=mobile] .ltv { height: auto; min-height: 0; }
[data-layout=mobile] .lg-top { grid-template-columns: 1fr; height: auto; margin: -18px calc(-1 * var(--gut)) 0; gap: 0; }
[data-layout=mobile] .lg-prev { aspect-ratio: 16 / 9; border-radius: 0; border: 0; }
[data-layout=mobile] .lg-info { border-radius: 0; border-left: 0; border-right: 0; }
[data-layout=mobile] .lg-txt { padding: 14px var(--gut); gap: 8px; }
[data-layout=mobile] .lg-title { font-size: 22px; }
[data-layout=mobile] .lg-desc { font-size: 13px; -webkit-line-clamp: 2; }
[data-layout=mobile] .lg-bar h1 { display: none; }
[data-layout=mobile] .lg-bar .cat-select { flex: 1; max-width: none; }
[data-layout=mobile] .lg-bar .g-date { display: none; }
[data-layout=mobile] .ltv .g-scroll { height: 62vh; flex: none; margin: 0 calc(-1 * var(--gut)); border-radius: 0; border-left: 0; border-right: 0; }
.ltv .lg-badge { display: inline-block; flex: none; width: auto; white-space: nowrap; }
.ltv .lg-title { line-height: 1.12; padding-bottom: 2px; }
.g-row.sel .g-ch { background: linear-gradient(90deg, rgba(255, 61, 187, .3), rgba(139, 92, 255, .18)), var(--panel); }

/* weather badge (city + icon + temperature) */
.wx-chip { display: inline-grid; justify-items: center; line-height: 1.1; padding: 0 6px; color: var(--text); cursor: default; }
.wx-city { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wx-t { display: inline-flex; align-items: center; gap: 6px; }
.wx-t .i { width: 20px; height: 20px; color: var(--cyan); }
.wx-t b { font-size: 17px; font-weight: 800; }
[data-layout=mobile] .wx-chip { position: fixed; top: calc(var(--top) + env(safe-area-inset-top) + 10px); left: 12px; z-index: 24; display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(20, 15, 41, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line2); }
[data-layout=mobile] .wx-city { font-size: 9.5px; letter-spacing: .08em; }
[data-layout=mobile] .wx-t b { font-size: 14px; }
[data-layout=mobile] .wx-t .i { width: 16px; height: 16px; }
html.player-open .wx-chip { visibility: hidden; }
.ltv .lg-txt > * { flex: none; }
.ltv .lg-txt > .lg-desc { flex: 0 1 auto; min-height: 0; }
.ltv .lg-txt > .lg-desc { flex: none; -webkit-line-clamp: 2; }
html[data-layout=mobile][data-route=live] .wx-chip, html[data-layout=mobile][data-route=live] .exp-chip:not(.warn), html[data-layout=mobile][data-route=guide] .wx-chip, html[data-layout=mobile][data-route=guide] .exp-chip:not(.warn) { display: none; }
/* info panel grows with its content (no overlap in small windows) */
.ltv .lg-top { height: auto; min-height: clamp(200px, 34vh, 380px); }
.ltv .lg-prev { min-height: 190px; }
.ltv .lg-txt { height: auto; min-height: 100%; }
@media (max-height: 760px) {
  [data-layout=desktop] .ltv .lg-txt { gap: 7px; padding: 12px 18px; }
  [data-layout=desktop] .ltv .lg-title { font-size: 22px; -webkit-line-clamp: 1; }
  [data-layout=desktop] .ltv .lg-txt > .lg-desc { -webkit-line-clamp: 1; font-size: 14px; }
  [data-layout=desktop] .ltv .lg-when { font-size: 14px; }
  [data-layout=desktop] .ltv { min-height: 480px; }
}

/* weather forecast panel */
.wx-chip { cursor: pointer; border-radius: 12px; transition: background .15s; }
.wx-chip:hover { background: rgba(255, 255, 255, .06); }
.modal.wx-modal .modal-card { max-width: 640px; }
.wx-sheet { display: grid; gap: 12px; }
.wx-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-right: 30px; }
.wx-place { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wx-big { display: flex; align-items: center; gap: 12px; }
.wx-big .i { width: 54px; height: 54px; color: var(--cyan); }
.wx-big b { font-size: 54px; font-weight: 800; line-height: 1; }
.wx-facts { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 0; font-size: 14px; }
.wx-facts dt { color: var(--muted); }
.wx-facts dd { margin: 0; font-weight: 700; text-align: right; }
.wx-hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.wx-h { flex: none; width: 64px; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.wx-h:first-child { border-color: rgba(47, 214, 255, .5); }
.wx-h small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.wx-h .i { width: 22px; height: 22px; color: var(--cyan); }
.wx-h b { font-size: 16px; }
.wx-rain { font-size: 11px; font-weight: 700; color: var(--dim); min-height: 14px; }
.wx-rain.on { color: #6fb1ff; }
.wx-days { display: grid; gap: 4px; }
.wx-d { display: grid; grid-template-columns: 56px 26px 38px 34px 1fr 34px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.wx-d:nth-child(odd) { background: var(--bg2); }
.wx-d .i { width: 22px; height: 22px; color: var(--cyan); }
.wx-lo { color: var(--muted); text-align: right; }
.wx-hi { font-weight: 700; }
.wx-range { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.wx-range > i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #2fd6ff, #ffc53d, #ff6a3d); }
.wx-src { font-size: 11px; text-align: center; }

/* ===================================================================== */
/* Game Center                                                           */
/* ===================================================================== */
.gc-top { height: auto; min-height: clamp(230px, 38vh, 400px); margin-bottom: 18px; }
.gc-prev { min-height: 220px; }
.lg-prev.empty .lg-tap { display: none; }
.lg-prev.empty { background: radial-gradient(circle at center, #1d1638, #08060f); }
.lg-prev.empty .lg-prev-msg { inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); background: none; font-size: 14px; }
.gc-data { border-radius: 16px; background: linear-gradient(150deg, rgba(139, 92, 255, .12), transparent 55%), var(--panel); border: 1px solid var(--line2); overflow: hidden; }
.gd { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px; }
.gd > * { flex: none; }
.gd .state { padding: 30px 10px; }
.gd-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.gd-head .st { margin-left: auto; }
.gd-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.gd-team { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.gd-logo { width: 54px; height: 54px; object-fit: contain; }
.gd-team b { font-size: 17px; }
.gd-team small { font-size: 12px; color: var(--muted); }
.gd-nums { display: flex; align-items: center; gap: 14px; }
.gd-nums b { font-size: 46px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gd-nums b.lose { opacity: .5; }
.gd-nums em { font-style: normal; color: var(--muted); font-size: 20px; }
.gd-ev { font-size: 24px; font-weight: 800; }
.gd-main { font-size: 18px; font-weight: 700; color: var(--pink); }
.gd-lines { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.gd-lines th { font-size: 11px; color: var(--muted); font-weight: 700; padding: 3px 6px; text-align: center; }
.gd-lines td { padding: 4px 6px; text-align: center; border-top: 1px solid var(--line); }
.gd-lines td:first-child, .gd-lines th:first-child { text-align: left; font-weight: 700; }
.gd-wp { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.gd-wp small { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: -4px; }
.gd-wp-bar, .gd-stat-bar { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c1) 0, var(--c1) var(--a), var(--c2) var(--a), var(--c2) 100%); }
.gd-stats { display: grid; gap: 6px; }
.gd-stat { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 4px 10px; font-size: 13px; }
.gd-stat span { text-align: center; color: var(--muted); font-size: 12px; }
.gd-stat b:last-of-type { text-align: right; }
.gd-stat-bar { grid-column: 1 / -1; height: 3px; opacity: .8; }
.gd-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gd-lead { display: grid; gap: 2px; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); }
.gd-lead-t { font-size: 11px; color: var(--pink); letter-spacing: .08em; }
.gd-lead em { font-style: normal; color: var(--muted); }
.gd-play { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 197, 61, .08); border: 1px solid rgba(255, 197, 61, .2); }
.gd-play em { font-style: normal; font-weight: 800; color: var(--gold); margin-right: 6px; }
.gd-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.gd-watch em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.gd-ch { padding: 5px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line2); font-size: 12px; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-ch:hover { border-color: var(--violet); }
.gd-ch.on { background: var(--grad); border-color: transparent; color: #fff; }
.gd-foot { margin-top: 2px; }
.game.sel { border: 2px solid var(--pink); box-shadow: 0 0 22px rgba(255, 61, 187, .35); }
.gc-h { margin-bottom: 10px; }
[data-layout=mobile] .gc-top { margin-top: -18px; }
[data-layout=mobile] .gc-data { border-radius: 0; border-left: 0; border-right: 0; }
[data-layout=mobile] .gd-nums b { font-size: 36px; }
[data-layout=mobile] .gd-logo { width: 44px; height: 44px; }
[data-layout=mobile] .gd-leaders { grid-template-columns: 1fr; }
.gc-top { align-items: start; grid-template-columns: minmax(300px, 48%) 1fr; }
.gc-left { display: grid; gap: 10px; align-content: start; }
.gc-prev { min-height: 0; aspect-ratio: 16 / 9; }
.gc-watch .gd-watch { margin-top: 0; padding-top: 0; }
[data-layout=mobile] .gc-left { gap: 0; }
[data-layout=mobile] .gc-watch { padding: 10px var(--gut); }
/* Game Center: the info panel matches the preview's height (scrolls inside if needed),
   so the game cards below come into view sooner. */
[data-layout=desktop] .gc-top { align-items: stretch; min-height: 0; }
[data-layout=desktop] .gc-data { position: relative; }
[data-layout=desktop] .gc-data > .gd { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin; gap: 8px; padding: 12px 16px; }
[data-layout=desktop] .gd-logo { width: 42px; height: 42px; }
[data-layout=desktop] .gd-nums b { font-size: 36px; }
[data-layout=desktop] .gd-team b { font-size: 15px; }
[data-layout=desktop] .gd-stats { gap: 4px; }
[data-layout=desktop] .gd-stat { font-size: 12px; }
[data-layout=desktop] .gd-lead { padding: 6px 9px; }
[data-layout=desktop] .gd-play { padding: 6px 9px; font-size: 12px; }
[data-layout=desktop] .gc-data > .gd { padding-bottom: 22px; -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }

/* weather page */
.v-weather .page-h h1 { display: flex; align-items: center; gap: 10px; }
.v-weather .page-h h1 .i { width: 30px; height: 30px; color: var(--cyan); }
.wx-units button { min-width: 44px; justify-content: center; }
.wx-search { position: relative; max-width: 760px; }
.wx-search .search-big { margin-bottom: 10px; }
.wx-results { position: absolute; left: 0; right: 0; top: 62px; z-index: 20; display: grid; gap: 2px; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-height: 380px; overflow-y: auto; }
.wx-res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left; }
.wx-res:hover { background: var(--card2); }
.wx-res .i { color: var(--cyan); }
.wx-res span { display: grid; min-width: 0; }
.wx-res small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-places { margin: 4px 0 8px; }
.wx-places .chip { gap: 6px; cursor: pointer; }
.wx-places .chip .i { width: 15px; height: 15px; }
.wx-chip-saved { padding: 0 6px 0 14px; }
.wx-chip-saved .wx-x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; opacity: .6; }
.wx-chip-saved .wx-x:hover { opacity: 1; background: rgba(0, 0, 0, .2); }
.wx-chip-saved .wx-x .i { width: 13px; height: 13px; }
.wx-panel { max-width: 900px; }
.wx-panel .wx-sheet { display: grid; gap: 12px; }
.wx-panel .wx-now { padding-right: 0; }
.v-weather .wx-src { max-width: 900px; margin-top: 10px; }
[data-layout=mobile] .wx-results { top: 58px; }
[data-layout=mobile] .wx-d { grid-template-columns: 46px 24px 34px 30px 1fr 30px; gap: 7px; padding: 8px 6px; }
.h-title .h-logo { display: block; max-width: min(440px, 80%); max-height: 120px; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
[data-layout=mobile] .h-title .h-logo { margin: 0 auto; max-height: 80px; object-position: center; }
/* an error always keeps the top bar (← back) visible */
.player.has-msg .p-ui, .player.has-msg.idle .p-ui { opacity: 1; pointer-events: none; }
.player.has-msg .p-top, .player.has-msg.idle .p-top { pointer-events: auto; opacity: 1; }
.player.has-msg.idle { cursor: auto; }
/* While the full player or Multiview is open, stop drawing the page behind it (saves GPU/battery). */
html.player-open .shell { visibility: hidden; }
html.player-open .shell * { animation-play-state: paused !important; }
.ms-form { display: grid; grid-template-columns: 130px 1fr 1fr 1fr auto; gap: 8px; }
@media (max-width: 760px) { .ms-form { grid-template-columns: 1fr; } }

/* ---------- TV (Firestick, Google TV, Onn): 10-foot layout on top of the desktop one ---------- */
html.tv { --gut: 40px; font-size: 17px; }
html.tv body { font-size: 17px; }
html.tv .layout-seg, html.tv .shelf-arrow, html.tv .p-pipbtn, html.tv .p-fs, html.tv .p-vol { display: none !important; }
/* Big, high-contrast focus ring on whatever the remote is on. */
html.tv :focus { outline: none; }
html.tv a:focus, html.tv button:focus, html.tv select:focus, html.tv input:focus, html.tv textarea:focus, html.tv [tabindex]:focus {
  outline: 4px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 9px rgba(255, 61, 187, .55); position: relative; z-index: 2;
}
html.tv .card:focus { transform: scale(1.06); transition: transform .12s; outline-offset: 2px; }
html.tv .side-nav a:focus { background: var(--card2); color: var(--text); }
html.tv .shelf-row { padding: 16px 16px 20px; margin: -16px -16px 0; scroll-padding: 0 40px; scroll-snap-type: none; }
html.tv .btn { min-height: 48px; font-size: 16px; }
html.tv .btn.sm { min-height: 40px; }
html.tv .field { min-height: 50px; font-size: 17px; }
html.tv .page-h h1 { font-size: 34px; }
html.tv .shelf h2 { font-size: 22px; }
html.tv .card-t { font-size: 15px; }
html.tv .p-msg .btn { min-height: 54px; font-size: 18px; }
html.tv .modal-card { max-width: 640px; font-size: 18px; }
html.tv * { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html.tv .card:focus { transform: none; } }
