/* showmax Web: the phone / tablet app's look (MobileUi.kt): the near-black page, the navy surfaces and
   dialogs, the one brand blue, white for what you press. Phones first; «wide» from 600px like the app. */
@font-face { font-family: "Plex"; src: url("/fonts/plex_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex_bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Rank"; src: url("/fonts/archivo_black.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Creepster"; src: url("/fonts/creepster.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rakkas"; src: url("/fonts/rakkas.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Ruqaa"; src: url("/fonts/aref_ruqaa_bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("/fonts/lalezar.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bebas"; src: url("/fonts/bebas_neue.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Reem"; src: url("/fonts/reem_kufi.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Baloo"; src: url("/fonts/baloo_bhaijaan.ttf") format("truetype"); font-display: swap; }

:root {
  /* the TV app's settings screen (SettingsKit.kt): neutral dark boxes, not navy */
  --bg: #0B0C10; --raised: #15181F; --raised2: #1E222B; --sheet: #15181F; --sheet-line: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1); --text: #F2F2F7; --sub: #B9C1D3; --dim: #8A93A8;
  --accent: #3D7BFF; --accent-soft: #A9C2FF; --gold: #F5C518; --live: #E5484D; --danger: #FF6B6B; --ok: #34D399; --gold4k: #E9C46A;
  --pad: 16px; --poster: 108px; --bar: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --pad: 16px; --poster: 140px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Plex", system-ui, sans-serif; font-size: 14px; line-height: 1.4; }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
[dir=rtl] .flipx, [dir=rtl] .rtl-flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
::selection { background: rgba(61, 123, 255, .45); }

.press { cursor: pointer; transition: transform .16s cubic-bezier(.3, .7, .4, 1); }
.press:active { transform: scale(.95); }

/* ---------- pictures ---------- */
.img { position: relative; overflow: hidden; width: 100%; height: 100%; }
.img > img { width: 100%; height: 100%; opacity: 0; transition: opacity .24s; }
.img > img.in { opacity: 1; }
.shimmer { background: linear-gradient(110deg, var(--raised) 30%, var(--raised2) 45%, var(--raised) 60%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--bar) + 26px + var(--safe-b)); transform: translate(-50%, 16px); max-width: calc(100vw - 32px);
  padding: 11px 16px; border-radius: 12px; background: var(--raised2); border: 1px solid var(--sheet-line); color: #fff; font-weight: 500; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.noapp .toast { bottom: calc(26px + var(--safe-b)); }

/* ---------- posters and tiles ---------- */
.poster { width: var(--poster); flex: none; }
.grid .poster { width: auto; }
.ptile { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--raised); }
.ptile .pname { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; color: var(--dim); font-size: 12px; overflow: hidden; }
.ptile .img { position: absolute; inset: 0; }
.watched { position: absolute; top: 6px; inset-inline-end: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); }
.progress > i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--accent); }
.below { font-size: 11px; color: var(--sub); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- chips and buttons ---------- */
.chip { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .16s; }
.chip:active { transform: scale(.94); }
.chip.on { background: #fff; border-color: #fff; color: #000; }
.bigbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .14s, opacity .14s; }
.bigbtn:active { transform: scale(.97); }
.bigbtn.primary { background: #fff; color: #000; }
.bigbtn.accent { background: var(--accent); color: #fff; }
.bigbtn.glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .08); }
.bigbtn.off { background: rgba(255, 255, 255, .1); color: var(--dim); cursor: default; }
.bigbtn span { overflow: hidden; text-overflow: ellipsis; }
.roundbtn { flex: none; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .14s; }
.roundbtn:active { transform: scale(.9); }
.iconbtn { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.iconbtn:active { background: rgba(255, 255, 255, .08); }
.iconaction { width: 74px; flex: none; padding: 6px 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; color: #fff; }
.iconaction:active { transform: scale(.9); }
.ia-ic { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.ia-l { margin-top: 5px; font-size: 11px; color: var(--sub); font-weight: 500; white-space: nowrap; max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
.textbtn { padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--accent-soft); }
.textbtn:disabled { opacity: .5; }
.twothumbs { position: relative; display: inline-block; }
.twothumbs .ic:first-child { position: absolute; bottom: 0; inset-inline-start: 0; }
.twothumbs .ic:last-child { position: absolute; top: 0; inset-inline-end: 0; }

.rowhead { display: flex; align-items: center; height: 28px; padding: 0 8px 0 var(--pad); margin-bottom: 10px; gap: 8px; }
.rowhead h3 { flex: 1; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seeall { display: flex; align-items: center; color: var(--dim); font-size: 13px; font-weight: 500; padding: 3px 2px 3px 8px; border-radius: 999px; flex: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: calc(56px + var(--safe-t)); padding: var(--safe-t) 4px 0; background: var(--bg); }
.topbar h1 { flex: 1; font-size: 18px; font-weight: 700; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backfab { position: fixed; z-index: 30; top: calc(8px + var(--safe-t)); inset-inline-start: 8px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; color: #fff; }
.avatar { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: var(--raised2); }
.brand { display: block; width: auto; object-fit: contain; }
.agebox { unicode-bidi: isolate; direction: ltr; border: 1px solid rgba(185, 193, 211, .6); border-radius: 3px; padding: 0 5px; font-size: 11px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.metaline { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13px; font-weight: 500; white-space: nowrap; min-width: 0; }
.metaline .g { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.livebadge { display: inline-flex; align-items: center; gap: 4px; background: var(--live); color: #fff; font-weight: 700; font-size: 9.5px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.livebadge.big { font-size: 12px; padding: 2px 8px; gap: 6px; }
.livebadge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse .9s ease-in-out infinite alternate; }
.livebadge.big i { width: 6px; height: 6px; }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }
.imdbbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text); white-space: nowrap; }
.imdbbadge b { background: var(--gold); color: #000; font-size: 11.5px; font-weight: 900; border-radius: 5px; padding: 0 6px; }
.fmt { width: auto; display: block; }
.tagbox { font-size: 12px; font-weight: 600; border: 1px solid var(--dim); border-radius: 4px; padding: 0 6px; }

/* ---------- horizontal strips ---------- */
.strip-wrap { position: relative; }
.strip { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip-arrow { display: none; position: absolute; z-index: 3; top: 0; bottom: 0; width: 44px; align-items: center; justify-content: center; color: #fff; background: linear-gradient(var(--dir-g, 90deg), rgba(11, 12, 16, .85), transparent); opacity: 0; transition: opacity .2s; }
.strip-arrow.start { inset-inline-start: 0; --dir-g: 90deg; }
.strip-arrow.end { inset-inline-end: 0; --dir-g: 270deg; }
[dir=rtl] .strip-arrow.start { --dir-g: 270deg; } [dir=rtl] .strip-arrow.end { --dir-g: 90deg; }
@media (hover: hover) and (pointer: fine) { .strip-arrow { display: flex; } .strip-wrap:hover .strip-arrow { opacity: 1; } }

/* ---------- sheets / dialogs ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.scrim.out { animation: fadeout .18s forwards; }
.scrim.center { align-items: center; padding: 24px; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeout { to { opacity: 0; } }
.sheet { width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; background: var(--sheet); border-radius: 22px 22px 0 0; border: 1px solid var(--sheet-line); border-bottom: 0;
  padding: 0 0 calc(14px + var(--safe-b)); animation: up .26s cubic-bezier(.2, .8, .3, 1); }
.scrim.out .sheet { animation: down .18s forwards; }
@keyframes up { from { transform: translateY(40%); } } @keyframes down { to { transform: translateY(30%); } }
.handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 10px auto 6px; }
.sheet-title { font-size: 17px; font-weight: 700; padding: 4px 22px 8px; }
.opt { width: 100%; display: flex; align-items: center; padding: 14px 22px; text-align: start; color: var(--sub); }
.opt:active { background: rgba(255, 255, 255, .04); }
.opt-ic { margin-inline-end: 16px; color: var(--sub); }
.opt-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt-l { font-size: 15.5px; font-weight: 500; }
.opt-d { font-size: 12.5px; color: var(--dim); line-height: 18px; }
.opt:has(.opt-ic) .opt-l, .opt.sel .opt-l { color: #fff; }
.opt.sel .opt-l { font-weight: 700; }
.opt.sel .opt-ic { color: #fff; }
.opt.danger .opt-l, .opt.danger .opt-ic { color: var(--danger); }
.opt-tick { color: var(--accent); }
.dialog { width: 100%; max-width: 420px; background: var(--sheet); border-radius: 18px; padding: 22px 22px 10px; border: 1px solid var(--sheet-line); animation: pop .2s; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.dialog h2 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.dialog p { font-size: 14px; color: var(--sub); line-height: 22px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 14px; }
.dlg-input { width: 100%; height: 50px; margin-top: 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); padding: 0 14px; outline: none; }
.dlg-input.bad { border-color: var(--danger); }
.dlg-input:focus { border-color: var(--accent); }

/* ---------- grouped lists ---------- */
.group { width: 100%; max-width: 720px; }
.group-title { font-size: 13px; color: var(--dim); font-weight: 600; padding: 0 6px 8px; }
.group-card { border-radius: 14px; background: var(--raised); overflow: hidden; }
.group-foot { font-size: 12px; color: var(--dim); padding: 8px 6px 0; line-height: 17px; }
.line { width: 100%; display: flex; align-items: center; padding: 14px; text-align: start; }
.line:active { background: rgba(255, 255, 255, .03); }
.line-ic { position: relative; color: var(--sub); display: flex; }
.line-ic .dot { position: absolute; top: -1px; inset-inline-end: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.line.danger .line-ic, .line.danger .line-t { color: var(--danger); }
.line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 14px; }
.line-t { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-s { font-size: 12px; color: var(--dim); }
.line-v { font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.line-chev { color: var(--dim); }
.divider { height: .5px; background: var(--line); }
.toggle { width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .2); padding: 3px; flex: none; transition: background .16s; position: relative; }
.toggle i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .16s; }
.toggle.on { background: var(--accent); }
.toggle.on i { transform: translateX(20px); }
[dir=rtl] .toggle.on i { transform: translateX(-20px); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 72px 32px; text-align: center; }
.empty-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--raised); color: var(--dim); display: flex; align-items: center; justify-content: center; }
.empty b { font-size: 17px; font-weight: 600; }
.empty p { font-size: 13.5px; color: var(--dim); line-height: 20px; }
.errornote { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 32px; text-align: center; }
.errornote b { font-size: 16px; font-weight: 600; } .errornote p { font-size: 13px; color: var(--dim); }
.loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.rows-skel { padding-top: 24px; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.rs { display: flex; flex-direction: column; gap: 10px; }
.rs-t { margin-inline-start: var(--pad); width: 140px; height: 16px; border-radius: 4px; }
.rs-c { display: flex; gap: 8px; padding-inline-start: var(--pad); }
.rs-p { width: var(--poster); aspect-ratio: 2 / 3; border-radius: 8px; flex: none; }

/* ---------- PIN pad ---------- */
.pinpad { position: fixed; inset: 0; z-index: 80; background: rgba(11, 12, 16, .97); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.pin-close { position: absolute; top: calc(8px + var(--safe-t)); inset-inline-start: 8px; }
.pin-body { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.pin-body .avatar { margin-bottom: 12px; }
.pin-sub { font-size: 14px; color: var(--sub); font-weight: 500; margin-bottom: 4px; }
.pin-title { font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 26px; }
.pin-dots { display: flex; gap: 16px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); transition: background .1s; }
.pin-dots i.on { background: #fff; }
.pin-dots i.bad { border-color: var(--danger); }
.pin-dots.shake { animation: shake .3s; }
@keyframes shake { 20% { transform: translateX(14px); } 40% { transform: translateX(-12px); } 60% { transform: translateX(9px); } 80% { transform: translateX(-6px); } }
.pin-wrong { height: 34px; display: flex; align-items: center; color: var(--danger); font-size: 13.5px; }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; }
.key { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 26px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.key:active { transform: scale(.9); background: rgba(255, 255, 255, .16); }
.key.bare { background: none; }

/* ---------- fields ---------- */
.field { position: relative; display: flex; align-items: center; height: 60px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); padding: 0 6px 0 14px; cursor: text; }
[dir=rtl] .field { padding: 0 14px 0 6px; }
.field.focus { border-color: var(--accent); }
.field-l { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 15px; font-weight: 500; transition: all .15s; pointer-events: none; }
.field-l.up { top: 9px; transform: none; font-size: 11.5px; }
.field-row { flex: 1; display: flex; align-items: center; align-self: flex-end; padding-bottom: 9px; min-width: 0; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; padding: 0; }
.field .fix { color: var(--dim); font-size: 15px; }

/* ---------- app shell: bottom bar ---------- */
.app { min-height: 100vh; }
.bottombar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: rgba(11, 12, 16, .95); border-top: .5px solid var(--line); padding-bottom: var(--safe-b);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.bb-row { display: flex; max-width: 620px; margin: 0 auto; height: var(--bar); }
.navitem { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--dim); transition: color .18s; }
.navitem.on { color: #fff; }
.navitem:active { transform: scale(.9); }
.navitem .ni-ic { width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; position: relative; }
.navitem .ni-l { font-size: 10.5px; font-weight: 500; margin-top: 2px; }
.navitem.on .ni-l { font-weight: 600; }
.navitem .reddot { position: absolute; top: -2px; inset-inline-end: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); border: 1.5px solid var(--bg); }
.tabpage { padding-bottom: calc(var(--bar) + 24px + var(--safe-b)); min-height: 100vh; }
.pagetitle { font-size: 24px; font-weight: 700; padding: calc(12px + var(--safe-t)) var(--pad) 14px; }

/* ---------- Home: floating header ---------- */
.header { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding-top: var(--safe-t); transition: background .22s; }
.header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent); opacity: calc(1 - var(--bgA, 0)); pointer-events: none; z-index: -1; }
.header.solid { background: var(--bg); }
.header.solid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .5px; background: var(--line); }
.h-logo { height: 52px; display: flex; align-items: center; padding: 0 16px; overflow: hidden; transition: height .2s, opacity .2s; }
.header.folded .h-logo { height: 0; opacity: 0; }
.sections { position: relative; display: flex; align-items: center; height: 42px; padding: 0 6px; }
.section { height: 100%; display: flex; align-items: center; padding: 0 10px; font-size: 15.5px; font-weight: 500; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.section.on { color: #fff; font-weight: 700; }
.sec-line { position: absolute; bottom: 5px; height: 3px; width: 22px; border-radius: 2px; background: var(--accent); transition: left .26s, right .26s; }
.chips { display: flex; gap: 8px; height: 46px; align-items: center; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.under { padding: 0 var(--pad); margin-top: 10px; }

/* ---------- hero (phone) ---------- */
.hero { position: relative; width: 100%; height: min(132vw, 74vh); overflow: hidden; background: var(--raised); }
.hero-pages { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-pages::-webkit-scrollbar { display: none; }
.hero-page { flex: none; width: 100%; height: 100%; scroll-snap-align: center; position: relative; overflow: hidden; }
.hero-page .img { position: absolute; inset: 0; }
.hero-page .img > img { will-change: transform; }
.hero-top { position: absolute; top: 0; left: 0; right: 0; height: 230px; background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .3), transparent); pointer-events: none; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(transparent 0%, transparent 45%, rgba(11, 12, 16, .82) 78%, var(--bg) 100%); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text .ht-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; animation: fade .4s; }
.hero-logo { width: 72%; height: 92px; }
.hero-name { font-size: 30px; font-weight: 700; line-height: 36px; }
.hero-bits { font-size: 13px; color: rgba(255, 255, 255, .88); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hero-formats { display: flex; gap: 8px; align-items: center; }
.hero-desc { font-size: 13.5px; color: rgba(255, 255, 255, .85); line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; margin-top: 16px; }
.hero-btns .bigbtn.grow { flex: 1; min-width: 0; }
.bars { display: flex; gap: 5px; margin-top: 16px; }
.bars span { height: 3px; width: 12px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; transition: width .26s; cursor: pointer; }
.bars span.on { width: 26px; }
.bars span i { display: block; height: 100%; background: #fff; width: 0; }
.bars span.done i { width: 100%; }
.bars span.on i { animation: fill var(--slide, 8s) linear forwards; }
.bars.paused span.on i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.crest { object-fit: contain; }
.match-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.crests { display: flex; align-items: center; gap: 16px; }
.crests b { font-size: 34px; font-weight: 900; }
.mh-title { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mh-comp { font-size: 13px; color: rgba(255, 255, 255, .8); font-weight: 500; }
.livewhen { display: flex; align-items: center; gap: 8px; }
.lw-time { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .16); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; }
.lw-left { color: #FFC35A; font-size: 12.5px; font-weight: 600; }
.later { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 8px 14px; color: var(--sub); font-size: 13px; font-weight: 500; }
.fourk { background: var(--gold4k); color: #000; font-weight: 900; font-size: 10.5px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.btn4k { display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(233, 196, 106, .55); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- hero (wide) ---------- */
.hero.wide { height: clamp(380px, 72vh, 660px); }
.hero.wide .hero-side { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11, 12, 16, .94), rgba(11, 12, 16, .55) 40%, transparent 75%); pointer-events: none; }
[dir=rtl] .hero.wide .hero-side { background: linear-gradient(to left, rgba(11, 12, 16, .94), rgba(11, 12, 16, .55) 40%, transparent 75%); }
.hero.wide .hero-fade { background: linear-gradient(transparent 50%, var(--bg)); }
.hero.wide .hero-text { left: auto; right: auto; inset-inline-start: 32px; bottom: 40px; padding: 0; max-width: 460px; align-items: flex-start; text-align: start; }
.hero.wide .ht-inner { align-items: flex-start; gap: 14px; }
.hero.wide .hero-logo { width: 90%; height: 96px; }
.hero.wide .hero-overview { font-size: 14px; color: var(--sub); line-height: 21px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero.wide .hero-btns { width: 400px; margin-top: 0; }
.hero.wide .bars { margin-top: 14px; }
.hero.wide .match-head { align-items: flex-start; }

.notice { margin: 18px var(--pad) 0; display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--accent-soft); }
.notice div { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 13.5px; line-height: 20px; }

/* ---------- rows ---------- */
.row { padding-top: 26px; }
.row .strip { gap: 8px; }
.ranked-row .strip { gap: 0; }
.ranked { display: flex; align-items: flex-start; flex: none; cursor: pointer; }
.ranked .digits { display: flex; direction: ltr; padding-top: 2px; }
.ranked .digit { width: calc(100px * var(--k)); height: calc(136px * var(--k)); overflow: visible; flex: none; }
.ranked .digit text { font-family: "Rank", "Plex", sans-serif; font-size: 136px; }
.ranked.ten .digit { width: calc(87px * var(--k)); height: calc(118px * var(--k)); }
.ranked.ten .digit + .digit { margin-inline-start: calc(-30px * var(--k)); }
.ranked .ptile { width: calc(var(--rank-w) * 1px); margin-inline-start: calc(-18px * var(--k)); position: relative; z-index: 1; }
[dir=rtl] .ranked.ten .ptile { margin-inline-start: -4px; }
.ranked { --k: .72; --rank-w: 104; }
@media (min-width: 600px) { .ranked { --k: .9; --rank-w: 132; } }

.ccard { width: 228px; flex: none; }
@media (min-width: 600px) { .ccard { width: 272px; } }
.cc-still { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--raised); cursor: pointer; transition: transform .16s; }
.cc-still:active { transform: scale(.96); }
.cc-still .img { position: absolute; inset: 0; }
.cc-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.cc-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .4); border: 1.5px solid rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; }
.cc-still .progress { z-index: 2; }
.cc-cap { display: flex; align-items: center; padding-top: 7px; }
.cc-cap > div { flex: 1; min-width: 0; }
.cc-cap b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-cap small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-more { width: 32px; height: 32px; border-radius: 50%; color: var(--sub); display: flex; align-items: center; justify-content: center; flex: none; }

.chtile { width: 152px; flex: none; cursor: pointer; }
@media (min-width: 600px) { .chtile { width: 186px; } }
.grid .chtile { width: auto; }
.ch-box { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #14223F, #0A1328); display: flex; align-items: center; justify-content: center; }
.ch-box .img { position: absolute; inset: 16px 22px; width: auto; height: auto; }
.ch-box > b { font-size: 15px; font-weight: 700; text-align: center; padding: 6px; }
.ch-box .livebadge { position: absolute; top: 6px; inset-inline-start: 6px; }
.ch-num { position: absolute; top: 7px; inset-inline-end: 7px; font-size: 11px; color: var(--sub); font-weight: 600; }
.ch-name { font-size: 13px; font-weight: 600; padding-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-now { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.widetile { width: 228px; flex: none; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--raised); position: relative; cursor: pointer; }
@media (min-width: 600px) { .widetile { width: 272px; } }
.widetile span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; }
.widetile .img { position: absolute; inset: 0; }

.unitile { width: 164px; height: 92px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #1B2640, #0E1322); border: .5px solid rgba(255, 255, 255, .12); padding: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 600px) { .unitile { width: 196px; height: 110px; } }
.unitile b { font-size: 19px; font-weight: 700; text-align: center; text-transform: uppercase; }

.imax-band { margin-top: 26px; padding: 16px 0; background: radial-gradient(70% 120% at 15% 0, rgba(10, 108, 255, .35), rgba(10, 108, 255, .08) 45%, transparent 70%), linear-gradient(#000, #03070F, #000); position: relative; }
[dir=rtl] .imax-band { background: radial-gradient(70% 120% at 85% 0, rgba(10, 108, 255, .35), rgba(10, 108, 255, .08) 45%, transparent 70%), linear-gradient(#000, #03070F, #000); }
.imax-band::before, .imax-band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(45, 140, 255, .8), transparent); }
.imax-band::before { top: 0; } .imax-band::after { bottom: 0; }
.imax-head { padding: 0 var(--pad) 12px; display: flex; flex-direction: column; gap: 4px; }
.imax-head .lg { display: flex; align-items: flex-end; gap: 10px; direction: ltr; justify-content: flex-end; }
[dir=ltr] .imax-head .lg { justify-content: flex-start; }
.imax-head .lg img { height: 19px; }
.imax-head .lg span { font-size: 18px; transform: translateY(3px); }
.imax-head small { font-size: 12px; color: var(--dim); }
.imax-band .strip { gap: 10px; }
.imaxtile { width: 124px; flex: none; aspect-ratio: .54; border-radius: 4px; overflow: hidden; background: var(--raised); position: relative; cursor: pointer; }
@media (min-width: 600px) { .imaxtile { width: 150px; } }
.imaxtile .img { position: absolute; inset: 0; }
.imaxtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .55) 80%, rgba(0, 0, 0, .92)); }
.imaxtile .il { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 14px; height: 46px; }
.imaxtile .il img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.imaxtile .iname { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; font-size: 13px; font-weight: 700; text-align: center; }

.hdrhead { display: flex; align-items: center; padding: 0 8px 10px var(--pad); }
[dir=rtl] .hdrhead { padding: 0 var(--pad) 10px 8px; }
.hdrhead > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hdrhead .t { display: flex; align-items: center; gap: 8px; }
.hdrhead .t i { font-style: normal; font-size: 11.5px; font-weight: 900; border: 1.3px solid #fff; border-radius: 4px; padding: 0 5px; }
.hdrhead .t b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdrhead small { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdrposter { position: relative; width: var(--poster); flex: none; }
.fmttag { position: absolute; z-index: 2; top: 6px; inset-inline-start: 6px; font-size: 8.5px; font-weight: 900; background: rgba(0, 0, 0, .72); border-radius: 3px; padding: 1px 5px; }
.cr-band { margin: 26px 10px 0; padding: 14px 0; border-radius: 16px; background: #141519; border: 1px solid rgba(244, 117, 33, .25); }
.cr-head { display: flex; align-items: center; padding: 0 6px 10px; }
.cr-head img { height: 24px; margin-inline-start: 10px; }
.cr-head .sp { flex: 1; }
.cr-head button { color: #F47521; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.nextair { margin-top: 7px; display: flex; flex-direction: column; gap: 2px; }
.nextair .w { display: flex; align-items: center; gap: 4px; color: var(--accent-soft); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.nextair small { font-size: 11px; color: var(--dim); white-space: nowrap; }

.tonight-card { margin: 0 var(--pad); position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--raised); border: .5px solid rgba(255, 255, 255, .1); cursor: pointer; }
@media (min-width: 600px) { .tonight-card { aspect-ratio: auto; height: 320px; } }
.tonight-card > .img { position: absolute; inset: 0; }
.tonight-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0, 0, 0, .92)); pointer-events: none; }
.tc-count { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; color: #F5D06F; font-weight: 700; font-size: 12px; background: rgba(0, 0, 0, .55); border-radius: 999px; padding: 3px 10px; }
.tc-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tc-logo { height: 54px; width: 60%; max-width: 240px; }
.tc-logo img { object-position: left center !important; }
[dir=rtl] .tc-logo img { object-position: right center !important; }
.tc-name { font-size: 22px; font-weight: 700; }
.tc-tag { font-size: 12.5px; font-style: italic; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-row { display: flex; align-items: center; gap: 10px; }
.tc-row .sp { flex: 1; }
.moon { color: #F5D06F; }

.surprise { width: var(--poster); flex: none; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; position: relative; border: .5px solid rgba(255, 255, 255, .18); cursor: pointer; }
.surprise .img { position: absolute; inset: 0; }
.surprise .veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; }
.surprise .veil b { font-size: 15px; font-weight: 400; line-height: 1.2; }
.surprise .veil small { font-size: 10px; color: rgba(255, 255, 255, .8); }
.surprise.hidden .img img { filter: blur(6px); transform: scale(1.1); }

/* ---------- matches ---------- */
.matchtile { width: 292px; height: 164px; flex: none; border-radius: 14px; overflow: hidden; position: relative; background: linear-gradient(135deg, #14305F, #0A1328, #060A14); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; transition: transform .16s; }
.matchtile:active { transform: scale(.97); }
.matchtile > .img { position: absolute; inset: 0; }
.matchtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6, 10, 20, .6), rgba(6, 10, 20, .8), rgba(6, 10, 20, .95)); }
.mt-body { position: absolute; z-index: 1; inset: 0; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.mt-comp { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255, 255, 255, .82); font-weight: 600; white-space: nowrap; overflow: hidden; }
.mt-comp img { width: 16px; height: 16px; object-fit: contain; }
.mt-teams { display: flex; align-items: center; }
.mt-team { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mt-team span { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mt-mid { min-width: 70px; display: flex; flex-direction: column; align-items: center; }
.mt-mid b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.mt-mid small { font-size: 10.5px; color: var(--sub); white-space: nowrap; }
.mt-mid .vs { font-size: 16px; font-weight: 900; color: rgba(255, 255, 255, .9); }
.mt-foot { display: flex; align-items: center; gap: 6px; }
.mt-wait { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .16); border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 600; color: #fff; }
.mt-wait .ic { color: #FFC35A; }
.mt-prog { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.mt-prog i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--live); }

/* ---------- occasions ---------- */
.occasion { position: relative; margin-top: 26px; overflow: hidden; }
.occasion canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.occ-body { position: relative; padding: 16px 0; }
.occ-title { display: flex; align-items: center; gap: 10px; padding: 0 var(--pad); }
.occ-title canvas.emblem { position: static; width: 48px; height: 48px; flex: none; }
.occ-kicker { font-size: 15px; letter-spacing: 3px; }
.occ-name { font-size: 24px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.occ-tag { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.occasion .strip { gap: 12px; padding-top: 16px; padding-bottom: 22px; align-items: flex-start; }
.occ-card { width: var(--poster); flex: none; cursor: pointer; transition: transform .16s; }
.occ-card .oc-img { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1.5px solid; }
.occ-card .img { position: absolute; inset: 0; }
.occ-card .oc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 75%, var(--occ-shade)); }
.occ-card small { display: block; font-size: 11px; padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shape-tomb { clip-path: path("M0,100% L0,17% Q50%,-17% 100%,17% L100%,100% Z"); }

/* ---------- grids (All, See all, My List, Search) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 8px; padding: 0 var(--pad); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.grid .full { grid-column: 1 / -1; }
.count { font-size: 12.5px; color: var(--dim); }
.allgrid { padding-inline-end: 34px; }
.filters { display: flex; gap: 8px; padding: 6px 0 4px; overflow-x: auto; scrollbar-width: none; }
.letters { position: fixed; z-index: 25; inset-inline-end: 4px; width: 26px; display: flex; flex-direction: column; align-items: center; overflow-y: auto; scrollbar-width: none; }
.letters::-webkit-scrollbar { display: none; }
.letters button { width: 24px; height: 24px; flex: none; border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--dim); }
.letters button.on { background: var(--accent); color: #fff; }

/* ---------- search ---------- */
.searchbox { display: flex; align-items: center; height: 48px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); padding: 0 12px; gap: 10px; color: var(--dim); }
.searchbox input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; color: var(--text); }
.searchbox input::placeholder { color: var(--dim); }
.searchbox .x { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sub); }
.search-head { padding: calc(12px + var(--safe-t)) var(--pad) 12px; }
.search-head h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.req-head { padding-top: 14px; padding-bottom: 2px; }
.req-head b { display: block; font-size: 16px; font-weight: 700; }
.req-head small { font-size: 13px; color: var(--dim); }

/* ---------- live ---------- */
.events { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad); scrollbar-width: none; scroll-padding: 0 var(--pad); }
.events::-webkit-scrollbar { display: none; }
.event { flex: none; width: calc(100% - 0px); max-width: 720px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; position: relative; scroll-snap-align: center; cursor: pointer;
  background: linear-gradient(135deg, #14305F, #0A1328, #060A14); border: 1px solid rgba(255, 255, 255, .08); }
.event > .img { position: absolute; inset: 0; }
.event .side { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11, 12, 16, .92), rgba(11, 12, 16, .55) 40%, transparent 80%); }
[dir=rtl] .event .side { background: linear-gradient(to left, rgba(11, 12, 16, .92), rgba(11, 12, 16, .55) 40%, transparent 80%); }
.ev-body { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 16px; width: 62%; display: flex; flex-direction: column; gap: 7px; }
.ev-comp { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .8); font-weight: 600; white-space: nowrap; overflow: hidden; }
.ev-crests { display: flex; align-items: center; gap: 10px; }
.ev-crests b { font-size: 22px; font-weight: 900; }
.ev-title { font-size: 15px; font-weight: 700; line-height: 20px; }
.ev-logo { height: 48px; width: 100%; }
.ev-desc { font-size: 12px; color: var(--sub); }
.ev-btns { display: flex; align-items: center; gap: 8px; }
.ev-watch { display: inline-flex; align-items: center; gap: 2px; background: #fff; color: #000; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ev-btns .btn4k { height: 31px; }
.dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.dots i { width: 6px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); transition: width .2s; }
.dots i.on { width: 18px; background: #fff; }
.chgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 10px; padding: 18px var(--pad) 0; }
@media (min-width: 600px) { .chgrid { grid-template-columns: repeat(4, 1fr); } }
.chgrid .chtile { width: auto; }

/* ---------- details ---------- */
.details { padding-bottom: 48px; }
.d-top { position: relative; }
.d-art { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.d-art > .img, .d-art > div > .img { position: absolute; inset: 0; }
.d-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .5), transparent 25%, transparent 55%, var(--bg) 93%, var(--bg)); }
.d-info { display: flex; flex-direction: column; gap: 12px; padding: 2px var(--pad) 0; }
.d-wide .d-art { aspect-ratio: auto; height: clamp(440px, 90vh, 900px); }
.d-wide .d-art::after { background: linear-gradient(rgba(0, 0, 0, .45), transparent 20%, transparent 50%, var(--bg)); }
.d-wide .d-side { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11, 12, 16, .95), rgba(11, 12, 16, .55) 45%, transparent 80%); }
[dir=rtl] .d-wide .d-side { background: linear-gradient(to left, rgba(11, 12, 16, .95), rgba(11, 12, 16, .55) 45%, transparent 80%); }
.d-wide .d-info { position: absolute; z-index: 2; bottom: 8px; inset-inline-start: 32px; max-width: 560px; padding: 0; }
.d-wide .d-side { z-index: 1; }
.d-logo { height: 72px; width: 70%; }
.d-wide .d-logo { height: 96px; width: 50%; }
.d-logo img { object-position: left bottom !important; }
[dir=rtl] .d-logo img { object-position: right bottom !important; }
.d-name { font-size: 27px; font-weight: 700; line-height: 34px; }
.d-wide .d-name { font-size: 34px; line-height: 42px; }
.d-facts { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.d-play { width: 100%; max-width: 520px; }
.d-prog { display: flex; align-items: center; gap: 10px; max-width: 520px; }
.d-prog .bar { flex: 1; position: relative; height: 3px; border-radius: 2px; overflow: hidden; }
.d-prog small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.d-tag { font-size: 14px; color: var(--accent-soft); font-weight: 500; }
.d-overview { font-size: 14px; color: rgba(242, 242, 247, .92); line-height: 22px; cursor: pointer; }
.d-overview.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.d-more { font-size: 13px; font-weight: 600; margin-top: 2px; }
.d-credit { font-size: 12.5px; color: var(--dim); }
.d-actions { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; }
.d-wide .d-actions { flex-wrap: wrap; overflow: visible; row-gap: 4px; }      /* a mouse can't swipe the row: every button in view */
.d-tabs { margin-top: 18px; border-top: .5px solid var(--line); display: flex; gap: 24px; padding: 0 var(--pad); }
.d-tab { display: flex; flex-direction: column; align-items: center; color: var(--dim); font-weight: 700; font-size: 15px; }
.d-tab .ln { height: 3px; width: 0; border-radius: 2px; background: var(--accent); transition: width .18s; }
.d-tab.on { color: #fff; } .d-tab.on .ln { width: 28px; }
.d-tab span { padding: 11px 0 6px; }
.seasonbtn { display: inline-flex; align-items: center; gap: 4px; margin: 14px var(--pad) 6px; background: var(--raised2); border-radius: 10px; padding: 9px 8px 9px 14px; font-weight: 600; font-size: 14px; }
[dir=rtl] .seasonbtn { padding: 9px 14px 9px 8px; }
.ep { display: block; width: 100%; max-width: 760px; text-align: start; padding: 10px var(--pad); cursor: pointer; }
.ep:active { background: rgba(255, 255, 255, .03); }
.ep-row { display: flex; align-items: center; gap: 12px; }
.ep-still { position: relative; width: 134px; flex: none; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--raised); }
@media (min-width: 600px) { .ep-still { width: 200px; } }
.ep-still .img { position: absolute; inset: 0; }
.ep-still .cc-play { width: 32px; height: 32px; border-width: 1.2px; }
.ep-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ep-text b { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.ep-meta .next { color: var(--accent-soft); font-size: 11px; font-weight: 600; }
.ep-ov { font-size: 12.5px; color: var(--dim); padding-top: 8px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.castgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px 8px; padding: 16px var(--pad); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.person .ph { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--raised2); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 26px; font-weight: 600; }
.person .ph .img { position: absolute; inset: 0; }
.person b { font-size: 12px; font-weight: 500; padding-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person small { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.d-bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: calc(56px + var(--safe-t)); padding: var(--safe-t) 8px 0; display: flex; align-items: center; transition: background .2s; }
.d-bar .castbk { margin-inline-start: auto; }   /* the far side, away from the back button */
.d-bar .bk { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; flex: none; }
.d-bar b { font-size: 16px; font-weight: 600; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.rate-sheet { text-align: center; }
.rate-sheet h4 { font-size: 17px; font-weight: 700; margin: 4px 22px 0; }
.rate-sheet p { font-size: 12.5px; color: var(--dim); margin: 4px 0 18px; }
.rate-opts { display: flex; justify-content: center; padding-bottom: 18px; }
.rate-opt { width: 100px; display: flex; flex-direction: column; align-items: center; }
.rate-opt .c { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; color: #fff; }
.rate-opt.on .c { background: #fff; color: #000; border-color: transparent; }
.rate-opt span { font-size: 13px; color: var(--sub); font-weight: 500; padding-top: 8px; }
.rate-opt.on span { color: #fff; font-weight: 700; }
.resume-head { display: flex; align-items: center; padding: 0 22px 10px; border-bottom: .5px solid var(--line); margin-bottom: 4px; }
.resume-head .st { width: 96px; flex: none; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--raised); position: relative; }
.resume-head .st .img { position: absolute; inset: 0; }
.resume-head div:last-child { padding-inline-start: 14px; min-width: 0; }
.resume-head b { display: block; font-size: 16px; font-weight: 700; }
.resume-head small { font-size: 12.5px; color: var(--dim); }

/* ---------- account / settings ---------- */
.page { padding: 8px var(--pad) 32px; display: flex; flex-direction: column; gap: 24px; }
.acc-card { width: 100%; max-width: 720px; border-radius: 16px; background: linear-gradient(135deg, #1E222B, var(--raised)); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.acc-who { display: flex; align-items: center; }
.acc-pic { width: 62px; height: 62px; border-radius: 12px; overflow: hidden; background: var(--raised2); flex: none; }
.acc-who > div:last-child { padding-inline-start: 14px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-who b { font-size: 18px; font-weight: 700; }
.acc-who small { font-size: 12.5px; color: var(--dim); }
.acc-who .days { font-size: 12.5px; font-weight: 600; }
.acc-btns { display: flex; gap: 10px; }
.acc-btns .bigbtn { flex: 1; min-width: 0; }
.version { font-size: 12px; color: var(--dim); text-align: center; }
.loyalty { width: 100%; max-width: 720px; border-radius: 16px; background: linear-gradient(135deg, rgba(245, 165, 36, .15), var(--raised)); border: 1px solid rgba(255, 195, 90, .25); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.loyalty b { color: #FFC35A; font-size: 15.5px; font-weight: 700; }
.loyalty p { font-size: 13px; color: var(--sub); line-height: 20px; }
.badges { display: flex; align-items: center; gap: 6px; }
.badges .b { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: var(--dim); }
.badges .b.on { background: linear-gradient(135deg, #FFD36E, #F5A524); color: #3A2500; border-color: transparent; }
.badges .ln { width: 12px; height: 2px; background: rgba(255, 255, 255, .2); }
.badges .ln.on { background: #F5A524; }
.badges .gift { width: 34px; height: 34px; border-radius: 10px; margin-inline-start: 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.badges .gift.on { background: rgba(255, 195, 90, .2); border-color: rgba(255, 195, 90, .67); }
.badges .times { color: #FFC35A; font-weight: 700; font-size: 13px; margin-inline-start: 4px; }
.subprev { margin: 10px; height: 92px; border-radius: 10px; background: linear-gradient(135deg, #26324A, #0E1220); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
.subprev span { font-weight: 500; }
.subprev span.box { background: rgba(0, 0, 0, .7); padding: 2px 8px; }

/* ---------- login ---------- */
.login { min-height: 100vh; background: linear-gradient(#0B1226, var(--bg)); display: flex; flex-direction: column; align-items: center; padding: calc(72px + var(--safe-t)) 24px 40px; }
.login .brand { height: 40px; margin-bottom: 52px; }
.login-form { width: 100%; max-width: 392px; display: flex; flex-direction: column; gap: 14px; }
.login-form h1 { font-size: 26px; font-weight: 700; }
.login-form p { font-size: 14px; color: var(--sub); margin-bottom: 4px; }
.login-err { background: rgba(255, 107, 107, .14); color: #FFB4B8; font-size: 13.5px; font-weight: 500; border-radius: 10px; padding: 12px; }
.login-btn { height: 52px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.login-btn:disabled { background: rgba(61, 123, 255, .6); }
.login-btn .spinner { width: 24px; height: 24px; }
.eye { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dim); flex: none; }
.unsupported { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }

/* ---------- profiles ---------- */
.profiles { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.pr-bar { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.pr-bar .iconbtn { position: absolute; inset-inline-start: 6px; }
.pr-edit { position: absolute; inset-inline-end: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; display: flex; }
.pr-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 17vh 16px 40px; }
.pr-body h1 { font-size: 24px; font-weight: 600; margin-bottom: 36px; }
@media (min-width: 600px) { .pr-body h1 { font-size: 30px; margin-bottom: 48px; } }
.pr-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 24px; max-width: 300px; }
@media (min-width: 600px) { .pr-grid { max-width: 760px; gap: 26px 28px; } }
.ptl { width: var(--tile); display: flex; flex-direction: column; align-items: center; transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .26s; --tile: 108px; }
@media (min-width: 600px) { .ptl { --tile: 132px; } }
.ptl.chosen { transform: scale(1.08); } .ptl.other { opacity: .25; }
.ptl .pic { position: relative; width: var(--tile); height: var(--tile); border-radius: 50%; overflow: hidden; background: var(--raised2); cursor: pointer; transition: transform .16s; }
.ptl .pic:active { transform: scale(.94); }
.ptl.chosen .pic { box-shadow: 0 0 0 2px #fff; }
.ptl .pic .img { position: absolute; inset: 0; }
.ptl .edit { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.ptl .edit span { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; }
.ptl .kids { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(245, 196, 81, .95); color: #000; font-weight: 700; font-size: 11px; border-radius: 999px; padding: 1px 9px; }
.ptl .nm { display: flex; align-items: center; gap: 5px; padding-top: 10px; font-size: 14px; color: var(--sub); font-weight: 500; }
.ptl.chosen .nm { color: #fff; font-weight: 600; }
.ptl .nm .ic { color: var(--dim); }
.ptl .spinner { width: 20px; height: 20px; border-width: 2px; margin-top: 10px; }
.ptl.add .pic { background: none; border: 1.5px solid rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; color: var(--sub); }
.pe-bar { height: 56px; display: flex; align-items: center; padding: 0 6px; }
.pe-bar h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.pe-bar button { padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.pe-body { display: flex; flex-direction: column; align-items: center; padding: 18px 20px 30px; }
.pe-pic { position: relative; width: 116px; height: 116px; cursor: pointer; }
.pe-pic .avatar { width: 116px; height: 116px; }
.pe-pic .pen { position: absolute; bottom: 4px; inset-inline-end: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; }
.pe-change { font-size: 13px; color: var(--sub); font-weight: 500; padding-top: 10px; cursor: pointer; }
.pe-form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.pe-name { height: 54px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); padding: 0 16px; font-size: 16px; outline: none; width: 100%; }
.pe-name.bad { border-color: var(--danger); }
.pe-name:disabled { color: var(--dim); }
.pe-note { font-size: 13px; color: var(--dim); line-height: 19px; }
.pe-err { color: var(--danger); font-size: 13px; }
.pe-del { align-self: center; color: var(--danger); font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; margin-top: 8px; }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px; padding: 4px 18px; max-height: 420px; overflow-y: auto; }
.avgrid button { aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; }
.avgrid button.on { box-shadow: 0 0 0 2.5px #fff; }
.avgrid .img { position: absolute; inset: 0; }
.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.splash img { height: 40px; animation: splash .6s cubic-bezier(.4, 0, .2, 1) .25s both; }
@keyframes splash { from { opacity: 0; transform: scale(.94); } }

/* ---------- me ---------- */
.me-head { position: relative; overflow: hidden; }
.me-head .bdp { position: absolute; inset: 0; }
.me-head .bdp .img { opacity: .4; }
.me-head .bdp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 12, 16, .3), var(--bg)); }
.me-hb { position: relative; display: flex; flex-direction: column; align-items: center; padding: calc(44px + var(--safe-t)) 0 10px; }
.lvl { position: relative; width: 118px; height: 118px; display: flex; align-items: center; justify-content: center; }
.lvl svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lvl .coin { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8B5CF6); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.me-name { font-size: 22px; font-weight: 700; padding-top: 12px; }
.me-lvl { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--sub); }
.me-lvl b { color: #fff; background: linear-gradient(90deg, var(--accent), #8B5CF6); border-radius: 999px; padding: 3px 10px; }
.me-stats { display: flex; gap: 10px; padding-top: 16px; }
.stat { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.stat b { font-size: 16px; font-weight: 900; }
.stat span { font-size: 12px; color: var(--sub); }
.me-seen { font-size: 12px; color: var(--dim); padding-top: 12px; }
.me-code { margin: 6px var(--pad); display: flex; flex-direction: column; gap: 10px; }
.code-row { display: flex; align-items: center; border-radius: 12px; background: var(--raised); padding: 6px 6px 6px 14px; }
[dir=rtl] .code-row { padding: 6px 14px 6px 6px; }
.code-row > div { flex: 1; } .code-row small { font-size: 12px; color: var(--dim); display: block; } .code-row b { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.code-row button { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sub); }
.me-btns { display: flex; gap: 10px; } .me-btns .bigbtn { flex: 1; min-width: 0; }
.me-tabs { display: flex; gap: 8px; padding: 14px var(--pad); overflow-x: auto; scrollbar-width: none; }
.me-tabs .chipwrap { position: relative; flex: none; }
.me-tabs .chipwrap i { position: absolute; top: 0; inset-inline-end: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.me-body { padding: 0 var(--pad) 40px; display: flex; flex-direction: column; gap: 12px; }
.panel { border-radius: 16px; background: var(--raised); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel > h4 { font-size: 16px; font-weight: 700; margin: 0; }
.panel .note { font-size: 13.5px; color: var(--dim); line-height: 20px; }
.taste-top { display: flex; align-items: flex-end; } .taste-top b { font-size: 24px; font-weight: 900; } .taste-top span { font-size: 17px; color: var(--sub); font-weight: 700; padding-inline-start: 8px; }
.taste { display: flex; align-items: center; }
.taste span:first-child { width: 110px; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taste .tb { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.taste .tb i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.taste span:last-child { width: 42px; font-size: 12px; color: var(--dim); text-align: end; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tilestat { border-radius: 14px; background: var(--raised); border: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; }
.tilestat b { font-size: 22px; font-weight: 900; } .tilestat span { font-size: 12px; color: var(--dim); }
.lastw { display: flex; align-items: center; cursor: pointer; }
.lastw .st { width: 120px; flex: none; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--raised2); position: relative; }
.lastw .st .img { position: absolute; inset: 0; }
.lastw > div:last-child { padding-inline-start: 12px; min-width: 0; display: flex; flex-direction: column; }
.lastw b { font-size: 14.5px; font-weight: 600; } .lastw small { font-size: 12px; color: var(--dim); }
.minirow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.minirow .poster { width: 92px; }
.bdg-head { display: flex; align-items: center; gap: 12px; } .bdg-head b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.bdg-head .tb { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bdg-head .tb i { display: block; height: 100%; background: linear-gradient(90deg, #F5C451, #FF8A3D); }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 0; }
.medal { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; text-align: center; }
.medal .m { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.medal .m svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.medal .m em { font-style: normal; opacity: .3; } .medal.earned .m em { opacity: 1; }
.medal.earned .m::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(rgba(245, 196, 81, .3), transparent 70%); }
.medal b { font-size: 11px; font-weight: 600; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84px; }
.medal.earned b { color: #fff; }
.medal small { font-size: 10px; font-weight: 600; color: var(--dim); } .medal.earned small { color: #F5C451; }
.friend { display: flex; align-items: center; gap: 12px; }
.friend.click { cursor: pointer; }
.friend > div { flex: 1; min-width: 0; } .friend b { display: block; font-size: 15px; font-weight: 600; } .friend small { font-size: 12px; color: var(--dim); }
.pill-btn { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.pill-btn.blue { background: var(--accent); color: #fff; }
.pill-btn.plain { color: var(--sub); font-weight: 600; padding: 6px 10px; }
.share-row { width: 100%; display: flex; align-items: center; padding: 12px 22px; text-align: start; }
.share-row > div { flex: 1; } .share-row b { display: block; font-size: 15px; font-weight: 500; } .share-row small { font-size: 12px; color: var(--dim); }
.danger-link { color: var(--danger); font-weight: 600; font-size: 15px; padding: 8px 4px; margin: 16px; }

/* ---------- requests ---------- */
.quota { flex: none; border-radius: 999px; background: var(--raised); padding: 6px 12px; font-size: 12.5px; color: var(--sub); font-weight: 500; white-space: nowrap; }
.quota.low { background: rgba(255, 77, 77, .2); color: #FF8A8A; }
.quotas { display: flex; gap: 8px; padding: 14px var(--pad) 0; overflow-x: auto; scrollbar-width: none; }
.sposter { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--raised); cursor: pointer; width: var(--poster); flex: none; transition: transform .16s; }
.sposter:active { transform: scale(.95); }
.grid .sposter { width: auto; }
.sposter > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; color: var(--dim); font-size: 12px; }
.sposter .img { position: absolute; inset: 0; }
.sposter i { position: absolute; top: 6px; inset-inline-end: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .5); }
.stile { flex: none; border-radius: 10px; overflow: hidden; position: relative; background: linear-gradient(135deg, #1B2640, #0E1322); border: .5px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.stile.logo { width: 150px; height: 84px; } .stile.genre { width: 176px; height: 96px; }
.stile .img { position: absolute; inset: 0; }
.stile.logo .img { inset: 18px; width: auto; height: auto; }
.stile.genre::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.stile b { position: relative; z-index: 1; font-size: 15px; font-weight: 700; text-align: center; padding: 8px; }
.sd-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sd-art .img { position: absolute; inset: 0; }
.sd-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent 30%, var(--bg)); }
@media (min-width: 600px) { .sd-art { aspect-ratio: auto; height: 46vh; } }
.sd-info { padding: 0 var(--pad); display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.sd-top { display: flex; align-items: flex-end; gap: 14px; }
.sd-top .ptile { width: 96px; flex: none; }
.sd-top > div:last-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sd-top h1 { font-size: 22px; font-weight: 700; line-height: 28px; }
.avail { align-self: flex-start; color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.sd-facts-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--sub); }
.sd-facts-line .ic { color: #FFC53D; }
.requested { height: 46px; border-radius: 10px; background: rgba(234, 179, 8, .2); color: #EAB308; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 15px; }
.facts { border-radius: 14px; background: var(--raised); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.facts div { display: flex; font-size: 13px; } .facts span { width: 120px; flex: none; color: var(--dim); } .facts b { font-weight: 600; }
.cast-mini { width: 80px; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cast-mini .ph { position: relative; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: var(--raised2); }
.cast-mini .ph .img { position: absolute; inset: 0; }
.cast-mini b { font-size: 11.5px; font-weight: 500; padding-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-mini small { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }

/* ---------- locked screens (journey ended) ---------- */
.locked-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; }
.locked-screen > div { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.locked-screen h1 { font-size: 24px; font-weight: 700; margin-top: 8px; }
.locked-screen p { font-size: 15px; color: var(--sub); line-height: 24px; }
.locked-screen .bigbtn { width: 100%; }

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

/* ---------- player (PlayerOverlay.kt) ---------- */
.player { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; color: #fff; -webkit-user-select: none; user-select: none; touch-action: manipulation; }   /* two quick taps seek: no page zoom */
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.idle { cursor: none; }
.pcenter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.ring { width: 64px; height: 64px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin 1.1s linear infinite; }
.reconnect { background: rgba(0, 0, 0, .6); border-radius: 999px; padding: 5px 14px; font-size: 17px; }
.bigpause { width: 96px; height: 96px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; }
.psub { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; justify-content: center; padding: 0 64px; pointer-events: none; transition: bottom .25s; text-align: center; }
.psub.up { bottom: 190px; }
.psub span { white-space: pre-line; line-height: 1.25; font-weight: 400; paint-order: stroke fill; -webkit-text-stroke: .13em #000; text-shadow: 0 0 2px #000; }
.psub span.box { -webkit-text-stroke: 0; text-shadow: none; background: rgba(0, 0, 0, .67); border-radius: 6px; padding: 4px 14px; }
@media (max-width: 600px) { .psub { padding: 0 16px; } .psub.up { bottom: 150px; } }
.pui { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s; }
.pui.off { opacity: 0; }
.pui:not(.off) > * { pointer-events: auto; }
.ptop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; gap: 24px; padding: calc(28px + var(--safe-t)) 48px 40px; background: linear-gradient(rgba(0, 0, 0, .8), transparent); }
.pt-t { flex: 1; min-width: 0; }
.pt-t h2 { font-size: 26px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-t small { display: block; font-size: 17px; color: #B9C1D3; }
.partbadge { display: inline-block; margin-top: 6px; background: rgba(61, 123, 255, .85); border-radius: 999px; padding: 3px 12px; font-size: 15px; font-weight: 600; }
.pclock { background: rgba(0, 0, 0, .5); border-radius: 8px; padding: 4px 10px; font-size: 15px; color: rgba(255, 255, 255, .9); margin-inline-end: 56px; white-space: nowrap; }
.pclose { position: absolute; top: calc(20px + var(--safe-t)); inset-inline-end: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; }
.pclose.static { position: static; }
.pbottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 48px calc(30px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, .7), rgba(0, 0, 0, .95)); display: flex; flex-direction: column; gap: 10px; }
.pbar { display: flex; align-items: center; gap: 20px; }
.pplay { width: 56px; height: 56px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, transform .15s; }
.pplay:hover { background: #fff; color: #000; transform: scale(1.06); }
.plive { background: var(--live); border-radius: 4px; padding: 2px 8px; font-weight: 700; font-size: 14px; }
.pseek { position: relative; flex: 1; height: 56px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pseek .track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .3); overflow: hidden; transition: height .15s; }
.pseek:hover .track { height: 6px; }
.pseek .track i { position: absolute; top: 0; bottom: 0; left: 0; }
.pseek .bufd { background: rgba(255, 255, 255, .25); }
.pseek .partlit { background: rgba(255, 255, 255, .25); }
.pseek .done { background: var(--accent); }
.pseek .gap { width: 4px; margin-left: -2px; background: #000; }
.pseek .knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; pointer-events: none; }
.pseek:hover .knob, .pseek:active .knob { transform: scale(1); }
.pseek .tip { position: absolute; bottom: 44px; transform: translateX(-50%); background: rgba(0, 0, 0, .8); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.pleft { display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; }
.pleft b { font-size: 17px; font-weight: 500; }
.pleft small { font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.pbtns { display: flex; align-items: center; gap: 8px; padding-left: 76px; }
.pbtns .sp { flex: 1; }
.barbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: 16px; white-space: nowrap; transition: background .15s, color .15s; }
.barbtn:hover { background: #fff; color: #000; }
.barbtn.icon { padding: 8px; }
.partleft { font-size: 14px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.vol { display: inline-flex; align-items: center; }
.vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fff; }
.vol:hover input, .vol:focus-within input { width: 90px; opacity: 1; }
@media (max-width: 760px) {
  .ptop { padding: calc(16px + var(--safe-t)) 16px 30px; gap: 12px; } .pt-t h2 { font-size: 18px; } .pt-t small { font-size: 13px; }
  .pclock { display: none; } .pclose { top: calc(10px + var(--safe-t)); inset-inline-end: 10px; width: 42px; height: 42px; }
  .pbottom { padding: 40px 14px calc(14px + var(--safe-b)); } .pbar { gap: 12px; } .pplay { width: 46px; height: 46px; }
  .pbtns { padding-left: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; } .barbtn { font-size: 14px; padding: 7px 10px; gap: 6px; } .partleft, .vol { display: none; }
}
.pscrim { position: absolute; inset: 0; }
.pcard { position: absolute; left: 124px; bottom: calc(92px + var(--safe-b)); width: 320px; max-width: calc(100vw - 24px); background: #15181F; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 5px; display: flex; flex-direction: column; gap: 2px; direction: inherit; animation: pop .15s; }
@media (max-width: 760px) { .pcard { left: 12px; bottom: calc(96px + var(--safe-b)); } }
.pc-head { display: flex; align-items: center; gap: 6px; padding: 8px 11px; }
.pc-head b { font-size: 14px; font-weight: 700; }
.pc-back { display: flex; color: var(--dim); }
.pc-line { display: block; height: 1px; margin: 2px 8px; background: rgba(255, 255, 255, .08); }
.pc-list { max-height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pc-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; text-align: start; transition: background .12s, color .12s; }
.pc-row:hover { background: #fff; color: #000; }
.pc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-t span { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-t small { font-size: 12px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-chev { opacity: .5; }
.pc-sync { font-size: 12px; color: var(--dim); padding: 4px 11px; }
.pc-chips { display: flex; gap: 6px; padding: 2px 6px 6px; }
.pc-chips button { background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.pc-chips button:hover { background: #fff; color: #000; }
.eppanel { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 0 calc(36px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, .9), rgba(0, 0, 0, .98)); display: flex; flex-direction: column; gap: 12px; animation: up .25s; }
.ep-head { display: flex; align-items: center; padding: 0 48px; gap: 12px; }
.ep-head h3 { flex: 1; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-seasons { display: flex; gap: 8px; padding: 0 48px; overflow-x: auto; scrollbar-width: none; }
.ep-seasons button { padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ep-seasons button.on { background: rgba(255, 255, 255, .25); }
.ep-seasons button:hover { background: #fff; color: #000; }
.ep-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 48px; scrollbar-width: none; }
.ep-row::-webkit-scrollbar { display: none; }
.pe-card { width: 256px; flex: none; text-align: start; display: flex; flex-direction: column; gap: 6px; }
.pe-st { position: relative; height: 144px; border-radius: 10px; overflow: hidden; background: #2A2A2A; transition: transform .15s, box-shadow .15s; }
.pe-card:hover .pe-st { transform: scale(1.04); box-shadow: 0 0 0 3px #fff; }
.pe-st img { width: 100%; height: 100%; object-fit: cover; }
.pe-now { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--accent); border-radius: 4px; padding: 2px 7px; font-size: 12px; font-weight: 700; }
.pe-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .4); }
.pe-prog b { display: block; height: 100%; background: var(--accent); }
.pe-card > b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .85); }
.pe-card > small { font-size: 13px; color: var(--dim); }
@media (max-width: 760px) { .ep-head, .ep-seasons, .ep-row { padding-left: 16px; padding-right: 16px; } .pe-card { width: 200px; } .pe-st { height: 112px; } }
.pmarkers { position: absolute; inset-inline-end: 48px; bottom: calc(48px + var(--safe-b)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: bottom .25s; }
.pmarkers.up { bottom: calc(150px + var(--safe-b)); }
@media (max-width: 760px) { .pmarkers { inset-inline-end: 14px; bottom: calc(24px + var(--safe-b)); } .pmarkers.up { bottom: calc(130px + var(--safe-b)); } }
.nextcard { width: 400px; max-width: calc(100vw - 28px); display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(20, 20, 20, .9); }
.nc-st { position: relative; width: 176px; height: 99px; flex: none; border-radius: 8px; overflow: hidden; background: #2A2A2A; }
.nc-st img { width: 100%; height: 100%; object-fit: cover; }
.nc-cd { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .8); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.nextcard > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nextcard small { font-size: 13px; color: rgba(255, 255, 255, .7); } .nextcard b { font-size: 15px; font-weight: 700; }
.nextcard span { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-btns { display: flex; gap: 10px; align-items: center; }
.pm-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; background: rgba(255, 255, 255, .85); color: #000; font-weight: 700; font-size: 17px; white-space: nowrap; transition: background .15s, transform .15s; }
.pm-btn:hover { background: #fff; transform: scale(1.03); }
.pm-btn.glass { background: rgba(0, 0, 0, .6); color: #fff; font-weight: 600; font-size: 16px; }
.pm-btn.glass:hover { background: #fff; color: #000; }
.pm-cd { width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-inline-start: 4px; }
.seeknote { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .6); border-radius: 18px; padding: 14px 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.seeknote.fwd { right: 72px; } .seeknote.rew { left: 72px; }
.seeknote { z-index: 6; animation: seekpop .28s cubic-bezier(.2, .9, .3, 1.3); }   /* each tap pops it again */
@keyframes seekpop { from { transform: translateY(-50%) scale(.7); opacity: 0; } to { transform: translateY(-50%) scale(1); opacity: 1; } }
.seeknote div { display: flex; align-items: center; gap: 6px; } .seeknote b { font-size: 26px; font-weight: 700; } .seeknote small { font-size: 15px; color: rgba(255, 255, 255, .8); }
.pausescreen { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .6), rgba(0, 0, 0, .2)); display: flex; align-items: center; padding: 0 72px; animation: fade .7s; }
[dir=rtl] .pausescreen { background: linear-gradient(to left, rgba(0, 0, 0, .9), rgba(0, 0, 0, .6), rgba(0, 0, 0, .2)); }
.pausescreen > div { max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.ps-k { font-size: 18px; color: rgba(255, 255, 255, .7); }
.pausescreen h2 { font-size: 40px; line-height: 46px; font-weight: 700; }
.pausescreen b { font-size: 20px; font-weight: 600; }
.pausescreen p { font-size: 17px; line-height: 26px; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.ps-p { position: absolute; bottom: 48px; inset-inline-end: 72px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .pausescreen { padding: 0 24px; } .pausescreen h2 { font-size: 28px; line-height: 34px; } .ps-p { inset-inline-end: 24px; } }
.partend { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .9)); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.partend > div { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pe-segs { display: flex; gap: 6px; } .pe-segs i { width: 54px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); } .pe-segs i.on { background: var(--accent); }
.partend h2 { font-size: 32px; font-weight: 700; } .pe-t { font-size: 18px; color: var(--sub); } .partend span:not(.pe-t) { font-size: 16px; color: rgba(255, 255, 255, .8); }
.partend small { font-size: 13px; color: var(--dim); }
.pe-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding-top: 10px; }
.pmodal { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pm-card { width: 100%; max-width: 600px; background: #15181F; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 32px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: pop .2s; }
.pm-card h2 { font-size: 26px; font-weight: 700; }
.pm-card p { font-size: 17px; line-height: 26px; color: var(--sub); }
.pm-sub { font-size: 17px; color: var(--sub); }
.pm-count { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin: 4px 0; }
.pm-card small { font-size: 14px; color: var(--sub); }
@media (max-width: 600px) { .pm-card { padding: 24px 20px; } .pm-card h2 { font-size: 21px; } }
/* Phones and tablets: the device's own buttons set the volume. */
@media (hover: none), (pointer: coarse) { .player .vol, .player .fsbtn { display: none; } }   /* a phone / tablet: its own buttons for these */
.cast-ic { width: 80px; height: 80px; border-radius: 50%; background: rgba(61, 123, 255, .18); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.castnote { position: absolute; top: calc(90px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .6); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; pointer-events: none; }

/* A wide screen: the account, settings and profile pages in a centred column, not stuck to one side. */
.page { width: 100%; max-width: 752px; margin-inline: auto; }
@media (min-width: 800px) {
  .me-code, .me-tabs, .me-body { width: 100%; max-width: 760px; margin-inline: auto; }
  .me-code { margin-block: 6px; padding-inline: var(--pad); }
}
.pskip { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.pskip:hover { background: rgba(255, 255, 255, .12); }
.pskip:active { transform: scale(.9); }

/* back arrow beside the title (the player's way out) */
.pback { width: 46px; height: 46px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-inline-start: -8px; transition: background .15s; }
.pback:hover, .pback:active { background: rgba(255, 255, 255, .14); }
.ptop { align-items: center; }

/* «العرض على التلفاز»: picture on top, one clear main button, two quiet ones */
.castmodal { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.castcard { width: 100%; max-width: 440px; border-radius: 20px; overflow: hidden; background: #15181F; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: pop .22s; }
.cc-art { position: relative; aspect-ratio: 16 / 8; background: #1E222B; }
.cc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(21, 24, 31, .65) 60%, #15181F); }
.cc-head { position: absolute; z-index: 1; inset-inline: 20px; bottom: 6px; display: flex; flex-direction: column; gap: 3px; }
.cc-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-soft); }
.cc-head h2 { font-size: 22px; font-weight: 700; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-head small { font-size: 14px; color: var(--sub); }
.cc-body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.cc-body p { font-size: 15px; line-height: 23px; color: var(--sub); }
.cc-body .cc-err { color: #FFB4B4; }
.cc-wait { display: flex; align-items: center; gap: 10px; } .cc-wait .spinner { width: 18px; height: 18px; border-width: 2px; }
.cc-main { height: 50px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, filter .15s; }
.cc-main:active { transform: scale(.98); } .cc-main:hover { filter: brightness(1.1); }
.cc-row { display: flex; gap: 10px; }
.cc-sec { flex: 1; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s; }
.cc-sec:hover, .cc-sec:active { background: rgba(255, 255, 255, .14); }

/* Two taps to seek (as YouTube): the whole side lights up as a curved band, arrows run, the seconds add up. */
.seekwave { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 6; pointer-events: none; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); animation: swfade .9s ease forwards; }
.seekwave.fwd { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; } .seekwave.rew { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.sw-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.sw-in b { font-size: 17px; font-weight: 700; } .sw-in small { font-size: 13px; color: rgba(255, 255, 255, .8); }
.sw-arrows { display: flex; gap: 2px; }
.rew .sw-arrows { flex-direction: row-reverse; }
.sw-arrows i { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 13px solid #fff; opacity: .25; animation: swarrow .6s ease forwards; }
.rew .sw-arrows i { border-left: 0; border-right: 13px solid #fff; }
@keyframes swarrow { 0% { opacity: .25; } 40% { opacity: 1; } 100% { opacity: .25; } }
@keyframes swfade { 0% { opacity: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
.ev-body .livebadge, .ev-body .ev-btns { align-self: flex-start; }   /* a column stretches its children: the badge keeps its own width */

/* While it plays on the TV: the phone / tablet is its remote, in the cast card's look */
.castremote { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 24px; background: #0B0C10; }
.cr-bg { position: absolute; inset: 0; overflow: hidden; } .cr-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.35); transform: scale(1.15); }
.cr-back { position: absolute; top: calc(16px + var(--safe-t)); inset-inline-start: 16px; z-index: 2; background: rgba(0, 0, 0, .35); }
.cr-card { position: relative; z-index: 1; }
.cr-seek { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.cr-seek .track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.cr-seek .done { position: absolute; inset-block: 0; left: 0; background: var(--accent); }
.cr-seek .knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cr-times { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--sub); margin-top: -6px; font-variant-numeric: tabular-nums; }
.cr-btns { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 4px 0 6px; }
.cr-play { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.cr-play:active { transform: scale(.94); }
.cr-skip { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.cr-skip:active, .cr-skip:hover { background: rgba(255, 255, 255, .12); }

/* ===================== Computer: the TV app's layout (tv.js) — 1 dp = var(--u) = 1/960 of the window ===================== */
html.tv { --u: min(calc(100vw / 1280), 1.5px); --pad: calc(var(--u) * 48); --poster: calc(var(--u) * 150); --bar: 0px; }
.tv .tabpage { padding-bottom: calc(var(--u) * 60); }
.tv .tvpush { padding-top: calc(var(--u) * 80); }
.tv .tvpush .topbar { top: calc(var(--u) * 80); }

/* top bar */
.tvbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; padding: calc(var(--u) * 14) calc(var(--u) * 40) calc(var(--u) * 34); pointer-events: none;
  background: linear-gradient(rgba(11, 12, 16, .95), rgba(11, 12, 16, .85) 45%, rgba(11, 12, 16, .5) 75%, transparent); }
.tvb-row { display: flex; align-items: center; height: calc(var(--u) * 34); pointer-events: auto; }
.tvb-logo { display: flex; align-items: center; cursor: pointer; flex: none; }
.tvb-logo img { height: calc(var(--u) * 30); max-width: calc(var(--u) * 150); object-fit: contain; }
.tvb-mid { flex: 1; min-width: 0; position: relative; height: 100%; display: flex; align-items: center; margin-inline-start: calc(var(--u) * 24); }
.tvb-tabs { display: flex; align-items: center; transition: opacity .32s, transform .32s; }
.tvb-tabs.gone { opacity: 0; transform: translateY(calc(var(--u) * -9)); pointer-events: none; }
.tvb-tab { height: calc(var(--u) * 32); padding: 0 calc(var(--u) * 11); border-radius: 999px; font-size: calc(var(--u) * 15); font-weight: 600; color: var(--sub); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.tvb-tab:hover, .tvb-tab:focus-visible { background: rgba(255, 255, 255, .2); color: #fff; outline: none; }
.tvb-tab.on { background: #fff; color: #000; }
.tvb-round { position: relative; width: calc(var(--u) * 30); height: calc(var(--u) * 30); margin: 0 calc(var(--u) * 6); border-radius: 50%; padding: calc(var(--u) * 2.5);
  border: calc(var(--u) * 1.5) solid transparent; display: grid; place-items: center; cursor: pointer; transition: transform .2s, border-color .2s; flex: none; color: #fff; }
.tvb-round:not(.pic) { background: rgba(255, 255, 255, .15); background-clip: content-box; }
.tvb-round .ic { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }
.tvb-round .avatar { width: 100% !important; height: 100% !important; }
.tvb-round.on { border-color: var(--accent); }
.tvb-round:hover, .tvb-round:focus-visible { border-color: #fff; transform: scale(1.12); outline: none; }
.tvb-pic-wrap { position: relative; display: flex; }
.tvb-dot { position: absolute; top: 0; inset-inline-end: calc(var(--u) * 4); width: calc(var(--u) * 10); height: calc(var(--u) * 10); border-radius: 50%; background: #E5484D; border: calc(var(--u) * 1.5) solid #0B0C10; pointer-events: none; }
.tvb-crumb { position: absolute; inset-inline-start: 0; display: flex; align-items: center; opacity: 0; transform: translateY(calc(var(--u) * 14)); transition: opacity .32s, transform .32s; pointer-events: none; white-space: nowrap; }
.tvb-crumb.in { opacity: 1; transform: none; }
.tvb-crumb i { width: calc(var(--u) * 2); height: calc(var(--u) * 18); background: var(--accent); }
.tvb-crumb b { font-size: calc(var(--u) * 17); font-weight: 600; padding: 0 calc(var(--u) * 10); }
.tvb-crumb span { font-size: calc(var(--u) * 17); color: var(--sub); padding: 0 calc(var(--u) * 10); }
.tvb-clock { font-size: calc(var(--u) * 17); margin-inline-start: calc(var(--u) * 16); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.tvmenu { position: absolute; z-index: 5; top: calc(var(--u) * 40); inset-inline-start: calc(var(--u) * -20); width: calc(var(--u) * 240); padding: calc(var(--u) * 5);
  background: #15181F; border: 1px solid rgba(255, 255, 255, .1); border-radius: calc(var(--u) * 14); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: fadeIn .18s; }
.tvm-who { display: flex; align-items: center; gap: calc(var(--u) * 10); padding: calc(var(--u) * 10); }
.tvm-who .avatar { width: calc(var(--u) * 36) !important; height: calc(var(--u) * 36) !important; flex: none; }
.tvm-who b { display: block; font-size: calc(var(--u) * 14); }
.tvm-who small { display: block; font-size: calc(var(--u) * 11.5); color: var(--dim); }
.tvmenu button { width: 100%; display: flex; align-items: center; gap: calc(var(--u) * 11); padding: calc(var(--u) * 9) calc(var(--u) * 12); border-radius: calc(var(--u) * 10); font-size: calc(var(--u) * 14); font-weight: 500; cursor: pointer; text-align: start; }
.tvmenu button:hover, .tvmenu button:focus-visible { background: #fff; color: #000; outline: none; }
.tvmenu button .ic { width: calc(var(--u) * 18); height: calc(var(--u) * 18); }
.tvmenu button span { flex: 1; }
.tvm-count { font-style: normal; font-size: calc(var(--u) * 11); background: #E5484D; color: #fff; border-radius: 99px; padding: 0 calc(var(--u) * 6); }
.tvmenu hr { border: 0; height: 1px; background: rgba(255, 255, 255, .08); margin: calc(var(--u) * 3) calc(var(--u) * 8); }

/* hero */
.tvhero-wrap { display: flex; flex-direction: column; align-items: center; }
.tvhero { position: relative; width: 100%; height: calc(var(--u) * 430); overflow: hidden; cursor: pointer; outline: none; background: var(--bg); }
.tvhero-gap { height: calc(var(--u) * 86); }
.tvh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.tvh-slide.on { opacity: 1; }
.tvh-art { position: absolute; inset: 0; }
.tvh-art.live { background: linear-gradient(135deg, #14305F, #0A1328, #060A14); }
.tvh-side { position: absolute; inset: 0; background: linear-gradient(to right, var(--bg), rgba(11, 12, 16, .75), transparent); pointer-events: none; }
[dir=rtl] .tvh-side { background: linear-gradient(to left, var(--bg), rgba(11, 12, 16, .75), transparent); }
.tvh-foot { position: absolute; inset: 0; background: linear-gradient(transparent, transparent 50%, var(--bg)); pointer-events: none; }
.tvh-text { position: absolute; bottom: calc(var(--u) * 40); inset-inline-start: calc(var(--u) * 48); max-width: calc(var(--u) * 620); display: flex; flex-direction: column; gap: calc(var(--u) * 12); animation: fadeIn .7s; }
.tvh-logo img { display: block; max-height: calc(var(--u) * 130); max-width: calc(var(--u) * 440); object-fit: contain; }
.tvh-name { font-size: calc(var(--u) * 44); font-weight: 700; line-height: 1.15; }
.tvmeta { display: flex; align-items: center; gap: calc(var(--u) * 10); font-size: calc(var(--u) * 15); white-space: nowrap; min-width: 0; }
.tvmeta .fmts { display: flex; align-items: center; gap: calc(var(--u) * 10); }
.tvmeta .fmt { height: calc(var(--u) * 20) !important; }
.tvmeta .fmt[alt^="Dolby"] { height: calc(var(--u) * 16) !important; }
.tvmeta .agebox { font-size: calc(var(--u) * 13); padding: 0 calc(var(--u) * 6); border-radius: calc(var(--u) * 5); border-width: calc(var(--u) * 1.3); line-height: 1.45; }
.tvmeta .imdbbadge { font-size: calc(var(--u) * 15); gap: calc(var(--u) * 5); }
.tvmeta .imdbbadge b { font-size: calc(var(--u) * 12); padding: 0 calc(var(--u) * 6); border-radius: calc(var(--u) * 5); }
.tvmeta .star { display: flex; align-items: center; gap: calc(var(--u) * 3); }
.tvmeta .star .ic { width: calc(var(--u) * 16); height: calc(var(--u) * 16); color: #FFC53D; }
.tvmeta .gen { font-size: calc(var(--u) * 13); color: var(--sub); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tvh-desc { font-size: calc(var(--u) * 16); line-height: calc(var(--u) * 23); color: rgba(255, 255, 255, .9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tvh-btns { display: flex; gap: calc(var(--u) * 12); }
.tvh-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: calc(var(--u) * 8); padding: calc(var(--u) * 9) calc(var(--u) * 20); border-radius: calc(var(--u) * 24);
  background: rgba(255, 255, 255, .2); color: #fff; font-size: calc(var(--u) * 16); font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.tvh-btn.accent { background: var(--accent); }
.tvh-btn .ic { width: calc(var(--u) * 19); height: calc(var(--u) * 19); }
.tvh-btn .fourk { font-size: calc(var(--u) * 11); }
.tvhero:hover .tvh-btn:not(.accent), .tvhero:focus-visible .tvh-btn:not(.accent), .tvh-btn:hover { background: #fff; color: #000; }
.tvh-event { display: flex; align-items: center; gap: calc(var(--u) * 10); }
.tvh-event .live { display: inline-flex; align-items: center; gap: calc(var(--u) * 6); background: #E5484D; border-radius: calc(var(--u) * 6); padding: calc(var(--u) * 2) calc(var(--u) * 8); font-size: calc(var(--u) * 13); font-weight: 700; }
.tvh-event .live i { width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; background: #fff; }
.tvh-event .live i.pulse { animation: pulse 1.4s infinite; }
.tvh-event b { font-size: calc(var(--u) * 16); font-weight: 600; }
.tvh-event .left { font-size: calc(var(--u) * 14); color: var(--sub); }
.tvh-later { align-self: flex-start; font-size: calc(var(--u) * 14); color: var(--sub); background: rgba(255, 255, 255, .13); border-radius: calc(var(--u) * 20); padding: calc(var(--u) * 6) calc(var(--u) * 14); }
.tvh-match { display: flex; align-items: center; gap: calc(var(--u) * 18); }
.tvh-match .crest { width: calc(var(--u) * 92) !important; height: calc(var(--u) * 92) !important; object-fit: contain; }
.tvh-match b { font-size: calc(var(--u) * 48); font-weight: 900; }
.tvh-mtitle { font-size: calc(var(--u) * 30); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvh-comp { display: flex; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 16); font-weight: 600; color: rgba(255, 255, 255, .85); }
.tvh-comp img { height: calc(var(--u) * 22); max-width: calc(var(--u) * 70); object-fit: contain; }
.tvh-dots { position: absolute; bottom: calc(var(--u) * 14); left: 50%; transform: translateX(-50%); display: flex; gap: calc(var(--u) * 6); }
.tvh-dots i { width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 99px; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; cursor: pointer; }
.tvh-dots i.on { width: calc(var(--u) * 22); background: #fff; }
.tvh-count { position: absolute; bottom: calc(var(--u) * 12); left: 50%; transform: translateX(-50%); font-size: calc(var(--u) * 13); font-weight: 600; background: rgba(0, 0, 0, .4); border-radius: calc(var(--u) * 12); padding: calc(var(--u) * 3) calc(var(--u) * 10); }
.tvh-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: calc(var(--u) * 34); height: calc(var(--u) * 34); border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s; cursor: pointer; z-index: 2; }
.tvh-arrow .ic { width: calc(var(--u) * 24); height: calc(var(--u) * 24); }
.tvh-arrow.prev { inset-inline-start: calc(var(--u) * 8); }
.tvh-arrow.next { inset-inline-end: calc(var(--u) * 8); }
.tvhero:hover .tvh-arrow { opacity: 1; }
.tvh-arrow:hover { background: rgba(255, 255, 255, .9); color: #000; }
.tvh-strip { display: flex; align-items: center; gap: calc(var(--u) * 30); padding-top: calc(var(--u) * 14); }
.tvh-strip button { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 13); cursor: pointer; }
.tvh-strip .lg { height: calc(var(--u) * 36); min-width: calc(var(--u) * 44); max-width: calc(var(--u) * 130); display: flex; align-items: center; justify-content: center; opacity: .4; transition: opacity .4s, transform .4s; }
.tvh-strip button:hover .lg { opacity: .75; }
.tvh-strip .on .lg { opacity: 1; transform: scale(1.28); }
.tvh-strip img { height: calc(var(--u) * 36); max-width: calc(var(--u) * 130); object-fit: contain; }
.tvh-strip i { display: block; height: calc(var(--u) * 3); width: calc(var(--u) * 36); border-radius: 2px; background: var(--accent); transform: scaleX(0); opacity: 0; transition: transform .4s, opacity .4s; }
.tvhero-wrap:hover .tvh-strip .on i { transform: none; opacity: 1; }
.tvh-crests { display: flex; align-items: center; gap: calc(var(--u) * 5); }
.tvh-crests .crest { width: calc(var(--u) * 30) !important; height: calc(var(--u) * 30) !important; }
.tvh-crests b { font-size: calc(var(--u) * 18); font-weight: 900; }
.tvh-nodot { display: block; width: calc(var(--u) * 8); height: calc(var(--u) * 8); border-radius: 50%; background: #fff; }
.tvnotice { margin: calc(var(--u) * 18) calc(var(--u) * 48) 0; font-size: calc(var(--u) * 14); }

/* categories under the hero */
.tvsub { display: flex; justify-content: center; gap: calc(var(--u) * 30); padding: calc(var(--u) * 16) 0 calc(var(--u) * 4); }
.tvsub button { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 9); padding: calc(var(--u) * 2) calc(var(--u) * 4); cursor: pointer; outline: none; }
.tvsub span { font-size: calc(var(--u) * 15); opacity: .72; transition: transform .3s, opacity .3s; }
.tvsub .on span { font-weight: 600; opacity: 1; }
.tvsub button:hover span, .tvsub button:focus-visible span { transform: scale(1.22); opacity: 1; }
.tvsub i { height: calc(var(--u) * 3); width: calc(var(--u) * 30); border-radius: 2px; background: var(--accent); transform: scaleX(0); opacity: 0; transition: transform .3s, opacity .3s; }
.tvsub .on i { transform: none; opacity: 1; }

/* rows and cards, TV sizes; a card grows under the mouse (or keyboard focus) like the focused card on the TV */
.tv .row { padding-top: calc(var(--u) * 18); }
.tv .rowhead { height: auto; padding: calc(var(--u) * 8) calc(var(--u) * 40) calc(var(--u) * 8) calc(var(--u) * 48); margin: 0; gap: calc(var(--u) * 8); }
.tv[dir=rtl] .rowhead { padding: calc(var(--u) * 8) calc(var(--u) * 48) calc(var(--u) * 8) calc(var(--u) * 40); }
.tv .rowhead h3 { font-size: calc(var(--u) * 20); font-weight: 600; }
.tv .seeall { font-size: calc(var(--u) * 13); }
.tv .strip { gap: calc(var(--u) * 16) !important; padding: calc(var(--u) * 12) calc(var(--u) * 48); scroll-padding: 0 calc(var(--u) * 48); }
.tv .strip-arrow { display: flex; width: calc(var(--u) * 40); opacity: 0; transition: opacity .2s; }
.tv .strip-wrap:hover .strip-arrow { opacity: 1; }
.tv .strip-arrow .ic { width: calc(var(--u) * 26); height: calc(var(--u) * 26); }
.tv .ptile { border-radius: calc(var(--u) * 6); }
.tv .poster .pname { font-size: calc(var(--u) * 12); }
.tv .press, .tv .poster, .tv .cc-still { transition: transform .2s ease-out, box-shadow .2s; }
.tv .poster:hover, .tv .poster:focus-visible, .tv .ranked:hover .ptile, .tv .ranked:focus-visible .ptile, .tv .hdrposter:hover .poster {
  transform: scale(1.1); z-index: 2; position: relative; box-shadow: 0 0 0 calc(var(--u) * 1.5) rgba(255, 255, 255, .85), 0 calc(var(--u) * 10) calc(var(--u) * 26) rgba(0, 0, 0, .6); border-radius: calc(var(--u) * 6); outline: none; }
.tv .cc-still:hover, .tv .cc-still:focus-visible, .tv .widetile:hover, .tv .widetile:focus-visible, .tv .chtile:hover .ch-box, .tv .chtile:focus-visible .ch-box, .tv .matchtile:hover, .tv .matchtile:focus-visible {
  transform: scale(1.08); box-shadow: 0 0 0 calc(var(--u) * 1.5) rgba(255, 255, 255, .85), 0 calc(var(--u) * 10) calc(var(--u) * 26) rgba(0, 0, 0, .6); outline: none; z-index: 2; }
.tv .imaxtile:hover, .tv .imaxtile:focus-visible, .tv .unitile:hover, .tv .unitile:focus-visible, .tv .surprise:hover, .tv .surprise:focus-visible {
  transform: scale(1.06); box-shadow: 0 0 0 calc(var(--u) * 1.5) rgba(255, 255, 255, .85); outline: none; z-index: 2; }
.tv .ranked .digit { width: calc(var(--u) * 100); height: calc(var(--u) * 136); }
.tv .ranked.ten .digit { width: calc(var(--u) * 87); height: calc(var(--u) * 118); }
.tv .ranked.ten .digit + .digit { margin-inline-start: calc(var(--u) * -30); }
.tv .ranked .digits { padding-top: 0; margin-top: calc(var(--u) * -8); }
.tv .ranked .ptile { width: calc(var(--u) * 150); margin-inline-start: calc(var(--u) * -18); }
.tv .ccard { width: calc(var(--u) * 280); }
.tv .cc-cap b { font-size: calc(var(--u) * 14); }
.tv .cc-cap small { font-size: calc(var(--u) * 12); }
.tv .cc-play { width: calc(var(--u) * 40); height: calc(var(--u) * 40); }
.tv .chtile { width: calc(var(--u) * 240); }
.tv .ch-name { font-size: calc(var(--u) * 14); }
.tv .ch-now { font-size: calc(var(--u) * 12); }
.tv .widetile { width: calc(var(--u) * 280); }
.tv .unitile { width: calc(var(--u) * 240); height: calc(var(--u) * 120); border-radius: calc(var(--u) * 12); padding: calc(var(--u) * 20); }
.tv .matchtile { width: calc(var(--u) * 292); height: calc(var(--u) * 164); }
.tv .imax-band { margin-top: calc(var(--u) * 18); padding: calc(var(--u) * 14) 0; }
.tv .imax-head { padding: calc(var(--u) * 6) calc(var(--u) * 48); gap: calc(var(--u) * 4); }
.tv .imax-head .lg img { height: calc(var(--u) * 26); }
.tv .imax-head .lg span { font-size: calc(var(--u) * 24); }
.tv .imax-head small { font-size: calc(var(--u) * 13); }
.tv .imaxtile { width: calc(var(--u) * 166); aspect-ratio: auto; height: calc(var(--u) * 312); border-radius: calc(var(--u) * 6); }
.tv .imaxtile .il { left: calc(var(--u) * 14); right: calc(var(--u) * 14); bottom: calc(var(--u) * 18); height: calc(var(--u) * 62); }
.tv .hdrhead { padding: calc(var(--u) * 6) calc(var(--u) * 40) calc(var(--u) * 6) calc(var(--u) * 48); }
.tv[dir=rtl] .hdrhead { padding: calc(var(--u) * 6) calc(var(--u) * 48) calc(var(--u) * 6) calc(var(--u) * 40); }
.tv .hdrhead .t b { font-size: calc(var(--u) * 20); }
.tv .hdrhead small { font-size: calc(var(--u) * 13); }
.tv .cr-band { margin: calc(var(--u) * 26) calc(var(--u) * 28) 0; padding: calc(var(--u) * 14) 0; border-radius: calc(var(--u) * 18); }
.tv .cr-band .strip { padding: calc(var(--u) * 12) calc(var(--u) * 20); }
.tv .tonight-card { margin: 0 calc(var(--u) * 48); aspect-ratio: auto; height: calc(var(--u) * 300); }
.tv .occasion { margin-top: calc(var(--u) * 18); }
.tv .rows-skel .rs-t { margin-inline-start: calc(var(--u) * 48); }
.tv .rows-skel .rs-c { padding-inline-start: calc(var(--u) * 48); gap: calc(var(--u) * 16); }
.tv .allgrid .grid { padding-inline: calc(var(--u) * 48); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* computer: the title page (DetailsScreen.kt) */
.tvd { position: relative; isolation: isolate; min-height: 100vh; padding-bottom: calc(var(--u) * 48); }
.tvd-bg { position: fixed; inset: 0; z-index: -1; }
.tvd-bg .img { position: absolute; inset: 0; }
.tvd-bg i { position: absolute; inset: 0; }
.tvd-bg .s { background: linear-gradient(to right, var(--bg), rgba(11, 12, 16, .85), transparent); }
[dir=rtl] .tvd-bg .s { background: linear-gradient(to left, var(--bg), rgba(11, 12, 16, .85), transparent); }
.tvd-bg .f { background: linear-gradient(transparent, rgba(11, 12, 16, .6), var(--bg)); }
.tvd-head { padding: calc(var(--u) * 10) calc(var(--u) * 48) 0; max-width: calc(var(--u) * 820); display: flex; flex-direction: column; gap: calc(var(--u) * 14); }
.tvd-logo img { display: block; max-height: calc(var(--u) * 140); max-width: calc(var(--u) * 460); object-fit: contain; }
.tvd-name { font-size: calc(var(--u) * 44); font-weight: 700; line-height: 1.15; }
.tvd-ov { font-size: calc(var(--u) * 17); line-height: calc(var(--u) * 25); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tvd-row { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--u) * 10); }
.tvd-row.play { gap: calc(var(--u) * 6); padding-top: calc(var(--u) * 6); }
.xbtn { display: inline-flex; align-items: center; height: calc(var(--u) * 40); min-width: calc(var(--u) * 40); padding: 0 calc(var(--u) * 9); border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: calc(var(--u) * 14); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, padding .2s; }
.xbtn .ic, .xbtn svg { width: calc(var(--u) * 22) !important; height: calc(var(--u) * 22) !important; flex: none; }
.xbtn .xl { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s, opacity .25s, margin .25s; }
.xbtn .xa { font-size: calc(var(--u) * 13); margin-inline-start: calc(var(--u) * 6); }
.xbtn.open, .xbtn:hover, .xbtn:focus-visible { padding: 0 calc(var(--u) * 16) 0 calc(var(--u) * 12); }
[dir=rtl] .xbtn.open, [dir=rtl] .xbtn:hover, [dir=rtl] .xbtn:focus-visible { padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 16); }
.xbtn.open .xl, .xbtn:hover .xl, .xbtn:focus-visible .xl { max-width: calc(var(--u) * 320); opacity: 1; margin-inline-start: calc(var(--u) * 6); }
.xbtn:hover, .xbtn:focus-visible { background: #fff; color: #000; border-color: #fff; outline: none; }
.xbtn.main { background: #fff; color: #000; border-color: #fff; }
.xbtn.main:not(:hover):not(:focus-visible) .xl { max-width: calc(var(--u) * 320); opacity: 1; margin-inline-start: calc(var(--u) * 6); }
.xbtn.main { padding: 0 calc(var(--u) * 16) 0 calc(var(--u) * 12); }
[dir=rtl] .xbtn.main { padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 16); }
.tvd-seasons { display: flex; justify-content: center; flex-wrap: wrap; gap: calc(var(--u) * 30); padding: calc(var(--u) * 34) calc(var(--u) * 48) calc(var(--u) * 6); }
.tvd-seasons button { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 9); padding: calc(var(--u) * 4) calc(var(--u) * 6); cursor: pointer; outline: none; }
.tvd-seasons span { font-size: calc(var(--u) * 17); opacity: .55; transition: transform .25s, opacity .25s; }
.tvd-seasons .on span { font-weight: 600; opacity: 1; transform: scale(1.12); }
.tvd-seasons button:hover span, .tvd-seasons button:focus-visible span { opacity: 1; transform: scale(1.22); }
.tvd-seasons i { height: calc(var(--u) * 3); width: calc(var(--u) * 34); border-radius: 2px; background: var(--accent); transform: scaleX(0); opacity: 0; transition: transform .25s, opacity .25s; }
.tvd-seasons .on i, .tvd-seasons button:hover i { transform: none; opacity: 1; }
.tvd-ep .cc-still { position: relative; }
.tvd-next { position: absolute; z-index: 2; top: calc(var(--u) * 8); inset-inline-start: calc(var(--u) * 8); font-size: calc(var(--u) * 11); font-weight: 700; background: var(--accent); border-radius: calc(var(--u) * 4); padding: calc(var(--u) * 1) calc(var(--u) * 6); }
.tvd-w { width: calc(var(--u) * 26); height: calc(var(--u) * 26); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; color: rgba(255, 255, 255, .5); flex: none; margin-inline-start: calc(var(--u) * 8); }
.tvd-w .ic { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }
.tvd-w.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tvd-w:hover { border-color: #fff; color: #fff; }
.tvd-cast { padding-top: calc(var(--u) * 26); }
.tvd-cast h3 { font-size: calc(var(--u) * 20); font-weight: 600; padding: 0 calc(var(--u) * 48); }
.tvd-cast .strip { gap: calc(var(--u) * 22) !important; padding: calc(var(--u) * 14) calc(var(--u) * 48); }
.tvd-person { width: calc(var(--u) * 118); flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; outline: none; }
.tvd-person .ph { position: relative; width: calc(var(--u) * 96); height: calc(var(--u) * 96); border-radius: 50%; overflow: hidden; background: var(--raised); display: grid; place-items: center;
  font-size: calc(var(--u) * 30); color: var(--dim); transition: transform .2s, box-shadow .2s; }
.tvd-person .ph .img { position: absolute; inset: 0; }
.tvd-person:hover .ph, .tvd-person:focus-visible .ph { transform: scale(1.1); box-shadow: 0 0 0 calc(var(--u) * 2) #fff; }
.tvd-person b { font-size: calc(var(--u) * 13); font-weight: 600; padding-top: calc(var(--u) * 8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tvd-person small { font-size: calc(var(--u) * 11.5); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.xbtn .twothumbs { width: calc(var(--u) * 28) !important; height: calc(var(--u) * 22) !important; display: inline-flex; }
.xbtn .twothumbs svg { width: calc(var(--u) * 19) !important; height: calc(var(--u) * 19) !important; }
.tvh-event .when { display: inline-flex; align-items: center; gap: calc(var(--u) * 6); background: rgba(255, 255, 255, .15); border-radius: calc(var(--u) * 6); padding: calc(var(--u) * 3) calc(var(--u) * 10); font-size: calc(var(--u) * 15); font-weight: 600; }
.tvh-event .when .ic { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }
.tvh-event .left { font-size: calc(var(--u) * 14); font-weight: 600; color: #FFC35A; }

/* computer: the other pages under the TV bar — no page titles (the bar says where you are), TV sizes */
.tv .tvpush .pagetitle, .tv .tvpush .search-head h1 { display: none; }
.tv .tvpush .tabpage { padding-top: calc(var(--u) * 6); }
.tv .search-head { padding: calc(var(--u) * 6) calc(var(--u) * 48) calc(var(--u) * 10); }
.tv .searchbox { height: calc(var(--u) * 58); border-radius: 999px; background: #151A26; border: 1px solid rgba(255, 255, 255, .1); padding: 0 calc(var(--u) * 7); gap: calc(var(--u) * 14); }
.tv .searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 calc(var(--u) * 1.5) var(--accent); }
.tv .searchbox > .ic { width: calc(var(--u) * 44); height: calc(var(--u) * 44); padding: calc(var(--u) * 11); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; flex: none; }
.tv .searchbox:focus-within > .ic { background: var(--accent); }
.tv .searchbox input { font-size: calc(var(--u) * 18); }
.tv .grid { grid-template-columns: repeat(auto-fill, minmax(calc(var(--u) * 150), 1fr)); gap: calc(var(--u) * 22) calc(var(--u) * 16); padding: 0 calc(var(--u) * 48); }
.tv .grid .count, .tv .grid .req-head { font-size: calc(var(--u) * 14); }
.tv .chgrid { grid-template-columns: repeat(auto-fill, minmax(calc(var(--u) * 240), 1fr)); gap: calc(var(--u) * 20) calc(var(--u) * 16); padding: calc(var(--u) * 18) calc(var(--u) * 48) 0; }
.tv .chip { height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 16); font-size: calc(var(--u) * 14); }
.tv .empty { font-size: calc(var(--u) * 15); }

/* computer: settings (SettingsScreen.kt) — the sections at the side, the chosen one beside them */
.tvset { display: flex; gap: calc(var(--u) * 40); padding: calc(var(--u) * 20) calc(var(--u) * 48) calc(var(--u) * 60); align-items: flex-start; }
.tvset nav { width: calc(var(--u) * 250); flex: none; display: flex; flex-direction: column; gap: calc(var(--u) * 6); position: sticky; top: calc(var(--u) * 100); }
.tvset nav button { display: flex; align-items: center; gap: calc(var(--u) * 12); height: calc(var(--u) * 46); padding: 0 calc(var(--u) * 16); border-radius: calc(var(--u) * 12); font-size: calc(var(--u) * 15); color: var(--sub); cursor: pointer; text-align: start; }
.tvset nav button .ic { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.tvset nav button:hover, .tvset nav button:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; outline: none; }
.tvset nav button.on { background: #fff; color: #000; font-weight: 600; }
.tvset-pane { flex: 1; min-width: 0; max-width: calc(var(--u) * 640); }
.tvset-pane h2 { font-size: calc(var(--u) * 22); font-weight: 600; margin-bottom: calc(var(--u) * 14); }
.tvset-pane .topbar, .tvset-pane .pagetitle, .tvset-pane .backfab { display: none; }
.tvset-pane .tabpage, .tvset-pane .screen { padding: 0; min-height: 0; }
.tvset-pane .group { max-width: none; }
.tvset-pane > div > * { margin-inline: 0 !important; }
/* phone-sized pages kept as they are, made a little bigger to sit with the TV sizes around them */
.tv .tvset-pane > div { zoom: 1.15; }
.tv .tvpush > .screen { zoom: 1.15; }
.tvset-pane .tabpage > .pagetitle, .tvset-pane .tabpage > h1 { display: none; }
.tvset-pane .page > div:first-child:not([class]) { display: none; }
.tvset-pane .page { padding-top: 0 !important; }
