/* sbc on the web. On a phone it copies the Android app (tokens, sizes and
   order from lib/common/theme and the home, details and player screens);
   from 1024 px wide it becomes a desktop site with its own header and wide
   layouts. Dark only; motion is fades and short rises, never scaling. */
:root {
  --bg: #050506;
  --bg-deep: #000000;
  --ink: #f4f4f7;
  --muted: #b4b4c0;
  --faint: #7c7c8a;
  --frost: rgba(255, 255, 255, 0.12);
  --frost-stroke: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-stroke: rgba(255, 255, 255, 0.14);
  --primary: #ededef;
  --primary-strong: #ededef;
  --accent: #ffffff;
  --live: #ff3d71;
  --success: #4ade80;
  --gutter: 20px;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --nav: 60px;
  --head: "El Messiri", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --rail: calc((min(100vw, 600px) - 64px) / 3);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg-deep); overflow-x: clip; overscroll-behavior-y: none; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  color: var(--ink); font: 400 13.5px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  background: transparent; overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.2; }
p { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.noscript { padding: 80px 20px; text-align: center; }
.noscript a { color: var(--accent); text-decoration: underline; }

/* ---- the aurora behind every page */
.aurora {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg), var(--bg-deep));
}
.aurora { display: none !important; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 128vw; height: 128vw; left: -42vw; top: -48vw; background: radial-gradient(closest-side, rgba(65, 65, 69, .36), rgba(65, 65, 69, .15) 45%, transparent); animation: drift 28s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 100vw; height: 100vw; right: -34vw; top: 18vh; background: radial-gradient(closest-side, rgba(237, 237, 239, .2), rgba(237, 237, 239, .08) 45%, transparent); }
.aurora i:nth-child(3) { width: 148vw; height: 148vw; left: -29vw; bottom: -80vw; background: radial-gradient(closest-side, rgba(32, 32, 36, .6), rgba(32, 32, 36, .26) 45%, transparent); }
.aurora i:nth-child(4) { width: 84vw; height: 84vw; left: -30vw; top: 50vh; background: radial-gradient(closest-side, rgba(190, 24, 93, .12), rgba(190, 24, 93, .05) 45%, transparent); }
@keyframes drift { to { transform: translate(36vw, 20vh); } }

/* ---- glass (1:1 optical parity with GlassPanel in lib/common/widgets/glass.dart) */
.glass {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .11), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid var(--glass-stroke);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .14), 0 12px 32px -12px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.glass-strong {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  border: 1px solid var(--glass-stroke);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .18), 0 16px 40px -12px rgba(0, 0, 0, .52);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.frost {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .12), transparent 55%), var(--frost);
  border: 1px solid var(--frost-stroke);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .16), 0 10px 28px -10px rgba(0, 0, 0, .48);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}

/* ---- page frame */
.view { min-height: 100vh; outline: none; padding-bottom: calc(var(--nav) + var(--bottom) + 24px); }
body.bare .view { padding-bottom: calc(var(--bottom) + 24px); }
/* page arrivals where the browser has no View Transitions */
.pg-push { animation: vt-push .4s cubic-bezier(.22, 1, .36, 1) both; }
.pg-fade { animation: vt-in .56s ease both; }
.pg-tab { animation: vt-in .26s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
.heading { padding: calc(var(--top) + 20px) var(--gutter) 10px; display: flex; align-items: baseline; gap: 10px; }
.heading h1 { font-size: 27px; font-weight: 700; }
.heading span { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--muted); }
.wrap { padding: 0 var(--gutter); }

/* ---- phone: home bar */
.bar { position: fixed; z-index: 30; top: 0; right: 0; bottom: auto; left: 0; transition: transform .26s ease, opacity .2s ease; }
.bar.away { transform: translateY(-120%); opacity: 0; }
.bar[data-kind="none"] { display: none; }
.homebar {
  height: calc(var(--top) + 54px); padding: calc(var(--top) + 4px) 16px 14px;
  display: flex; align-items: center; gap: 8px; overflow: hidden;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .16), transparent 55%), var(--frost);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.homebar .art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; opacity: .9; }
.homebar .art img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.2); transform: scale(1.3); transition: opacity .7s ease; }
.homebar .art::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(5, 5, 6, .45); }
.homebar nav { flex: 1; display: flex; justify-content: space-evenly; }
.homebar nav a { font-family: var(--head); font-weight: 700; font-size: 15px; padding: 4px 6px; }
.homebar .me { width: 36px; height: 36px; display: grid; place-items: center; }
.homebar .me .avatar { width: 32px; height: 32px; font-size: 14px; }
.homebar .me .signin { height: 32px; padding: 0 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.homebar .me .signin svg { width: 16px; height: 16px; }
.homebar .me:has(.signin) { width: auto; }
.inbar {
  height: calc(var(--top) + 56px); padding: calc(var(--top) + 10px) 16px 6px;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
}
.inbar h1 { font-size: 18px; text-align: center; }

/* pull-to-refresh plate (1:1 with SbcRefresh in lib/common/widgets/refresh.dart) & swipe-back pill */
.ptr {
  position: fixed; z-index: 29; top: calc(var(--top) + 56px); left: 50%;
  width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  background: var(--bg-deep); border: 1px solid var(--glass-stroke);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .58);
  display: grid; place-items: center; pointer-events: none;
  opacity: 0; transform: translate3d(0, -48px, 0) scale(.78);
  will-change: transform, opacity;
}
.ptr.settle { transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .22s ease; }
.ptr svg { width: 22px; height: 22px; color: var(--accent); transform-origin: center; }
.ptr.busy svg { animation: spin .82s linear infinite; }
.ptr circle { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

.swipe-back-ind {
  position: fixed; z-index: 65; top: 50%; width: 38px; height: 64px; margin-top: -32px;
  border-radius: 999px; display: grid; place-items: center; pointer-events: none;
  background: rgba(20, 20, 24, .82); border: 1px solid var(--frost-stroke);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .48); color: var(--ink);
  opacity: 0; transform: scale(.85);
}
.swipe-back-ind.ready { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px rgba(255, 255, 255, .35), 0 12px 30px rgba(0, 0, 0, .5); }
.swipe-back-ind svg { width: 20px; height: 20px; }

/* ---- phone: bottom nav */
.tabs {
  position: fixed; z-index: 30; top: auto; right: 0; bottom: 0; left: 0;
  height: calc(var(--nav) + var(--bottom)); padding-bottom: var(--bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, .82); border-top: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: transform .32s cubic-bezier(.33, 1, .68, 1);
}
.tabs.away { transform: translateY(120%); }
body.bare .tabs { display: none; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(245, 240, 255, .6); font-size: 11px; line-height: 1.2; font-weight: 500; transition: color .22s ease, transform .14s cubic-bezier(.33, 1, .68, 1); }
.tabs a svg { width: 24px; height: 24px; transition: transform .22s cubic-bezier(.33, 1, .68, 1); }
.tabs a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.tabs a[aria-current="page"] svg { transform: translateY(-2px); }

/* ---- buttons, chips */
.liquid {
  position: relative; overflow: hidden; isolation: isolate;
  height: 50px; padding: 0 26px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(to bottom, #414145, #4a0a1e);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 6px 18px rgba(225, 29, 72, .35);
  color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap;
}
.liquid::before, .liquid::after {
  content: ""; position: absolute; z-index: -1; left: -50%; width: 200%; aspect-ratio: 1;
  border-radius: 42%;
}
.liquid::before { top: 22%; background: #d9123f; animation: spin 7s linear infinite; }
.liquid::after { top: 34%; background: rgba(255, 77, 109, .55); border-radius: 46%; animation: spin 11s linear infinite reverse; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35); }
.liquid svg { width: 18px; height: 18px; }
.liquid.wide { width: 100%; height: 54px; }
.liquid .ws { display: inline-flex; gap: .3em; }
.liquid .w { display: inline-block; animation: wpulse 2.6s ease-in-out infinite; }
.liquid .w + .w { animation-delay: .32s; }
.liquid .w + .w + .w { animation-delay: .64s; }
@keyframes wpulse { 0%, 32%, 100% { transform: none; } 16% { transform: scale(1.11); } }
@keyframes spin { to { transform: rotate(360deg); } }
.btn {
  height: 50px; padding: 0 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: linear-gradient(to left, #ededef, #ededef); color: #111114; box-shadow: 0 8px 22px rgba(237, 237, 239, .35); }
.btn.wide { width: 100%; }
.sq { width: 50px; height: 50px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.sq svg { width: 22px; height: 22px; }
.sq.on svg { color: var(--live); fill: var(--live); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 6px;
  background: var(--glass-strong); border: 1px solid var(--glass-stroke);
  font-weight: 600; font-size: 13px; white-space: nowrap; flex: none;
}
.chip svg { width: 16px; height: 16px; }
.chip.dense { height: 32px; padding: 0 12px; }
.chip[aria-pressed="true"] { background: var(--primary-strong); border-color: transparent; color: #111114; box-shadow: 0 6px 16px rgba(237, 237, 239, .35); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px;
  background: var(--glass-strong); border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.fact svg { width: 13px; height: 13px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- sections, rails, cards */
.section { padding-top: 6px; }
.shead { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); }
.shead h2 { font-size: 18px; }
.shead a { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; font-size: 13px; }
.shead a svg { width: 15px; height: 15px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail); gap: 12px;
  overflow-x: auto; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: linear-gradient(160deg, #17171b, #0b0b0d); }
.poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.poster img.on { opacity: 1; }
.card { display: block; min-width: 0; }
.card .heart {
  position: absolute; top: 0; inset-inline-end: 0; width: 30px; height: 30px;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55);
  border-start-end-radius: 3px; border-end-start-radius: 10px;
}
.card .heart svg { width: 16px; height: 16px; }
.card .heart.on svg { color: var(--live); fill: var(--live); }
.card .rate {
  position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 2px 6px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 3px; background: rgba(0, 0, 0, .62);
  font-size: 11px; font-weight: 700;
}
.card .rate svg { width: 12px; height: 12px; color: var(--accent); fill: var(--accent); }
.card .badge { position: absolute; top: 6px; inset-inline-start: 6px; padding: 1px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; background: rgba(0, 0, 0, .62); }
.card b { display: block; margin-top: 8px; font-family: var(--head); font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.card small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.card small span + span { margin-inline-start: 8px; }
.skel .poster { background: linear-gradient(110deg, #17171b 30%, rgba(255, 255, 255, .10) 50%, #17171b 70%) 0 0 / 250% 100%; animation: shim 1.5s linear infinite; }
@keyframes shim { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@keyframes shimmer { 50% { opacity: .5; } }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 0 var(--gutter); }
.more { display: grid; place-items: center; padding: 26px 0 6px; color: var(--muted); font-size: 13px; }

/* top 10 */
.top10 { grid-auto-columns: auto; gap: 14px; }
.top10 a { display: flex; align-items: flex-end; gap: 6px; }
.top10 .num {
  font-family: var(--head); font-weight: 700; line-height: .8; direction: ltr;
  font-size: calc(var(--rail) * .95); color: transparent; -webkit-text-stroke: 1.6px var(--primary);
}
.top10 .poster { width: var(--rail); }

/* wide series cards */
.wide { grid-auto-columns: 76vw; }
.wcard { display: flex; height: 132px; border-radius: 3px; overflow: hidden; }
.wcard .poster { width: 88px; flex: none; border-radius: 0; aspect-ratio: auto; }
.wcard div.t { padding: 10px 12px; min-width: 0; display: grid; align-content: start; gap: 4px; }
.wcard b { font-family: var(--head); font-size: 15px; font-weight: 700; line-height: 1.3; }
.wcard .r { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
.wcard .r svg { width: 13px; height: 13px; color: var(--accent); fill: var(--accent); }
.wcard .r span { color: var(--muted); margin-inline-start: 8px; }
.wcard p { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---- hero carousel */
.hero { position: relative; }
.hero-card { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px 6px 0 0; margin-top: calc(var(--top) + 48px); touch-action: pan-y; }
.hero-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, transparent 55%, rgba(5, 5, 6, .55) 84%, var(--bg)); pointer-events: none; }
.hero-body { position: absolute; z-index: 1; top: auto; right: 0; bottom: 0; left: 0; padding: 0 var(--gutter) 8px; display: grid; gap: 0; }
.hero-body > .slide, .saga-body > .slide { grid-area: 1 / 1; align-self: end; min-width: 0; }
.hero-body .facts { margin-bottom: 12px; }
.hero-body h1 { font-size: 27px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero-body p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.hero-body .acts { display: flex; gap: 10px; margin-top: 16px; }
.hero-body .alt { display: none; }
.strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter) 2px; scroll-behavior: smooth; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 72px; height: 72px; border-radius: 3px; overflow: hidden; opacity: .42; transition: opacity .32s ease; background: #101012; }
.strip button[aria-current="true"] { opacity: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; cursor: grabbing !important; user-select: none; }
.dragging * { pointer-events: none; }
.saga img, .hero img, .rail img, .parts img, .strip img { -webkit-user-drag: none; user-select: none; }
.fadeswap { animation: fade .5s ease both; }
img.fadeswap { animation: soften .7s ease both; }
@keyframes soften { from { opacity: .45; } }

/* ---- saga showcase */
.saga { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; touch-action: pan-y; }
.saga::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 36%, rgba(5, 5, 6, .8) 62%, rgba(5, 5, 6, .55) 80%, transparent); }
.saga > .layers { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 72%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 72%, transparent); }
.saga-body { position: absolute; z-index: 1; top: auto; right: 0; bottom: 0; left: 0; padding: 0 var(--gutter) 28px; display: grid; }
.saga-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 13px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.saga-label svg { width: 14px; height: 14px; }
.saga-body h3 { margin-top: 6px; font-size: 21px; }
.saga-body .facts { margin-top: 8px; }
.parts { display: flex; gap: 9px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; height: 96px; }
.parts::-webkit-scrollbar { display: none; }
.parts a { position: relative; flex: none; height: 100%; aspect-ratio: 2 / 3; border-radius: 4px; padding: 1.5px; border: 1px solid rgba(255, 255, 255, .2); }
.parts a.newest { border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(237, 237, 239, .55); }
.parts img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.parts i { position: absolute; top: 4px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .62); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.dashes { position: absolute; z-index: 1; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; }
.dashes span { height: 4px; width: 6px; margin: 0 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: width .3s ease; }
.dashes span.on { width: 26px; background: rgba(255, 255, 255, .28); }
.dashes span.on::after { content: ""; display: block; height: 100%; background: var(--accent); animation: fill 8s linear both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---- search pill, tabs, filter sheet */
.pill { display: flex; align-items: center; height: 50px; border-radius: 6px; padding-inline: 14px 4px; gap: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.pill > svg { width: 19px; height: 19px; color: var(--muted); }
.pill input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 400 16px var(--body); }
.pill input::placeholder { color: var(--muted); opacity: .8; }
.pill .x { width: 30px; height: 30px; display: grid; place-items: center; }
.pill .x svg { width: 17px; height: 17px; }
.pill .div { width: 1px; height: 22px; background: var(--glass-stroke); }
.pill .f { position: relative; width: 42px; height: 42px; display: grid; place-items: center; }
.pill .f svg { width: 19px; height: 19px; }
.pill .f b { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--primary-strong); font-size: 10px; display: grid; place-items: center; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 54px; padding: 4px; border-radius: 6px; gap: 4px; }
/* the anime page: the two tabs beside the search pill, stacked on a phone */
.anime-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.anime-tools .seg { flex: 1 1 320px; margin: 0; }
.anime-tools .pill { flex: 1 1 320px; min-width: 0; margin: 0; }
.seg button { border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; transition: background .26s ease, transform .14s cubic-bezier(.33, 1, .68, 1); }
.seg button svg { width: 17px; height: 17px; }
.seg button[aria-pressed="true"] { background: var(--primary-strong); color: #111114; }
.sheet-back { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: rgba(0, 0, 0, .45); animation: fade .2s ease both; }
.stage .sheet-back, .stage .sheet { position: absolute; }
.sheet {
  position: fixed; z-index: 51; left: 10px; right: 10px; bottom: calc(10px + var(--bottom));
  max-height: 82vh; overflow-y: auto; border-radius: 6px; padding: 12px 20px 20px;
  background: rgba(18, 18, 22, .94); border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(34px); backdrop-filter: blur(34px);
  animation: rise .3s cubic-bezier(.22, 1, .36, 1) both; max-width: 560px; margin: 0 auto;
}
.sheet .handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin: 0 auto 14px; }
.sheet .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet h2 { font-size: 18px; }
.sheet h3 { font-size: 15px; margin: 16px 0 10px; }
.sheet .chips { flex-wrap: wrap; }
.sheet .btn { margin-top: 20px; }
.link { color: var(--primary); font-weight: 600; font-size: 13px; }

/* recent searches, categories */
.recent { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); }
.recent span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 12px; border-radius: 4px; font-weight: 600; font-size: 13px; }
.recent span svg { width: 13px; height: 13px; }
.recent span button { width: 26px; height: 26px; display: grid; place-items: center; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--gutter); }
.cat { position: relative; height: 68px; border-radius: 3px; overflow: hidden; display: flex; align-items: center; padding: 0 16px; font-family: var(--head); font-weight: 700; font-size: 16px; border: 1px solid var(--glass-stroke); }
.cat img { position: absolute; inset-inline-end: 0; top: 0; height: 100%; width: 55%; object-fit: cover; -webkit-mask-image: linear-gradient(to left, #000 20%, transparent); mask-image: linear-gradient(to left, #000 20%, transparent); }
.cat span { position: relative; }

/* ---- details */
.dtop { position: relative; }
.dtop .poster-big { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; }
.dtop .poster-big img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dtop .poster-big::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 18%, transparent 50%, rgba(5, 5, 6, .86) 80%, var(--bg)); }
.dblock { position: relative; z-index: 1; margin-top: -40%; padding: 0 var(--gutter) 22px; display: grid; gap: 0; }
.dblock h1 { margin-top: 10px; font-size: 27px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.dblock .alt { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dblock .acts { display: flex; gap: 10px; margin-top: 14px; }
.dblock .acts .sq { width: 54px; height: 54px; }
.resume { margin-top: 10px; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.resume .bar3 { height: 3px; border-radius: 2px; background: rgba(245, 240, 255, .14); overflow: hidden; }
.resume .bar3 i { display: block; height: 100%; background: var(--primary); }
.dbody { padding: 4px var(--gutter) 0; }
.dbody h2 { font-size: 16.5px; }
.story { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.dbody .genres { flex-wrap: wrap; margin-top: 16px; }
.dbody .genres .chip { height: 32px; padding: 0 12px; font-weight: 500; }
.eps { margin-top: 26px; }
.eps .ehead { display: flex; align-items: baseline; gap: 8px; padding: 0 var(--gutter); }
.eps .ehead h2 { font-size: 18px; }
.eps .ehead span { color: var(--muted); font-weight: 600; }
.eps .chips { padding: 12px var(--gutter) 2px; }
.estrip { display: flex; gap: 10px; overflow-x: auto; padding: 12px var(--gutter) 4px; scrollbar-width: none; }
.estrip::-webkit-scrollbar { display: none; }
.ecard { flex: none; width: 112px; }
.ecard .sqimg { position: relative; width: 112px; height: 112px; border-radius: 4px; overflow: hidden; background: #101012; border: 2px solid transparent; }
.ecard.cur .sqimg { border-color: var(--accent); }
.ecard .sqimg img { width: 100%; height: 100%; object-fit: cover; }
.ecard .sqimg::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, .75)); }
.ecard .n { position: absolute; z-index: 1; bottom: 6px; inset-inline-start: 8px; font-family: var(--head); font-weight: 700; line-height: 1; text-align: start; }
.ecard .n small { display: block; font-size: 12px; font-weight: 500; }
.ecard .n b { font-size: 21px; }
.ecard .pl { position: absolute; z-index: 1; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .35); }
.ecard.cur .pl { background: var(--primary); border-color: transparent; }
.ecard .pl svg { width: 12px; height: 12px; }
.ecard .pl.done { background: var(--success); border-color: transparent; }
.ecard .prog { position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; height: 3px; }
.ecard .prog i { display: block; height: 100%; background: var(--accent); }
.ecard > span { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; text-align: center; }
.ecard.cur > span { color: var(--accent); }

/* ---- player */
.pbg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; }
.pbg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px); transform: scale(1.2); }
.pbg::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .55); }
.stage {
  position: relative; width: 100%; padding-top: var(--top); background: #000;
  border-radius: 0 0 4px 4px; overflow: hidden; box-shadow: 0 18px 60px 4px rgba(237, 237, 239, .38);
}
.stage .box { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.stage video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: #000; }
.stage video::cue { font-family: var(--body); background: rgba(0, 0, 0, .55); }
.stage.full { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; border-radius: 0; padding-top: 0; }
.stage.full .box { height: 100%; aspect-ratio: auto; }
.ov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; background: rgba(0, 0, 0, .28); transition: opacity .25s ease; display: grid; grid-template-rows: auto 1fr auto; }
.ov.hide { opacity: 0; pointer-events: none; }
.ov .tr { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 16px; }
.ov .tr b { display: block; font-family: var(--head); font-size: 16.5px; }
.ov .tr span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.ov .tr .btns { display: flex; gap: 8px; }
.gbtn { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; }
.gbtn svg { width: 17px; height: 17px; }
.gbtn[aria-pressed="true"] { background: var(--primary-strong); border-color: transparent; }
.ov .mid { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ov .mid .s { width: 36px; height: 36px; border-radius: 50%; }
.ov .mid .s svg { width: 18px; height: 18px; }
.ov .mid .big { width: 50px; height: 50px; border-radius: 6px; display: grid; place-items: center; }
.ov .mid .big svg { width: 22px; height: 22px; }
.ov .bt { display: flex; align-items: center; gap: 10px; padding: 0 14px 8px; }
.ov .bt time { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.ov .bt .gbtn { width: 36px; height: 36px; background: none; border: 0; }
.seek { flex: 1; -webkit-appearance: none; appearance: none; height: 16px; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--track, rgba(255, 255, 255, .22)); }
.seek::-moz-range-track { height: 3px; border-radius: 2px; background: var(--track, rgba(255, 255, 255, .22)); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); }
.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.pmsg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px; font-size: 13px; pointer-events: none; }
.pmsg.solid { pointer-events: auto; background: radial-gradient(circle at center, rgba(5, 5, 6, .6), rgba(0, 0, 0, .92)); }
.pmsg h2 { font-size: 17px; }
.pmsg > svg { width: 30px; height: 30px; color: var(--accent); }
.stage.tall .box { aspect-ratio: auto; min-height: 56.25vw; }
.stage.tall .pmsg { position: relative; top: auto; right: auto; bottom: auto; left: auto; min-height: 56.25vw; padding: 28px 16px; }
.pmsg p { color: var(--muted); max-width: 340px; }
.pmsg .btn, .pmsg .gsign { margin-top: 4px; }
.pcard { margin: 14px 16px; padding: 14px; border-radius: 3px; display: grid; gap: 12px; background: linear-gradient(rgba(237, 237, 239, .1), rgba(237, 237, 239, .1)), var(--glass-strong); border: 1px solid var(--glass-stroke); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.pcard .row { display: flex; gap: 12px; }
.pcard .row .poster { width: 82px; flex: none; border-radius: 4px; }
.pcard h1 { font-size: 16.5px; }
.pcard .facts { margin-top: 8px; }
.pcard .fact { font-size: 11px; font-weight: 700; padding: 4px 8px; }
.pcard p { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pcard .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pcard .acts .sq { width: 36px; height: 36px; }
.pcard .acts .sq svg { width: 18px; height: 18px; }
.elist { display: grid; gap: 8px; padding: 6px 16px 0; }
.erow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; }
.erow .no { width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 16px; background: rgba(255, 255, 255, .08); flex: none; }
.erow.cur { background: rgba(237, 237, 239, .24); border-color: rgba(237, 237, 239, .55); }
.erow.cur .no { background: var(--primary); }
.erow .t { flex: 1; min-width: 0; }
.erow .t b { display: block; font-weight: 500; font-size: 13.5px; }
.erow .t .p3 { height: 3px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.erow .t .p3 i { display: block; height: 100%; background: var(--accent); }
.erow .t .seen { color: var(--success); font-size: 11.5px; }
.erow > svg { width: 18px; height: 18px; color: var(--muted); }

/* ---- account */
.acct { display: grid; gap: 14px; padding: calc(var(--top) + 66px) var(--gutter) 0; }
.acct-side, .acct-main { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .install { order: 6; } .o7 { order: 7; } .o8 { order: 8; }
.recentbox { margin: 0 calc(-1 * var(--gutter)); }
.card .hov { display: none; }
.searchtop { padding-top: calc(var(--top) + 14px); }
.prof { padding: 18px; border-radius: 6px; display: grid; gap: 14px; background: linear-gradient(rgba(237, 237, 239, .12), rgba(237, 237, 239, .12)), var(--glass-strong); border: 1px solid var(--glass-stroke); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.prof .who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #ededef, #ffffff); border: 2px solid var(--frost-stroke); font-family: var(--head); font-weight: 700; font-size: 30px; color: #111114; }
.avatar svg { width: 55%; height: 55%; }
.prof .who b { display: block; font-family: var(--head); font-size: 21px; line-height: 1.25; }
.prof .who small { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.gpill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.gpill svg { width: 14px; height: 14px; }
.member { position: relative; isolation: isolate; overflow: hidden; padding: 16px; border-radius: 6px; display: grid; gap: 14px; --mk: var(--accent); }
.member::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: radial-gradient(110% 90% at 100% 0%, var(--mc1, transparent), transparent 62%), radial-gradient(90% 80% at 0% 100%, var(--mc2, transparent), transparent 66%);
}
.member.package { --mk: #ffffff; --mc1: rgba(255, 255, 255, .2); --mc2: rgba(237, 237, 239, .3); border-color: rgba(255, 255, 255, .3); }
.member.trial { --mc1: rgba(237, 237, 239, .3); --mc2: rgba(255, 255, 255, .14); }
.member.none { --mk: var(--muted); --mc1: rgba(255, 61, 113, .12); --mc2: rgba(237, 237, 239, .2); }
.mhead { display: flex; align-items: center; gap: 12px; }
.mhead .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--mk); background: color-mix(in srgb, var(--mk) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk) 38%, transparent); }
.mhead .ic svg { width: 20px; height: 20px; }
.mhead .txt { flex: 1; min-width: 0; }
.mhead .mrow { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mhead small { display: block; color: var(--muted); font-size: 12px; }
.mhead b { display: block; font-family: var(--head); font-size: 17px; font-weight: 700; line-height: 1.35; }
.member .state { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; background: rgba(74, 222, 128, .13); color: #86efac; }
.member .state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.member.trial .state { background: rgba(255, 255, 255, .15); color: var(--accent); }
.member.trial .state i { box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.mbody { display: flex; align-items: center; gap: 16px; }
.mbody p, .mnote { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.ring { position: relative; flex: none; width: 84px; height: 84px; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 3.6; }
.ring .t { stroke: rgba(255, 255, 255, .1); }
.ring .v { stroke: var(--mk); stroke-linecap: round; transition: stroke-dasharray 1.2s cubic-bezier(.2, .8, .2, 1) .15s; }
.ring.low .v { stroke: var(--live); }
.ring b { font-family: var(--head); font-size: 25px; font-weight: 700; }
.ring small { margin-top: 3px; font-size: 11px; color: var(--muted); }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.perks li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 4px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 500; }
.perks svg { width: 13px; height: 13px; color: var(--mk); }
.mfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.mfoot a { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); font-weight: 600; font-size: 12.5px; }
.mfoot a svg { width: 15px; height: 15px; }
.gsign { height: 48px; width: 100%; max-width: 360px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 14.5px; }
.gsign svg { width: 20px; height: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px 6px; border-radius: 3px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.stat i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; }
.stat i svg { width: 18px; height: 18px; }
.stat b { font-family: var(--head); font-size: 21px; line-height: 1; color: var(--ink); }
.stat span { font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 3px; font-family: var(--head); font-weight: 700; font-size: 15px; }
.tile i { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.tile i svg { width: 19px; height: 19px; }
.rows { display: grid; gap: 10px; }
.nrow { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 3px; }
.nrow i { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.nrow i svg { width: 19px; height: 19px; }
.nrow b { flex: 1; font-family: var(--head); font-weight: 700; font-size: 15px; }
.nrow > svg { width: 18px; height: 18px; color: var(--muted); }
.nrow .tag { padding: 2px 8px; border-radius: 6px; background: rgba(255, 61, 113, .18); color: #ff8fab; font-size: 11.5px; font-weight: 600; }
.nrow.out b { color: var(--live); }
.foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.foot img { width: 22px; height: 22px; border-radius: 6px; }
.foot b { font-family: var(--head); color: var(--ink); font-size: 18px; }
.sub-title { font-family: var(--head); font-weight: 700; font-size: 18px; margin: 10px 0 0; }
.pkgs { display: grid; gap: 14px; max-width: 980px; padding-bottom: 20px; }
.pkgs .lead { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
/* the term switch, as the app's: three segments under one sliding thumb */
.terms { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 52px; padding: 5px; border-radius: 6px; }
.terms .thumb { position: absolute; top: 5px; bottom: 5px; right: 5px; width: calc((100% - 10px) / 3); border-radius: 6px; background: var(--primary-strong); translate: calc(var(--i, 0) * -100%) 0; transition: translate .32s cubic-bezier(.33, 1, .68, 1); }
.terms button { position: relative; font-size: 14px; font-weight: 700; color: var(--ink); }
.terms button[aria-selected="true"] { color: #fff; }
.plans { display: grid; gap: 14px; }
.plan { position: relative; overflow: hidden; isolation: isolate; padding: 20px; border-radius: 6px; display: grid; gap: 0; align-content: start; }
.plan.hot { border-color: rgba(237, 237, 239, .55); box-shadow: 0 0 0 1px rgba(237, 237, 239, .3), 0 18px 50px -24px rgba(237, 237, 239, .7); }
.plan.hot::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(90% 60% at 100% 0%, rgba(237, 237, 239, .26), transparent 70%); }
.plan.mine { border-color: rgba(74, 222, 128, .4); }
.phead { display: flex; align-items: flex-start; gap: 10px; }
.phead b { flex: 1; min-width: 0; font-family: var(--head); font-size: 20px; font-weight: 700; line-height: 1.35; }
.ptag { flex: none; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: rgba(237, 237, 239, .22); color: var(--accent); }
.ptag.ok { background: rgba(74, 222, 128, .15); color: #86efac; }
.pdesc { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.plan .price { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; }
.plan .price strong { font-family: var(--head); font-size: 30px; font-weight: 700; line-height: 1.1; }
.plan .price small { padding-bottom: 5px; font-size: 13px; color: var(--muted); }
.was { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.was s { font-size: 13.5px; color: var(--muted); }
.was em { font-style: normal; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: rgba(74, 222, 128, .15); color: #86efac; }
.offs { margin-top: 8px; font-size: 12px; color: var(--muted); }
.incs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.incs span { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(237, 237, 239, .12); color: var(--primary); }
.pperks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pperks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.pperks svg { flex: none; width: 16px; height: 16px; }
.plan .btn { margin-top: 18px; }
.btn.off { opacity: .75; cursor: default; }
@media (min-width: 1024px) {
  .pkgs { grid-template-columns: 1fr 1fr; gap: 18px 22px; align-items: start; }
  .pkgs > .lead, .pkgs > .member, .pkgs > .plans { grid-column: 1 / -1; }
  .pkgs > .member { max-width: 560px; }
  .pkgs > .terms { grid-column: 1 / -1; max-width: 520px; }
  .plans { grid-template-columns: 1fr 1fr; gap: 18px; }
  .plan { padding: 26px 24px 24px; }
}

/* ---- activating a package: summary, the card, the receipt, the request */
.rq { display: grid; gap: 18px; max-width: 620px; padding-bottom: 24px; }
.rq-sum { padding: 18px; border-radius: 6px; display: grid; gap: 4px; background-image: radial-gradient(90% 80% at 100% 0%, rgba(237, 237, 239, .24), transparent 70%); }
.rq-sum > b { font-family: var(--head); font-size: 20px; }
.rq-sum > span { font-size: 13.5px; color: var(--muted); }
.rq-sum .price { display: flex; align-items: flex-end; gap: 8px; margin-top: 6px; }
.rq-sum .price strong { font-family: var(--head); font-size: 30px; line-height: 1.1; }
.rq-sum .price small { padding-bottom: 5px; font-size: 13px; color: var(--muted); }
.rq-body { display: grid; gap: 12px; }
.rq-step { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rq-step b { width: 28px; height: 28px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--primary-strong); color: #111114; font-weight: 800; font-size: 14px; }
.rq-step h2 { font-size: 16px; font-weight: 700; }
.rq-note { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.paycard {
  position: relative; overflow: hidden; aspect-ratio: 1.586; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; color: #111114;
  background: linear-gradient(to bottom right, #000000, #414145 55%, #ededef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 22px 50px -24px rgba(237, 237, 239, .8);
}
.paycard::before { content: ""; position: absolute; top: -40%; right: -20%; width: 90%; height: 140%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.paycard::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom right, rgba(255, 255, 255, .16), transparent 38%, transparent 62%, rgba(255, 255, 255, .08)); pointer-events: none; }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.chip-ic { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #ffffff, #ededef 60%, #ffffff); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.pc-bank { text-align: right; }
.pc-bank b { display: block; font-size: 11.5px; letter-spacing: 1.6px; color: rgba(255, 255, 255, .85); }
.pc-bank small { font-size: 11px; color: rgba(255, 255, 255, .6); }
.pc-num { margin-top: auto; font-family: var(--head); font-size: clamp(20px, 6.4vw, 28px); font-weight: 700; letter-spacing: 2.4px; font-variant-numeric: tabular-nums; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
.pc-foot b { font-size: 14px; letter-spacing: 1.4px; color: rgba(255, 255, 255, .92); }
.mc { display: flex; }
.mc span { width: 26px; height: 26px; border-radius: 50%; background: #eb001b; }
.mc span + span { margin-left: -10px; background: #f79e1b; opacity: .92; }
.rq-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 6px; }
.rq-copy small { display: block; font-size: 12px; color: var(--muted); }
.rq-copy b { font-size: 17px; letter-spacing: 1px; }
.rq-copy .btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
.rq-pick { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: 6px; text-align: center; }
.rq-pick svg { width: 30px; height: 30px; color: var(--primary); }
.rq-pick b { font-size: 15px; }
.rq-pick small { font-size: 12.5px; color: var(--muted); }
.rq-shot { padding: 10px; border-radius: 6px; display: grid; gap: 10px; }
.rq-shot img { width: 100%; height: 240px; object-fit: cover; border-radius: 3px; }
.rq-shot .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rq-shot .btn { height: 44px; font-size: 14px; }
.rq-wait { padding: 22px 20px; border-radius: 6px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.rq-wait > i { width: 56px; height: 56px; border-radius: 6px; display: grid; place-items: center; background: rgba(237, 237, 239, .16); color: var(--primary); }
.rq-wait > i svg { width: 26px; height: 26px; }
.rq-wait h2 { font-size: 20px; font-family: var(--head); }
.rq-wait p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.rq-wait .btn { margin-top: 8px; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn:disabled { opacity: .45; box-shadow: none; }
.note { font-size: 12.5px; color: var(--muted); }

/* ---- states, toast */
.state { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 24px; color: var(--muted); }
.state .tilebig { width: 84px; height: 84px; border-radius: 6px; display: grid; place-items: center; }
.state .tilebig svg { width: 34px; height: 34px; color: var(--ink); }
.state h2 { color: var(--ink); font-size: 21px; }
.state p { max-width: 340px; }
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--nav) + var(--bottom) + 16px); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 4px; background: #18181c; font-size: 13px; animation: fade .2s ease both;
  max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
.install { padding: 16px; border-radius: 6px; display: grid; gap: 8px; }
.install h3 { font-size: 16.5px; }
.install p { font-size: 13px; color: var(--muted); }
.steps { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(237, 237, 239, .25); color: var(--accent); }
.steps svg { width: 17px; height: 17px; color: var(--accent); vertical-align: -3px; }
.dsite { display: none; }

/* ================================================================
   Desktop: its own header, wide hero, larger rails and grids.
   ================================================================ */
.siderail { display: none; }
.card .cmeta .rt { display: none; }
.card .cmeta .yg { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) {
  :root { --gutter: max(48px, calc((100vw - 1440px) / 2)); --rail: 176px; }
  /* the television's side rail takes the start edge; the pages and the bar move over */
  html.tv { --railw: 72px; --rail: 150px; }
  html.tv .view, html.tv .sitefoot { margin-inline-start: var(--railw); }
  html.tv .deskbar { inset-inline-start: var(--railw); }
  html.tv .siderail {
    display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-start: 0;
    width: var(--railw); padding: 12px 6px 14px; overflow: hidden; box-sizing: border-box;
    background: rgba(5, 5, 8, .96); border-inline-end: 1px solid rgba(255, 255, 255, .1);
  }
  .siderail .rlogo { display: flex; align-items: center; justify-content: center; height: 44px; margin-bottom: 6px; }
  .siderail .rlogo img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
  .siderail .rlogo span { display: none; }
  .siderail .ritem {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 50px; padding: 0 2px; border-radius: 6px; flex: none;
    color: var(--muted); font-weight: 600; font-size: 10px; line-height: 1.1; white-space: nowrap; text-align: center;
  }
  .siderail .ritem svg { width: 20px; height: 20px; flex: none; }
  .siderail .ritem span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .siderail .ritem[aria-current="page"] { color: #fff; background: rgba(237, 237, 239, .22); }
  .siderail .ritem[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--accent); }
  .siderail .ritem[aria-current="page"] svg { color: var(--accent); }
  .siderail .rgrow { flex: 1; }
  .siderail .me .avatar { width: 24px; height: 24px; font-size: 11px; flex: none; }
  html.tv.remote .siderail .ritem:focus { box-shadow: none; background: rgba(237, 237, 239, .4); color: #fff; }
  html.tv .deskbar .ptitle { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* rails: larger posters, the name, a rating chip, the year and kinds,
     and a thin violet scrollbar under the row */
  html.tv .card b { font-size: 15.5px; font-weight: 700; margin-top: 10px; }
  html.tv .card .cmeta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; }
  html.tv .card .cmeta .rt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; background: var(--primary-strong); color: #111114; font-weight: 700; font-size: 12px; flex: none; }
  html.tv .card .cmeta .rt svg { width: 11px; height: 11px; color: #fff; fill: #fff; }
  html.tv .card .cmeta .yg { flex: 1; min-width: 0; }
  html.tv .card .poster .rate { display: none; }
  html.tv .deskbar .ptitle { margin-inline-end: auto; }
  html.tv .deskbar { gap: 16px; }
  html.tv .shead h2 { font-size: 17px; }
  html.tv .shead h2::before { height: 17px; width: 3px; }
  html.tv .shead { padding: 8px var(--gutter); }
  html.tv .shead a { font-size: 12px; height: 30px; }
  html.tv .section { padding-top: 10px; }
  html.tv .card b { font-size: 12.5px; margin-top: 7px; }
  html.tv .card .cmeta { font-size: 11px; margin-top: 4px; gap: 6px; }
  html.tv .card .cmeta .rt { padding: 1px 5px; font-size: 10.5px; }
  html.tv .card .cmeta .rt svg { width: 9px; height: 9px; }
  html.tv .rail { gap: 12px; padding: 6px 12px 14px; }
  html.tv .top10 { gap: 14px; }
  html.tv .top10 .num { font-size: 104px; }
  html.tv .top10 .poster { width: 140px; }
  html.tv .wide { grid-auto-columns: 340px; }
  html.tv .wcard { height: 132px; }
  html.tv .wcard .poster { width: 88px; }
  html.tv .wcard b { font-size: 14.5px; }
  html.tv .wcard p { font-size: 11.5px; -webkit-line-clamp: 2; }
  html.tv .deskbar { height: 60px; padding-top: 0; }
  html.tv .deskbar .ic { width: 36px; height: 36px; }
  html.tv .deskbar .me .avatar { width: 34px; height: 34px; font-size: 14px; }
  html.tv .deskbar .me .signin { height: 36px; font-size: 12.5px; }
  html.tv .deskbar .ptitle { font-size: 18px; }
  html.tv .page.home { padding-top: 26px; }
  html.tv .genres-home .cat { height: 72px; font-size: 15px; }
  html.tv .card .cmeta .rt { background: var(--primary-strong); }
  /* the television's home starts under its bar now that the banner is gone */
  html.tv .page.home { padding-top: 26px; }
  html.tv .page.home > .section:first-child { padding-top: 0; }
  body { font-size: 14px; }
  .aurora i:nth-child(1) { width: 70vw; height: 70vw; left: -15vw; top: -30vw; }
  .aurora i:nth-child(2) { width: 50vw; height: 50vw; right: -10vw; }
  .aurora i:nth-child(3) { width: 80vw; height: 80vw; left: 10vw; bottom: -50vw; }
  .aurora i:nth-child(4) { width: 40vw; height: 40vw; left: -10vw; }
  .view { padding-bottom: 0; }
  .tabs, .back, .homebar, .inbar { display: none !important; }

  .deskbar {
    height: 72px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px;
    transition: background .35s ease, box-shadow .35s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, 0));
    border: 0;
  }
  .deskbar.solid {
    background: rgba(4, 4, 6, .72); box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  }
  .deskbar .logo { display: flex; align-items: center; }
  .deskbar .logo img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 6px 18px rgba(237, 237, 239, .35); }
  .deskbar nav { display: flex; gap: 4px; }
  .deskbar nav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s ease; }
  .deskbar nav a::after {
    content: ""; position: absolute; bottom: 2px; left: 50%; width: 22px; height: 3px; border-radius: 2px; margin-left: -11px;
    background: linear-gradient(90deg, var(--accent), var(--primary-strong)); opacity: 0; transform: translateY(4px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
  }
  .deskbar nav a:hover { color: var(--ink); }
  .deskbar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .deskbar nav a[aria-current="page"]::after { opacity: 1; transform: none; }
  .deskbar form {
    margin-inline-start: auto; display: flex; align-items: center; gap: 8px; height: 42px; width: 280px; padding: 0 14px; border-radius: 6px;
    background: rgba(255, 255, 255, .07); transition: width .3s cubic-bezier(.22, 1, .36, 1), background .2s ease, box-shadow .2s ease;
  }
  .deskbar form:focus-within { width: 360px; background: rgba(255, 255, 255, .11); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }
  .deskbar form svg { width: 18px; height: 18px; color: var(--muted); }
  .deskbar form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 14px var(--body); }
  .deskbar .ic { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; transition: background .2s ease; }
  .deskbar .ic:hover, .deskbar .dl:hover { background: rgba(255, 255, 255, .08); }
  .deskbar .ic svg { width: 19px; height: 19px; }
  .deskbar .dl { height: 42px; padding: 0 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; transition: background .2s ease; }
  .deskbar .dl svg { width: 18px; height: 18px; color: var(--accent); }
  .deskbar .me .avatar { width: 40px; height: 40px; font-size: 17px; border: 0; box-shadow: 0 0 0 2px rgba(5, 5, 6, .9), 0 0 0 3.5px rgba(255, 255, 255, .7); }
  .deskbar .me .signin { height: 42px; padding: 0 16px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 13.5px; }
  .deskbar .me .signin svg { width: 18px; height: 18px; }
  .deskbar a:hover .avatar { box-shadow: 0 0 0 2px rgba(5, 5, 6, .9), 0 0 0 4px var(--accent); }

  .heading { padding: 104px var(--gutter) 18px; }
  body.hasback .heading { padding-inline-start: var(--gutter); }
  .heading h1 { font-size: 40px; }
  .shead { padding: 14px var(--gutter); }
  .shead h2 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
  .shead h2::before { content: ""; width: 4px; height: 24px; border-radius: 2px; background: linear-gradient(var(--accent), var(--primary-strong)); }
  .section { padding-top: 22px; }
  .rail { gap: 16px; margin: 0 var(--gutter); padding: 8px 0 14px; scroll-padding-inline: 0; }
  .rail, .parts, .strip, .estrip { cursor: grab; }
  .saga, .hero-card { cursor: grab; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 30px 18px; }
  .card .poster { transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease; }
  .card:hover .poster { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .55); }
  .card b { font-size: 14.5px; }
  .card .hov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .96), rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .08)); opacity: 0; transition: opacity .25s ease; }
  .card:hover .hov { opacity: 1; }
  .card .hov .pl { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; background: linear-gradient(#ededef, #414145); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 10px 26px rgba(237, 237, 239, .45); }
  .card .hov .pl svg { width: 20px; height: 20px; margin-left: 3px; }
  .card .hov b { margin: 0; font-size: 14px; color: #fff; }
  .card .hov small { margin: 0; color: #ffffff; }
  .card .heart { opacity: 0; transition: opacity .2s ease; z-index: 1; }
  .card:hover .heart, .card .heart.on { opacity: 1; }
  .card:hover .rate { opacity: 0; }
  .top10 { gap: 22px; }
  .top10 .num {
    font-size: 170px; -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
    background: linear-gradient(to bottom, rgba(237, 237, 239, .35), rgba(237, 237, 239, 0) 75%); -webkit-background-clip: text; background-clip: text;
    text-shadow: 0 10px 40px rgba(237, 237, 239, .25);
  }
  .top10 a:hover .poster { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .55); }
  .top10 .poster { transition: transform .3s ease, box-shadow .3s ease; }
  .wide { grid-auto-columns: 440px; }
  .wcard { height: 170px; border-radius: 6px; transition: border-color .2s ease, transform .3s ease; }
  .wcard:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-4px); }
  .wcard .poster { width: 114px; }
  .wcard div.t { padding: 16px 18px; gap: 8px; }
  .wcard b { font-size: 18px; }
  .wcard p { font-size: 13px; -webkit-line-clamp: 3; }

  /* hero banner */
  .hero { height: min(92vh, 900px); min-height: 640px; overflow: hidden; }
  .hero-card { position: absolute; top: 0; right: 0; bottom: 0; left: 0; aspect-ratio: auto; margin: 0; border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .hero-card > .layers > img { filter: blur(44px) saturate(1.6) brightness(.72); transform: scale(1.25); }
  .hero-card::after { background: linear-gradient(to left, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .62) 36%, rgba(0, 0, 0, .12) 72%), linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 16%, transparent 62%, var(--bg-deep)); }
  .hero-body { top: 0; right: 0; bottom: 0; left: 0; padding: 0; display: block; }
  .hero-body .info { position: absolute; z-index: 2; inset-inline-start: var(--gutter); bottom: 168px; width: min(640px, 46vw); }
  .hero-body h1 { font-size: clamp(40px, 4.4vw, 68px); line-height: 1.08; margin-top: 16px !important; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
  .hero-body .alt { display: block; color: var(--accent); font-size: 16px; margin-top: 8px; font-weight: 500; letter-spacing: .3px; }
  .hero-body p { font-size: 16.5px; line-height: 1.8; margin-top: 18px; -webkit-line-clamp: 3; color: #ffffff; }
  .hero-body .acts { margin-top: 30px; gap: 12px; }
  .hero-body .acts .liquid { height: 58px; padding: 0 38px; font-size: 16.5px; }
  .hero-body .acts .more { display: inline-flex; }
  .hero-body .acts .sq { width: 58px; height: 58px; }
  .hero-body .acts .btn { height: 58px; padding: 0 28px; font-size: 15.5px; }
  .hero-body .sharp, .saga-body .sharp, .dblock .sharp {
    display: block; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; height: 100%; width: auto; aspect-ratio: 2 / 3;
    border-radius: 0; box-shadow: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, .55) 28%, #000 58%), linear-gradient(to top, transparent 0%, #000 32%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, .55) 28%, #000 58%), linear-gradient(to top, transparent 0%, #000 32%);
    mask-composite: intersect;
  }
  .hero-body .sharp img, .saga-body .sharp img, .dblock .sharp img { width: 100%; height: 100%; object-fit: cover; }
  .hero .strip { position: absolute; z-index: 3; bottom: 44px; inset-inline-start: var(--gutter); padding: 4px; gap: 12px; max-width: 46vw; }
  .hero .strip button { width: 62px; height: 92px; border-radius: 6px; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s ease, outline-color .3s ease; }
  .hero .strip button[aria-current="true"] { opacity: 1; outline-color: var(--accent); }
  .hero-body .facts, .saga-body .facts, .dblock .facts { gap: 0; row-gap: 6px; }
  .hero-body .fact, .saga-body .fact, .dblock .fact {
    background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: 15px; font-weight: 500; color: #ffffff;
  }
  .hero-body .fact svg, .saga-body .fact svg, .dblock .fact svg { width: 15px; height: 15px; color: var(--accent); }
  .hero-body .fact + .fact::before, .saga-body .fact + .fact::before, .dblock .fact + .fact::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin: 0 12px;
  }

  /* saga banner */
  .saga { aspect-ratio: auto; height: 600px; margin: 0; width: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .saga > .layers > img { filter: blur(44px) saturate(1.5) brightness(.62); transform: scale(1.3); }
  .saga > .layers { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .saga::after { background: linear-gradient(to left, transparent, rgba(0, 0, 0, .85) 9%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .08) 74%); }
  .saga-body { top: 0; right: 0; bottom: 0; left: 0; padding: 0; display: block; }
  .saga-body > div.slide { position: absolute; z-index: 2; inset-inline-start: 56px; top: 0; bottom: 0; width: min(640px, 52%); display: flex; flex-direction: column; justify-content: center; }
  .saga-body h3 { font-size: clamp(30px, 3vw, 44px); margin-top: 12px; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
  .saga-body .story { font-size: 15px; line-height: 1.75; margin-top: 14px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; color: #ffffff; }
  .saga-body .facts { margin-top: 14px; }
  .saga-label { font-size: 15px; }
  .parts { height: 132px; gap: 12px; margin-top: 28px; }
  .parts a { transition: transform .25s ease, border-color .25s ease; }
  .parts a:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .7); }
  .parts i { width: 24px; height: 24px; font-size: 12px; }
  .dashes { bottom: 22px; }

  /* details */
  .dtop { height: min(88vh, 860px); min-height: 620px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent); mask-image: linear-gradient(to bottom, #000 76%, transparent); }
  .dtop .poster-big { position: absolute; top: 0; right: 0; bottom: 0; left: 0; aspect-ratio: auto; }
  .dtop .poster-big img { filter: blur(44px) brightness(.62) saturate(1.5); transform: scale(1.25); }
  .dtop .poster-big::after { background: linear-gradient(to left, rgba(0, 0, 0, .94), rgba(0, 0, 0, .6) 38%, rgba(0, 0, 0, .12) 72%), linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 16%, transparent 60%, var(--bg-deep)); }
  .dblock { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; padding: 0; display: block; }
  .dblock > div:first-child { position: absolute; z-index: 2; inset-inline-start: var(--gutter); bottom: 70px; width: min(660px, 48vw); }
  .dblock h1 { font-size: clamp(38px, 4vw, 62px); line-height: 1.1; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
  .dblock .alt { color: var(--accent); font-size: 16px; margin-top: 8px; }
  .dblock .acts { max-width: 560px; margin-top: 26px; }
  .dblock .story { margin-top: 18px; color: #ffffff; font-size: 16px; line-height: 1.8; }
  .dbody { padding-top: 10px; }
  .dbody > .dstory { display: none; }
  .estrip { flex-wrap: wrap; overflow: visible; gap: 14px; }
  .ecard { width: 150px; }
  .ecard .sqimg { width: 150px; height: 150px; }

  /* player: theater */
  .watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 96px var(--gutter) 40px; align-items: start; }
  .watch .stage { border-radius: 8px; padding-top: 0; }
  .stage.tall .box, .stage.tall .pmsg { min-height: 420px; }
  .watch .stage.full { border-radius: 0; }
  .watch .side { display: grid; gap: 12px; max-height: calc(100vh - 120px); overflow-y: auto; position: sticky; top: 96px; scrollbar-width: thin; }
  .watch .pcard { margin: 0; }
  .watch .elist { padding: 0; }
  .ov .tr { padding-inline-start: 16px; }
  .ov .tr b { font-size: 20px; }
  .searchtop { padding-top: 100px; max-width: 820px; }
  .gbtn { width: 38px; height: 38px; }
  .ov .mid .big { width: 64px; height: 64px; }
  .ov .mid .s { width: 44px; height: 44px; }

  /* account */
  .acct { max-width: none; margin: 0; padding: 104px var(--gutter) 10px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px 32px; align-items: start; }
  .acct .acct-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; }
  .acct-head h1 { font-size: 40px; }
  .acct-head span { color: var(--muted); font-size: 15px; }
  .acct-side { display: grid; gap: 14px; position: sticky; top: 96px; }
  .acct-main { display: grid; gap: 26px; min-width: 0; align-content: start; }
  .acct .prof { padding: 26px 22px; }
  .acct .prof .who { flex-direction: column; text-align: center; gap: 12px; }
  .acct .prof .avatar { width: 104px; height: 104px; font-size: 42px; }
  .acct .prof .who b { font-size: 24px; }
  .acct .prof .gpill { margin-top: 10px; }
  .acct .prof .btn.dsite { display: inline-flex; }
  .acct .stats { gap: 16px; }
  .acct .stat { grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; justify-items: start; text-align: start; padding: 20px; border-radius: 8px; align-items: center; }
  .acct .stat i { grid-row: 1 / 3; width: 52px; height: 52px; }
  .acct .stat i svg { width: 22px; height: 22px; }
  .acct .stat b { font-size: 30px; }
  .acct .stat span { font-size: 13.5px; }
  .acct .recentbox, .acct .favbox { margin: 0; }
  .acct .recentbox .shead, .acct .favbox .shead { padding: 0 0 12px; }
  .acct .recentbox .rail { margin: 0; --rail: 150px; }
  .acct .favbox .grid { padding: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .acct .sub-title { margin: 0; font-size: 22px; }
  .acct .tiles { grid-template-columns: repeat(3, 1fr); }
  .acct .tile { padding: 16px; border-radius: 8px; transition: border-color .2s ease, transform .25s ease; }
  .acct .tile:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-3px); }
  .acct .nrow { padding: 8px 10px; border-radius: 6px; }
  .acct .nrow:hover { border-color: rgba(255, 255, 255, .4); }
  .acct .nrow i { width: 36px; height: 36px; }
  .acct .nrow b { font-size: 14.5px; }
  .acct .foot { justify-content: flex-start; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .sheet { bottom: auto; top: 50%; transform: translateY(-50%); animation: fade .2s ease both; }
  .toast { bottom: 32px; }
  .state { padding-top: 160px; }
  .seg { max-width: 520px; }
  .pagewrap { padding-top: 96px; }
  .dsite { display: block; }
  .sitefoot { position: relative; margin-top: 90px; padding: 56px var(--gutter) 36px; color: var(--muted); font-size: 14px; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .75) 40%); }
  .sitefoot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
  .sitefoot .fgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
  .sitefoot .fbrand { display: grid; gap: 16px; justify-items: start; max-width: 380px; }
  .sitefoot .fbrand p { line-height: 1.8; }
  .sitefoot .logo img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 8px 22px rgba(237, 237, 239, .35); }
  .sitefoot .fcol { display: grid; gap: 12px; align-content: start; }
  .sitefoot .fcol b { color: var(--ink); font-family: var(--head); font-size: 16px; margin-bottom: 4px; }
  .sitefoot .fcol a { width: fit-content; transition: color .2s ease; }
  .sitefoot .fcol a:hover { color: var(--ink); }
  .sitefoot .fbase { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 22px; font-size: 13px; color: var(--faint); }
}

/* pieces that only the desktop layout shows */
.sharp, .hero-body .acts .more { display: none; }
@media (min-width: 1024px) { .hero-body .acts .more { display: inline-flex; } }

/* ================================================================
   Motion, as the Android app: press 0.965 (chips 0.94, tabs 0.96),
   reveal 560 ms with a 22 px rise, push 400 ms with a 28 px rise while
   the covered page dims, a 560 ms fade with the poster flying to the
   title page, 260 ms between tabs, the heart ring, the button shine.
   ================================================================ */
.rv { opacity: 0; transform: translateY(22px); }
.rv.rv-s { transform: translateY(8px); }
.rv.in {
  opacity: 1; transform: none;
  transition: opacity .56s cubic-bezier(.25, 1, .5, 1) var(--d, 0ms), transform .56s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}
.rv.rv-s.in { transition-duration: .32s; }

.press, .btn, .liquid, .sq, .gbtn, .tile, .nrow, .ntile, .cat, .bell, .stat, .ecard, .erow, .chip, .wcard {
  transition: transform .14s cubic-bezier(.33, 1, .68, 1), opacity .25s ease, border-color .2s ease, background .26s ease;
}
.press:active, .btn:active, .liquid:active, .sq:active, .gbtn:active, .tile:active, .nrow:active, .ntile:active,
.cat:active, .bell:active, .stat:active, .ecard:active, .erow:active, .wcard:active,
.rv.in.press:active, .rv.in.tile:active, .rv.in.stat:active, .rv.in.wcard:active, .rv.in.ecard:active { transform: scale(.965); }
.chip:active, .seg button:active { transform: scale(.94); }
.tabs a:active { transform: scale(.96); }

.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }

.pop { animation: ring .6s ease-out; }
.pop svg { animation: beat .6s cubic-bezier(.33, 1, .68, 1); }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255, 61, 113, .55); } to { box-shadow: 0 0 0 14px rgba(255, 61, 113, 0); } }
@keyframes beat { 30% { transform: scale(1.3); } }

.homebar.intro nav a, .homebar.intro .bell, .homebar.intro .me { animation: drop .5s cubic-bezier(.22, 1, .36, 1) both; }
.homebar.intro nav a:nth-child(2) { animation-delay: .06s; }
.homebar.intro nav a:nth-child(3) { animation-delay: .12s; }
.homebar.intro .me { animation-delay: .18s; }
.homebar.intro .bell { animation-delay: .22s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* The page area moves; the bars and the aurora behind stay put. */
#view { view-transition-name: page; }
#bar { view-transition-name: bar; }
#tabs { view-transition-name: tabs; }
@keyframes vt-push { from { opacity: 0; transform: translateY(28px); } 72% { opacity: 1; } }
@keyframes vt-dim { 25% { opacity: 1; } to { opacity: 0; filter: brightness(.42); } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-down { to { opacity: 0; transform: translateY(28px); } }
html[data-vt="push"]::view-transition-old(page) { animation: vt-dim .28s ease both; }
html[data-vt="push"]::view-transition-new(page) { animation: vt-push .4s cubic-bezier(.22, 1, .36, 1) both; }
html[data-vt="detail"]::view-transition-old(page) { animation: vt-out .42s ease both; }
html[data-vt="detail"]::view-transition-new(page) { animation: vt-in .56s ease both; }
html[data-vt="tab"]::view-transition-old(page) { animation: vt-out .2s ease both; }
html[data-vt="tab"]::view-transition-new(page) { animation: vt-in .26s ease both; }
html[data-vt="back"]::view-transition-old(page) { animation: vt-down .28s ease both; }
html[data-vt="back"]::view-transition-new(page) { animation: vt-in .3s ease both; }
::view-transition-group(page) { animation-duration: .4s; }
::view-transition-group(poster) { animation-duration: .56s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(poster), ::view-transition-new(poster) { height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---- the bell and the inbox */
.bell { position: relative; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.bell svg { width: 24px; height: 24px; }
.bell.dot::after {
  content: ""; position: absolute; top: 18%; inset-inline-end: 20%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 1.5px rgba(5, 5, 6, .6);
}
.notes { padding: calc(var(--top) + 10px) 16px 30px; }
.nhead { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline-start: 0; margin-bottom: 4px; }
.nhead h1 { flex: 1; font-size: 18px; }
.nhead .gbtn { width: 36px; height: 36px; }
.nday { padding: 14px 4px 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.nlist { display: grid; gap: 10px; }
.nlist .nday { padding-bottom: 0; }
.nwrap { position: relative; border-radius: 3px; background: rgba(255, 61, 113, .18); }
.nwrap .bin { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; }
.nwrap .bin svg { width: 18px; height: 18px; }
.nwrap .bin.s { inset-inline-start: 18px; }
.nwrap .bin.e { inset-inline-end: 18px; }
.ntile { position: relative; display: flex; gap: 14px; padding: 14px; border-radius: 3px; touch-action: pan-y; background-color: var(--bg); }
.ntile.glass { background: linear-gradient(var(--glass), var(--glass)), var(--bg); }
.ntile.unread { background: linear-gradient(rgba(237, 237, 239, .12), rgba(237, 237, 239, .12)), linear-gradient(var(--glass-strong), var(--glass-strong)), var(--bg); }
.ntile .nart { width: 60px; height: 88px; flex: none; border-radius: 3px; aspect-ratio: auto; }
.nicon { width: 60px; height: 60px; border-radius: 3px; display: grid; place-items: center; flex: none; }
.nicon svg { width: 26px; height: 26px; }
.nbody { flex: 1; min-width: 0; }
.ntop { display: flex; gap: 8px; align-items: flex-start; }
.ntop b { flex: 1; font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 1.3; }
.ndot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex: none; }
.nbody p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.nmeta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.nlabel { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; color: var(--ink); font-weight: 500; }
.nlabel svg { width: 12px; height: 12px; }
.sheet.confirm h2 { font-size: 18px; }

/* ---- watch parties: the room beside (desktop) or under (phone, TV) the
   picture: who is in, the chat, a line to write on */
.party { border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 12px var(--gutter) 0; }
.wdesk .side .party { margin: 0 0 14px; }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--glass-stroke); }
.pfold { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.pfold svg { width: 18px; height: 18px; color: var(--accent); }
.pfold b { font-weight: 700; font-size: 14px; }
.psync { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.psync.on { background: rgba(74, 222, 128, .16); color: #7ee3a0; }
.psync.off { background: rgba(255, 90, 120, .16); color: #ff9fb6; }
.pacts { display: flex; gap: 6px; }
.pacts .gbtn { width: 34px; height: 34px; border-radius: 8px; }
.pacts .gbtn svg { width: 16px; height: 16px; }
.party.closed .pbody { display: none; }
.pbody { display: flex; flex-direction: column; min-height: 0; }
.pmembers { display: flex; align-items: center; gap: 4px; padding: 8px 12px 0; }
.pmembers .avatar { width: 26px; height: 26px; font-size: 12px; margin-inline-end: -6px; border: 2px solid var(--bg-deep, #050506); }
.pmembers small { color: var(--muted); font-size: 12px; margin-inline-start: 12px; }
.pmore { font-size: 11px; color: var(--muted); margin-inline-start: 10px; }
.pcode { display: flex; align-items: center; gap: 8px; padding: 6px 12px 0; font-size: 12px; color: var(--muted); }
.pcode b { letter-spacing: 2px; color: var(--ink); font-family: ui-monospace, monospace; }
.pcode .link { font-size: 12px; }
.pchat { height: 260px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.wdesk .side .pchat { height: min(46vh, 420px); }
.pm { display: flex; align-items: flex-start; gap: 8px; }
.pm .avatar { width: 30px; height: 30px; font-size: 13px; flex: none; }
.pb { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 7px 11px; font-size: 14px; line-height: 1.45; max-width: 82%; }
.pb b { color: var(--accent); margin-inline-end: 6px; font-weight: 700; }
.pm.mine .pb { background: rgba(237, 237, 239, .2); }
.psys { text-align: center; font-size: 12px; color: var(--muted); }
.psys span { background: rgba(255, 255, 255, .06); padding: 3px 10px; border-radius: 999px; }
.pemoji { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 6px; }
.pemoji button { font-size: 20px; background: rgba(255, 255, 255, .06); border: 0; border-radius: 8px; width: 36px; height: 34px; cursor: pointer; }
.pinput { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px; border-top: 1px solid var(--glass-stroke); }
/* 16 px: a smaller field makes the iPhone zoom the page on focus. */
.pinput input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); padding: 0 14px; font: 400 16px var(--body); outline: 0; }
.pinput, .pinput button, .pemoji button { touch-action: manipulation; }
.pinput input:focus { border-color: rgba(255, 255, 255, .6); }
.pem { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); font-size: 20px; cursor: pointer; }
.psend { height: 40px; padding: 0 18px; border-radius: 999px; margin: 0; }
.pname, .pshare { display: grid; gap: 12px; padding: 4px 0 12px; }
.pname input { height: 46px; border-radius: 8px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); padding: 0 12px; font: 400 15px var(--body); }
.pshare p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.plink { display: flex; align-items: center; gap: 8px; }
.plink code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255, 255, 255, .06); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
html.remote .pb, html.remote .psys span { transition: none; }
/* the admin's relays page */
.dash-ta { width: 100%; min-height: 110px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--ink); font: 14px/1.6 ui-monospace, monospace; border: 1px solid var(--glass-stroke); resize: vertical; }
.dcard.mine { box-shadow: 0 0 0 2px var(--primary) inset; }
.sheet.sportsword .pperks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sheet.sportsword .pperks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.sheet.sportsword .pperks li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.rq-note.sportsword { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin: 12px 0 4px; line-height: 1.6; }
.rq-note.sportsword svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.rq-note.sportsword b { color: var(--ink, inherit); }
.sheet .acts2 { display: flex; gap: 10px; margin-top: 18px; }
.sheet .acts2 .btn { flex: 1; margin: 0; height: 46px; }
.btn.danger { background: var(--live); color: #fff; }
.homebar .me .signin { padding: 0 8px; }

@media (min-width: 1024px) {
  .notes { max-width: 820px; margin: 0 auto; padding: 100px 0 40px; }
  .nhead { padding-inline-start: 0; }
  .nhead h1 { font-size: 32px; }
  .ntile:hover { border-color: rgba(255, 255, 255, .45); }
  .deskbar .bell { width: 42px; height: 42px; border-radius: 6px; }
  .deskbar .bell svg { width: 19px; height: 19px; }
  .deskbar .bell.dot::after { top: 9px; inset-inline-end: 9px; }
}

/* ---- desktop polish: the hero tag and thumbnail clock, section links,
   the genre tiles on home */
.eyebrow { display: none; }
@media (min-width: 1024px) {
  .eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 6px 12px; border-radius: 6px;
    background: rgba(255, 255, 255, .14); color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .2px;
  }
  .eyebrow svg { width: 15px; height: 15px; }
  .hero .strip button { position: relative; overflow: hidden; }
  .hero .strip button[aria-current="true"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent);
    transform-origin: right; animation: clock 6s linear both;
  }
  @keyframes clock { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .shead a { padding: 6px 12px; border-radius: 6px; background: rgba(237, 237, 239, .12); transition: background .2s ease; }
  .shead a svg { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
  .shead a:hover { background: rgba(237, 237, 239, .24); }
  .shead a:hover svg { transform: translateX(-3px); }
  .section { padding-top: 30px; }
  .card .poster, .top10 .poster { border-radius: 8px; }
  .genres-home .cats { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .genres-home .cat { height: 92px; border-radius: 8px; font-size: 19px; transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .2s ease; }
  .genres-home .cat:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .5); }
}

/* ---- desktop watch page: a theatre player with one control bar, the
   title under it, and the episodes or similar titles beside it */
@media (min-width: 1024px) {
  .wdesk { grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 420px); gap: 28px; padding: 92px max(32px, calc((100vw - 1760px) / 2)) 64px; }
  .wdesk .pbg img { filter: blur(60px) saturate(1.4); opacity: .6; }
  .wdesk .pbg::after { background: radial-gradient(ellipse at 40% 30%, rgba(0, 0, 0, .5), rgba(0, 0, 0, .9) 62%), linear-gradient(to bottom, transparent 40%, var(--bg-deep)); }
  .wmain { min-width: 0; }
  .pwrap { position: relative; isolation: isolate; }
  .amb { position: absolute; top: 4%; right: 3%; bottom: -6%; left: 3%; z-index: -1; pointer-events: none; opacity: .6; filter: blur(80px) saturate(1.7); }
  .amb img { width: 100%; height: 100%; object-fit: cover; }

  /* the player */
  .wdesk .stage { border-radius: 12px; padding-top: 0; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
  .wdesk .stage .box { max-height: calc(100vh - 136px); min-height: 360px; }
  .wdesk .stage.tall .box { aspect-ratio: 16 / 9; }
  .wdesk .stage.tall .pmsg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; min-height: 0; }
  .wdesk .stage.full { border-radius: 0; box-shadow: none; }
  .wdesk .stage.full .box { max-height: none; min-height: 0; }
  .wdesk .box:has(.ov.hide) { cursor: none; }
  .wdesk .ov { background: none; }
  .wdesk .ov .tr { padding: 24px 28px 70px; background: linear-gradient(to bottom, rgba(0, 0, 0, .72), rgba(0, 0, 0, .3) 55%, transparent); }
  .wdesk .ov .tr b { font-size: 22px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
  .wdesk .ov .tr span { font-size: 13.5px; }
  .wdesk .ov .mid { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .wdesk .stage.paused .ov .mid { opacity: 1; pointer-events: auto; }
  .wdesk .ov .mid .big {
    width: 84px; height: 84px; border-radius: 50%; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(237, 237, 239, .88); box-shadow: 0 16px 44px rgba(237, 237, 239, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: background .2s ease, box-shadow .2s ease;
  }
  .wdesk .ov .mid .big:hover { background: var(--primary); box-shadow: 0 18px 50px rgba(237, 237, 239, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
  .wdesk .ov .mid .big svg { width: 32px; height: 32px; }
  .wdesk .ov .bt { display: block; padding: 80px 20px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .5) 50%, transparent); }
  .seekrow { position: relative; display: flex; align-items: center; height: 20px; }
  .wdesk .seek { height: 20px; }
  .wdesk .seek::-webkit-slider-runnable-track { height: 4px; transition: height .15s ease; }
  .wdesk .seek::-moz-range-track { height: 4px; }
  .wdesk .seekrow:hover .seek::-webkit-slider-runnable-track { height: 6px; }
  .wdesk .seek::-webkit-slider-thumb { width: 15px; height: 15px; margin-top: -5.5px; background: #fff; box-shadow: 0 0 0 4px rgba(237, 237, 239, .45); opacity: 0; transition: opacity .15s ease; }
  .wdesk .seekrow:hover .seek::-webkit-slider-thumb { opacity: 1; margin-top: -4.5px; }
  .wdesk .seek::-moz-range-thumb { width: 15px; height: 15px; background: #fff; }
  .seekrow .tip {
    position: absolute; bottom: 26px; left: 0; transform: translateX(-50%); padding: 5px 9px; border-radius: 5px;
    background: rgba(5, 5, 6, .92); border: 1px solid var(--glass-stroke); font-size: 12.5px; font-weight: 600;
    font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease;
  }
  .seekrow:hover .tip:not(:empty) { opacity: 1; }
  .wdesk .ov .bt .row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
  .wdesk .ov .bt .gbtn {
    position: relative; width: 44px; height: 44px; border-radius: 8px; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .2s ease, color .2s ease;
  }
  .wdesk .ov .bt .gbtn:hover { background: rgba(255, 255, 255, .12); }
  .wdesk .ov .bt .gbtn svg { width: 23px; height: 23px; }
  .wdesk .ov .bt .gbtn[aria-pressed="true"] { background: none; color: var(--accent); }
  .wdesk .ov .bt .gbtn[aria-pressed="true"]::before { content: ""; position: absolute; bottom: 6px; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 1px; background: var(--accent); }
  .wdesk .ov .bt .gbtn::after {
    content: attr(aria-label); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    padding: 5px 10px; border-radius: 5px; background: rgba(5, 5, 6, .94); border: 1px solid var(--glass-stroke);
    font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease;
  }
  .wdesk .ov .bt .gbtn:hover::after { opacity: 1; }
  .wdesk .ov .bt .gbtn[aria-expanded="true"]::after { opacity: 0; }
  .volume { display: flex; align-items: center; }
  .vol {
    width: 0; height: 20px; margin: 0; opacity: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
    transition: width .25s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, margin .25s ease;
  }
  .volume:hover .vol, .vol:focus-visible { width: 96px; opacity: 1; margin-inline: 2px 12px; }
  .vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to left, #fff var(--v, 100%), rgba(255, 255, 255, .28) var(--v, 100%)); }
  .vol::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to left, #fff var(--v, 100%), rgba(255, 255, 255, .28) var(--v, 100%)); }
  .vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; }
  .vol::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
  .wdesk .ov .bt .clock { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; direction: ltr; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .wdesk .ov .bt .clock time { min-width: 0; font-size: inherit; }
  .wdesk .ov .bt .clock i { font-style: normal; color: rgba(255, 255, 255, .5); }
  .wdesk .ov .bt .gap { flex: 1; }

  /* the next episode near the end, and the settings menu */
  .upnext {
    position: absolute; z-index: 4; inset-inline-end: 24px; bottom: 104px; display: flex; align-items: center; gap: 14px;
    padding: 8px; padding-inline-end: 18px; border-radius: 10px; text-align: start;
    background: rgba(12, 6, 26, .86); border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    animation: rise .35s cubic-bezier(.22, 1, .36, 1) both; transition: border-color .2s ease;
  }
  .upnext:hover { border-color: var(--accent); }
  .upnext .th { width: 128px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #101012; }
  .upnext .th img { width: 100%; height: 100%; object-fit: cover; }
  .upnext small { display: block; color: var(--accent); font-size: 12px; font-weight: 600; }
  .upnext b { display: block; font-family: var(--head); font-size: 17px; margin-top: 2px; }
  .upnext > svg { width: 20px; height: 20px; margin-inline-start: 6px; }
  .pmenu {
    position: absolute; z-index: 5; inset-inline-end: 16px; bottom: 82px; display: flex; gap: 4px; padding: 10px;
    border-radius: 12px; background: rgba(14, 8, 28, .92); border: 1px solid var(--glass-stroke);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    animation: rise .25s cubic-bezier(.22, 1, .36, 1) both;
  }
  .pmenu .grp { width: 150px; }
  .pmenu h4 { margin: 4px 10px 8px; font-size: 12px; font-weight: 600; color: var(--faint); }
  .pmenu .opt {
    width: 100%; height: 36px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between;
    font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background .15s ease, color .15s ease;
  }
  .pmenu .opt:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
  .pmenu .opt svg { width: 16px; height: 16px; color: var(--accent); opacity: 0; }
  .pmenu .opt[aria-pressed="true"] { color: #fff; font-weight: 700; background: rgba(237, 237, 239, .22); }
  .pmenu .opt[aria-pressed="true"] svg { opacity: 1; }

  /* the title under the player */
  .winfo { padding-top: 26px; }
  .crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
  .crumbs a { transition: color .2s ease; }
  .crumbs a:hover { color: var(--ink); }
  .crumbs svg { width: 14px; height: 14px; opacity: .55; }
  .crumbs a:last-child { color: var(--muted); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .whead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-top: 16px; }
  .wtitle { min-width: 0; }
  .wtitle .eyebrow { margin-bottom: 10px; }
  .wtitle h1 { font-size: clamp(28px, 2.3vw, 38px); line-height: 1.15; }
  .wtitle .alt { color: var(--accent); font-size: 15px; margin-top: 6px; font-weight: 500; }
  .wtitle .facts { margin-top: 14px; gap: 0; row-gap: 6px; }
  .wtitle .fact { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 14.5px; font-weight: 500; color: #ffffff; }
  .wtitle .fact svg { width: 15px; height: 15px; color: var(--accent); }
  .wtitle .fact + .fact::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin: 0 12px; }
  .wacts { display: flex; gap: 10px; flex: none; }
  .wacts .sq { width: 48px; height: 48px; }
  .wacts .sq svg { width: 20px; height: 20px; }
  .wacts .btn { height: 48px; padding: 0 22px; }
  .wstory { margin-top: 20px; max-width: 980px; }
  .wstory .story { margin: 0; font-size: 15.5px; line-height: 1.85; color: #ffffff; }
  .wstory .link { margin-top: 6px; }
  .winfo .genres { margin-top: 18px; flex-wrap: wrap; }
  .winfo .genres .chip { height: 34px; padding: 0 14px; font-weight: 500; }
  .wrel { padding-top: 36px; }
  .wrel .shead { padding: 0 0 6px; }
  .wrel .rail { margin: 0; }

  /* beside the player: the next episode, the episodes, similar titles */
  .wdesk .side { position: sticky; top: 92px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; gap: 14px; overflow: visible; }
  .wdesk .side > div { display: contents; }
  .spanel {
    display: flex; flex-direction: column; min-height: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .spanel .phead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 18px 18px 12px; }
  .spanel .phead h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
  .spanel .phead h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--accent), var(--primary-strong)); }
  .spanel .phead span { color: var(--faint); font-size: 13px; font-weight: 600; }
  .spanel .chips { padding: 0 18px 12px; flex-wrap: wrap; }
  .wdesk .elist, .rlist {
    position: relative; flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding: 0 8px 10px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
  }
  .wdesk .erow { gap: 14px; padding: 8px; border-radius: 8px; border: 0; background: none; transition: background .2s ease; }
  .wdesk .erow:hover { background: rgba(255, 255, 255, .06); }
  .wdesk .erow.cur { background: rgba(237, 237, 239, .2); box-shadow: inset 0 0 0 1px rgba(237, 237, 239, .45); }
  .erow .th, .nextcard .th { position: relative; width: 132px; aspect-ratio: 16 / 9; flex: none; border-radius: 6px; overflow: hidden; background: #101012; }
  .erow .th img, .nextcard .th img { width: 100%; height: 100%; object-fit: cover; }
  .erow .th .pl, .nextcard .th .pl {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .4); opacity: 0; transition: opacity .2s ease;
  }
  .erow:hover .th .pl { opacity: 1; }
  .erow .th .pl svg, .nextcard .th .pl svg { width: 13px; height: 13px; }
  .erow .th .pl.done { opacity: 1; top: 6px; right: auto; bottom: auto; left: 6px; margin: 0; width: 22px; height: 22px; background: var(--success); border-color: transparent; color: #04210f; }
  .erow .th .pl.done svg { width: 12px; height: 12px; }
  .erow .th .now { position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 7px; border-radius: 4px; background: var(--primary-strong); font-size: 10.5px; font-weight: 700; }
  .erow .th .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); }
  .erow .th .prog i { display: block; height: 100%; background: var(--accent); }
  .wdesk .erow .t b { font-size: 14.5px; font-weight: 600; }
  .wdesk .erow .t span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
  .wdesk .erow .t span.ok { color: var(--success); }
  .nextcard {
    flex: none; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px;
    background: linear-gradient(to left, rgba(237, 237, 239, .3), rgba(237, 237, 239, .08)); box-shadow: inset 0 0 0 1px rgba(237, 237, 239, .4);
    transition: box-shadow .2s ease;
  }
  .nextcard:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 14px 34px rgba(237, 237, 239, .25); }
  .nextcard .th .pl { opacity: 1; background: var(--primary-strong); border-color: transparent; }
  .nextcard small { display: block; color: var(--accent); font-size: 12px; font-weight: 600; }
  .nextcard b { display: block; font-family: var(--head); font-size: 17px; margin-top: 2px; }
  .nextcard .t > span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
  .rrow { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 8px; transition: background .2s ease; }
  .rrow:hover { background: rgba(255, 255, 255, .06); }
  .rrow .poster { width: 62px; flex: none; border-radius: 6px; }
  .rrow .t { min-width: 0; }
  .rrow b { font-size: 14.5px; font-weight: 600; }
  .rrow small { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--faint); }
  .rrow small .st { display: inline-flex; align-items: center; gap: 4px; color: #f0f0f2; }
  .rrow small svg { width: 12px; height: 12px; fill: currentColor; }
}
/* the subtitles step up while the control bar shows */
@media (min-width: 1024px) {
  .wdesk video::-webkit-media-text-track-container { transition: transform .25s ease; }
  .wdesk .box:has(.ov:not(.hide)) video::-webkit-media-text-track-container { transform: translateY(-72px); }
}

/* a narrower desktop: the header keeps to one line */
@media (min-width: 1024px) {
  .deskbar .dl, .deskbar .me .signin, .deskbar nav a { flex: none; white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1365px) {
  .deskbar { gap: 14px; }
  .deskbar nav a { padding: 10px 9px; font-size: 14px; }
  .deskbar form { width: 210px; }
  .deskbar form:focus-within { width: 270px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .deskbar { padding: 0 24px; }
  .deskbar form { width: 170px; }
  .deskbar .dl { font-size: 0; gap: 0; padding: 0 12px; }
  .deskbar .me .signin { padding: 0 12px; font-size: 13px; }
}

/* ---- slides: the new picture drifts in over the old one from the side the
   viewer moved towards (--dir 1 next, -1 back); the words leave quickly and
   the new ones rise line by line, sharpening as they come */
.layers { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.layers > img, .sharp > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.layers > img.enter { animation: layerIn 1.05s cubic-bezier(.22, 1, .36, 1) both; }
.layers > img.leave, .sharp > img.leave { animation: layerOut .95s cubic-bezier(.4, 0, .2, 1) both; }
.sharp > img.enter { animation: posterIn 1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes layerIn { from { opacity: 0; translate: calc(var(--dir, 1) * -7%) 0; } }
@keyframes layerOut { to { opacity: .35; translate: calc(var(--dir, 1) * 5%) 0; } }
@keyframes posterIn { from { opacity: 0; translate: calc(var(--dir, 1) * -34px) 0; filter: blur(12px); } }
.slide-in > * { animation: wordsIn .85s cubic-bezier(.22, 1, .36, 1) backwards; }
.slide-in > :nth-child(1) { animation-delay: .06s; }
.slide-in > :nth-child(2) { animation-delay: .12s; }
.slide-in > :nth-child(3) { animation-delay: .18s; }
.slide-in > :nth-child(4) { animation-delay: .24s; }
.slide-in > :nth-child(5) { animation-delay: .3s; }
.slide-in > :nth-child(6) { animation-delay: .36s; }
.slide-in > :nth-child(7) { animation-delay: .42s; }
.slide-out { animation: wordsOut .36s cubic-bezier(.4, 0, 1, 1) both; pointer-events: none; }
@keyframes wordsIn { from { opacity: 0; translate: 0 20px; filter: blur(8px); } }
@keyframes wordsOut { to { opacity: 0; translate: 0 -12px; filter: blur(6px); } }

/* desktop: the poster sits inside the page margins as a framed card with a
   soft glow, instead of bleeding off the screen edge */
@media (min-width: 1024px) {
  .hero-body .sharp, .saga-body .sharp, .dblock .sharp {
    bottom: auto; border-radius: 14px; isolation: isolate;
    -webkit-mask-image: none; mask-image: none;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 110px rgba(237, 237, 239, .24);
    transition: translate .5s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
  }
  .hero-body .sharp::after, .saga-body .sharp::after, .dblock .sharp::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at var(--mx, 16%) var(--my, 0%), rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, 0) 52%), linear-gradient(to top, rgba(0, 0, 0, .35), transparent 30%);
  }
  .hero-body .sharp { top: 112px; height: calc(100% - 156px); inset-inline-end: var(--gutter); }
  .dblock .sharp { top: 104px; height: calc(100% - 174px); inset-inline-end: var(--gutter); }
  /* only the backdrop fades into the page; the poster and words stay whole */
  .hero-card, .dtop { -webkit-mask-image: none; mask-image: none; }
  .hero-card > .layers, .hero-card::after, .dtop .poster-big {
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .saga-body .sharp { top: 44px; height: calc(100% - 88px); inset-inline-end: 56px; }
  .hero-body .sharp:hover, .saga-body .sharp:hover {
    translate: 0 -6px;
    box-shadow: 0 44px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .45), 0 0 130px rgba(237, 237, 239, .38);
  }
}

/* ---- magic: the film's colour in the page, light on posters */
@property --amb { syntax: "<color>"; inherits: true; initial-value: rgb(124 77 255); }
.ambient {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 80% -6%, color-mix(in srgb, var(--amb) 30%, transparent), transparent 72%),
    radial-gradient(46% 40% at 6% 104%, color-mix(in srgb, var(--amb) 18%, transparent), transparent 70%);
  transition: --amb 1.8s ease;
}

@media (min-width: 1024px) and (hover: hover) {
  .rail { padding: 22px 0 26px; margin-block: -14px -12px; }
  .card { position: relative; isolation: isolate; }
  .card::before {
    content: ""; position: absolute; z-index: -1; top: 12%; right: -4%; bottom: 4%; left: -4%; border-radius: 14px; pointer-events: none;
    background: var(--art, none) center / cover; filter: blur(34px) saturate(1.9) brightness(1.25);
    opacity: 0; translate: 0 12px; transition: opacity .45s ease, translate .5s cubic-bezier(.22, 1, .36, 1);
  }
  .card:hover::before { opacity: .95; translate: 0 4px; }
  .wcard { position: relative; }
  .poster::after, .wcard::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .24), rgba(255, 255, 255, .05) 30%, transparent 56%);
    opacity: 0; transition: opacity .3s ease;
  }
  .card:hover .poster::after, .top10 a:hover .poster::after, .wcard:hover::after { opacity: 1; }
}

/* the opening, as the Android app's: a leaning wall of posters, light, and
   the wordmark coming from far away; once per visit */
.opening {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; overflow: hidden; cursor: pointer;
  background: linear-gradient(#000000, #050506, #000000);
}
.opening .wallbox { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.opening .wall { flex: none; display: flex; gap: var(--gap); direction: ltr; transform: perspective(1111px) rotateX(-.3rad); }
.opening .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); will-change: transform; }
.opening .wt { position: relative; display: block; flex: none; border-radius: 4px; overflow: hidden; background: #121215; }
.opening .wt img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.opening .wt::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .16)); }
.opening .veil, .opening .vig, .opening .light, .opening .ostage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.opening .veil { background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .24) 40%, rgba(0, 0, 0, .28) 62%, rgba(0, 0, 0, .8)); }
.opening .ostage { display: flex; align-items: center; justify-content: center; }
.opening .mark { display: flex; flex-direction: column; align-items: center; gap: 18px; will-change: transform, opacity; }
.opening .word {
  display: block; font-family: "El Messiri", var(--head); font-weight: 700; line-height: 1; direction: ltr; white-space: nowrap;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
}
.opening .mark p { margin: 0; font-family: var(--body); font-size: 14px; font-weight: 500; line-height: 1; white-space: pre; color: rgba(255, 255, 255, .7); }

/* ---- the player's light: the scene's colours around it, lights off */
.pbg canvas, .amb canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.pbg canvas { filter: blur(40px) saturate(1.4); transform: scale(1.2); }
.pbg.live canvas, .amb.live canvas { opacity: 1; }
@media (min-width: 1024px) {
  .amb { transition: opacity .6s ease; }
  .amb.live { opacity: .8; top: 2%; right: 1%; bottom: -8%; left: 1%; filter: blur(90px) saturate(1.9); }
  .wdesk::before {
    content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; pointer-events: none; background: rgba(2, 1, 8, .92);
    opacity: 0; transition: opacity .7s ease;
  }
  body.lights .wdesk::before { opacity: 1; pointer-events: auto; cursor: pointer; }
  body.lights .pwrap { z-index: 41; }
  body.lights .amb { opacity: 1; }
  .bar { transition: opacity .7s ease; }
  body.lights .bar { opacity: .06; }
}

/* ---- instant search under the header field */
@media (min-width: 1024px) {
  .deskbar form { position: relative; }
  .deskbar form kbd {
    font: 600 11px var(--body); color: var(--faint); padding: 3px 7px; border-radius: 5px; direction: ltr;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; transition: opacity .2s ease;
  }
  .deskbar form:focus-within kbd { opacity: 0; }
  .suggest {
    position: absolute; top: calc(100% + 10px); inset-inline-start: 0; width: 440px; max-height: min(70vh, 560px); overflow-y: auto;
    padding: 8px; border-radius: 12px; background: rgba(14, 8, 28, .96); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 26px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(237, 237, 239, .15);
    animation: qvIn .25s cubic-bezier(.22, 1, .36, 1) both; scrollbar-width: thin;
  }
  .sg { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; transition: background .15s ease; }
  .sg:hover, .sg.on { background: rgba(237, 237, 239, .16); }
  .sg .poster { width: 40px; flex: none; border-radius: 4px; }
  .sg .t { min-width: 0; display: grid; gap: 2px; }
  .sg b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sg small { color: var(--faint); font-size: 12px; }
  .sg.all { margin-top: 4px; padding: 10px; gap: 8px; color: var(--accent); font-weight: 600; font-size: 13px; }
  .sg.all svg { width: 16px; height: 16px; }
  .sgnone { padding: 14px 10px; color: var(--muted); font-size: 13px; }
  .sgbusy { display: flex; gap: 5px; justify-content: center; padding: 12px; }
  .sgbusy i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dots 1s ease-in-out infinite; }
  .sgbusy i:nth-child(2) { animation-delay: .15s; }
  .sgbusy i:nth-child(3) { animation-delay: .3s; }
  @keyframes dots { 0%, 100% { opacity: .25; translate: 0 0; } 50% { opacity: 1; translate: 0 -4px; } }
}

/* ---- quick look beside a card */
.qv {
  position: fixed; z-index: 45; width: 340px; border-radius: 14px; overflow: hidden;
  background: rgba(20, 20, 24, .95); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 80px rgba(237, 237, 239, .2);
  animation: qvIn .32s cubic-bezier(.22, 1, .36, 1) both;
}
.qv.out { animation: qvOut .2s ease both; pointer-events: none; }
@keyframes qvIn { from { opacity: 0; translate: 0 10px; } }
@keyframes qvOut { to { opacity: 0; translate: 0 6px; } }
.qv .qart { position: relative; height: 150px; overflow: hidden; }
.qv .qart img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.qv .qart::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, transparent 30%, rgba(20, 20, 24, .96)); }
.qv .qart b { position: absolute; z-index: 1; inset-inline: 16px; bottom: 8px; font-family: var(--head); font-size: 20px; line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.qv .qbody { padding: 10px 16px 16px; display: grid; gap: 10px; }
.qv .facts { gap: 0; row-gap: 4px; }
.qv .fact { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 12.5px; color: #ffffff; }
.qv .fact svg { color: var(--accent); }
.qv .fact + .fact::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 9px; }
.qv p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.qv .qg { display: flex; flex-wrap: wrap; gap: 6px; }
.qv .qg span { font-size: 11.5px; padding: 3px 9px; border-radius: 4px; background: rgba(237, 237, 239, .16); color: var(--accent); }
.qv .acts { display: flex; gap: 8px; margin-top: 2px; }
.qv .liquid { flex: 1; height: 42px; padding: 0 14px; font-size: 13.5px; }
.qv .btn { height: 42px; padding: 0 14px; font-size: 13px; }
.qv .btn svg { width: 17px; height: 17px; }
.qv .sq { width: 42px; height: 42px; }
.qv .sq svg { width: 18px; height: 18px; }

/* ---- what to watch tonight */
.tn-eye {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px;
  background: rgba(255, 255, 255, .14); color: var(--accent); font-weight: 600; font-size: 12.5px;
}
.tn-eye svg { width: 15px; height: 15px; }
.tonight { padding-top: calc(var(--top) + 66px); }
.tn-head { padding: 0 var(--gutter); text-align: center; display: grid; justify-items: center; gap: 10px; }
.tn-head h1 {
  font-size: 30px; line-height: 1.2;
  background: linear-gradient(90deg, #fff 20%, #ffffff 50%, #fff 80%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gleam 5s ease-in-out infinite;
}
@keyframes gleam { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.tn-head p { color: var(--muted); max-width: 460px; }
.moods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 22px var(--gutter) 0; }
.mood {
  position: relative; overflow: hidden; height: 74px; border-radius: 8px; padding: 0 14px;
  display: grid; align-content: center; justify-items: start; gap: 2px; text-align: start;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  transition: border-color .25s ease, box-shadow .3s ease, translate .3s cubic-bezier(.22, 1, .36, 1);
}
.mood::after {
  content: ""; position: absolute; width: 96px; height: 96px; inset-inline-end: -26px; top: -34px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, transparent), transparent); pointer-events: none;
}
.mood b { position: relative; font-family: var(--head); font-size: 17px; }
.mood small { position: relative; color: var(--muted); font-size: 12px; }
.mood[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 12px 34px color-mix(in srgb, var(--c) 35%, transparent); }
.win {
  position: relative; height: 232px; margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}
.reel { position: absolute; left: 0; top: 21px; display: flex; gap: 12px; direction: ltr; will-change: transform; }
.rp { flex: none; width: 126px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #121215; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: box-shadow .5s ease; }
.rp img { width: 100%; height: 100%; object-fit: cover; }
.rp.skel { background: linear-gradient(110deg, #121215 30%, #2c2c30 50%, #121215 70%); background-size: 200% 100%; animation: shine 1.2s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.rp.won { box-shadow: 0 0 0 2px #fff, 0 0 40px rgba(255, 255, 255, .95), 0 0 90px rgba(237, 237, 239, .6); }
.win .frame {
  position: absolute; left: 50%; top: 12px; width: 144px; height: 207px; margin-left: -72px; border-radius: 12px; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 30px rgba(237, 237, 239, .6), inset 0 0 20px rgba(237, 237, 239, .35);
}
.tn-result { padding: 14px var(--gutter) 30px; }
.tn-pick { display: grid; gap: 18px; }
.tn-pick > .poster { width: 62%; max-width: 250px; margin: 0 auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 70px rgba(237, 237, 239, .35); }
.tn-info { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.tn-info h2 { font-size: 26px; }
.tn-info .alt { color: var(--accent); font-size: 14px; }
.tn-info .story { margin: 0; color: #ffffff; line-height: 1.8; }
.tn-info .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tn-info .sq { width: 50px; height: 50px; }

/* the way in from home */
.tn-banner {
  position: relative; display: flex; align-items: center; gap: 18px; margin: 0 var(--gutter); padding: 18px 16px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(115deg, rgba(237, 237, 239, .38), rgba(190, 24, 93, .16) 62%, rgba(14, 8, 28, .5));
  border: 1px solid rgba(255, 255, 255, .26); isolation: isolate;
}
.tn-banner::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #ffffff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 60% 50%, #ffffff, transparent), radial-gradient(1.5px 1.5px at 10% 85%, #fff, transparent);
  opacity: .7; animation: twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .2; } }
.tn-banner .fan { position: relative; flex: none; width: 104px; height: 118px; }
.tn-banner .fan .poster {
  position: absolute; top: 10px; width: 62px; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  transition: rotate .5s cubic-bezier(.22, 1, .36, 1), translate .5s cubic-bezier(.22, 1, .36, 1);
}
.tn-banner .fan .poster:nth-child(1) { inset-inline-start: 0; rotate: 9deg; }
.tn-banner .fan .poster:nth-child(2) { inset-inline-start: 21px; top: 0; z-index: 1; }
.tn-banner .fan .poster:nth-child(3) { inset-inline-start: 42px; rotate: -9deg; }
.tn-banner .t { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.tn-banner h2 { font-size: 20px; }
.tn-banner p { font-size: 12.5px; color: var(--muted); }
.tn-banner .btn { height: 40px; padding: 0 16px; font-size: 13.5px; margin-top: 4px; }
.tn-banner .btn svg { width: 17px; height: 17px; }

@media (min-width: 1024px) {
  .tonight { padding-top: 112px; }
  .tn-head h1 { font-size: 48px; }
  .tn-head p { font-size: 16px; }
  .moods { grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 32px var(--gutter) 0; }
  .mood { height: 98px; padding: 0 20px; }
  .mood b { font-size: 21px; }
  .mood small { font-size: 13px; }
  .mood:hover { translate: 0 -3px; border-color: var(--c); }
  .win { height: 330px; margin-top: 38px; }
  .reel { top: 30px; gap: 16px; }
  .rp { width: 180px; border-radius: 10px; }
  .win .frame { top: 20px; width: 200px; height: 290px; margin-left: -100px; border-radius: 14px; }
  .tn-result { padding-top: 26px; }
  .tn-pick { grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: center; max-width: 1120px; margin: 0 auto; }
  .tn-pick > .poster { width: 100%; max-width: none; border-radius: 14px; }
  .tn-info h2 { font-size: 42px; line-height: 1.15; }
  .tn-info .story { font-size: 16px; max-width: 720px; }
  .tn-info .facts { gap: 0; row-gap: 6px; }
  .tn-info .fact { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px; color: #ffffff; }
  .tn-info .fact svg { width: 15px; height: 15px; color: var(--accent); }
  .tn-info .fact + .fact::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin: 0 12px; }
  .tn-banner { padding: 34px 56px; gap: 56px; border-radius: 14px; }
  .tn-banner .fan { width: 240px; height: 230px; }
  .tn-banner .fan .poster { width: 132px; top: 18px; border-radius: 10px; }
  .tn-banner .fan .poster:nth-child(2) { inset-inline-start: 54px; }
  .tn-banner .fan .poster:nth-child(3) { inset-inline-start: 108px; }
  .tn-banner:hover .fan .poster:nth-child(1) { rotate: 15deg; translate: 14px 6px; }
  .tn-banner:hover .fan .poster:nth-child(2) { translate: 0 -8px; }
  .tn-banner:hover .fan .poster:nth-child(3) { rotate: -15deg; translate: -14px 6px; }
  .tn-banner h2 { font-size: 36px; }
  .tn-banner p { font-size: 15.5px; max-width: 520px; }
  .tn-banner .btn { height: 50px; padding: 0 24px; font-size: 15px; margin-top: 10px; }
}

/* ---- remote control focus: on a TV, or once the arrows are used */
html.remote a:focus, html.remote button:focus, html.remote input:focus, html.remote [tabindex]:focus {
  outline: 3px solid #fff; outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(237, 237, 239, .45), 0 0 36px rgba(237, 237, 239, .55);
}
html.remote .card:focus, html.remote .top10 a:focus, html.remote .ecard:focus, html.remote .wcard:focus { outline: none; box-shadow: none; }
html.remote .card:focus .poster, html.remote .top10 a:focus .poster, html.remote .ecard:focus .sqimg {
  outline: 3px solid #fff; outline-offset: 3px; transform: translateY(-6px);
  box-shadow: 0 0 0 7px rgba(237, 237, 239, .5), 0 22px 46px rgba(0, 0, 0, .6);
}
html.remote .wcard:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(237, 237, 239, .6), 0 18px 40px rgba(0, 0, 0, .55); transform: translateY(-4px); }
html.remote .card:focus .hov { opacity: 1; }
html.remote .strip button:focus { opacity: 1; }
html.remote .rail, html.tv .rail { padding: 18px 12px 24px; margin: -10px calc(var(--gutter) - 12px) -8px; scroll-padding-inline: 12px; }
html.remote .sharp:focus { outline-offset: 4px; }

/* ---- televisions: a safe margin from the screen's edge, larger player
   controls, solid panels instead of costly blur, quieter backdrops */
html.tv { --gutter: 60px; }
html.tv body { font-size: 15px; }
html.tv .aurora i { animation: none !important; }
html.tv *, html.tv *::before, html.tv *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.tv .glass, html.tv .glass-strong { background: rgba(22, 22, 26, .94); }
html.tv .frost { background: rgba(40, 40, 46, .92); }
html.tv .card::before, html.tv .qv, html.tv .deskbar .dl, html.tv .deskbar form kbd { display: none !important; }
@media (min-width: 1024px) {
  html.tv .deskbar { height: 84px; padding-top: 8px; }
  html.tv .deskbar.solid { background: rgba(4, 4, 6, .95); }
  html.tv .hero-card > .layers > img, html.tv .saga > .layers > img { filter: blur(30px) saturate(1.4) brightness(.6); }
  html.tv .wdesk { padding-top: 36px; }
  html.tv .wdesk .ov .bt { padding: 70px 26px 18px; }
  html.tv .wdesk .ov .bt .gbtn { width: 54px; height: 54px; }
  html.tv .wdesk .ov .bt .gbtn svg { width: 27px; height: 27px; }
  html.tv .wdesk .ov .bt .clock { font-size: 17px; }
  html.tv .wdesk .ov .tr b { font-size: 26px; }
  html.tv .wdesk .ov .mid .big { width: 96px; height: 96px; }
  html.tv .seekrow { height: 26px; }
  html.tv .wdesk .seek::-webkit-slider-runnable-track { height: 6px; }
  html.tv .wdesk .seek::-webkit-slider-thumb { opacity: 1; margin-top: -4.5px; }
  html.tv .hero-card > .layers > img, html.tv .saga > .layers > img { filter: blur(8px) saturate(1.3) brightness(.55); }
}
/* A television stutters on motion and on big soft shadows: nothing
   moves there, the rings are flat, the reveals stand already shown. */
html.tv *, html.tv *::before, html.tv *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
html.tv .rv { opacity: 1 !important; transform: none !important; }
html.tv .skel .poster { animation: none !important; }
html.tv .card .poster, html.tv .top10 .poster, html.tv .parts a { transition: none; }
html.tv .card:hover .poster, html.tv .top10 a:hover .poster { transform: none; box-shadow: none; }
html.tv.remote a:focus, html.tv.remote button:focus, html.tv.remote input:focus, html.tv.remote [tabindex]:focus { box-shadow: 0 0 0 6px rgba(237, 237, 239, .5); }
html.tv.remote .card:focus .poster, html.tv.remote .top10 a:focus .poster, html.tv.remote .ecard:focus .sqimg { transform: none; box-shadow: 0 0 0 6px rgba(237, 237, 239, .6); }
html.tv.remote .wcard:focus { transform: none; box-shadow: 0 0 0 4px rgba(237, 237, 239, .6); }
html.tv.remote .card:focus, html.tv.remote .top10 a:focus, html.tv.remote .ecard:focus { box-shadow: none; }

/* ---- older TV browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .stage .box { height: 0; padding-top: 56.25%; }
  .wdesk .stage .box { max-height: none; min-height: 0; }
  .stage.full .box { height: 100%; padding-top: 0; }
  .hero-card { height: 150vw; }
  .saga { height: 150vw; }
  .parts a { width: 64px; }
  .rp { height: 189px; }
  .erow .th, .nextcard .th, .upnext .th { height: 74px; }
  @media (min-width: 1024px) {
    .hero-card, .saga { height: auto; }
    .hero-body .sharp { width: calc((92vh - 156px) * .6667); }
    .dblock .sharp { width: calc((88vh - 174px) * .6667); }
    .saga-body .sharp { width: 341px; }
    .parts a { width: 88px; }
    .rp { height: 270px; }
  }
}
@media (min-width: 1024px) {
  html.tv .wdesk .box:has(.ov:not(.hide)) video::-webkit-media-text-track-container { transform: translateY(-104px); }
}

/* ---- subtitles drawn by the page: position --p (0 bottom, 1 top), size
   --s on a base set from the player's width, colour, font, plate or bare;
   they step clear of the controls while those show */
.cap {
  position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; text-align: center;
  top: calc((1 - var(--p, 0)) * 100%); transform: translateY(calc((var(--p, 0) - 1) * 100%));
  padding: var(--gt, 10px) 6% var(--gb, 12px); transition: padding .25s ease;
}
.ov:not(.hide) ~ .cap { --gb: 62px; --gt: 54px; }
.cap span {
  display: inline; white-space: pre-line; line-height: 1.45; color: var(--cc, #fff);
  font-family: var(--cf, var(--body)); font-weight: 600; font-size: calc(var(--cb, 16px) * var(--s, 1));
  padding: 3px 10px; border-radius: 3px; background: rgba(0, 0, 0, .62);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cap.bare span { background: none; padding: 0; text-shadow: 0 0 5px rgba(0, 0, 0, .95), 0 1px 3px #000, 0 0 2px #000; }
@media (min-width: 1024px) {
  .wdesk .ov:not(.hide) ~ .cap { --gb: 96px; --gt: 72px; }
  html.tv .wdesk .ov:not(.hide) ~ .cap { --gb: 124px; --gt: 84px; }
}

/* the subtitle settings, in the phone sheet and the desktop menu */
.capset { display: grid; gap: 8px; }
.capset label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.rng { display: flex; align-items: center; gap: 10px; }
.rng small { min-width: 28px; text-align: center; font-size: 12px; color: var(--muted); }
.rng small.big { font-size: 19px; font-weight: 700; color: var(--ink); }
.rng input { flex: 1; min-width: 0; accent-color: var(--primary); height: 22px; }
.dots { display: flex; gap: 12px; }
.dots button { width: 28px; height: 28px; border-radius: 50%; background: var(--dc); border: 2px solid rgba(0, 0, 0, .35); }
.dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--accent); }
.fonts { display: flex; flex-wrap: wrap; gap: 6px; }
.fonts button { height: 32px; padding: 0 12px; border-radius: 5px; background: rgba(255, 255, 255, .08); font-size: 14px; }
.fonts button[aria-pressed="true"] { background: var(--primary-strong); color: #111114; }
.bgt { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 34px; margin-top: 4px; font-weight: 600; font-size: 13px; }
.bgt i { position: relative; width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .18); transition: background .2s ease; }
.bgt i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: right .2s ease; }
.bgt[aria-pressed="true"] i { background: var(--primary-strong); }
.bgt[aria-pressed="true"] i::after { right: 19px; }
.sheet .capset { margin-top: 4px; }
@media (min-width: 1024px) {
  .pmenu { max-width: calc(100% - 32px); overflow-x: auto; }
  .pmenu .grp.subs { width: 250px; padding-inline-start: 6px; }
  .pmenu .capset { padding: 0 6px; }
}

/* ---- touch screens, the iPhone first: glass inside the page drops its blur
   (behind it is only the soft page light, and Safari re-blurred every glass
   card on every frame of a scroll); rows glide freely without snapping; a
   card presses in only once the finger rests, so a swipe never shrinks it */
@media (hover: none) {
  #view .glass, #view .glass-strong, #view .frost { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rail { scroll-snap-type: none; }
  .press:active, .tile:active, .stat:active, .ecard:active, .erow:active, .wcard:active, .nrow:active { transition-delay: .09s; }
}

/* ---- the installed app (home screen, app window): no scrollbars anywhere,
   as in the Android app */
html.installed, html.installed * { scrollbar-width: none; }
html.installed::-webkit-scrollbar, html.installed body::-webkit-scrollbar, html.installed *::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui), (display-mode: window-controls-overlay) {
  html, html * { scrollbar-width: none; }
  html::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* ---- the card that turns push notifications on */
.pushcard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 6px; margin-bottom: 14px; }
.pushcard .ic { width: 42px; height: 42px; flex: none; border-radius: 6px; display: grid; place-items: center; background: rgba(237, 237, 239, .18); color: var(--accent); }
.pushcard .ic.on { background: rgba(74, 222, 128, .15); color: #86efac; }
.pushcard .ic svg { width: 20px; height: 20px; }
.pushcard > div { flex: 1; min-width: 0; }
.pushcard b { display: block; font-size: 14.5px; }
.pushcard p { margin-top: 3px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.pushcard .btn { flex: none; height: 40px; padding: 0 14px; font-size: 13.5px; }
.pushcard .link { flex: none; font-size: 13px; color: var(--muted); }
.sheet .pushcard { margin: 12px 0 4px; flex-wrap: wrap; }
.sheet .pushcard .btn { width: 100%; }
@media (max-width: 520px) { .pushcard { flex-wrap: wrap; } .pushcard .btn { width: 100%; } }

/* ================================================================
   القنوات الرياضية، البطولات، المباريات، التشكيلة، والهدايا اليومية
   ================================================================ */
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Gift button & sheet */
.gift-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px;
  border-radius: 6px; font-weight: 700; font-size: 12px; color: #ffffff;
  background: linear-gradient(135deg, rgba(237, 237, 239, .24), rgba(237, 237, 239, .24));
  border: 1px solid rgba(237, 237, 239, .38); flex: none;
}
.gift-btn svg { width: 16px; height: 16px; color: #ededef; }
.gift-btn.ready {
  box-shadow: 0 0 18px rgba(237, 237, 239, .35);
  animation: giftPulse 2.2s ease-in-out infinite;
}
@keyframes giftPulse {
  0%, 100% { border-color: rgba(237, 237, 239, .4); }
  50% { border-color: rgba(237, 237, 239, .95); box-shadow: 0 0 24px rgba(237, 237, 239, .55); }
}
@media (min-width: 1024px) {
  .deskbar .gift-btn.ic { width: auto; height: 40px; padding: 0 12px; font-size: 13px; }
}
.gift-box { display: grid; gap: 14px; }
.gift-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-stroke); }
.gift-orb { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #ededef, #ededef); color: #111114; flex: none; }
.gift-orb svg { width: 22px; height: 22px; }
.gift-txt { flex: 1; min-width: 0; }
.gift-txt b { display: block; font-size: 15px; }
.gift-txt small { color: var(--muted); font-size: 12px; }
.gift-bal { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 8px; background: rgba(237, 237, 239, .14); border: 1px solid rgba(237, 237, 239, .35); color: #ffffff; }
.gift-bal svg { width: 14px; height: 14px; }
.gift-bal b { font-size: 18px; line-height: 1.1; }
.gift-bal small { font-size: 10.5px; opacity: .85; }
.gift-active { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: rgba(34, 197, 94, .16); border: 1px solid rgba(34, 197, 94, .4); color: #86efac; font-size: 13px; font-weight: 600; }
.gift-active svg { width: 16px; height: 16px; flex: none; }
.gift-sub { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.gift-sub small { color: var(--muted); font-weight: 500; }
.gift-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 176px; overflow-y: auto; padding: 2px; }
.gift-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 4px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: 11px; }
.gift-day small { font-size: 9.5px; color: var(--faint); }
.gift-day b { font-size: 12px; color: var(--ink); direction: ltr; }
.gift-day.big { border-color: rgba(237, 237, 239, .35); background: rgba(237, 237, 239, .08); }
.gift-day.big b { color: #ededef; }
.gift-day.done { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .35); color: #86efac; }
.gift-day.done svg { width: 14px; height: 14px; }
.gift-day.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: rgba(237, 237, 239, .24); }
.gift-redeems { display: grid; gap: 8px; }
.gift-redeem { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-stroke); text-align: start; }
.gift-redeem.ok { border-color: rgba(237, 237, 239, .45); background: rgba(237, 237, 239, .14); }
.gift-redeem b { display: block; font-size: 14px; }
.gift-redeem small { color: var(--muted); font-size: 12px; }
.gift-redeem .cost { padding: 5px 10px; border-radius: 6px; background: rgba(237, 237, 239, .18); color: #ffffff; font-weight: 700; font-size: 12.5px; white-space: nowrap; }

/* Home Portal Card (_BeinPortalCard in lib/features/home/widgets/bein_leagues_section.dart) */
.portal-sec { padding-top: 8px; }
.portal-hero-wrap {
  width: 100%;
  padding-top: 8px;
}
.portal-hero-card {
  position: relative;
  display: block;
  width: 100%;
  height: 392px;
  overflow: hidden;
  user-select: none;
  isolation: isolate;
}
.portal-hero-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .portal-hero-card:hover::after {
    opacity: 1;
  }
}
@media (min-width: 700px) {
  .portal-hero-card {
    height: 430px;
  }
}
@media (min-width: 1024px) {
  .portal-hero-wrap {
    padding: 12px var(--gutter) 4px;
  }
  .portal-hero-card {
    height: 480px;
    border-radius: 6px;
    border: 1px solid var(--glass-stroke);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
      0 24px 60px -18px rgba(0, 0, 0, 0.65);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .portal-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.55),
      0 0 0 2px rgba(255, 255, 255, 0.55);
  }
}
.portal-hero-mask {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 68%, transparent 100%);
}
.portal-slides {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(135deg, rgba(237, 237, 239, 0.45) 0%, var(--bg-deep) 100%);
}
.portal-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}
.portal-slide.on {
  opacity: 1;
  z-index: 1;
}
.portal-slide.img-err {
  background: linear-gradient(135deg, #59595d 0%, #1c1c20 100%);
}
.portal-slide-bg {
  display: none;
}
.portal-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pan-from, 50% 25%);
  transition: object-position 5.2s linear;
}
.portal-slide.on .portal-slide-img,
.portal-slide.was-on .portal-slide-img {
  object-position: var(--pan-to, 50% 35%);
}
@media (min-width: 700px) {
  .portal-slide-bg {
    display: block;
    position: absolute;
    inset: -24px;
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    object-fit: cover;
    object-position: center 30%;
    filter: blur(26px) saturate(1.35) brightness(0.46);
    pointer-events: none;
  }
  .portal-slide-img {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(64%, 680px);
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 66%, transparent 100%);
  }
}
.portal-slide.is-mark {
  background: linear-gradient(135deg, #6a6a6e 0%, #212125 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-mark-img {
  width: min(46%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  transform: translateY(-4px);
  transition: transform 5.2s ease-in-out;
}
.portal-slide.is-mark.on .portal-mark-img,
.portal-slide.is-mark.was-on .portal-mark-img {
  transform: translateY(4px);
}
.portal-hero-shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 6, 0) 0%,
    rgba(5, 5, 6, 0) 20%,
    rgba(4, 4, 6, 0.55) 62%,
    rgba(4, 4, 6, 0.97) 100%
  );
}
.portal-hero-fg {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 18px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .portal-hero-fg {
    padding: 28px 36px 34px;
  }
}
.portal-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portal-emblem-stack {
  position: relative;
  flex: none;
}
.portal-emblem-ring {
  position: absolute;
  top: 0;
  padding: 2px;
  border-radius: 50%;
  background: rgba(4, 4, 6, 0.88);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .portal-hero-card:hover .portal-emblem-ring {
    transform: translateY(-1.5px);
  }
}
.portal-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), transparent 60%),
    rgba(11, 6, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  flex: none;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.portal-cta-pill.is-live {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent 60%),
    rgba(237, 237, 239, 0.34);
  border-color: rgba(255, 255, 255, 0.55);
}
.portal-cta-pill svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.portal-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: beinLivePulse 1.1s ease-in-out infinite alternate;
}
.portal-hero-spacer {
  flex: 1;
}
.portal-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.portal-kicker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
}
.portal-hero-title {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(27px, 6.8vw, 44px);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.18;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.78));
}

/* Home Channel Rail & _HomeChannelCard — unified corners (3px mobile / 6px desktop) & borders with .poster / .wcard */
.rail.home-ch-rail {
  --rail: 136px;
  grid-auto-columns: 136px;
  height: 105px;
  min-height: 105px;
  gap: 12px;
  align-items: stretch;
  box-sizing: content-box;
}
.home-ch-card {
  position: relative;
  width: 136px;
  height: 105px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  user-select: none;
  isolation: isolate;
  flex: none;
}
.home-ch-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  border: 1px solid var(--glass-stroke);
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 30%, transparent 56%);
  opacity: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 1024px) {
  .rail.home-ch-rail {
    --rail: 156px;
    grid-auto-columns: 156px;
    height: 114px;
    min-height: 114px;
    gap: 16px;
  }
  .home-ch-card {
    width: 156px;
    height: 114px;
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  }
  .home-ch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.55);
  }
  .home-ch-card:hover::after {
    border-color: transparent;
  }
}

/* _LogoTile (blurred self-glow + 10px padded contain logo) */
.ch-logo-tile {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(160deg, #17171b, #0b0b0d);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-logo-glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) saturate(1.3);
  opacity: 0.6;
  transform: scale(1.25);
  pointer-events: none;
}
.ch-logo-fg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.38));
}
.ch-logo-stroke {
  display: none;
}

/* ChannelPlate & _BeinCustomPlate */
.ch-plate-v2 {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  isolation: isolate;
}
.home-ch-card .ch-plate-v2 {
  border: 0 !important;
  box-shadow: none !important;
}

/* 1. Alwan Sports Plate */
.ch-plate-v2.alwan {
  background: linear-gradient(135deg, #1e1e22 0%, #2c2c30 50%, #0f1e3d 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.alwan-glow {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.45) 0%, rgba(245, 245, 247, 0.25) 55%, transparent 100%);
  pointer-events: none;
}
.alwan-col {
  position: relative;
  z-index: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.alwan-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1;
  background: linear-gradient(90deg, #ff5252, #ededef, #2ed573, #00e5ff, #ededef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ch-plate-v2.alwan.compact .alwan-title {
  font-size: 13px;
}
.ch-plate-v2.alwan.tiny .alwan-title {
  font-size: 8.5px;
  letter-spacing: 0.6px;
}
.alwan-sub-row {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.alwan-sub-txt {
  color: #00f0ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.ch-plate-v2.alwan.compact .alwan-sub-txt {
  font-size: 10px;
}
.alwan-num-badge {
  padding: 1px 5px;
  border-radius: 3px;
  background: #ff2a85;
  color: #111114;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}
.ch-plate-v2.alwan.compact .alwan-num-badge {
  font-size: 10px;
}
.ch-plate-v2.alwan.tiny .alwan-num-badge {
  font-size: 8px;
  padding: 1px 3.5px;
}

/* 2. _BeinCustomPlate */
.ch-plate-v2.bein-custom {
  background: linear-gradient(135deg, #202024 0%, #303034 50%, color-mix(in srgb, var(--bp-accent, #ededef) 85%, #000) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.bp-sheen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 1;
}
.bp-sheen.light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%);
}
.bp-col {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bp-top-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.bp-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.ch-plate-v2.bein-custom.compact .bp-brand {
  font-size: 19px;
}
.ch-plate-v2.bein-custom.tiny .bp-brand {
  font-size: 10.5px;
}
.bp-qual {
  padding: 1.5px 4.5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  border: 0.8px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.bp-sub-pill {
  margin-top: 5px;
  max-width: 96%;
  padding: 2.5px 6px;
  box-sizing: border-box;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 0.6px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-plate-v2.bein-custom.compact .bp-sub-pill {
  font-size: 9.5px;
  padding: 2px 5px;
}
.ch-plate-v2.bein-custom.tiny .bp-sub-pill {
  margin-top: 2px;
  padding: 1px 3px;
  font-size: 6.5px;
}

/* 3. Default Off-White ChannelPlate */
.ch-plate-v2.light {
  background: linear-gradient(135deg, #f6f4fb 0%, #ffffff 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.ch-plate-img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: center !important;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ch-plate-v2.light.compact .ch-plate-img {
  padding: 8px 10px;
}
.ch-plate-v2.light.tiny .ch-plate-img {
  padding: 4px;
}
.ch-plate-v2.light.has-img .ch-plate-img {
  opacity: 1;
}
.ch-plate-v2.light.has-img .ch-plate-fb {
  opacity: 0;
}
.ch-plate-fb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #454549;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
}
.ch-plate-v2.light.compact .ch-plate-fb {
  font-size: 11px;
}
.ch-plate-fb.tiny {
  font-size: 10px;
}
.ch-plate-fb svg {
  width: 22px;
  height: 22px;
  color: #ededef;
}
.ch-plate-v2.light.compact .ch-plate-fb svg {
  width: 18px;
  height: 18px;
}

/* ChannelLockBadge(size: 20) */
.ch-lock-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 6, 20, 0.78);
  border: 1px solid rgba(237, 237, 239, 0.55);
  color: #ffffff;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ch-lock-badge svg {
  width: 11px;
  height: 11px;
}

/* Sports & Leagues Page (#/sports) — 1:1 match with Android SportsScreen / BeinLeaguesScreen(showTitle: false) */
.bein-sports-screen {
  padding-top: var(--top);
  padding-bottom: 120px;
}
.bein-leagues-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 1024px) {
  .bein-sports-screen {
    padding-top: 88px;
  }
  .bein-leagues-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px var(--gutter) 32px;
    gap: 14px;
  }
  .bein-lg-section {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--glass-stroke);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
      0 18px 44px -16px rgba(0, 0, 0, 0.55);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .bein-lg-section:hover {
    border-color: rgba(255, 255, 255, 0.45);
  }
}
.bein-empty-state {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.bein-empty-state > svg {
  width: 44px;
  height: 44px;
  color: var(--muted);
}

/* _LeagueRow (large height, square corners on mobile, centered artwork) */
.bein-lg-section {
  width: 100%;
}
.bein-lg-row {
  position: relative;
  width: 100%;
  height: 148px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, var(--lg-color, #222226) 0%, #090612 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}
.bein-lg-row::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}
@media (min-width: 1024px) {
  .bein-lg-row {
    height: 184px;
    border-bottom: 0;
  }
}
.bein-lg-row.is-open {
  border-bottom: 2px solid var(--primary);
}
.bein-lg-banner {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .bein-lg-row:hover .bein-lg-banner {
    transform: scale(1.045);
  }
}
.bein-lg-wash {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  /* Matches _LeagueRow gradient in bein_leagues_section.dart (lines 666-673) */
  background: linear-gradient(
    to left,
    rgba(4, 4, 6, 0.90) 0%,
    rgba(4, 4, 6, 0.55) 100%
  );
}
.bein-lg-row.is-open .bein-lg-wash {
  background: linear-gradient(
    to left,
    rgba(4, 4, 6, 0.96) 0%,
    rgba(4, 4, 6, 0.80) 100%
  );
}
.bein-lg-fg {
  height: 100%;
  padding: 14px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* _Emblem (white round plate so dark league logos always pop) */
.bein-emblem-plate {
  position: relative;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  padding: 6px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bein-emblem-plate img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bein-emblem-plate.has-img img {
  opacity: 1;
}
.bein-emblem-plate.has-img .bein-emblem-fallback {
  opacity: 0;
}
.bein-emblem-fallback {
  display: grid;
  place-items: center;
  color: #ededef;
}
.bein-emblem-fallback svg {
  width: 55%;
  height: 55%;
}

.bein-lg-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.bein-lg-title b {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
@media (min-width: 1024px) {
  .bein-lg-title b {
    font-size: 20px;
  }
}

/* Live / Count Pill inside _LeagueRow */
.bein-lg-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  flex: none;
  width: fit-content;
}
.bein-lg-pill.count {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.bein-lg-pill.live {
  background: rgba(237, 237, 239, 0.26);
  border: 1px solid rgba(237, 237, 239, 0.55);
  color: #fff;
}
.bein-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: beinLivePulse 1.1s ease-in-out infinite alternate;
}
@keyframes beinLivePulse {
  from { opacity: 0.45; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1.15); }
}

.bein-lg-chev {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.8);
  flex: none;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.bein-lg-chev svg {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}
.bein-lg-chev.open {
  transform: rotate(180deg);
  color: var(--accent);
}

/* _LeagueMatches (expanded panel right below the row) */
.bein-lg-matches {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bein-day-group {
  display: flex;
  flex-direction: column;
}
.bein-day-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 6px;
}
.bein-day-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.bein-day-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.bein-day-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* BeinMatchCard (_MatchCardBody in bein_leagues_section.dart) */
.bm-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(237, 237, 239, 0.12), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 8px 20px -10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bm-card:hover {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16), 0 12px 26px -10px rgba(0, 0, 0, 0.5);
}
.bm-card.is-live {
  background:
    radial-gradient(260px circle at 90% 50%, rgba(34, 197, 94, 0.14), transparent 70%),
    rgba(34, 197, 94, 0.075);
  border: 1.2px solid rgba(34, 197, 94, 0.58);
  box-shadow: inset 0 1px 0 0 rgba(134, 239, 172, 0.22), 0 10px 28px -10px rgba(34, 197, 94, 0.25);
}

/* 56px _Centre column */
.bm-centre {
  width: 56px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.bm-kick-time {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.bm-kick-day {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
}
.bm-done-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.bm-sub-time {
  font-size: 10px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.bm-live-min {
  font-size: 14px;
  font-weight: 900;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.bm-live-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #22c55e;
}
.bm-live-sub i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: beinLivePulse 1.1s ease-in-out infinite alternate;
}
.bm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.bm-live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

/* 1px vertical divider */
.bm-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  flex: none;
}

/* Middle column: Home _TeamLine + Away _TeamLine + _MatchNote */
.bm-middle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bm-team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bm-team-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.bm-crest {
  position: relative;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 2px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
}
.bm-crest img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bm-crest.has-img img {
  opacity: 1;
}
.bm-crest.has-img span {
  opacity: 0;
}

/* _MatchNote */
.bm-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.bm-note-ch {
  font-weight: 700;
  max-width: 55%;
}
.bm-note-dot {
  color: var(--faint);
}
.bm-note-comm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.bm-note-comm svg {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--muted);
}

/* 84px _MatchAction column */
.bm-action {
  width: 84px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.bm-act-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.bm-act-more svg {
  width: 14px;
  height: 14px;
}
.bm-ch-mini-logo {
  height: 20px;
  max-width: 76px;
  object-fit: contain;
}
.bm-act-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bm-act-logos img {
  height: 22px;
  max-width: 78px;
  object-fit: contain;
}
.bm-cd-pill {
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  white-space: nowrap;
}
.bm-cd-pill.days span {
  font-size: 9.5px;
  font-weight: 800;
}
.bm-cd-pill.timer span {
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bm-cd-pill svg {
  width: 10px;
  height: 10px;
}

.bm-watch-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bm-watch-btn {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #111114;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}
.bm-watch-btn img {
  height: 22px;
  width: 30px;
  object-fit: contain;
}
.bm-watch-btn svg {
  width: 13px;
  height: 13px;
}

/* Match Details Sheet (_showDetails in bein_leagues_section.dart) */
.bm-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}
.bm-sheet-league {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bm-sheet-lname {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}
.bm-sheet-stage {
  font-size: 11.5px;
  color: var(--muted);
}
.bm-sheet-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.bm-sheet-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.bm-sheet-side b {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.bm-sheet-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.bm-sheet-time {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bm-sheet-time.live {
  color: #22c55e;
}
.bm-sheet-time.done {
  font-size: 16px;
  color: var(--muted);
}
.bm-sheet-vs {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.bm-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.bm-live-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.bm-sheet-single {
  text-align: center;
  padding: 8px 0;
}
.bm-sheet-single b {
  font-size: 16px;
  font-weight: 800;
}
.bm-sheet-comm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.bm-sheet-comm svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.bm-sheet-ch-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bm-sheet-ch-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  margin: 0;
}
.bm-sheet-ch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bm-sheet-ch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bm-sheet-ch-row.can-open {
  background: rgba(237, 237, 239, 0.16);
  border-color: rgba(237, 237, 239, 0.55);
  cursor: pointer;
}
.bm-sheet-ch-logo {
  width: 56px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
}
.bm-sheet-ch-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.bm-sheet-ch-logo svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.bm-sheet-ch-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bm-sheet-ch-txt b {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.bm-sheet-ch-txt small {
  font-size: 11px;
  color: var(--muted);
}
.bm-sheet-ch-txt small.open {
  color: var(--accent);
}
.bm-sheet-play-ico svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.bm-sheet-lock-ico svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* Soccer Lineup Pitch (1:1 with lib/features/channels/widgets/lineup_pitch.dart) */
.pitch-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}
.pitch-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.pitch-note svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex: none;
}
.pitch-caveat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.pitch-caveat svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex: none;
}
.pitch-team-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.pitch-team-accent {
  width: 3px;
  height: 26px;
  flex: none;
}
.pitch-team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}
.pitch-team-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.pitch-team-form {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pitch-field {
  position: relative;
  aspect-ratio: 1 / 1.9;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: repeating-linear-gradient(
    to bottom,
    #14532d 0%,
    #14532d 8.333%,
    #166534 8.333%,
    #166534 16.666%
  );
}
.pitch-lines {
  position: absolute;
  inset: 8px;
  border: 1.4px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.pitch-half {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.4px;
  background: rgba(255, 255, 255, 0.5);
}
.pitch-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.5);
}
.pitch-spot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}
.pitch-box {
  position: absolute;
  left: 22%;
  width: 56%;
  height: 13.5%;
  border: 1.4px solid rgba(255, 255, 255, 0.5);
}
.pitch-box.top { top: 0; border-top: 0; }
.pitch-box.bot { bottom: 0; border-bottom: 0; }
.pitch-goal {
  position: absolute;
  left: 37%;
  width: 26%;
  height: 5%;
  border: 1.4px solid rgba(255, 255, 255, 0.5);
}
.pitch-goal.top { top: 0; border-top: 0; }
.pitch-goal.bot { bottom: 0; border-bottom: 0; }
.pitch-arc {
  position: absolute;
  left: 50%;
  width: 20%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border: 1.4px solid rgba(255, 255, 255, 0.5);
}
.pitch-arc.top {
  top: 13.5%;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}
.pitch-arc.bot {
  bottom: 13.5%;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.p-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.p-photo-wrap {
  position: relative;
  width: 50px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-circle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #f5f5f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.p-circle img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.p-circle.has-img img { opacity: 1; }
.p-circle.has-img .p-num-fb { opacity: 0; }
.p-num-fb {
  font-size: 13px;
  font-weight: 800;
}
.p-num-badge {
  position: absolute;
  inset-inline-end: 0;
  bottom: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-name {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  max-width: 66px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.88);
}

/* =========================================================================
   Channel Watch Page & Live Player Overlay (1:1 with channel_player_screen.dart)
   ========================================================================= */
body.is-ch-watch .bar,
body.is-ch-watch .deskbar {
  display: none !important;
}
.ch-mobile-player {
  padding: 0 !important;
  min-height: 100vh;
}
.ch-mobile-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(28px + var(--bottom, 0px));
}
.ch-watch .pwrap.ch-stage-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  isolation: isolate;
  background: var(--bg);
}
.ch-watch .ch-amb {
  position: absolute;
  inset: -12% -6% -24% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 35% 45%, rgba(237, 237, 239, 0.42), transparent 75%),
    radial-gradient(closest-side at 70% 55%, rgba(225, 29, 72, 0.24), transparent 75%);
  filter: blur(42px);
  opacity: 0.9;
}
.ch-watch .live-stage {
  padding-top: 0 !important;
  border-radius: 0 0 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 46px -8px rgba(0, 0, 0, 0.72), 0 10px 36px -6px rgba(237, 237, 239, 0.35);
}
.ch-watch .live-stage .box {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(56.25vw, 48vh);
  background: #05020c;
}
.ch-watch .live-stage video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.ch-watch .live-stage.full {
  border-radius: 0;
  border-bottom: 0;
}
.ch-watch .live-stage.full .box {
  aspect-ratio: auto;
  max-height: none;
  height: 100%;
}

/* StageSpinner (1:1 with StageSpinner in player_chrome.dart) */
.stage-spin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.stage-spin-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  animation: stageBob 2.4s ease-in-out infinite alternate;
}
@keyframes stageBob {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}
.stage-spin-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ch-mobile-body {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

/* Override overlay rules so .live-ov 3-row grid works identically on mobile & desktop */
.wdesk .live-ov .tr,
.live-ov .live-tr {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--top, 0px) + 12px) 16px 10px 16px !important;
  background: linear-gradient(to bottom, rgba(4, 2, 10, 0.78), rgba(4, 2, 10, 0.25) 68%, transparent);
}
.live-ov .live-tr .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.live-ov .live-tr .txt b {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.live-ov .live-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.2;
}
.live-tr-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* LivePill (1:1 with LivePill in player_chrome.dart lines 253-289) */
.live-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 59, 92, 0.22);
  border: 1px solid rgba(255, 59, 92, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1;
}
.live-pill-v2 i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: beinLivePulse 1.1s ease-in-out infinite alternate;
}

/* MetaChip (1:1 with MetaChip in player_chrome.dart lines 325-366) */
.meta-chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 6, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}
.meta-chip-v2 svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Middle Row: StagePlayButton + prev/next channel buttons */
.wdesk .live-ov .live-mid,
.live-ov .live-mid {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 1 !important;
  pointer-events: none !important;
  padding: 0 16px;
}
.live-ov.hide .live-mid,
.live-stage.busy .live-mid,
.wdesk .live-stage.busy .live-ov .live-mid {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.live-ov .live-mid > button {
  pointer-events: auto;
}
.live-play-btn {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  background: rgba(237, 237, 239, 0.28) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 28px rgba(237, 237, 239, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.live-play-btn svg {
  width: 28px !important;
  height: 28px !important;
}
.live-skip-btn {
  display: grid !important;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Bottom Row: Mute + Fullscreen at bottom-end corner (1:1 with _Overlay lines 1292-1313) */
.wdesk .live-ov .live-bt,
.live-ov .live-bt {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px 12px !important;
  background: linear-gradient(to top, rgba(4, 2, 10, 0.78), rgba(4, 2, 10, 0.2) 65%, transparent);
}
.live-ov .live-bt-row {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0 !important;
}
.live-ctrl-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.live-ctrl-btn svg {
  width: 17px !important;
  height: 17px !important;
}
.live-stage.full .live-ctrl-btn {
  width: 44px !important;
  height: 44px !important;
}
.live-stage.full .live-ctrl-btn svg {
  width: 19px !important;
  height: 19px !important;
}

/* _ServerBar (1:1 with _ServerBar in channel_player_screen.dart lines 1351-1388) */
.srv-bar-v2 {
  display: flex;
  align-items: center;
  padding: 10px 0 2px;
}
.sbc-srv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.sbc-srv-chip:hover {
  border-color: rgba(237, 237, 239, 0.45);
}
.sbc-srv-chip svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.srv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.srv-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--ink); font-size: 13px; font-weight: 700;
}
.srv-pill svg { width: 14px; height: 14px; color: #ffffff; }
.srv-pill.on {
  background: var(--primary-strong); border-color: rgba(255, 255, 255, .6); color: #111114;
  box-shadow: 0 6px 20px rgba(237, 237, 239, .45);
}
.sheet-pills { margin-top: 12px; }

/* _MatchTabs (1:1 with _MatchTabs in channel_player_screen.dart lines 1421-1471) */
.ch-match-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.ch-match-container:empty {
  display: none;
}
.ch-match-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
}
.ch-mtab {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}
.ch-mtab.on {
  background: var(--primary-strong);
  color: #111114;
  font-weight: 700;
}

/* Category Header & _ZapRow (1:1 with channel_player_screen.dart lines 1050-1096 & 1476-1580) */
.ch-zap-sec {
  margin-top: 18px;
}
.ch-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
}
.ch-cat-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.ch-cat-head span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.zap-list-mobile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zap-row-v2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  transition: background 0.16s ease, border-color 0.16s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 56px;
}
.zap-row-v2:hover {
  background: rgba(255, 255, 255, 0.06);
}
.zap-row-v2.cur {
  background: rgba(237, 237, 239, 0.2);
  border-color: rgba(237, 237, 239, 0.55);
}
.zap-bar {
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
}
.zap-row-v2.cur .zap-bar {
  background: var(--accent);
}
.zap-num {
  width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}
.zap-row-v2.cur .zap-num {
  color: var(--accent);
}
.ch-logo-40 {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
}
.zap-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.zap-row-v2.cur .zap-name {
  font-weight: 700;
}
.zap-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}
.zap-now i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: beinLivePulse 1.1s ease-in-out infinite alternate;
}
.zap-chev {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.zap-chev svg {
  width: 16px;
  height: 16px;
}
.ch-source-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Lock Stage */
.lock-stage-wrap { max-width: 520px; margin: 0 auto; padding-bottom: 40px; }
.lock-stage {
  display: grid; justify-items: center; text-align: center; gap: 12px;
  padding: 28px 22px; border-radius: 14px;
}
.lock-art { width: 140px; height: 90px; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.lock-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px;
  background: rgba(237, 237, 239, .16); border: 1px solid rgba(237, 237, 239, .45); color: #ffffff; font-size: 12px; font-weight: 700;
}
.lock-pill svg { width: 14px; height: 14px; }
.lock-stage h1 { font-size: 24px; }
.lock-stage p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.lock-bal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; font-size: 13.5px; }
.lock-bal svg { width: 16px; height: 16px; color: #ededef; }
.lock-bal b { color: #ffffff; font-size: 15px; }
.lock-actions { width: 100%; display: grid; gap: 8px; margin-top: 6px; }

/* ---- how to watch sbc: one centered column; four even device tiles,
   the chosen one's steps in a card, the one-account notes in three cells */
.howhead { display: grid; justify-items: center; text-align: center; gap: 12px; padding-bottom: 8px;
  background: radial-gradient(46% 80% at 50% 38%, rgba(237, 237, 239, .2), transparent 75%) no-repeat; }
.hh-icons { display: flex; gap: 8px; }
.hh-icons span { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; background: rgba(237, 237, 239, .16); color: var(--accent); }
.hh-icons svg { width: 19px; height: 19px; }
.howhead p { max-width: 520px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.howbody { width: min(100%, 860px); margin-inline: auto; display: grid; gap: 14px; padding-bottom: 28px; }
.hp-label { text-align: center; font-size: 12.5px; color: var(--muted); }
.howpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hp-tile {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 116px; padding: 16px 10px 14px;
  border-radius: 6px; text-align: center; background: var(--glass-strong); border: 1px solid var(--glass-stroke);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.hp-tile .ic { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--accent); transition: background .2s, color .2s; }
.hp-tile .ic svg { width: 21px; height: 21px; }
.hp-tile b { font-size: 14px; line-height: 1.35; }
.hp-tile small { font-size: 11.5px; color: var(--muted); }
.hp-tile .ptag { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 7px; font-size: 10.5px; }
.hp-tile[aria-pressed="true"] { background: rgba(237, 237, 239, .2); border-color: rgba(237, 237, 239, .65); box-shadow: 0 14px 36px -20px rgba(237, 237, 239, .9); }
.hp-tile[aria-pressed="true"] .ic { background: var(--primary-strong); color: #111114; }
@media (hover: hover) { .hp-tile:hover { border-color: rgba(237, 237, 239, .45); } }
.howcard { padding: 20px; border-radius: 6px; display: grid; gap: 18px; border-color: rgba(237, 237, 239, .35); }
.howcard.swap { animation: hcin .26s ease-out; }
@keyframes hcin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .howcard.swap { animation: none; } }
.hc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-stroke); }
.hc-head .ic { width: 46px; height: 46px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--primary-strong); color: #111114; }
.hc-head .ic svg { width: 23px; height: 23px; }
.hc-head > div { flex: 1; min-width: 0; }
.hc-head h2 { font-family: var(--head); font-size: 19px; line-height: 1.3; }
.hc-head small { font-size: 12.5px; color: var(--muted); }
.hc-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 14px; }
.hc-steps li { counter-increment: st; position: relative; min-height: 28px; padding-inline-start: 42px; font-size: 13.5px; line-height: 1.8; }
.hc-steps li::before {
  content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: rgba(237, 237, 239, .28); color: var(--ink);
}
.hc-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13.5px; top: 32px; bottom: -12px; width: 1px; background: rgba(237, 237, 239, .3); }
.howcard .btn { width: 100%; }
.howone { display: grid; gap: 14px; justify-items: center; text-align: center; margin-top: 18px; }
.howone h2 { font-family: var(--head); font-size: 20px; }
.ho-grid { width: 100%; display: grid; gap: 10px; }
.ho-cell { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border-radius: 6px; text-align: start; }
.ho-cell .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: rgba(74, 222, 128, .12); color: #86efac; }
.ho-cell .ic svg { width: 20px; height: 20px; }
.ho-cell b { font-size: 14.5px; }
.ho-cell small { font-size: 12.5px; line-height: 1.65; color: var(--muted); }
@media (min-width: 700px) {
  .howpick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .hp-tile { min-height: 134px; }
  .howcard { padding: 28px 32px; }
  .howcard .btn { width: auto; min-width: 220px; justify-self: start; }
  .ho-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ho-cell { grid-template-columns: 1fr; justify-items: center; align-content: start; row-gap: 8px; padding: 22px 18px; text-align: center; }
  .ho-cell .ic { grid-row: auto; }
}
@media (min-width: 1024px) {
  .howhead p { font-size: 15px; }
  .howbody { gap: 16px; }
}
.howwrap { padding: 6px var(--gutter) 4px; }
.howband { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 6px; background-image: radial-gradient(90% 120% at 100% 0%, rgba(237, 237, 239, .26), transparent 70%); }
.hb-text { flex: 1; min-width: 0; }
.hb-text b { display: block; font-family: var(--head); font-size: 17px; }
.hb-text small { font-size: 12.5px; color: var(--muted); }
.hb-icons { display: flex; gap: 6px; }
.hb-icons span { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--accent); }
.hb-icons svg { width: 17px; height: 17px; }
.howband > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 520px) { .hb-icons { display: none; } }
@media (min-width: 1024px) {
  .howwrap { padding: 10px var(--gutter) 6px; }
  .howband { padding: 22px 26px; }
}

/* ---- the TV: the big-screen pages on a 1280 px canvas (TVW in app.js),
   sized so one screen shows the banner and the first row under it, never
   one picture filling the set */
html.tv .hero { height: calc(64 * var(--tvvh, 7.2px)); min-height: 0; }
html.tv .hero .strip { display: none; }
html.tv .hero-body .info { bottom: 44px; width: 600px; }
html.tv .hero-body h1 { font-size: 44px; margin-top: 10px !important; }
html.tv .hero-body p { font-size: 15.5px; line-height: 1.7; margin-top: 12px; -webkit-line-clamp: 2; }
html.tv .hero-body .acts { margin-top: 20px; }
html.tv .hero-body .acts .liquid, html.tv .hero-body .acts .btn { height: 52px; }
html.tv .hero-body .acts .sq { width: 52px; height: 52px; }
html.tv .hero-body .sharp { top: 100px; height: calc(100% - 132px); }
html.tv .dtop { height: calc(74 * var(--tvvh, 7.2px)); min-height: 0; }
html.tv .saga { height: calc(64 * var(--tvvh, 7.2px)); }
html.tv, html.tv * { scrollbar-width: none; }
html.tv::-webkit-scrollbar, html.tv *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---- signing a TV in from a phone */
.sheet.pair { max-width: 760px; }
.pair-body { display: flex; align-items: center; gap: 24px; margin-top: 14px; }
.pair-qr { flex: none; width: 210px; height: 210px; padding: 10px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.pair-qr svg { width: 100%; height: 100%; display: block; }
.pair-qr .spin { border-color: rgba(0, 0, 0, .15); border-top-color: #ededef; }
.pair-text { flex: 1; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.pair-text ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; }
.pair-code { display: inline-block; padding: 2px 10px; border-radius: 6px; background: rgba(237, 237, 239, .2); color: #fff; font-size: 22px; letter-spacing: 3px; font-family: var(--head); }
.pair-state { font-size: 13.5px; color: var(--muted); }
.tvlink { display: grid; gap: 16px; max-width: 560px; padding-bottom: 24px; }
.tvlink-card { padding: 22px 18px; border-radius: 6px; display: grid; gap: 10px; }
.tvlink-card .ic { width: 52px; height: 52px; border-radius: 6px; display: grid; place-items: center; background: rgba(237, 237, 239, .18); color: var(--accent); }
.tvlink-card .ic svg { width: 26px; height: 26px; }
.tvlink-card h2 { font-family: var(--head); font-size: 20px; }
.tvlink-card p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.tvlink-card label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tvcode { height: 54px; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); font-size: 24px; letter-spacing: 4px; text-align: center; font-family: var(--head); text-transform: uppercase; }
.tvcode:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 640px) { .pair-body { flex-direction: column; } }

/* ---- polish: watch progress on a film card, a finger-sized heart */
.card .cprog { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); pointer-events: none; }
.card .cprog::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: var(--p); background: var(--live); }
@media (hover: none) {
  .card .heart::after { content: ""; position: absolute; top: -7px; right: -7px; bottom: -7px; left: -7px; }
}

/* ---- the home banner's shape while it loads */
.hero.hero-wait { position: relative; }
.hero-wait .hero-card { background: linear-gradient(110deg, #121215 30%, rgba(255, 255, 255, .07) 50%, #121215 70%) 0 0 / 250% 100%; animation: shim 1.6s linear infinite; }
.hero-skel { position: absolute; z-index: 2; right: var(--gutter); left: var(--gutter); bottom: 26px; display: grid; gap: 12px; justify-items: start; pointer-events: none; }
.hero-skel i { display: block; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.hero-skel .s1 { width: 45%; }
.hero-skel .s2 { width: 72%; height: 28px; }
.hero-skel .s3 { width: 88%; }
.hero-skel div { display: flex; gap: 10px; margin-top: 6px; }
.hero-skel .b1 { width: 160px; height: 52px; border-radius: 6px; }
.hero-skel .b2 { width: 52px; height: 52px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .hero-wait .hero-card { animation: none; } }
@media (min-width: 1024px) {
  .hero.hero-wait { height: min(92vh, 900px); min-height: 640px; }
  .hero-wait .hero-card { position: absolute; top: 0; right: 0; bottom: 0; left: 0; aspect-ratio: auto; margin: 0; border-radius: 0; }
  .hero-skel { bottom: 168px; left: auto; width: min(640px, 46vw); }
  .hero-skel .s2 { height: 56px; }
  html.tv .hero.hero-wait { height: calc(64 * var(--tvvh, 7.2px)); min-height: 0; }
  html.tv .hero-skel { bottom: 44px; }
}

/* ---- favorites: films and series tabs, and the order */
.favbar { display: grid; gap: 12px; margin-bottom: 16px; }
.favtabs { max-width: 520px; }
.favtabs button small { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 11.5px; background: rgba(255, 255, 255, .1); }
.favtabs button[aria-pressed="true"] small { background: rgba(255, 255, 255, .22); }
.favorder { display: flex; gap: 8px; flex-wrap: wrap; }
.favorder .chip.on { background: var(--primary-strong); border-color: transparent; color: #111114; }
.favnone { grid-column: 1 / -1; padding: 30px 0; text-align: center; }

/* ---- IPTV Subscription Packages Strip & Channels Hub */
.home-pkg-rail { gap: 10px; padding-bottom: 4px; }
.home-pkg-card {
  flex: 0 0 196px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pkg-c1, #414145) 0%, var(--pkg-c2, #ededef) 50%, rgba(26, 26, 30, .95) 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  text-decoration: none;
  color: #111114;
}
.home-pkg-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  flex: none;
}
.home-pkg-ic svg { width: 20px; height: 20px; color: #fff; }
.home-pkg-txt { min-width: 0; display: grid; gap: 3px; }
.home-pkg-txt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-pkg-txt small { font-size: 11px; color: rgba(255, 255, 255, .82); }

.channels-page { padding-top: calc(var(--safe-top, 0px) + 74px); }
.ch-hub-head { display: grid; gap: 12px; margin-bottom: 12px; }
.ch-sub-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pkg-c1, #46464a) 0%, var(--pkg-c2, #ededef) 55%, rgba(24, 24, 28, .95) 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}
.ch-sub-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .24);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.ch-sub-ic svg { width: 24px; height: 24px; }
.ch-sub-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ch-sub-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-sub-top b { font-size: 16px; font-weight: 800; color: #fff; }
.ch-sub-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}
.ch-sub-badge.ok {
  background: rgba(16, 185, 129, .24);
  border-color: rgba(16, 185, 129, .6);
}
.ch-sub-txt small { font-size: 12.5px; color: rgba(255, 255, 255, .84); }
.ch-search-bar { height: 48px; }
.ch-pkg-tabs { gap: 8px; padding-bottom: 6px; margin-bottom: 8px; }
.ch-pkg-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background: var(--glass);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ch-pkg-tab svg { width: 15px; height: 15px; color: var(--muted); }
.ch-pkg-tab small {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
}
.ch-pkg-tab.on {
  background: linear-gradient(135deg, var(--tab-c, #ededef), rgba(237, 237, 239, .85));
  border-color: rgba(255, 255, 255, .38);
  color: #111114;
  box-shadow: 0 4px 14px rgba(237, 237, 239, .32);
}
.ch-pkg-tab.on svg, .ch-pkg-tab.on small { color: #fff; }
.ch-pkg-tab.on small { background: rgba(0, 0, 0, .25); }
.ch-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}
.ch-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(237, 237, 239, .18);
  border: 1px solid rgba(237, 237, 239, .35);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.ch-live-pill i, .ch-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  display: inline-block;
}
.ch-meta-row small { font-size: 12.5px; color: var(--muted); }
.ch-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}
.ch-grid-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
}
.ch-grid-plate-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
}
.ch-grid-plate-wrap .ch-plate {
  width: 100%;
  height: 100%;
}
.ch-grid-bein {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #414145, #ededef);
  color: #111114;
  font-size: 10px;
  font-weight: 800;
}
.ch-grid-srvs {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}
.ch-grid-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-grid-foot {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ch-grid-cat {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(237, 237, 239, .18);
  border: 1px solid rgba(237, 237, 239, .3);
  color: rgba(255, 255, 255, .92);
}

/* =========================================================================
   Film and series player: the app's own page at every width (2026-11-05).
   Under 1024 px the rules above already draw it. From 1024 px the theatre
   grid gives way to the same page in one centred column: the picture
   first, edge to edge with the app's rounded bottom corners and violet
   glow, the card under it, then the episodes.
   ========================================================================= */
@media (min-width: 1024px) {
  .watch { display: block; max-width: 820px; margin: 0 auto; padding: 0 0 48px; }
  .watch .stage { border-radius: 0 0 4px 4px; padding-top: 0; }
  .watch .stage .box { max-height: none; min-height: 0; }
  .watch .stage.full { border-radius: 0; }
  .watch .side { display: block; max-height: none; overflow: visible; position: static; top: auto; }
  .watch .pcard { margin: 14px 16px; }
  .watch .elist { padding: 6px 16px 0; }
  .watch .ov .tr b { font-size: 18px; }
}

/* Channel cards and zap rows off screen are not laid out or painted until
   they scroll near: the home rails hold dozens of logos with a blurred
   glow each, and the list under a channel the whole category. */
.home-ch-card { content-visibility: auto; contain-intrinsic-size: auto 136px auto 105px; }
.zap-row-v2 { content-visibility: auto; contain-intrinsic-size: auto 100% auto 56px; }

/* =========================================================================
   The channel's picture fills the screen on entry (2026-11-05). The stage
   is the whole viewport, the picture whole inside it (never cropped: a
   score or a ticker must stay in view), and the server line, the match
   and the channel list follow under it as the page scrolls. The stage no
   longer sticks: a full-height stage that stuck would cover the list.
   ========================================================================= */
.ch-mobile-player .ch-mobile-shell { max-width: none; }
.ch-mobile-player .ch-mobile-body { width: 100%; max-width: 820px; margin: 0 auto; box-sizing: border-box; }
.ch-watch .pwrap.ch-stage-sticky { position: relative; top: auto; }
.ch-watch .live-stage { border-radius: 0; border-bottom: 0; }
.ch-watch .live-stage .box { aspect-ratio: auto; max-height: none; height: 100vh; height: 100dvh; }
.ch-watch .live-stage video { object-fit: contain !important; }
.ch-watch .live-stage.full .box { height: 100%; }

/* The overlay's three rows keep their places while the middle one hides
   (connecting, or after a tap): the sound and full-screen buttons stay at
   the foot of the picture instead of climbing into the middle. */
.live-ov .live-tr { grid-row: 1; }
.live-ov .live-mid { grid-row: 2; }
.live-ov .live-bt { grid-row: 3; align-self: end; }

/* =========================================================================
   Packages and channels as the app draws them (2026-11-05). A package is a
   small card (PackageCard): its icon in its own colour, its short name,
   its count; chosen, it fills with that colour. The cards sit on one row
   that slides inside the page's margins. The channel grid is the logo on
   its plate with the name under it, three to a row on a phone.
   ========================================================================= */
.pkg-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.pkg-row::-webkit-scrollbar { display: none; }
.pkg-card {
  flex: none; width: 100px; height: 64px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
  border-color: color-mix(in srgb, var(--pk) 26%, transparent);
  background: color-mix(in srgb, var(--pk) 10%, rgba(255, 255, 255, .05));
  color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; padding: 0 6px;
}
.pkg-card svg { width: 17px; height: 17px; color: var(--pk); }
.pkg-card b { font-size: 12.5px; font-weight: 700; line-height: 1.1; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-card small { font-size: 10px; color: var(--muted); line-height: 1; }
.pkg-card.on { background: var(--pk); background: color-mix(in srgb, var(--pk) 92%, transparent); border-color: var(--pk); color: #fff; }
.pkg-card.on svg { color: #fff; }
.pkg-card.on small { color: rgba(255, 255, 255, .85); }
.channels-page .ch-hub-head { margin-bottom: 6px; }
.ch-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
@media (min-width: 500px) { .ch-hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .ch-hub-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ch-hub-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.ch-grid-tile { padding: 0; gap: 6px; background: none; border: 0; box-shadow: none; contain-intrinsic-size: auto 150px; }
.ch-grid-plate-wrap { aspect-ratio: 1.3; }
.ch-grid-name { font-size: 12.5px; font-weight: 700; min-height: 0; line-height: 1.25; }
.noline { padding-top: calc(var(--top) + 48px); }

/* ---- الإدارة على الويب: لوحة زجاجية بنفس بطاقات التطبيق ---- */
.admin-page .dash { display: grid; gap: 14px; padding: calc(var(--top) + 66px) var(--gutter) 0; }
.dash-head { display: flex; align-items: baseline; gap: 12px; }
.dash-head h1 { font-size: 26px; }
.dash-role { padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: rgba(237, 237, 239, .16); color: var(--accent); }
.dash-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--muted); border: 1px solid transparent; }
.dash-nav a svg { width: 18px; height: 18px; }
.dash-nav a.on { color: var(--ink); background: rgba(237, 237, 239, .18); border-color: rgba(237, 237, 239, .35); }
.dash-main { display: grid; gap: 14px; min-width: 0; align-content: start; }
.dash-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-bar .btn { height: 42px; padding-inline: 14px; }
.dash-bar .btn.on { background: rgba(255, 61, 113, .16); color: #ff8fab; }
.dash-sum { color: var(--muted); font-size: 14px; margin-inline-end: auto; }
.dash-sum small { font-size: 12.5px; }
.dash-pill { flex: 1; min-width: 200px; height: 42px; box-shadow: none; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 6px; display: grid; gap: 6px; }
.kpi i { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; border: 1px solid currentColor; }
.kpi i svg { width: 18px; height: 18px; }
.kpi b { font-family: var(--head); font-size: 26px; line-height: 1; color: var(--ink); }
.kpi span { font-size: 12.5px; color: var(--muted); }
.dash-card { padding: 14px; border-radius: 6px; display: grid; gap: 10px; }
.dash-card .shead { padding: 0; }
.dash-list { display: grid; gap: 10px; }
.dcard { padding: 14px; border-radius: 6px; display: grid; gap: 10px; align-content: start; }
.dcard .top { display: flex; align-items: center; gap: 10px; }
.dcard .top i { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.dcard .top i svg { width: 19px; height: 19px; }
.dcard .top b { flex: 1; min-width: 0; font-family: var(--head); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard small { color: var(--muted); font-size: 12.5px; display: block; font-family: var(--body); font-weight: 400; }
.dcard .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.dcard .meta code, .pick small code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink); }
.dcard .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dcard .acts .btn { height: 38px; padding-inline: 12px; font-size: 13.5px; }
.dcard .acts .btn.out { color: #ff8fab; }
.dash-sub { padding-top: 6px; border-top: 1px solid var(--glass-stroke); }
.dash-ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dash-ul b { display: block; font-size: 14px; }
.tagx { flex: none; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.tagx.ok { background: rgba(74, 222, 128, .14); color: #86efac; }
.tagx.warn { background: rgba(255, 255, 255, .16); color: #ffffff; }
.tagx.bad { background: rgba(255, 61, 113, .16); color: #ff8fab; }
/* ---- important announcements: the admin's pictures edge to edge under the banner,
   their top and foot melting into whatever the page shows there (a mask, not a colour) */
.ads-sec .rail { --rail: 100%; gap: 0; padding: 0; margin: -10px 0 0; scroll-snap-type: x mandatory; scroll-padding-inline: 0; }
.ads-sec .rail > * { scroll-snap-align: center; scroll-snap-stop: always; }
.ad { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; }
.ad img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent); }
.ad .ad-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 4px; }
.ad .ad-cap b { font-family: var(--head); font-size: 15px; font-weight: 700; line-height: 1.35; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.ad-dots { display: flex; justify-content: center; gap: 5px; padding: 6px 0 2px; }
.ad-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); transition: width .3s ease, background .3s ease; }
.ad-dots i.on { width: 18px; background: var(--accent); }
@media (min-width: 1024px) {
  /* on a wide page the announcements are cards side by side, all the same 4:3 size
     (the uploads are made to that box), sliding when more than fit; no fades, rounded */
  /* two of the same size side by side, a lone one wider; 16:9 like the banners */
  .ads-sec .rail { --rail: min(640px, calc(50% - 5px)); gap: 10px; padding: 4px 0 10px; margin: 0 var(--gutter); scroll-snap-type: x proximity; }
  .ads-sec .rail.one { --rail: 800px; }
  /* no frame: each picture melts into the page on all four sides */
  .ad { aspect-ratio: 16 / 9; height: auto; border-radius: 0; background: transparent; box-shadow: none; }
  .ad::before { display: none; }
  .ad img { position: static; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .ad .ad-cap { padding: 44px 28px 14px; }
  .ad .ad-cap b { font-size: 18px; }
  .ad-dots.hidden { display: none; }
}
}
/* the admin's list of them */
.ad-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #17171b, #0b0b0d); }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard.off .ad-thumb { opacity: .45; }
.dcard .acts .btn[disabled] { opacity: .35; pointer-events: none; }
@media (min-width: 1024px) { .ads-admin { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; } }
.tagx.mute { background: rgba(255, 255, 255, .08); color: var(--muted); }
.seatbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.seatbar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(to left, #ededef, #ffffff); }
.seatbar.full span { background: linear-gradient(to left, #ff3d71, #ff8fab); }
.dash-tabs { display: flex; gap: 6px; margin-inline-end: auto; }
.dash-tabs a { padding: 8px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.dash-tabs a.on { color: var(--ink); background: rgba(255, 255, 255, .1); }
.dform { display: grid; gap: 12px; }
.dform label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.dform input { width: 100%; height: 44px; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); padding: 0 12px; font: 400 15px var(--body); outline: 0; }
.dform input:focus { border-color: rgba(237, 237, 239, .6); }
.dform input.ltr { direction: ltr; text-align: left; }
.dform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dsheet .acts2 { margin-top: 16px; }
.dsheet .top .note { font-size: 12.5px; color: var(--muted); }
.pick-list { display: grid; gap: 8px; max-height: 52vh; overflow: auto; padding: 2px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; text-align: start; width: 100%; color: var(--ink); }
.pick i { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.pick i svg { width: 17px; height: 17px; }
.pick.off { opacity: .45; }
.pick.cur { outline: 1px solid rgba(237, 237, 239, .6); }
.pick b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--head); font-size: 14px; }
.pick small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.receipt-img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 6px; background: #000; }
@media (min-width: 1024px) {
  .admin-page .dash { padding: 104px var(--gutter) 10px; grid-template-columns: 240px minmax(0, 1fr); gap: 20px 28px; align-items: start; }
  .dash-head { grid-column: 1 / -1; }
  .dash-head h1 { font-size: 36px; }
  .dash-nav { flex-direction: column; position: sticky; top: 96px; overflow: visible; gap: 6px; }
  .dash-nav a { font-size: 15px; padding: 12px 14px; }
  .kpis { grid-template-columns: repeat(5, 1fr); }
  .kpi { padding: 18px; }
  .kpi b { font-size: 30px; }
  .dash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-list.one { grid-template-columns: 1fr; }
}

/* The channels page with nothing chosen: one rail per package. */
.ch-hub-rails { display: grid; gap: 18px; }
.ch-rail-sec .shead { padding: 0 0 8px; }
.ch-rail-sec .shead .link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 14px; }
.ch-rail-sec .shead .link svg { width: 16px; height: 16px; }
.ch-rail-sec .rail { margin: 0; }

/* Package cards: the whole name on up to two lines, each category in its
   own colour; wider on a desktop. */
.pkg-card { min-width: 112px; width: auto; max-width: 150px; height: 74px; padding: 8px 10px; gap: 4px; background: linear-gradient(color-mix(in srgb, var(--pk) 13%, transparent), color-mix(in srgb, var(--pk) 13%, transparent)), var(--glass); border-color: color-mix(in srgb, var(--pk) 35%, var(--glass-stroke)); }
.pkg-card b { white-space: normal; max-width: 130px; font-size: 12px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.pkg-row { gap: 10px; }
.ch-rail-sec .shead h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ch-rail-sec .shead h2 i { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--pk); }
.ch-rail-sec .shead h2 i svg { width: 16px; height: 16px; }
.ch-rail-more { height: 1px; }
@media (min-width: 1024px) {
  .pkg-card { min-width: 150px; max-width: 190px; height: 84px; padding: 10px 14px; }
  .pkg-card b { max-width: 165px; font-size: 13.5px; }
  .pkg-card svg { width: 20px; height: 20px; }
  .pkg-card small { font-size: 11px; }
  .pkg-row { gap: 12px; }
}

/* ---- إدارة القنوات ---- */
.dsel-wrap { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.dsel { height: 42px; max-width: 320px; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255,255,255,.06); color: var(--ink); padding: 0 10px; font: 400 14px var(--body); outline: 0; }
.dsel.small { height: 34px; font-size: 12.5px; max-width: 120px; }
.btn.glow { box-shadow: 0 0 0 3px rgba(237, 237, 239,.35), 0 8px 22px rgba(237, 237, 239,.35); }
.chm { display: grid; gap: 12px; }
.chm-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.chm-grid { display: grid; gap: 12px; }
.chm-panel { padding: 14px; border-radius: 6px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.chm-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.chm-panel h3 svg { width: 18px; height: 18px; color: var(--accent); }
.chm-panel .note { font-size: 12.5px; }
.chm-bulk { display: flex; gap: 14px; }
.chm-bulk .link { color: var(--accent); font-size: 13px; font-weight: 700; }
.chm-list { display: grid; gap: 6px; max-height: 520px; overflow: auto; padding: 2px; }
.chm-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255,255,255,.04); color: var(--ink); text-align: start; }
.chm-row i { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; flex: none; color: var(--pk, var(--accent)); }
.chm-row i svg { width: 16px; height: 16px; }
.chm-row img { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; }
.chm-row b { flex: 1; min-width: 0; font-family: var(--head); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chm-row b small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; font-family: var(--body); }
.chm-row > small { color: var(--muted); font-size: 11.5px; flex: none; }
.chm-row.off { opacity: .55; }
.chm-row.off b { text-decoration: line-through; }
.btn.mini { height: 32px; padding-inline: 10px; font-size: 12.5px; gap: 4px; }
.btn.mini svg { width: 15px; height: 15px; }
.chm-icons, .chm-tints { display: flex; flex-wrap: wrap; gap: 6px; }
.chm-ic { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--glass-stroke); background: rgba(255,255,255,.05); color: var(--muted); }
.chm-ic svg { width: 16px; height: 16px; }
.chm-ic.on { color: var(--ink); border-color: var(--accent); background: rgba(237, 237, 239,.18); }
.chm-tint { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.chm-tint.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.chm-secs { display: grid; gap: 10px; }
.chm-sec .top i { color: var(--pk); }
.chm-secacts { display: flex; gap: 6px; }
.chm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 12.5px; }
.chip-x button { width: 18px; height: 18px; display: grid; place-items: center; color: var(--muted); }
.chip-x button svg { width: 12px; height: 12px; }
@media (min-width: 1024px) {
  .chm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .chm-list { max-height: calc(100vh - 360px); }
}

/* ---- إدارة القنوات: تصفح الفئات واختيار القنوات ---- */
.chm-row { box-sizing: border-box; }
.chm2 { display: grid; gap: 14px; }
.chm-aside { display: grid; gap: 10px; align-content: start; }
.chm-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chm-aside-head h3, .chm-crumb { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.chm-aside-head h3 svg, .chm-crumb svg { width: 18px; height: 18px; color: var(--accent); }
.chm-secrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--glass-stroke); }
.chm-secrow.target { border-color: color-mix(in srgb, var(--pk) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pk) 40%, transparent); }
.chm-secrow.open { background: color-mix(in srgb, var(--pk) 14%, transparent); }
.chm-secmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: start; color: var(--ink); }
.chm-secmain i { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; color: var(--pk); flex: none; }
.chm-secmain i svg { width: 17px; height: 17px; }
.chm-secmain b { min-width: 0; font-family: var(--head); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.chm-secmain small { display: block; color: var(--muted); font-size: 11.5px; font-family: var(--body); font-weight: 400; }
.chm-secacts .btn.mini { width: 32px; padding: 0; justify-content: center; }
.chm-secacts .btn.mini.on { background: rgba(237, 237, 239,.22); color: var(--ink); }
.chm-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.chm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chm-head .dash-pill { flex: 1; min-width: 220px; }
.chm-crumb { margin-inline-end: auto; }
.chm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.chm-cat { position: relative; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--pk) 35%, var(--glass-stroke)); background: linear-gradient(color-mix(in srgb, var(--pk) 12%, transparent), color-mix(in srgb, var(--pk) 12%, transparent)), var(--glass); }
.chm-cat.off { opacity: .5; }
.chm-catmain { width: 100%; display: grid; justify-items: start; gap: 6px; padding: 12px 12px 12px 40px; text-align: start; color: var(--ink); }
.chm-catmain i { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; color: var(--pk); }
.chm-catmain i svg { width: 17px; height: 17px; }
.chm-catmain b { font-family: var(--head); font-size: 13.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chm-catmain small { color: var(--muted); font-size: 11.5px; }
.chm-eye { position: absolute; inset-inline-start: 8px; top: 8px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: rgba(74,222,128,.14); color: #86efac; }
.chm-eye.off { background: rgba(255,61,113,.16); color: #ff8fab; }
.chm-eye svg { width: 14px; height: 14px; }
.chm-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-stroke); }
.chm-tools .link { color: var(--accent); font-size: 13px; font-weight: 700; }
.chm-sp { flex: 1; }
.chm-addto { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.chm-row.ch { cursor: pointer; }
.chm-check { width: 18px; height: 18px; accent-color: #ededef; flex: none; }
.chm-main .chm-list { max-height: none; }
@media (min-width: 1024px) {
  .chm2 { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .chm-aside { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
  .chm-main .chm-list { max-height: calc(100vh - 330px); }
}

/* إدارة القنوات: بطاقة الفئة صفٌّ واحد، الأقسام في لوح زجاجي */
.chm-cats { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chm-cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 64px; }
.chm-catmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; justify-items: initial; }
.chm-catmain i { width: 38px; height: 38px; flex: none; }
.chm-catmain .txt { min-width: 0; display: grid; gap: 2px; }
.chm-catmain b { font-size: 13.5px; }
.chm-eye { position: static; flex: none; width: 30px; height: 30px; }
.chm-aside { padding: 14px; border-radius: 6px; background: var(--glass); border: 1px solid var(--glass-stroke); }
.chm-aside .note { font-size: 12.5px; }
.chm-secrow { padding: 8px; }
.chm-secacts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chm-secacts .btn.mini { width: 30px; height: 30px; }
.chm-main .chm-head { padding: 10px 12px; border-radius: 6px; background: var(--glass); border: 1px solid var(--glass-stroke); }
.chm-main > .note { margin: 0; }
.dash-bar .dsel-wrap { margin-inline-end: auto; }
@media (min-width: 1024px) {
  .chm2 { grid-template-columns: 280px minmax(0, 1fr); }
  .chm-cats { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

/* ---- إدارة القنوات: قائمة تنقّل ومحتوى ---- */
.cm-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-bar .dsel-wrap svg { width: 18px; height: 18px; color: var(--accent); }
.cm-bar .btn { height: 42px; }
.cm { display: grid; gap: 14px; }
.cm-nav { padding: 12px; border-radius: 6px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cm-pill { height: 42px; box-shadow: none; }
.cm-group { display: grid; gap: 8px; }
.cm-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-group-head h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.cm-group-head h3 svg { width: 16px; height: 16px; color: var(--accent); }
.cm-group-head h3 small { color: var(--muted); font-size: 12px; font-weight: 400; }
.cm-list { display: grid; gap: 4px; }
.cm-cats { max-height: 420px; overflow: auto; padding-inline-end: 2px; }
.cm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; text-align: start; color: var(--ink); border: 1px solid transparent; }
.cm-item:hover { background: rgba(255,255,255,.05); }
.cm-item.on { background: color-mix(in srgb, var(--pk) 16%, transparent); border-color: color-mix(in srgb, var(--pk) 45%, transparent); }
.cm-item.off { opacity: .55; }
.cm-item i { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; flex: none; color: var(--pk); background: color-mix(in srgb, var(--pk) 14%, transparent); }
.cm-item i svg { width: 15px; height: 15px; }
.cm-item .txt { flex: 1; min-width: 0; display: grid; }
.cm-item b { font-family: var(--head); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-item small { color: var(--muted); font-size: 11.5px; }
.cm-dot { width: 8px; height: 8px; border-radius: 50%; background: #86efac; box-shadow: 0 0 0 3px rgba(134,239,172,.2); flex: none; }
.cm-main { padding: 14px; border-radius: 6px; display: grid; gap: 12px; align-content: start; min-width: 0; min-height: 420px; }
.cm-empty { display: grid; gap: 18px; }
.cm-kpis.kpis { grid-template-columns: repeat(2, 1fr); }
.cm-hint { padding: 14px 16px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-stroke); }
.cm-hint h3 { font-size: 15px; margin-bottom: 8px; }
.cm-hint ol { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.cm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-head > i { width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; color: var(--pk); flex: none; }
.cm-head > i svg { width: 20px; height: 20px; }
.cm-head .txt { flex: 1; min-width: 0; }
.cm-head h2 { font-size: 18px; line-height: 1.2; }
.cm-head small { color: var(--muted); font-size: 12.5px; }
.cm-headacts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-stroke); }
.cm-tools .link { color: var(--accent); font-size: 13px; font-weight: 700; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cm-tile { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 6px; cursor: pointer; border: 1px solid var(--glass-stroke); text-align: center; }
.cm-tile.sel { border-color: rgba(237, 237, 239,.7); box-shadow: inset 0 0 0 1px rgba(237, 237, 239,.5); background: rgba(237, 237, 239,.1); }
.cm-tile.off { opacity: .5; }
.cm-tile .cm-check { position: absolute; top: 8px; inset-inline-start: 8px; width: 18px; height: 18px; accent-color: #ededef; z-index: 1; }
.cm-plate { aspect-ratio: 1; border-radius: 5px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.cm-plate img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.cm-plate i { color: #999; }
.cm-plate i svg { width: 28px; height: 28px; }
.cm-tile b { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.cm-tile small { color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-tile .tagx { justify-self: center; }
@media (min-width: 1024px) {
  .cm { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
  .cm-nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
  .cm-cats { max-height: none; overflow: visible; }
  .cm-kpis.kpis { grid-template-columns: repeat(5, 1fr); }
  .cm-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}

/* إدارة القنوات: صف القسم بأزراره، وأزرار الكل */
.cm-item { display: flex; align-items: center; gap: 4px; padding: 0; }
.cm-itemmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; text-align: start; color: var(--ink); }
.cm-itemmain > svg:last-child { width: 14px; height: 14px; color: var(--muted); flex: none; transform: scaleX(-1); }
.cm-item.on .cm-itemmain > svg:last-child { color: var(--ink); }
.cm-itemacts { display: flex; gap: 2px; padding-inline-end: 4px; }
.cm-ib { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.cm-ib:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.cm-ib.out:hover { color: #ff8fab; }
.cm-ib svg { width: 14px; height: 14px; }
.cm-group-head { flex-wrap: wrap; }
.cm-bulk { display: flex; gap: 12px; }
.cm-bulk .link, .cm-tools .link.out { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.cm-bulk .link.out, .cm-tools .link.out { color: #ff8fab; }
.cm-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-quick .btn { height: 44px; }

/* ---- cinema atmosphere: a title's page in its poster's colours, in the genre's mood */
.page.atm { position: relative; isolation: isolate; --atm1: 157 107 255; --atm2: 16 10 30; }
.atm-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atm-bg::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, rgb(var(--atm2) / .92), rgb(var(--atm2) / .6) 60vh, rgb(var(--atm2) / .25) 130vh, transparent 190vh); opacity: 0; transition: opacity 1.4s ease; }
.atm-bg img { position: absolute; left: -12%; top: -8%; width: 124%; height: 120vh; object-fit: cover; filter: blur(44px) saturate(1.2); transform: scale(1.08); opacity: 0; transition: opacity 1.6s ease; }
.atm-bg .atm-light { position: absolute; left: 0; right: 0; top: 0; height: 90vh; background: radial-gradient(60% 50% at 50% 0%, rgb(var(--atm1) / .34), transparent 70%); opacity: 0; transition: opacity 1.6s ease; }
.atm-bg::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 1.4s ease; }
.page.atm-colored .atm-bg::before, .page.atm-colored .atm-bg .atm-light, .page.atm-colored .atm-bg::after { opacity: 1; }
.atm-bg.on img { opacity: .42; }
/* the moods */
.mood-dark .atm-bg img { filter: blur(44px) saturate(.55) brightness(.6); }
.mood-dark .atm-bg::after { background: radial-gradient(90% 70% at 50% 30%, transparent 30%, rgba(0, 0, 0, .66) 100%); }
.mood-dark .atm-bg .atm-light { background: radial-gradient(60% 50% at 50% 0%, rgb(var(--atm1) / .16), transparent 70%); }
.mood-cool .atm-bg img { filter: blur(44px) saturate(1.05) brightness(.85) hue-rotate(-8deg); }
.mood-cool .atm-bg::after { background: linear-gradient(165deg, rgba(70, 130, 255, .22), rgba(5, 5, 6, 0) 55%), linear-gradient(to top, rgba(10, 40, 90, .22), transparent 60%); }
.mood-warm .atm-bg img { filter: blur(44px) saturate(1.35) brightness(.95); }
.mood-warm .atm-bg::after { background: linear-gradient(160deg, rgba(237, 237, 239, .22), rgba(255, 64, 128, .1) 55%, transparent 80%); }
.mood-strong .atm-bg img { filter: blur(36px) contrast(1.35) saturate(1.45); }
.mood-strong .atm-bg::after { background: radial-gradient(70% 40% at 50% -5%, rgba(255, 255, 255, .1), transparent 60%), radial-gradient(100% 70% at 50% 60%, transparent 40%, rgba(0, 0, 0, .45) 100%); }
/* the watch button carries the poster's light and breathes with it */
.page.atm .dblock .liquid.wide { box-shadow: 0 14px 40px rgb(var(--atm1) / .45), 0 2px 10px rgba(0, 0, 0, .35); animation: atm-breathe 3.6s ease-in-out infinite; transition: transform .2s ease; }
.page.atm .dblock .liquid.wide:hover { transform: translateY(-1px); }
@keyframes atm-breathe {
  0%, 100% { box-shadow: 0 14px 40px rgb(var(--atm1) / .4), 0 2px 10px rgba(0, 0, 0, .35); }
  50% { box-shadow: 0 16px 54px rgb(var(--atm1) / .64), 0 2px 10px rgba(0, 0, 0, .35); }
}
/* the facts, the name, the button and the story settle in, one after the other */
.page.atm .dblock > div:first-child > * { animation: atm-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.page.atm .dblock > div:first-child > :nth-child(2) { animation-delay: .08s; }
.page.atm .dblock > div:first-child > :nth-child(3) { animation-delay: .16s; }
.page.atm .dblock > div:first-child > :nth-child(4) { animation-delay: .24s; }
.page.atm .dblock > div:first-child > :nth-child(5) { animation-delay: .3s; }
.page.atm .dblock > div:first-child > :nth-child(n + 6) { animation-delay: .36s; }
@keyframes atm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page.atm .dblock > div:first-child > *, .page.atm .dblock .liquid.wide { animation: none; } }
html.tv .page.atm .dblock > div:first-child > *, html.tv .page.atm .dblock .liquid.wide { animation: none; }
html.tv .atm-bg img { filter: blur(44px) saturate(1.1); }

/* ---- the sports portal on the desktop: a picture of the page, not a framed card */
@media (min-width: 1024px) {
  .portal-hero-wrap { padding-inline: 0; }
  .portal-hero-card, .portal-hero-card:hover { border-radius: 0; border: 0; box-shadow: none; transform: none; }
}

/* ---- invite a friend (the account page) and the invite code on the request form */
.invite { padding: 14px; border-radius: 6px; display: grid; gap: 8px; }
.invite .shead { padding: 0; }
.invite .code { font: 800 28px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 6px; direction: ltr; text-align: center; padding: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-stroke); }
.invite .acts { display: flex; gap: 8px; }
.invite .acts .btn { flex: 1; }
.rq-code { display: grid; gap: 6px; margin: 6px 0 12px; }
.rq-code label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.rq-code input { width: 100%; height: 44px; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); padding: 0 12px; font: 600 16px ui-monospace, Menlo, monospace; letter-spacing: 3px; text-transform: uppercase; outline: 0; }
.rq-code input:focus { border-color: rgba(237, 237, 239, .6); }

/* ---- the television's search: a keyboard drawn on the screen beside the
   results, every key a card for the remote; the bar's search is a link */
html.tv .deskbar .tvfind { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; height: 42px; width: 280px; padding: 0 14px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 14px; }
html.tv .deskbar .tvfind svg { width: 18px; height: 18px; }
html.tv .deskbar .tvfind[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .11); }
html.tv .tvsearch { padding: 28px 48px 40px; min-height: 100vh; }
html.tv .tvs-top { margin-bottom: 20px; }
html.tv .tvq { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: var(--ink); font: 700 24px var(--body); text-align: start; }
html.tv .tvq > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
html.tv .tvq .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.tv .tvq .ph { color: var(--muted); font-weight: 400; font-size: 18px; }
html.tv .tvq .caret { flex: none; width: 2px; height: 28px; margin-inline-start: 2px; background: var(--accent); }
html.tv.remote .tvq:focus { background: rgba(255, 255, 255, .13); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(237, 237, 239, .5); }
html.tv .tvres { min-width: 0; }
html.tv .tvres .grid { padding: 0; margin-top: 0 !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 12px; }
html.tv .tvres .shead, html.tv .tvres .recent, html.tv .tvres .wrap { padding-left: 0; padding-right: 0; }
html.tv .tvres .shead { padding-top: 0; padding-bottom: 10px; }
html.tv .tvres .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html.tv .tvres .cat { height: 64px; }
html.tv .tvres .recent { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
html.tv .tvres .recent span { height: 44px; font-size: 14px; }
/* the keyboard: a panel that rises from the foot of the screen */
html.tv .tvkb-back { background: transparent; }
html.tv .tvkb {
  position: fixed; z-index: 60; top: auto; bottom: 0; inset-inline-start: var(--railw); inset-inline-end: 0;
  width: auto; max-width: none; max-height: none; height: auto; margin: 0; transform: none; animation: none;
  padding: 14px 24px 18px; border-radius: 14px 14px 0 0; background: rgba(12, 12, 14, .98); border: 0; border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
}
html.tv .tvkb .tvkeys { width: min(880px, 100%); margin: 0 auto; display: grid; gap: 7px; }
html.tv .tvkb .krow { display: flex; justify-content: center; gap: 7px; }
html.tv .tvkb .key { width: 64px; height: 50px; flex: none; border-radius: 7px; background: rgba(255, 255, 255, .1); color: var(--ink); font: 600 21px var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
html.tv .tvkb .key.wide { width: auto; flex: 1; font-size: 15px; font-weight: 700; }
html.tv .tvkb .key.space { flex: 2.2; }
html.tv .tvkb .key.go { background: var(--primary-strong); color: #111114; }
html.tv .tvkb .key svg { width: 17px; height: 17px; }
html.tv.remote .tvkb .key:focus { background: var(--primary); color: #111114; box-shadow: 0 0 0 3px #fff; }
html.tv .tvkb .krow[dir="ltr"] .key { font-family: var(--body); }

/* ---- the first time on a television: how the remote moves the site; and
   a note for a browser whose arrows only move a pointer */
.tvhint { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; display: grid; place-items: center; background: rgba(4, 4, 6, .84); }
.tvhint-box { width: 600px; max-width: calc(100% - 80px); padding: 34px 38px; border-radius: 10px; background: #141416; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; gap: 20px; text-align: center; }
.tvhint-box > b { font-family: var(--head); font-size: 30px; }
.tvhelp { display: grid; gap: 12px; text-align: start; }
.tvhelp span { display: flex; align-items: center; gap: 14px; font-size: 16.5px; }
.tvhelp i { flex: none; min-width: 60px; height: 42px; padding: 0 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: .5px; direction: ltr; }
.tvhelp i svg { width: 18px; height: 18px; }
.tvhint-box .btn { height: 54px; font-size: 17px; }
html.tv.remote .tvhint-box .btn:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .6); }
.tvnote { position: fixed; z-index: 70; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 20px; border-radius: 6px; background: #18181c; font-size: 15px; line-height: 1.6; max-width: 820px; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }


/* ---- friends, chats, points, invitations (Supabase 0017–0020) */
.friends .ftitle { font-size: 22px; margin: 6px 0 12px; }
.fhead { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.fhead .gbtn { width: 42px; height: 42px; }
.fsearch { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 14px; min-width: 0; }
.fsearch svg { width: 17px; height: 17px; flex: none; }
.fsearch span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fsearch.has input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 400 16px var(--body); outline: 0; }
.ftabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 999px; margin: 10px 0 12px; }
.ftabs a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ftabs a.on { background: rgba(237, 237, 239, .28); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(237, 237, 239, .5); }
.fcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.fbadge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.fbadge[hidden] { display: none; }
.fsec { font-size: 15px; color: var(--muted); margin: 14px 4px 8px; font-weight: 700; }
.flist { display: grid; gap: 8px; }
.ftile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 3px; color: var(--ink); text-align: start; min-width: 0; width: 100%; font: inherit; border: 1px solid var(--glass-stroke); }
.ftile.strong { background: var(--glass-strong); }
.ftile .ft { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ftile .ft b { font-family: var(--head); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftile .ft b small { color: var(--muted); font-weight: 400; font-size: 11.5px; margin-inline-start: 6px; font-family: var(--body); }
.fsub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsub.on { color: var(--success); }
.fav { position: relative; flex: none; display: inline-block; }
.fav .avatar, .avatar.sm { width: 44px; height: 44px; font-size: 18px; }
.avatar.xs { width: 18px; height: 18px; font-size: 9px; border-width: 1px; margin-inline-end: 4px; vertical-align: middle; }
.fav.on::after { content: ""; position: absolute; bottom: 0; inset-inline-end: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg); }
.fav.big .avatar { width: 88px; height: 88px; font-size: 34px; }
.fav.big.on::after { width: 18px; height: 18px; border-width: 3px; }
.facts { display: flex; gap: 6px; }
.gbtn.ok svg { color: var(--success); }
.gbtn.bad svg { color: var(--live); }
.fwhen { display: grid; justify-items: end; gap: 4px; font-size: 11.5px; color: var(--muted); flex: none; }
.fwhen svg { width: 13px; height: 13px; }
.chip.addf { background: var(--primary-strong); border-color: transparent; color: #111114; }
.tag.bad { background: rgba(255, 61, 113, .18); color: #ff8fab; }
.fprof { display: grid; justify-items: center; gap: 6px; padding: 22px 18px 18px; border-radius: 6px; text-align: center; margin-bottom: 10px; }
.fprof h1 { font-size: 22px; margin-top: 6px; }
.fprof .fuser { color: var(--muted); font-size: 14px; }
.fprof .chips { justify-content: center; margin-top: 6px; }
.friends .acts2 { display: flex; gap: 8px; margin: 0 0 10px; }
.friends .acts2 .btn { flex: 1; margin: 0; }
.friends .rows .nrow b small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; font-family: var(--body); }
.nrow.sw { cursor: pointer; }
.nrow.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.nrow.sw .knob { flex: none; width: 42px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, .14); position: relative; transition: background .2s; }
.nrow.sw .knob::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.nrow.sw input:checked + .knob { background: var(--primary); }
.nrow.sw input:checked + .knob::after { transform: translateX(-18px); }
[dir="ltr"] .nrow.sw input:checked + .knob::after { transform: translateX(18px); }
.fpanel { padding: 14px; border-radius: 6px; display: grid; gap: 8px; margin: 10px 0; }
.fpanel > b { font-family: var(--head); font-size: 15px; }
.fline { display: flex; align-items: center; gap: 8px; }
.fline .at { color: var(--muted); font-size: 18px; }
.fline input { flex: 1; min-width: 0; height: 42px; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); padding: 0 12px; font: 400 16px var(--body); outline: 0; }
.fline .btn { margin: 0; height: 42px; }
.fsheet textarea, .fsheet input[type="text"], .fsheet input[type="number"], .fsheet input[type="search"], .fsend input { width: 100%; border-radius: 6px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .06); color: var(--ink); padding: 10px 12px; font: 400 16px var(--body); outline: 0; margin-top: 10px; box-sizing: border-box; }
.fsheet .flist { max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.fsheet .chips { flex-wrap: wrap; margin-top: 6px; }
.fsheet .nrow { width: 100%; text-align: start; font: inherit; color: var(--ink); }
.fsend .top { margin-bottom: 8px; }
.fsend .fbal { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.fsend .fbal svg { width: 16px; height: 16px; color: var(--accent); }
.fsend .fbal b { color: var(--accent); font-size: 18px; }
.fsend input[type="number"] { font-size: 28px; text-align: center; font-family: var(--head); }
.fsend .chips { justify-content: center; margin-top: 8px; }
.fsend .btn.wide { margin-top: 14px; }
.fsend .acts2 { display: flex; gap: 8px; margin-top: 14px; }
.fsend .acts2 .btn { flex: 1; margin: 0; }
.fsend .acts2 .btn.primary { flex: 2; }
.fto { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.fto .avatar { width: 48px; height: 48px; font-size: 20px; }
.fto > span { flex: 1; display: grid; }
.fto small { color: var(--muted); font-size: 12px; }
.fto .amt { font-size: 26px; color: var(--accent); font-family: var(--head); }
.fquote { padding: 10px 12px; border-radius: 6px; display: grid; gap: 4px; }
.fline2 { display: flex; justify-content: space-between; font-size: 14px; }
.fline2 span:first-child { color: var(--muted); }
.fdone { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 10px 0; }
.fdone i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.fdone i svg { width: 34px; height: 34px; color: var(--success); }
.note.bad { color: #ff8fab; }
.fpoints { padding: 18px; border-radius: 6px; display: grid; gap: 6px; margin-top: 8px; }
.fpoints .top { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.fpoints .top svg { width: 22px; height: 22px; color: var(--accent); }
.fpoints .bal { display: flex; align-items: baseline; gap: 6px; }
.fpoints .bal b { font-size: 40px; font-family: var(--head); color: var(--accent); line-height: 1; }
.fpoints .bal small { color: var(--muted); }
.fpoints .acts2 { margin: 10px 0 0; }
.frule { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 3px; background: var(--glass); margin: 10px 0; }
.frule svg { width: 16px; height: 16px; flex: none; }
.fico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fico svg { width: 16px; height: 16px; }
.delta { font-family: var(--head); font-size: 16px; color: var(--muted); }
.delta.plus { color: var(--success); }
.invcard { border-radius: 6px; padding: 12px; display: grid; gap: 10px; }
.invcard .row { display: flex; gap: 12px; align-items: center; }
.invcard .cover { width: 56px; height: 80px; border-radius: 3px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--frost); }
.invcard.compact .cover { width: 44px; height: 62px; }
.invcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.invcard .txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.invcard .txt small { color: var(--muted); font-size: 12px; display: flex; align-items: center; }
.invcard .txt b { font-family: var(--head); font-size: 15px; }
.invcard .st { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.invcard .st svg { width: 12px; height: 12px; }
.invcard .st.pend { color: var(--accent); }
.invcard .st.ok { color: var(--success); }
.invcard .acts2 { display: flex; gap: 8px; margin: 0; }
.invcard .acts2 .btn { flex: 1; margin: 0; height: 42px; }

/* the chat page */
.chatpage { display: flex; flex-direction: column; height: 100dvh; min-height: 100vh; padding: 0; }
.chead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 8px 6px; border-radius: 6px; }
.chead .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.chead .who > span:last-child { display: grid; min-width: 0; }
.chead .who b { font-family: var(--head); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chead .who small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.chead .who small.on { color: var(--success); }
.chead .who small svg { width: 11px; height: 11px; }
.chead .fav .avatar { width: 38px; height: 38px; font-size: 16px; }
.chead .gbtn { width: 38px; height: 38px; }
.clist { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.clist.admin { max-height: 60vh; }
.cday { text-align: center; margin: 10px 0 4px; }
.cday span { background: var(--frost); padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.crow { display: flex; justify-content: flex-start; }
.crow.mine { justify-content: flex-end; }
.cb { max-width: 76%; padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; background: var(--glass); border: 1px solid var(--glass-stroke); display: grid; gap: 3px; justify-items: end; }
.cb.mine { background: rgba(237, 237, 239, .3); border-color: rgba(237, 237, 239, .35); border-radius: 14px 14px 4px 14px; }
.cb.flag { background: rgba(255, 61, 113, .18); }
.cb.pic { padding: 4px; }
.ctext { font-size: 14.5px; line-height: 1.5; justify-self: start; white-space: pre-wrap; word-break: break-word; }
.ctext.big { font-size: 34px; line-height: 1.2; }
.cdel { display: flex; align-items: center; gap: 6px; color: var(--muted); font-style: italic; font-size: 13px; }
.cdel svg { width: 13px; height: 13px; }
.cfoot { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.cfoot .tick svg { width: 12px; height: 12px; }
.cfoot .tick.read svg { color: var(--accent); }
.cfoot .tick.bad svg { color: var(--live); }
.cfail { color: #ff8fab; font-size: 11px; }
.cimg { display: block; border-radius: 10px; overflow: hidden; background: var(--frost); display: grid; place-items: center; }
.cimg img { width: 100%; height: 100%; object-fit: cover; }
.cvoice { display: flex; align-items: center; gap: 10px; width: 200px; }
.vplay { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--frost); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.vplay svg { width: 16px; height: 16px; }
.vbar { flex: 1; display: grid; gap: 5px; min-width: 0; }
.vline { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.vline i { display: block; height: 100%; width: 0; background: var(--accent); }
.vmeta { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.vmeta svg { width: 11px; height: 11px; }
.ctitle { display: grid; gap: 8px; width: 230px; }
.ctitle .row { display: flex; gap: 10px; align-items: center; }
.ctitle .cover { width: 54px; height: 78px; border-radius: 6px; overflow: hidden; background: var(--frost); display: grid; place-items: center; flex: none; }
.ctitle .cover img { width: 100%; height: 100%; object-fit: cover; }
.ctitle .txt { display: grid; gap: 2px; min-width: 0; }
.ctitle .txt small { color: var(--accent); font-size: 11.5px; }
.ctitle .txt b { font-family: var(--head); font-size: 14px; }
.ctitle .btn { height: 36px; margin: 0; font-size: 13px; justify-self: stretch; }
.cpoints { display: grid; gap: 6px; width: 210px; }
.cpoints .row { display: flex; align-items: center; gap: 10px; }
.cpoints i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.cpoints i svg { width: 16px; height: 16px; color: var(--accent); }
.cpoints small { color: var(--muted); font-size: 11.5px; display: block; }
.cpoints b { color: var(--accent); font-family: var(--head); }
.cpoints .q { font-size: 13px; }
.cpoints .ref { color: var(--muted); font-size: 11px; }
.cinv { display: block; width: 260px; }
.cinv .invcard { padding: 0; background: none; border: 0; }
.cempty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 20px; color: var(--muted); }
.cempty b { color: var(--ink); font-family: var(--head); font-size: 16px; }
.ccomp { padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.ccomp .pemoji { padding: 6px; border-radius: 6px; background: var(--glass); }
.cbar { display: flex; align-items: flex-end; gap: 6px; }
.cfield { flex: 1; display: flex; align-items: flex-end; gap: 2px; padding: 2px 4px; border-radius: 24px; min-width: 0; }
.cfield textarea { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 400 16px var(--body); outline: 0; resize: none; padding: 11px 4px; max-height: 120px; line-height: 1.4; }
.cfield .gbtn, .cfield .pem { width: 40px; height: 40px; background: none; }
.csend { width: 48px; height: 48px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--primary-strong), var(--primary)); color: #111114; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 4px 14px rgba(237, 237, 239, .35); }
.csend svg { width: 20px; height: 20px; }
.cnote { text-align: center; padding: 12px; border-radius: 3px; background: var(--glass); }
.crec { display: flex; align-items: center; gap: 10px; margin: 0 10px 6px; padding: 6px 6px 6px 14px; border-radius: 999px; }
.crec .rdot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: pulse 1s infinite alternate; }
.crec b { font-family: var(--head); }
.crec .rhint { flex: 1; font-size: 12px; color: var(--muted); }
.crec .csend { width: 44px; height: 44px; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }
.rmsg { display: block; padding: 8px; border-radius: 8px; background: rgba(255, 61, 113, .12); }
.kpis { grid-template-columns: repeat(2, 1fr); }
.dcard .amt { margin-inline-start: auto; font-family: var(--head); font-size: 16px; }
.deskbar .ic.friends { position: relative; }
.tbtn.friends { position: relative; }
@media (min-width: 1024px) {
  .friends .wrap { max-width: 860px; margin: 0 auto; }
  .chatpage { max-width: 900px; margin: 0 auto; width: 100%; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
}

.pcontrol { display: flex; align-items: center; gap: 8px; padding: 6px 12px 0; font-size: 12px; color: var(--muted); }
.pcontrol svg { width: 14px; height: 14px; flex: none; }
.pcontrol span { flex: 1; }
.pcontrol .chip.dense { height: 28px; font-size: 12px; }
.pemoji.react { border-top: 1px solid var(--glass-stroke); padding-top: 6px; }
.preact { position: absolute; left: 16px; right: auto; bottom: 64px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; z-index: 4; }
.rfly { display: flex; align-items: center; gap: 6px; font-size: 30px; animation: rfly 2.4s ease-out both; }
.rfly small { font-size: 11px; color: #fff; text-shadow: 0 0 6px #000; }
@keyframes rfly { 0% { opacity: 1; translate: 0 0; } 80% { opacity: 1; translate: 0 -34px; } 100% { opacity: 0; translate: 0 -44px; } }
.dblock .acts.social { margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.dblock .acts.social .chip { height: 36px; }
.homebar .tbtn.friends { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.homebar .tbtn.friends svg { width: 20px; height: 20px; }

/* friends pages: under the notch, with a head of their own (bare pages draw no bar) */
.page.friends { padding: calc(var(--top) + 10px) 0 30px; }
.nhead.fh { margin: 0 0 8px; }
.nhead.fh .gbtn { width: 38px; height: 38px; border-radius: 50%; }
.nhead.fh h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friends .fhead { margin-top: 2px; }
.chead { margin-top: calc(var(--top) + 8px); }
.chatpage .clist { padding-top: 6px; }
.ftile .ft b { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ftile .ft b small { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.ftabs a { min-width: 0; padding: 0 4px; }
.ftabs a .fcount { flex: none; }
.invcard .acts2 .btn { min-width: 0; padding: 0 10px; font-size: 13.5px; }
.invcard .acts2 .btn svg { flex: none; }
.friends .acts2 .btn { min-width: 0; padding: 0 12px; }
.fprof h1 { white-space: normal; word-break: break-word; }

/* five tabs; the friends one carries a dot while something waits */
.tabs { grid-template-columns: repeat(5, 1fr); }
.tabs a.fdot { position: relative; }
.tabs a.fdot.dot::after { content: ""; position: absolute; top: 8px; inset-inline-start: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--live); border: 1.5px solid var(--bg-deep); }
/* the friends tab under the title bar: who is online, then the search */
.page.friends.tabbed { padding-top: calc(var(--top) + 60px); }
.fonline { padding: 0 0 4px; }
.fonline-h { display: flex; align-items: center; gap: 6px; padding: 0 var(--gutter) 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ondot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.fonline-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.fonline-row::-webkit-scrollbar { display: none; }
.fon { flex: none; width: 56px; display: grid; justify-items: center; gap: 4px; color: var(--ink); }
.fon small { font-size: 11px; max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fresults .fnew { margin-top: 10px; }
.fresults .nrow b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhead .fsearch.has { height: 44px; }

/* the phone's account: six rows, pages under them */
.acct .rows .nrow b small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; font-family: var(--body); }
.friends .fpoints { display: block; color: var(--ink); }
.friends .stats { margin-top: 4px; }

/* friends on a wide screen: under the 72 px header, one centred column */
@media (min-width: 1024px) {
  .page.friends, .page.friends.tabbed { padding-top: 100px; padding-bottom: 40px; max-width: none; }
  /* the desktop gutter is hundreds of pixels: inside the column it is 24 */
  .friends .wrap, .friends .fonline, .friends .fresults { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
  .friends .fonline { padding-bottom: 10px; }
  .friends .fonline-h, .friends .fonline-row { padding-left: 0; padding-right: 0; }
  .friends .fresults { padding-top: 0; }
  .friends .fon .avatar.sm { width: 52px; height: 52px; font-size: 20px; }
  .friends .fhead .fsearch { height: 48px; font-size: 15px; }
  .friends .ftabs a { height: 40px; font-size: 14.5px; }
  .friends .ftile { padding: 12px 14px; }
  .friends .fprof { padding: 28px 24px 22px; }
  .chatpage { padding-top: 12px; }
  .chatpage .chead { margin-top: 12px; }
  .cb { max-width: 62%; }
}

/* the chat composer: a bare emoji icon, the field, the paperclip, send */
.cemo { width: 44px; height: 48px; display: grid; place-items: center; color: var(--ink); opacity: .85; flex: none; }
.cemo svg { width: 26px; height: 26px; }
.cfield { padding: 2px 14px; }
.cattach { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.cattach svg { width: 20px; height: 20px; }
.epanel { border-radius: 10px; padding: 6px; display: grid; gap: 6px; height: 270px; grid-template-rows: auto 1fr; }
.ecats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ecats::-webkit-scrollbar { display: none; }
.ecats button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid transparent; font-size: 12.5px; color: var(--muted); }
.ecats button span { font-size: 15px; }
.ecats button svg { width: 14px; height: 14px; }
.ecats button.on { background: rgba(237, 237, 239, .28); border-color: rgba(237, 237, 239, .5); color: var(--ink); }
.egrid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 2px; align-content: start; }
.egrid button { height: 42px; font-size: 26px; border-radius: 8px; line-height: 1; }
.egrid button:hover { background: rgba(255, 255, 255, .08); }
.cfile { display: flex; align-items: center; gap: 10px; width: 230px; color: var(--ink); }
.cfile i { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.cfile i svg { width: 20px; height: 20px; }
.cfile .txt { min-width: 0; display: grid; gap: 2px; }
.cfile b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfile small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.cfile small svg { width: 12px; height: 12px; }
.page.friends.tabbed { padding-top: calc(var(--top) + 10px); }

/* what friends watch (home) */
.fwrail { display: flex; gap: 12px; overflow-x: auto; padding: 4px var(--gutter) 10px; scrollbar-width: none; }
.fwrail::-webkit-scrollbar { display: none; }
.fwcard { flex: none; width: 112px; color: var(--ink); display: grid; gap: 4px; }
.fwcard .poster { position: relative; display: block; width: 112px; height: 150px; border-radius: 3px; overflow: hidden; background: var(--frost); }
.fwcard .poster img { width: 100%; height: 100%; object-fit: cover; }
.fwcard .poster svg { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; color: var(--muted); }
.fwcard .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--primary); }
.fwcard .fav { position: absolute; top: -4px; inset-inline-start: -4px; }
.fwcard .fav .avatar { width: 28px; height: 28px; font-size: 12px; border: 2px solid var(--bg); margin: 0; }
.fwcard b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwcard small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rwtile .rwbtn { height: 38px; padding: 0 14px; margin: 0; font-size: 13.5px; }
.frule.ok { color: var(--success); }
.frule.ok svg { color: var(--success); }
@media (min-width: 1024px) { .fwcard { width: 140px; } .fwcard .poster { width: 140px; height: 190px; } }

/* a match for points */
.mp-box { display: grid; gap: 8px; }
.mp-match { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 6px; }
.mp-match svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.mp-match b { font-family: var(--head); font-size: 15px; }
.mp-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.mp-line svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.mp-bal { font-size: 13px; color: var(--muted); }
.mp-bal b.ok { color: var(--success); }
.mp-bal b.bad, .mp-bal span.bad { color: #ff8fab; }
.mp-box .acts2 { display: flex; gap: 8px; }
.mp-box .acts2 .btn { flex: 1; margin: 0; }
.mp-how b { display: flex; align-items: center; gap: 6px; font-family: var(--head); }
.mp-how b svg { width: 16px; height: 16px; color: var(--accent); }
.mp-how ol { margin: 4px 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink); }

/* the points rules, each with what it does */
.nrow.rrow { align-items: center; }
.nrow.rrow .rtxt { display: grid; gap: 2px; min-width: 0; flex: 1; text-align: start; }
.nrow.rrow .rtxt small { color: var(--muted); font-size: 11.5px; line-height: 1.4; white-space: normal; }

/* the packages page: trophy, headline, and the Plus card with the ball */
.phero { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 4px 0 6px; }
.ptrophy { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(237, 237, 239, .55), rgba(237, 237, 239, .25)); border: 1px solid rgba(237, 237, 239, .55); box-shadow: 0 0 28px 2px rgba(237, 237, 239, .45); }
.ptrophy svg { width: 34px; height: 34px; color: #fff; }
.phero h2 { font-family: var(--head); font-size: 26px; font-weight: 800; margin: 10px 0 0; line-height: 1.25; }
.phero .lead { margin: 0; font-size: 15px; }
.plan.plus { padding: 22px 20px 18px; border: 1.2px solid rgba(237, 237, 239, .55); background: linear-gradient(180deg, rgba(237, 237, 239, .22), rgba(237, 237, 239, .08)); box-shadow: 0 10px 30px -10px rgba(237, 237, 239, .35); }
.plan .pball { position: absolute; z-index: -1; left: -14px; top: -10px; width: 230px; height: 230px; object-fit: contain; pointer-events: none; }
[dir="ltr"] .plan .pball { left: auto; right: -14px; transform: scaleX(-1); }
.plan.plus .phead { flex-direction: column; align-items: flex-start; gap: 8px; }
.pbadge { display: inline-block; padding: 7px 18px; border-radius: 12px; background: rgba(237, 237, 239, .85); color: #fff; font-family: var(--head); font-size: 22px; font-weight: 800; font-style: italic; line-height: 1.2; box-shadow: 0 0 14px rgba(237, 237, 239, .45); flex: none !important; }
.plan.plus .ptag { border-radius: 8px; }
.plan.plus .price { flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; }
.plan.plus .price strong { font-size: 54px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.plan.plus .price small { padding: 0; font-size: 15px; }
.plan.plus .was { justify-content: center; }
.psep { border: 0; height: 1px; background: rgba(255, 255, 255, .1); margin: 18px 0 16px; width: 100%; }
.plan.plus .pperks { margin-top: 0; gap: 12px; }
.plan.plus .pperks li { font-size: 15px; }
.pchk { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 237, 239, .28); border: 1px solid rgba(237, 237, 239, .6); }
.pchk svg { width: 15px; height: 15px; color: #fff; }
.plan.plus .btn { margin-top: 10px; }
.pfree { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.pfree svg { width: 16px; height: 16px; flex: none; }

/* the television's account page: one column of calm blocks */
html.tv .acct-tv { padding: 36px 60px 40px; display: grid; gap: 18px; max-width: 1100px; }
html.tv .acct-tv .prof { padding: 20px; border-radius: 6px; display: grid; gap: 14px; }
html.tv .acct-tv .who { display: flex; align-items: center; gap: 16px; }
html.tv .acct-tv .who > div { flex: 1; min-width: 0; }
html.tv .acct-tv .who .avatar { width: 72px; height: 72px; font-size: 30px; }
html.tv .acct-tv .who b { display: block; font-family: var(--head); font-size: 22px; }
html.tv .acct-tv .who small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
html.tv .acct-tv .who .gpill { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
html.tv .acct-tv .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
html.tv .acct-tv .stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 6px; }
html.tv .acct-tv .stat i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; }
html.tv .acct-tv .stat i svg { width: 20px; height: 20px; }
html.tv .acct-tv .stat b { font-size: 26px; font-family: var(--head); color: var(--ink); }
html.tv .acct-tv .stat span { display: block; font-size: 13px; color: var(--muted); }
html.tv .acct-tv .section { padding: 0; }
html.tv .acct-tv .shead { padding: 0 0 8px; }
html.tv .acct-tv .rail { margin: 0; padding: 10px 0 12px; }
html.tv .acct-tv .rows { display: grid; gap: 8px; }
html.tv .acct-tv .nrow { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 6px; text-align: start; }
html.tv .acct-tv .nrow b { flex: 1; font-size: 15px; }
html.tv .acct-tv .nrow > svg:last-child { width: 16px; height: 16px; color: var(--muted); transform: scaleX(-1); }
html.tv .acct-tv .member { padding: 14px; border-radius: 6px; }

/* a television has no top bar: pages begin at the top */
html.tv .bar { display: none !important; }
html.tv .heading { padding-top: 36px; }
html.tv .pagewrap { padding-top: 36px; }
html.tv .searchtop { padding-top: 36px; }
html.tv .notes { padding-top: 36px; }

/* the television's player: the seek line, then one bar of large labelled
   buttons the remote walks left and right */
html.tv .page.watch .tvov .tr { padding: 22px 40px 60px; }
html.tv .page.watch .tvov .bt { display: block; padding: 70px 40px 22px; background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .55) 55%, transparent); }
html.tv .page.watch .tvov .seekrow { display: flex; align-items: center; gap: 14px; height: 34px; }
html.tv .page.watch .tvov .seekrow time { font-size: 15px; min-width: 62px; }
html.tv .page.watch .tvov .tvrow { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
html.tv .page.watch .tvov .tvrow .gbtn {
  width: auto; min-width: 96px; height: 68px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #fff; font-size: 12.5px; font-weight: 700;
}
html.tv .page.watch .tvov .tvrow .gbtn::after { content: attr(data-l); font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .82); white-space: nowrap; }
html.tv .page.watch .tvov .tvrow .gbtn svg { width: 24px; height: 24px; }
html.tv .page.watch .tvov .tvrow .gbtn[aria-pressed="true"] { background: var(--primary-strong); border-color: transparent; }
html.tv .page.watch .tvov .tvrow .gbtn[hidden] { display: none; }
html.tv.remote .page.watch .tvov .tvrow .gbtn:focus { background: var(--primary); border-color: #111114; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
html.tv .page.watch .tvov .mid .big { width: 92px; height: 92px; }
.box.fit-cover video { object-fit: cover; }
.box.fit-zoom video { object-fit: cover; transform: scale(1.18); }
/* the television's account page stays inside the screen */
html.tv .acct-tv { max-width: none; padding-inline: 48px; }
html.tv .acct-tv > * { min-width: 0; }
html.tv .acct-tv .section { overflow: hidden; }
html.tv .acct-tv .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.tv .acct-tv .rail { margin: 0 !important; }
html.tv .acct-tv .shead { padding-inline: 0; }

/* ---- television: smaller search cards, a tidier keyboard */
html.tv .tvres .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 10px; }
html.tv .tvres .card b { font-size: 12px; }
html.tv .tvkb { padding: 12px 20px 14px; }
html.tv .tvkb .tvkeys { width: min(760px, 100%); gap: 6px; }
html.tv .tvkb .krow { gap: 6px; }
html.tv .tvkb .key { width: 56px; height: 46px; font-size: 19px; border-radius: 6px; }
html.tv .tvkb .key.wide { flex: none; width: 112px; font-size: 14px; }
html.tv .tvkb .key.space { width: 230px; }
html.tv .tvkb .key.go { width: 130px; }
html.tv .tvkb .krow.foot { margin-top: 2px; }

/* ---- television: the title page keeps its poster large and near the words */
html.tv .dtop { height: calc(72 * var(--tvvh, 7.2px)); }
html.tv .dblock > div:first-child { inset-inline-start: 48px; width: min(640px, 50%); bottom: 54px; }
html.tv .dblock .sharp { top: 56px; height: calc(100% - 112px); width: calc((72 * var(--tvvh, 7.2px) - 112px) * .6667); inset-inline-end: auto; inset-inline-start: calc(48px + min(640px, 50%) + 120px); border-radius: 12px; -webkit-mask-image: none; mask-image: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
html.tv .dblock .sharp::after { display: none; }
html.tv .dblock .acts { gap: 12px; }
html.tv .dblock .acts .liquid { height: 58px; font-size: 17px; }
html.tv .dblock .acts .sq { width: 58px; height: 58px; }

/* ---- television: pressing watch fills the screen with the player alone;
   episodes are picked on the series' own page */
html.tv .page.watch > :not(.stage) { display: none !important; }
html.tv .page.watch .stage { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 75; margin: 0; padding: 0; border-radius: 0; background: #000; }
html.tv .page.watch .stage .box { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: auto; padding-top: 0; aspect-ratio: auto; max-height: none; min-height: 0; }
html.tv .page.watch .stage video { width: 100%; height: 100%; object-fit: contain; }
html.tv .page.watch .stage .pmsg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; min-height: 0; }

/* ---- television: the chosen card rises and is framed whole */
html.tv .card { padding: 6px; margin: -6px; border-radius: 10px; }
html.tv .top10 a { padding: 6px; margin: -6px; border-radius: 10px; }
html.tv.remote .card:focus { background: rgba(237, 237, 239, .14); box-shadow: 0 0 0 3px var(--primary), 0 16px 36px rgba(0, 0, 0, .6); transform: translateY(-8px); outline: none; }
html.tv.remote .card:focus .poster { box-shadow: none; transform: none; }
html.tv.remote .card:focus b { color: #fff; }
html.tv.remote .top10 a:focus { transform: translateY(-8px); }
html.tv .shead { padding-bottom: 6px; }
html.tv .rail { padding-top: 26px; padding-bottom: 18px; margin-top: -12px; }

/* television: the chosen card keeps only its gold frame — no white ring,
   no play mark over the poster */
html.tv .card .hov { display: none !important; }
html.tv.remote .card:focus, html.tv.remote .card:focus .poster, html.tv.remote .top10 a:focus, html.tv.remote .top10 a:focus .poster,
html.tv.remote .ecard:focus, html.tv.remote .ecard:focus .sqimg, html.tv.remote .wcard:focus { outline: none !important; }
html.tv.remote .card:focus .poster, html.tv.remote .top10 a:focus .poster { box-shadow: none !important; }
html.tv.remote .wcard:focus { border-color: var(--primary); }
html.tv.remote .card:focus .heart { opacity: 0; }

/* ---- white theme: the rating keeps its gold; the rail glows softly */
.card .cmeta .rt, html.tv .card .cmeta .rt { background: #F5A524; color: #1a1200; }
.card .cmeta .rt svg, html.tv .card .cmeta .rt svg { color: #1a1200; fill: #1a1200; }
.card .rate svg, .wcard .r svg { color: #F5A524; fill: #F5A524; }
.fact svg.star, .facts .star svg { color: #F5A524; fill: #F5A524; }
html.tv .siderail .ritem { color: #fff; }
html.tv .siderail .ritem svg { color: #fff; }
html.tv .siderail .ritem span { color: rgba(255, 255, 255, .72); }
html.tv .siderail .ritem[aria-current="page"] { background: rgba(255, 255, 255, .13); color: #fff; }
html.tv .siderail .ritem[aria-current="page"]::before { background: rgba(255, 255, 255, .7); }
html.tv .siderail .ritem[aria-current="page"] svg { color: #fff; }
html.tv.remote .siderail .ritem:focus { background: rgba(255, 255, 255, .22); color: #fff; }
html.tv.remote .siderail .ritem:focus svg { color: #fff; }
html.tv.remote .card:focus { background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 16px 36px rgba(0, 0, 0, .6); }
html.tv.remote .page.watch .tvov .tvrow .gbtn:focus { background: #fff; color: #111114; border-color: #fff; box-shadow: none; }
html.tv.remote .page.watch .tvov .tvrow .gbtn:focus::after { color: #111114; }
html.tv.remote .tvkb .key:focus { background: #fff; color: #111114; box-shadow: none; }
html.tv .tvkb .key.go { background: #fff; color: #111114; }
.btn.primary { color: #111114; }
.liquid { color: #fff; }

/* television: a risen card is never clipped by its row or grid */
html.tv .grid, html.tv .tvres .grid, html.tv .acct-tv .rail, html.tv .estrip, html.tv .strip { overflow: visible; padding-top: 14px; }
html.tv .tvres .grid { overflow: visible; }
html.tv .section, html.tv .tvres, html.tv .page { overflow: visible; }

/* television: the player and its bar sit on the screen's true foot (a
   TV browser under zoom gets vh wrong, so the height is the canvas's) */
html.tv .page.watch .stage { bottom: auto; height: calc(100 * var(--tvvh, 7.2px)); width: calc(100 * var(--tvvw, 14.4px)); }
html.tv .page.watch .stage .box { height: 100%; }
html.tv .page.watch .tvov { display: block; }
html.tv .page.watch .tvov .tr { position: absolute; top: 0; left: 0; right: 0; }
html.tv .page.watch .tvov .mid { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
html.tv .page.watch .tvov .bt { position: absolute; left: 0; right: 0; bottom: 0; }
html.tv.remote .page.watch .tvov .tvrow .gbtn:focus { background: #000; color: #fff; border-color: #fff; box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; }
html.tv.remote .page.watch .tvov .tvrow .gbtn:focus::after { color: #fff; }

/* the one-time question on a big arrow-driven screen */
.tvask .tvhint-box { width: 560px; }
.tvask .tvhint-box .note { font-size: 14px; color: var(--muted); line-height: 1.7; }
.tvask .acts2 { display: flex; gap: 10px; }
.tvask .acts2 .btn { flex: 1; margin: 0; height: 50px; }

/* television: a top-ten item is framed and rises like every other card */
html.tv.remote .top10 a:focus { background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 16px 36px rgba(0, 0, 0, .6); transform: translateY(-8px); outline: none; }
html.tv.remote .top10 a:focus .poster { box-shadow: none; transform: none; outline: none; }
html.tv.remote .top10 a:focus .num { color: #fff; -webkit-text-stroke-color: #fff; }
