:root {
  --bg: #0b0b0f; --panel: #15151c; --panel2: #1d1d27; --line: #2a2a37;
  --text: #f1f1f4; --muted: #9a9aab; --accent: #e0303c; --accent-ink: #ffffff; --accent-hi: #ff4a57; --accent-lo: #a8182a; --side: 210px; --danger: #ff5d5d; --ok: #4cd08a;
  --r: 10px; --gut: 24px;
}
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--fs, 1)); }
@media (min-width: 1500px) { html { font-size: calc(20px * var(--fs, 1)); } }
@media (min-width: 2400px) { html { font-size: calc(30px * var(--fs, 1)); } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: left; }
:focus { outline: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
[hidden] { display: none !important; }

/* top bar */
.top { position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 5; display: flex; flex-direction: row; align-items: center; padding: 0 var(--gut); background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,0)); transition: background .25s; overflow-x: auto; scrollbar-width: none; }
.top::-webkit-scrollbar { display: none; }
.top.solid { background: rgba(10,10,13,.72); box-shadow: 0 1px 0 var(--line); }
.top .tab { flex: none; }
.top .dot { margin: 0 14px 0 0; flex: none; }
.brand { flex: none; font-weight: 800; letter-spacing: .04em; color: var(--accent); margin: 0 22px 0 0; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.brand img { height: 32px; width: auto; }
.login .wordmark { display: block; height: 52px; width: auto; margin: 0 auto 6px; }
.tab { padding: 8px 12px; border-radius: 6px; color: #d4d4dc; white-space: nowrap; font-size: .95rem; transition: color .15s; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }
.spacer { flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.dot.busy { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

main { padding: 88px var(--gut) 120px; max-width: 2200px; margin: 0 auto; }
main.home { max-width: none; padding-top: 0; }
h1 { font-size: 1.6rem; margin: 6px 0 16px; }
h2 { font-size: 1.2rem; font-weight: 700; margin: 22px 0 12px; letter-spacing: .01em; }
.sub { color: var(--muted); font-size: .9rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }

/* rails and grids */
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 22px var(--gut) 34px; margin: -12px calc(-1 * var(--gut)) -12px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.rail > .card { flex: 0 0 auto; width: 170px; scroll-snap-align: start; }
.rail > .card.wcard { width: 300px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.card { display: block; width: 100%; border-radius: 6px; transition: transform .12s ease-out; position: relative; }
.card:hover, .card:focus { transform: scale(1.09); z-index: 3; box-shadow: 0 10px 28px rgba(0,0,0,.65); }
.card:focus { outline: none; }
.card .t { color: #e8e8ee; }
.art { position: relative; aspect-ratio: 2/3; background: linear-gradient(160deg, #26263a, #14141d); border-radius: 6px; overflow: hidden; }
.art.sq { aspect-ratio: 1/1; }
.art.wide { aspect-ratio: 16/9; }
.art img { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; }
.art .ph { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; color: var(--muted); font-weight: 600; }
.card .t { margin-top: 8px; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .s { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.bar > i { display: block; height: 100%; background: var(--accent); }
.badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.badge { background: rgba(0,0,0,.72); font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; letter-spacing: .03em; }
.badge.gold { background: var(--accent); color: var(--accent-ink); }
.check { position: absolute; top: 6px; right: 6px; background: var(--ok); color: #04210f; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }

/* controls */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; text-align: center; justify-content: center; }
.btn:hover { background: #262633; }
.btn.pri { background: linear-gradient(180deg,var(--accent-hi),var(--accent-lo)); color: #fff; border: 1px solid #fff8; box-shadow: inset 0 1px 0 #ffffff55, 0 2px 6px #0008; text-shadow: 0 1px 1px #0006; }
.btn.pri:hover { filter: brightness(1.1); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.input { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; font-size: .88rem; }
.chip.on { background: var(--text); color: #000; }

/* lists */
.list { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: var(--panel); border-radius: var(--r); width: 100%; }
.row:hover { background: var(--panel2); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .num { width: 2.2em; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.logo { width: 56px; height: 40px; border-radius: 6px; background: var(--panel2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-size: .7rem; color: var(--muted); }
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prog { height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--accent); }
.status { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.status.recording { background: var(--danger); color: #fff; }
.status.failed { color: var(--danger); }

/* detail */
.hero { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.hero .art { width: 200px; flex: none; }
.hero .art.sq { width: 220px; }
.hero .info { flex: 1; min-width: 240px; }
.hero p { color: #cfcfdb; line-height: 1.5; max-width: 70ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

/* forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.err { color: var(--danger); margin: 8px 0; min-height: 1.2em; }

/* login */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.login h1 { text-align: center; color: var(--accent); letter-spacing: .06em; font-size: 2rem; }

/* player */
.player { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; align-items: center; justify-content: center; }
.player video { width: 100%; height: 100%; background: #000; }
.player .ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(#000a, transparent 22%, transparent 70%, #000c); transition: opacity .25s; }
.player.idle .ui { opacity: 0; visibility: hidden; cursor: none; transition: opacity .25s, visibility 0s linear .25s; } /* gone completely, not just see-through: a see-through layer over an HDR picture dulls it on a TV */
.player.mini .head, .player.mini .foot > .ctl + .ctl { display: none; } /* skip: time and progress bar only */
.player .head { padding: 16px 22px; display: flex; gap: 12px; align-items: center; }
.player .head .ttl { font-weight: 700; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .foot { padding: 10px 22px 22px; }
.player .ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.seek { width: 100%; accent-color: var(--accent); height: 22px; }
.time { font-variant-numeric: tabular-nums; color: #ddd; font-size: .85rem; min-width: 8.5em; }
.toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #000c; padding: 14px 20px; border-radius: 12px; max-width: 80%; text-align: center; }
/* the Scena singer: the head from the logo, bobbing, with sound coming out of it (replaces the spinning circle) */
.spin { position: absolute; top: 50%; left: 50%; width: 96px; height: 72px; margin: -36px 0 0 -48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
@keyframes rot { to { transform: rotate(360deg); } }
.nowbox { color: #ddd; font-size: .9rem; margin-top: 2px; }

/* menu / modal */
.scrim { position: fixed; inset: 0; background: #000b; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.menu { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 260px; max-width: 520px; width: 100%; max-height: 80vh; overflow: auto; }
.menu h3 { margin: 8px 10px 10px; font-size: 1rem; }
.menu button { display: flex; width: 100%; padding: 12px 14px; border-radius: 8px; gap: 10px; align-items: center; }
.menu button:hover { background: var(--panel2); }
.menu button.on::after { content: "\2713"; margin-left: auto; color: var(--accent); }

/* mini music player */
#mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(21,21,28,.97); border-top: 1px solid var(--line); padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
#mini .cov { width: 46px; height: 46px; border-radius: 6px; background: var(--panel2); overflow: hidden; flex: none; }
#mini .cov img { width: 100%; height: 100%; object-fit: cover; }
#mini .meta { min-width: 0; flex: 0 1 240px; }
#mini .meta .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .seek { flex: 1; min-width: 60px; }
.ib { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); text-align: center; flex: none; }
.ib.pri { background: linear-gradient(180deg,var(--accent-hi),var(--accent-lo)); color: #fff; border: 1px solid #fff8; box-shadow: inset 0 1px 0 #ffffff55; }

@media (max-width: 640px) {
  :root { --gut: 14px; }
  .top { height: 56px; }
  .tab { font-size: .85rem; padding: 8px 9px; }
  .brand { margin-right: 10px; }
  .brand img { width: 30px; height: 26px; object-fit: cover; object-position: left center; }
  main { padding-top: 70px; }
  .rail > .card.wcard { width: 220px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px 10px; }
  .rail > .card { width: 118px; }
  .hero .art, .hero .art.sq { width: 130px; }
  #mini .seek, #mini .time { display: none; }
}

/* title info sheet */
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: 100%; max-width: 860px; max-height: 92vh; overflow: auto; }
.sheet .info p { max-width: 70ch; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 28px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tech h3 { margin: 6px 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.trk { margin-bottom: 8px; } .trk .t { font-weight: 600; }

/* artwork chooser */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin: 14px 0; }
.art-opt { text-align: left; border-radius: 10px; padding: 6px; } .art-opt:disabled { opacity: .5; }
.art-img { aspect-ratio: 2 / 3; border-radius: 8px; background: var(--panel2); overflow: hidden; } .art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* settings: category menu + pane */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.smenu { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.sgroup { margin: 14px 0 6px 12px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .sgroup:first-child { margin-top: 0; }
.sitem { text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--muted); border-left: 3px solid transparent; }
.sitem:hover { color: var(--text); background: var(--panel); }
.sitem.on { color: var(--text); background: var(--panel2); border-left-color: var(--accent); font-weight: 600; }
.spane { min-width: 0; } .spane .panel:first-child { margin-top: 0; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; gap: 12px; } .smenu { position: static; flex-direction: row; flex-wrap: wrap; } .sgroup { display: none; } .sitem { border-left: 0; background: var(--panel); } }

.pbars { display: flex; gap: 6px; align-items: flex-end; height: 110px; max-height: 110px; overflow: hidden; margin: 8px 0 16px; }
.pbar { position: relative; flex: 1; min-width: 0; height: 110px; max-height: 110px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: .7rem; color: var(--muted); }
.pbar i { display: block; flex: none; width: 100%; max-height: 80px; min-height: 2px; background: linear-gradient(var(--accent-hi), var(--accent-lo)); border-radius: 4px 4px 0 0; }

.btn.skipbtn { position: fixed; right: 3vw; bottom: 17vh; z-index: 5; min-width: 150px; min-height: 0; margin: 0; box-shadow: 0 6px 24px #000a; }
.btn.skipbtn[hidden] { display: none; }

.profiles { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 10px 6px; border-radius: 14px; }
.profile:hover { background: var(--panel); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; background: linear-gradient(160deg, var(--accent-hi), var(--accent-lo)); color: #fff; }

.code { font-size: 2.4rem; font-weight: 800; letter-spacing: .25em; text-align: center; margin: 14px 0; color: var(--accent-hi); }
.scrim.lb { background: #000e; flex-direction: column; gap: 10px; }
.lbimg { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lbcap { color: var(--muted); } .lbbar { display: flex; gap: 8px; }

.subprevwrap{margin-top:12px;padding:28px 16px;border-radius:10px;text-align:center;background:linear-gradient(135deg,#355c7d,#6c5b7b,#c06c84)}
.subprev{display:inline-block;padding:2px 8px;font-size:22px}

.dots { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; z-index: 2; }
.card:hover .dots, .card:focus .dots, .card:focus-within .dots { opacity: 1; }
.dots:hover { background: var(--accent); }
@media (hover: none) { .dots { opacity: .85; } }
.check { cursor: pointer; z-index: 2; }
.check.off { background: rgba(0,0,0,.6); color: rgba(255,255,255,.8); opacity: 0; border: 1px solid rgba(255,255,255,.6); transition: opacity .12s; }
.card:hover .check.off, .card:focus .check.off { opacity: 1; }
.check.off:hover { background: var(--ok); color: #04210f; }
@media (hover: none) { .check.off { opacity: .8; } }

/* billboard (Home hero) */
.billboard { position: relative; height: 78vh; min-height: 440px; max-height: 900px; overflow: hidden; margin: 0 calc(-1 * var(--gut)); background: #101016; }
.bb-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0; transition: opacity 1s; }
.bb-img.on { opacity: 1; }
.billboard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,11,.92) 0%, rgba(8,8,11,.55) 38%, rgba(8,8,11,0) 70%); }
.billboard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; background: linear-gradient(180deg, rgba(11,11,15,0), var(--bg)); }
.bb-body { position: absolute; z-index: 2; left: var(--gut); bottom: 22%; width: 46%; min-width: 280px; max-width: 760px; transition: opacity .35s; }
.bb-body.out { opacity: 0; }
.bb-t { font-size: 3rem; line-height: 1.05; margin: 0 0 10px; font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.bb-m { color: #d8d8e0; font-size: .95rem; margin-bottom: 10px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.bb-o { color: #ececf2; font-size: 1rem; line-height: 1.45; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.bb-b { display: flex; flex-wrap: wrap; }
.bb-b .btn { margin-right: 12px; padding: 12px 28px; font-size: 1.05rem; border-radius: 6px; margin-bottom: 8px; }
.btn.bb-play { background: #fff; color: #111; border: 0; box-shadow: none; text-shadow: none; }
.btn.bb-play:hover { background: #e2e2e6; filter: none; }
.btn.bb-info { background: rgba(109,109,122,.7); color: #fff; border: 0; }
.btn.bb-info:hover { background: rgba(109,109,122,.45); }
.bb-dots { position: absolute; z-index: 2; right: var(--gut); bottom: 24%; display: flex; }
.bb-dot { width: 22px; height: 4px; margin-left: 6px; padding: 0; border-radius: 2px; background: rgba(255,255,255,.3); }
.bb-dot.on { background: #fff; }
.home-rows { position: relative; z-index: 3; margin-top: -96px; }
/* title sheet with backdrop header */
.sheetbd { position: relative; margin: -20px -20px 0; height: 190px; overflow: hidden; border-radius: 14px 14px 0 0; background: linear-gradient(160deg, #2a1218, #14141d); }
.sheetbd img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.sheetbd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(180deg, rgba(21,21,28,0), var(--panel)); }
.sheetbd + .hero { position: relative; z-index: 2; margin-top: -60px; }
.sheetbd + .hero .art { box-shadow: 0 8px 28px rgba(0,0,0,.6); }
.sheet.nobd .sheetbd { display: none; }
.sheet.nobd .sheetbd + .hero { margin-top: 0; }
@media (max-width: 640px) {
  .billboard { height: 64vh; min-height: 360px; }
  .bb-body { width: auto; right: var(--gut); bottom: 18%; }
  .bb-t { font-size: 1.8rem; }
  .bb-o { -webkit-line-clamp: 2; font-size: .9rem; }
  .bb-b .btn { padding: 10px 20px; font-size: .95rem; }
  .bb-dots { display: none; }
  .home-rows { margin-top: -70px; }
  .sheetbd { height: 170px; }
}
@media (min-width: 1500px) { .billboard { height: 74vh; } }

/* TV: read from the sofa. Everything is in rem, so one font-size change scales the whole interface. */
html.tv { font-size: calc(28px * var(--fs, 1) * var(--tvk, 1)); }
html.tv .top { height: calc(104px * var(--tvk, 1)); padding: 0 calc(48px * var(--tvk, 1)); }
html.tv .brand img { height: calc(52px * var(--tvk, 1)); }
html.tv .brand { margin-right: calc(34px * var(--tvk, 1)); }
html.tv .tab { font-size: 1.05rem; padding: calc(12px * var(--tvk, 1)) calc(20px * var(--tvk, 1)); margin-right: calc(4px * var(--tvk, 1)); }
html.tv .tab.on { box-shadow: inset 0 -4px 0 var(--accent); }
html.tv main:not(.home) { padding-top: calc(132px * var(--tvk, 1)); }
html.tv main { padding-left: calc(48px * var(--tvk, 1)); padding-right: calc(48px * var(--tvk, 1)); }
html.tv .billboard { margin: 0 -48px; }
html.tv .bb-body { left: calc(48px * var(--tvk, 1)); width: 52%; max-width: calc(1100px * var(--tvk, 1)); }
html.tv .bb-b .btn { padding: calc(14px * var(--tvk, 1)) calc(34px * var(--tvk, 1)); }
html.tv .rail { padding-left: calc(48px * var(--tvk, 1)); padding-right: calc(48px * var(--tvk, 1)); margin-left: -48px; margin-right: -48px; }
html.tv .rail > .card { width: calc(240px * var(--tvk, 1)); }
html.tv .rail > .card.wcard { width: calc(420px * var(--tvk, 1)); }
html.tv .grid { grid-template-columns: repeat(auto-fill, minmax(calc(230px * var(--tvk, 1)), 1fr)); }
html.tv .card .t { font-size: 1rem; margin-top: calc(12px * var(--tvk, 1)); }
html.tv .card .s { font-size: .9rem; }
html.tv .btn { padding: calc(14px * var(--tvk, 1)) calc(26px * var(--tvk, 1)); font-size: 1rem; }
html.tv .sheet { max-width: calc(1300px * var(--tvk, 1)); padding: calc(32px * var(--tvk, 1)); }
html.tv .sheetbd { margin: -32px -32px 0; }
html.tv .hero .art { width: calc(240px * var(--tvk, 1)); }
.player:focus { outline: none; }

/* artwork picker: poster / background */
.arttabs { display: flex; margin: 10px 0 4px; }
.arttabs .btn { margin-right: 8px; }
.art-grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.art-img.wide { aspect-ratio: 16 / 9; }

/* floating glass panes: info sheet, menus and dialogs */
.sheet, .menu { background: rgba(22,22,30,.92); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 28px 80px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.22); animation: floatin .16s ease-out; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .scrim { background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
  .sheet, .menu { background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 45%, rgba(255,255,255,.08)), rgba(20,20,28,.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); }
}
.sheet .btn:not(.pri) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.sheet .btn:not(.pri):hover { background: rgba(255,255,255,.2); }
.sheetbd::after { background: linear-gradient(180deg, rgba(20,20,28,0), rgba(20,20,28,.75)); }
.menu button:hover { background: rgba(255,255,255,.12); }
@keyframes floatin { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet, .menu { animation: none; } }
.matchlist { max-height: 52vh; overflow: auto; }
.matchrow { display: flex; width: 100%; text-align: left; align-items: flex-start; border-radius: 12px; margin-bottom: 8px; padding: 10px; }
.matchrow > .art { margin-right: 14px; }
.matchrow .mo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }

/* Playback Information overlay (during playback): fully transparent, on the left, text kept readable with a shadow */
.pinfo { position: absolute; top: 76px; left: 22px; z-index: 4; width: 760px; max-width: calc(100% - 44px); max-height: calc(100% - 190px); overflow: hidden; padding: 14px 18px; background: transparent; border: 0; box-shadow: none; font-size: .8rem; text-align: left; text-shadow: 0 0 3px rgba(0,0,0,.95), 0 1px 6px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.7); }
.pihead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pit { font-weight: 700; font-size: 1rem; }
.pigrid { display: flex; }
.pigrid > div { flex: 1; min-width: 0; }
.pigrid > div + div { margin-left: 22px; }
.pinfo h3 { margin: 10px 0 4px; font-size: .82rem; color: var(--accent-hi); }
.pinfo .kv { margin: 0; }
html.tv .pinfo { width: calc(1180px * var(--tvk, 1)); top: calc(120px * var(--tvk, 1)); }
@media (max-width: 640px) { .pinfo { top: 60px; left: 8px; right: 8px; width: auto; max-width: none; } .pigrid { display: block; } .pigrid > div + div { margin-left: 0; } }

/* Start-up animation: the logo assembles from the top down (glass, head, S wiped top to bottom, then the name). */
/* the whole mark fades up out of the dark, the reverse of a logo that fades away */

/* "More like this" and search */
.related h2 { font-size: 1.1rem; margin: 18px 0 6px; }
.sheet .related { margin: 6px 0 2px; }
.sheet .related .rail { margin: 0; padding: 8px 4px 14px; }
.chips .btn { margin: 0 8px 8px 0; }
html.tv .related h2 { font-size: 1.5rem; }

/* playlists: poster, details and description for every entry */
.plitem { display: flex; align-items: flex-start; gap: 14px; }
.plart { flex: none; width: 70px; }
.plbody { flex: 1; min-width: 0; }
.plbody .t { white-space: normal; }
.plov { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0; }
.plrow { align-items: center; }
.plcover { flex: none; display: flex; }
.plcover .art { width: 46px; margin-right: -14px; box-shadow: 2px 0 8px rgba(0,0,0,.5); }
.plcover .art:last-child { margin-right: 0; }
html.tv .plart { width: calc(110px * var(--tvk, 1)); }
html.tv .plcover .art { width: calc(72px * var(--tvk, 1)); }

/* Top 10: large outlined numbers behind the posters, one horizontal rail */
.top10 .rail { padding-top: 14px; }
.t10 { flex: 0 0 auto; display: flex; align-items: flex-end; margin-right: 10px; }
.t10 .n { font-size: 8.5rem; line-height: .78; font-weight: 900; letter-spacing: -.06em; color: #0a0a10; -webkit-text-stroke: 3px #6b6b78; margin-right: -6px; padding-bottom: 38px; position: relative; z-index: 0; }
.t10 .card { position: relative; z-index: 1; flex: none; width: 150px; }
.rail > .t10 { scroll-snap-align: start; }
html.tv .t10 .n { font-size: 12rem; -webkit-text-stroke-width: 4px; padding-bottom: calc(54px * var(--tvk, 1)); }
html.tv .t10 .card { width: calc(220px * var(--tvk, 1)); }
@media (max-width: 640px) { .t10 .n { font-size: 6rem; padding-bottom: 30px; margin-right: -18px; } .t10 .card { width: 108px; } }

/* ---------- accessibility (Accessibility sheet): themes, text size, fonts, motion, focus ---------- */
/* Light: the page and sheets go light; the player, photo viewer and the home banner stay dark because they sit on video and artwork. */
html[data-theme="light"] { --bg: #f4f4f7; --panel: #ffffff; --panel2: #e9e9ef; --line: #cfcfd9; --text: #15151b; --muted: #55555f; --accent: #c4202c; --accent-hi: #d9303d; --accent-lo: #a8182a; --danger: #b3261e; --ok: #14754a; }
html[data-theme="light"] .art { background: linear-gradient(160deg, #dcdce6, #c4c4d2); }
html[data-theme="light"] .card .t { color: var(--text); }
html[data-theme="light"] .tab:hover, html[data-theme="light"] .tab.on { color: var(--text); }
html[data-theme="light"] .top.onhome:not(.solid) .tab, html[data-theme="light"] .top.onhome:not(.solid) .tab:hover, html[data-theme="light"] .top.onhome:not(.solid) .tab.on, html[data-theme="light"] .top.onhome:not(.solid) .brand { color: #fff; }
html[data-theme="light"] .top.solid, html[data-theme="light"] .top:not(.onhome) { background: rgba(255,255,255,.78); box-shadow: 0 1px 0 var(--line); }
html[data-theme="light"] .top.solid .tab, html[data-theme="light"] .top:not(.onhome) .tab { color: var(--muted); }
html[data-theme="light"] .top.solid .tab:hover, html[data-theme="light"] .top.solid .tab.on, html[data-theme="light"] .top:not(.onhome) .tab:hover, html[data-theme="light"] .top:not(.onhome) .tab.on { color: var(--text); }
html[data-theme="light"] .chip.on { color: var(--bg); }
html[data-theme="light"] .sheet, html[data-theme="light"] .menu { background: rgba(255,255,255,.96); border-color: rgba(0,0,0,.14); box-shadow: 0 24px 70px rgba(0,0,0,.28); color: var(--text); }
html[data-theme="light"] .sheet:not(.title) .btn:not(.pri) { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.16); }
html[data-theme="light"] .sheet:not(.title) .btn:not(.pri):hover { background: rgba(0,0,0,.12); }
html[data-theme="light"] .sheetbd { background: linear-gradient(160deg, #dcdce6, #c4c4d2); }
html[data-theme="light"] .sheetbd::after { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96)); }
html[data-theme="light"] .menu button:hover { background: rgba(0,0,0,.08); }
html[data-theme="light"] #mini { background: rgba(255,255,255,.97); }
html[data-theme="light"] .billboard::after { background: linear-gradient(180deg, rgba(244,244,247,0), var(--bg)); }
html[data-theme="light"] .t10 .n { color: #f4f4f7; -webkit-text-stroke-color: #9a9aa8; }
html[data-theme="light"] .time, html[data-theme="light"] .nowbox { color: var(--muted); }
html[data-theme="light"] .player, html[data-theme="light"] .scrim.lb, html[data-theme="light"] .billboard { --text: #f1f1f4; --muted: #b4b4c2; --panel: #15151c; --panel2: #1d1d27; --line: #2a2a37; --bg: #000; --accent: #e0303c; --accent-hi: #ff4a57; --accent-lo: #a8182a; }
html[data-theme="light"] .player .time, html[data-theme="light"] .player .nowbox { color: #ddd; }
/* High contrast: black, white, thick borders */
html[data-theme="contrast"] { --bg: #000; --panel: #000; --panel2: #1a1a1a; --line: #d0d0d0; --text: #fff; --muted: #e2e2e2; --accent: #ff5a64; --accent-hi: #ff7a82; --accent-lo: #d6303c; --danger: #ff8080; --ok: #6df0a8; }
html[data-theme="contrast"] .btn, html[data-theme="contrast"] .input, html[data-theme="contrast"] .row, html[data-theme="contrast"] .chip { border: 2px solid #fff; }
html[data-theme="contrast"] .btn.pri { color: #000; background: #fff; text-shadow: none; }
html[data-theme="contrast"] .art { border: 2px solid #fff; }
html[data-theme="contrast"] .sheet, html[data-theme="contrast"] .menu { background: #000; border: 2px solid #fff; }
html[data-theme="contrast"] .top.solid { background: #000; box-shadow: 0 2px 0 #fff; }
html[data-theme="contrast"] :focus, html[data-theme="contrast"] .card:focus { outline: 4px solid #ffd60a; outline-offset: 3px; }
html[data-theme="contrast"] .sub, html[data-theme="contrast"] .card .s { color: #e2e2e2; }
/* Options */
html.a-bold body { font-weight: 600; }
html.a-bold .sub, html.a-bold .card .s { font-weight: 600; }
html.a-font body, html.a-font button, html.a-font input, html.a-font select { font-family: "Atkinson Hyperlegible", Lexend, Verdana, Tahoma, "Trebuchet MS", sans-serif; letter-spacing: .035em; word-spacing: .1em; line-height: 1.55; }
html.a-focus :focus, html.a-focus .card:focus { outline: 5px solid #ffd60a !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(0,0,0,.85) !important; }
html.a-big .btn, html.a-big .tab, html.a-big .ib, html.a-big .input, html.a-big select { min-height: 52px; font-size: 1.05rem; }
html.a-big .btn { padding: 12px 24px; }
html.a-big .row { padding: 16px 14px; }
html.a-solid .sheet, html.a-solid .menu { background: var(--panel) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.a-solid .scrim { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(0,0,0,.72); }
html.a-calm *, html.a-calm *::before, html.a-calm *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html.a-calm .card:hover, html.a-calm .card:focus { transform: none; }
.a11y-row { margin: 14px 0 4px; }
.a11y-row > .lbl { font-weight: 700; margin-bottom: 6px; }
.a11y-row .btn { margin: 0 8px 8px 0; }
.a11y-row .btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.a11y-row .desc { color: var(--muted); font-size: .85rem; margin: -2px 0 6px; }

/* rails get arrows; the row itself stays swipeable */
.railwrap { position: relative; }
.rarrow { position: absolute; top: 10px; bottom: 30px; width: 54px; z-index: 6; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; line-height: 1; color: #fff; border: 0; opacity: 0; transition: opacity .1s; cursor: pointer; text-align: center; }
.rarrow.l { left: calc(-1 * var(--gut)); background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,0)); }
.rarrow.r { right: calc(-1 * var(--gut)); background: linear-gradient(270deg, rgba(0,0,0,.78), rgba(0,0,0,0)); }
.railwrap:hover .rarrow, .rarrow:focus { opacity: 1; }
.rarrow:hover { color: var(--accent-hi); }
@media (hover: none) { .rarrow { display: none !important; } }
html.tv .rarrow { display: none !important; }
html { scroll-behavior: auto; }
/* light theme fixes: text over artwork stays light; the home rows no longer overlap the banner */
html[data-theme="light"] .billboard, html[data-theme="light"] .player, html[data-theme="light"] .scrim.lb { color: #f1f1f4; }
html[data-theme="light"] .hero p, html[data-theme="light"] .info p { color: var(--text); }
html[data-theme="light"] .home-rows { margin-top: 0; }
html[data-theme="light"] .billboard::after { display: none; }
html[data-theme="light"] .top.solid .brand img, html[data-theme="light"] .top:not(.onhome) .brand img { content: url(logo-dark.svg); }

.scrub { position: absolute; bottom: 34px; transform: translateX(-50%); background: #000d; border-radius: 8px; padding: 4px; text-align: center; pointer-events: none; z-index: 3; }
.scrubimg { display: none; border-radius: 5px; background-repeat: no-repeat; margin: 0 auto; }
.scrubt { font-variant-numeric: tabular-nums; font-size: .8rem; color: #fff; padding-top: 3px; }

/* live tv guide */
.sky { --rh: 62px; }
html.tv .sky { --rh: calc(92px * var(--tvk, 1)); }
.sky-top { display: flex; gap: 22px; margin: 6px 0 14px; align-items: stretch; }
.sky-prev { position: relative; flex: none; width: 44%; width: min(44%, 460px); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.sky-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.sky-live { position: absolute; left: 10px; top: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .7rem; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; }
.sky-sound { position: absolute; right: 8px; bottom: 8px; background: #000a; color: #fff; border: 1px solid #fff4; border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.sky-vmsg { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; text-align: center; font-size: .85rem; color: #ddd; background: linear-gradient(transparent, #000c); pointer-events: none; }
.sky-vmsg:empty { display: none; }
.sky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.sky-who { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.sky-logo { width: 64px; height: 44px; }
.sky-chan { font-weight: 700; font-variant-numeric: tabular-nums; }
.sky-title { font-size: 1.7rem; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sky-time { color: var(--muted); font-size: .95rem; }
.sky-info .prog { max-width: 420px; }
.sky-desc { color: var(--text); opacity: .85; font-size: .92rem; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sky-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sky-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.sky-tabs { flex: 1 1 100%; min-width: 0; padding: 2px; }
.sky-tabs .chip { flex: none; }
.sky-nav { display: flex; gap: 6px; flex: none; }
.sky-search { width: 270px; flex: none; }
.sky-scroll { position: relative; height: calc(100vh - 470px); min-height: 280px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; scroll-padding-left: calc(var(--chw) + 8px); scroll-padding-top: 44px; overscroll-behavior: contain; }
html.tv .sky-scroll { height: calc(100vh - calc(560px * var(--tvk, 1))); }
.sky-head { position: sticky; top: 0; z-index: 6; display: flex; width: max-content; background: var(--panel2); border-bottom: 1px solid var(--line); }
.sky-date { position: sticky; left: 0; z-index: 7; flex: none; width: var(--chw); box-sizing: border-box; padding: 10px 14px; font-weight: 700; background: var(--panel2); border-right: 1px solid var(--line); }
.sky-times { position: relative; height: 40px; flex: none; }
.sky-tm { position: absolute; top: 0; height: 100%; box-sizing: border-box; padding: 10px 0 0 10px; border-left: 1px solid var(--line); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sky-body { position: relative; width: max-content; }
.sky-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; pointer-events: none; }
.sky-row { display: flex; height: var(--rh); border-bottom: 1px solid var(--line); }
.sky-ch { position: sticky; left: 0; z-index: 3; flex: none; width: var(--chw); box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 10px; text-align: left; background: var(--panel2); border-right: 1px solid var(--line); color: var(--text); }
.sky-row.sel .sky-ch { background: var(--accent-lo); color: #fff; }
.sky-n { width: 2.4em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.sky-row.sel .sky-n { color: #fff; }
.sky-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.sky-star { color: #ffc83d; font-size: .9rem; }
.sky-ch .logo { width: 48px; height: 34px; }
.sky-track { position: relative; flex: none; height: 100%; }
.sky-p { position: absolute; top: 5px; bottom: 5px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 10px; text-align: left; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); overflow: hidden; }
.sky-p .pt { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sky-p .ps { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sky-p.live { background: linear-gradient(var(--panel2), var(--panel2)) padding-box; border-left: 4px solid var(--accent); }
.sky-p.past { opacity: .55; }
.sky-p.gap { background: transparent; border-style: dashed; }
.sky-p.gap .pt { font-weight: 500; color: var(--muted); }
.sky-p:focus { outline: none; background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: 0 0 0 3px var(--accent); z-index: 4; }
.sky-p:focus .ps { color: var(--bg); opacity: .7; }
.sky-ch:focus { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
.sky-empty { padding: 60px 20px; text-align: center; position: sticky; left: 0; width: 100%; max-width: 900px; width: min(100%, 900px); box-sizing: border-box; }
.sky-empty .actions { margin-top: 14px; }
@media (max-width: 760px) {
  .sky { --rh: 56px; }
  .sky-top { flex-direction: column; }
  .sky-prev { width: 100%; }
  .sky-title { font-size: 1.3rem; }
  .sky-scroll { height: 60vh; scroll-padding-left: 150px; }
  .sky-search { width: 100%; }
}

/* top 10 rotary dial and its pop-out */
.top10 { margin-bottom: 8px; }
.dial { position: relative; height: 290px; perspective: 1100px; outline: none; user-select: none; touch-action: pan-y; margin: 4px 0 6px; overflow: hidden; }
html.tv .dial { height: calc(350px * var(--tvk, 1)); perspective: none; }
html.tv .dial-stage { transform-style: flat; }
html.tv .dial-it { will-change: auto; }
html.tv .dial-it .art { overflow: visible; background-color: transparent; }
html.tv .dial-it .art img { border-radius: 10px; }
html.tv .dial-it .art .ph { border-radius: 10px; background: linear-gradient(160deg, #26263a, #14141d); }
.dial-stage { position: absolute; inset: 0 0 38px 0; transform-style: preserve-3d; }
.dial-it { position: absolute; left: 50%; top: 14px; aspect-ratio: 2 / 3; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .22s; will-change: transform, opacity; cursor: pointer; }
.dial-it .art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 10px; box-shadow: 0 10px 30px #0009; }
.dial-it.on .art { box-shadow: 0 0 0 3px var(--text), 0 14px 40px #000b; }
.dial:focus .dial-it.on .art { box-shadow: 0 14px 40px #000b; }
.dial-n { position: absolute; left: -6px; bottom: -8px; font-size: 4.6rem; line-height: .8; font-weight: 900; letter-spacing: -.06em; color: #fff; text-shadow: 0 2px 14px #000d; -webkit-text-stroke: 2px #000a; pointer-events: none; }
html.tv .dial-n { font-size: 5rem; }
.dial-it .art.has { background-size: contain; }   /* the whole poster, in its own proportions */
.dial-cap { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 70px; }
.dial-btn { position: absolute; top: 40%; z-index: 30; width: 44px; height: 44px; border-radius: 50%; background: #000a; color: #fff; border: 1px solid #fff4; font-size: 1.8rem; line-height: 1; padding: 0 0 4px; }
.dial-btn.l { left: 8px; } .dial-btn.r { right: 8px; }
.popscrim { animation: popfade .14s ease-out; }
.menu.pop { width: 780px; max-width: 94vw; width: min(780px, 94vw); display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 22px; padding: 22px; animation: popin .18s cubic-bezier(.2, .8, .2, 1); max-height: 92vh; overflow: auto; }
.pop-art { position: relative; }
.pop-art .art { width: 100%; aspect-ratio: 2 / 3; border-radius: 10px; box-shadow: 0 10px 30px #0006; }
.pop-rank { position: absolute; left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 800; border-radius: 6px; padding: 2px 8px; font-size: .9rem; }
.pop-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pop-title { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.pop-desc { margin: 2px 0; line-height: 1.45; }
.badges.mb { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; position: static; }
.badges.mb .badge { font-size: .8rem; padding: 3px 10px; }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes popfade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) { .dial { height: 270px; } .menu.pop { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; } .pop-title { font-size: 1.3rem; } .dial-n { font-size: 3.4rem; } }
html.a-calm .dial-it { transition: none; }
.menu.pop .actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.menu.pop .actions .btn { flex: 0 0 auto; width: auto; }

/* Older TV browsers (LG webOS 22 is Chromium 87) have no aspect-ratio: a block of padding gives the same shape. */
@supports not (aspect-ratio: 1 / 1) {
  .art::before, .art-img::before, .dial-it::before { content: ''; display: block; padding-top: 150%; }
  .art.sq::before { padding-top: 100%; }
  .art.wide::before, .art-img.wide::before { padding-top: 56.25%; }
  .art-img { position: relative; }
  .art-img img { position: absolute; left: 0; top: 0; }
  .dial-it .art { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
  .dial-it .art::before { display: none; }
  .sky-prev::before { content: ''; display: block; padding-top: 56.25%; }
  .sky-prev .sky-video { position: absolute; left: 0; top: 0; }
  .art-grid.wide .art-img::before { padding-top: 56.25%; }
}
/* TV browsers draw scrollbars on every scrolling row: those were the bars between the sections */
html.tv *::-webkit-scrollbar, .rail::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rail, .chips { scrollbar-width: none; }

/* TV show pages laid out like Plex: a row of season posters, then each season's episodes as wide thumbnails */
.season-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); gap: 20px; }
.ep-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 18px; }
html.tv .season-grid { grid-template-columns: repeat(auto-fill, minmax(calc(220px * var(--tvk, 1)), calc(250px * var(--tvk, 1)))); }
html.tv .ep-grid { grid-template-columns: repeat(auto-fill, minmax(calc(380px * var(--tvk, 1)), 1fr)); }
.season-grid .card, .ep-grid .card { text-align: left; }
.art .badge { position: absolute; top: 0; right: 0; min-width: 28px; padding: 5px 9px; background: #0c0c12e6; color: #fff; font-weight: 700; font-size: .9rem; text-align: center; border-bottom-left-radius: 6px; z-index: 2; }
.art .badge.ok { font-size: 1rem; }

/* cast, crew, ratings and reviews */
.extras { margin-top: 8px; }
.casts { gap: 16px; padding-bottom: 8px; }
.casts .cast { flex: 0 0 auto; width: 120px; text-align: center; border-radius: 10px; padding: 4px; }
html.tv .casts .cast { width: calc(170px * var(--tvk, 1)); }
.cast:focus { outline: none; }
.cast-pic { position: relative; width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #26263a, #14141d); }
html.tv .cast-pic { width: calc(130px * var(--tvk, 1)); height: calc(130px * var(--tvk, 1)); }
.cast-pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.cast-ph { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 1.4rem; }
.cast .t { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast .s { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew { margin: 10px 0 6px; display: grid; gap: 4px; }
.crew-row { display: flex; gap: 12px; }
.crew-job { flex: 0 0 150px; color: var(--muted); }
.rate-line { margin: 6px 0 12px; }
.rate-big { font-size: 1.5rem; font-weight: 800; }
.review { padding: 12px 0; border-top: 1px solid #ffffff22; max-width: 90ch; }
.review-h .rate { color: #f5c518; font-weight: 700; }
.review-text { margin: 6px 0; line-height: 1.5; white-space: pre-line; }

.art.has { background-size: cover; background-position: center; background-repeat: no-repeat; }
.art.has .ph { display: none; }

/* Tiles float a little above the page: a soft gradient face, a faint top highlight, a gentle shadow, and a small lift when picked. */
.card { padding: 7px 7px 10px; border-radius: 16px; background: linear-gradient(155deg, var(--panel2), var(--panel)); box-shadow: 0 6px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .07); transition: transform .1s ease-out; }
.card .art { border-radius: 11px; }
.card .t { margin-top: 9px; padding: 0 3px; }
.card .s { padding: 0 3px; }
.card:hover, .card:focus { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 30px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .1); }
.card:focus { outline: none; }
html[data-theme="light"] .card { box-shadow: 0 6px 16px rgba(30, 30, 60, .12), inset 0 1px 0 #fff; }
html[data-theme="light"] .card:hover, html[data-theme="light"] .card:focus { box-shadow: 0 14px 28px rgba(30, 30, 60, .2), inset 0 1px 0 #fff; }
html.a-calm .card { transition: none; }
/* the LG Top 10 row: a big outlined number sits behind the left edge of each poster */
.t10row { gap: 34px; padding-top: 30px; padding-bottom: 44px; }
.t10 { flex: 0 0 auto; display: flex; align-items: flex-end; position: relative; border-radius: 14px; transition: transform .1s ease-out; }
.t10n { position: relative; z-index: 1; margin-right: -46px; font-size: 15rem; line-height: .72; font-weight: 900; letter-spacing: -.09em; color: var(--bg); -webkit-text-stroke: 5px rgba(255, 255, 255, .78); text-shadow: 0 8px 26px rgba(0, 0, 0, .55); }
.t10 .art { position: relative; z-index: 2; width: 190px; flex: none; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.t10:hover, .t10:focus { transform: translateY(-4px) scale(1.05); }
.t10:focus { outline: none; }
html[data-theme="light"] .t10n { -webkit-text-stroke-color: rgba(21, 21, 27, .7); text-shadow: none; }
html.a-calm .t10 { transition: none; }
.player .csub { position: absolute; left: 50%; transform: translateX(-50%); max-width: 84%; padding: .05em .5em; bottom: 9%; text-align: center; white-space: pre-line; color: #fff; font-size: 2.1rem; line-height: 1.3; text-shadow: 0 0 6px #000, 0 2px 4px #000, 0 0 2px #000; pointer-events: none; z-index: 2; }
/* Top 10 tiles float above the rest of the page: lifted, with a deep shadow and a soft pool of shadow beneath */
.t10row { padding-bottom: 60px; }
.t10 .art { transform: translateY(-12px); box-shadow: 0 30px 34px -10px rgba(0, 0, 0, .75), 0 10px 18px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .12s ease-out, box-shadow .12s ease-out; }
.t10:focus .art, .t10:hover .art { transform: translateY(-20px); box-shadow: 0 40px 44px -12px rgba(0, 0, 0, .85), 0 14px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .16); }
.t10::after { content: ''; position: absolute; left: 30%; right: 4%; bottom: -14px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%); z-index: 0; pointer-events: none; }
html[data-theme="light"] .t10 .art { box-shadow: 0 26px 30px -10px rgba(21, 21, 27, .45), 0 8px 14px rgba(21, 21, 27, .2); }
/* title page on a phone or in a browser: a Back button that stays at the top while scrolling */
.sheetback { position: sticky; top: 8px; z-index: 5; margin: 8px 0 0 8px; display: inline-flex; align-items: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* a thumb-sized handle on the video progress bar */
@media (pointer: coarse) { .player .seek { height: 40px; touch-action: none; } }

/* progress bar on phones and tablets: a filled part up to the handle, and a big handle */
@media (pointer: coarse) {
  .player .seek { -webkit-appearance: none; appearance: none; background: transparent; --p: 0%; }
  .player .seek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), rgba(255, 255, 255, .28) var(--p)); }
  .player .seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
}

/* gliding, like a paper boat on water: long, soft easing in and out, nothing snaps */
.card, .t10 { transition: transform .5s cubic-bezier(.37, 0, .2, 1); }
.t10 .art { transition: transform .55s cubic-bezier(.37, 0, .2, 1), box-shadow .55s cubic-bezier(.37, 0, .2, 1); }
.tab { transition: color .4s ease, background-color .4s ease; }
.card .art img, .t10 .art img { transition: opacity .5s ease; }
.rail, .chips { scroll-behavior: auto; }
main > * { animation: drift .6s cubic-bezier(.37, 0, .2, 1) both; }
@keyframes drift { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.a-calm .card, html.a-calm .t10, html.a-calm .t10 .art, html.a-calm .tab, html.a-calm main > * { transition: none; animation: none; }

/* the billboard stands out: taller, slowly drifting picture, a lifted edge and a bigger title */
.billboard { height: 86vh; max-height: 980px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8); }
.bb-img.on { animation: bbdrift 16s cubic-bezier(.37, 0, .2, 1) both; }
@keyframes bbdrift { from { transform: scale(1); } to { transform: scale(1.07); } }
.bb-t { font-size: 3.8rem; letter-spacing: -.01em; }
.bb-o { font-size: 1.1rem; -webkit-line-clamp: 4; }
.bb-tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .85rem; font-weight: 600; }
.billboard.sec { height: 58vh; min-height: 380px; max-height: 640px; margin-bottom: 8px; }
.billboard.sec .bb-t { font-size: 2.8rem; }
@media (max-width: 800px) { .billboard { height: 70vh; } .bb-t { font-size: 2rem; } .billboard.sec { height: 52vh; } .billboard.sec .bb-t { font-size: 1.8rem; } }
html.a-calm .bb-img.on { animation: none; }

/* the dial is drawn frame by frame from script: no CSS transition, and lighter shadows so a phone keeps its full frame rate */
.dial-it { transition: none; will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dial-it .art { box-shadow: 0 6px 14px rgba(0, 0, 0, .55); }
.dial-it.on .art { box-shadow: 0 0 0 3px var(--text), 0 8px 18px rgba(0, 0, 0, .65); }
.dial:focus .dial-it.on .art { box-shadow: 0 8px 18px rgba(0, 0, 0, .65); }
.dial { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }

/* music banner: a blurred copy of the cover fills the banner, the sharp cover sits on the right */
.bb-img.blur { filter: blur(34px) saturate(1.2) brightness(.7); transform: scale(1.25); object-fit: cover; }
.bb-img.blur.on { animation: none; }
.bb-cover { position: absolute; z-index: 2; right: calc(var(--gut) + 40px); top: 50%; width: 34vh; max-width: 320px; width: min(34vh, 320px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; transform: translateY(-58%); box-shadow: 0 30px 60px rgba(0, 0, 0, .65); opacity: 0; transition: opacity .8s ease; }
.bb-cover.on { opacity: 1; }
@media (max-width: 800px) { .bb-cover { width: 120px; top: 22%; right: var(--gut); transform: none; } }

/* iPad: the banner leaves room for the rows under it, and the top bar fits more tabs */
@media (min-width: 700px) and (max-width: 1400px) and (pointer: coarse) {
  .billboard { height: 58vh; min-height: 420px; max-height: 760px; }
  .billboard.sec { height: 42vh; min-height: 340px; }
  .bb-t { font-size: 3rem; }
  .tab { padding: 8px 9px; font-size: .9rem; }
}
@media (min-width: 700px) and (max-width: 1400px) and (pointer: coarse) and (orientation: landscape) {
  .billboard { height: 66vh; }
  .billboard.sec { height: 52vh; }
}

/* phones and iPads turn the dial by swiping: no arrow buttons */
@media (pointer: coarse) { html:not(.tv) .dial-btn { display: none; } }

/* TV: eleven tabs must fit the screen, so they are a little tighter */
html.tv .tab { padding: calc(8px * var(--tvk, 1)) calc(9px * var(--tvk, 1)); font-size: .88rem; }
html.tv .top { scroll-behavior: auto; }
#splash { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999; background: #050205; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#splash.sp-out { opacity: 0; pointer-events: none; transition: opacity .7s cubic-bezier(.4,0,.2,1); }
.sp-vid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; background: #050205; pointer-events: none; }
#splash.sp-css .sp-vid { display: none; }
.sp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sp-rl { position: absolute; top: -20%; left: -20%; width: 140%; height: 140%; opacity: 0; will-change: transform, opacity; -webkit-transform: translateZ(0); transform: translateZ(0); animation: sp-flow 3.4s cubic-bezier(.45,.05,.35,1) both; }
.sp-port { display: none; }
@media (orientation: portrait) { .sp-land { display: none; } .sp-port { display: block; } }
.sp-r1 { animation-delay: 0s; } .sp-r2 { animation-delay: .35s; } .sp-r3 { animation-delay: .7s; }
.sp-r2 { animation-name: sp-flow2; } .sp-r3 { animation-name: sp-flow3; }
@keyframes sp-flow { 0% { opacity: 0; transform: translate3d(-14%,3%,0) scale(1.06); } 35% { opacity: .95; } 100% { opacity: 0; transform: translate3d(14%,-3%,0) scale(1); } }
@keyframes sp-flow2 { 0% { opacity: 0; transform: translate3d(14%,-3%,0) scale(1.06); } 35% { opacity: .95; } 100% { opacity: 0; transform: translate3d(-14%,3%,0) scale(1); } }
@keyframes sp-flow3 { 0% { opacity: 0; transform: translate3d(0,8%,0) scale(1.08); } 35% { opacity: .9; } 100% { opacity: 0; transform: translate3d(0,-8%,0) scale(1); } }
.sp-glow { position: absolute; top: 50%; left: 50%; width: 130vmin; height: 90vmin; margin: -45vmin 0 0 -65vmin; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,196,140,.5) 0%, rgba(229,25,95,.22) 38%, rgba(5,2,5,0) 70%); opacity: 0; will-change: transform, opacity; animation: sp-bloom 2.8s cubic-bezier(.4,0,.3,1) 1.1s both; }
@keyframes sp-bloom { 0% { opacity: 0; transform: scale(.5); } 45% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.sp-comp { position: relative; width: 68vmin; max-width: 86vw; width: min(86vw, 68vmin, 640px); }
.sp-mark { display: block; width: 100%; height: auto; overflow: visible; opacity: 0; will-change: transform, opacity; animation: sp-in 1.8s cubic-bezier(.3,.1,.2,1) 1.6s both; }
.sp-title { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity; animation: sp-rise 1.6s cubic-bezier(.3,.1,.2,1) 2.5s both; }
@keyframes sp-in { 0% { opacity: 0; transform: scale(.93); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sp-rise { 0% { opacity: 0; transform: translate3d(0,14px,0); } 100% { opacity: 1; transform: translate3d(0,0,0); } }
.sp-wv { opacity: 0; animation: sp-wvk 1s ease-out both; }
.sp-wa { animation-delay: 3s; } .sp-wb { animation-delay: 3.25s; }
@keyframes sp-wvk { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-away { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
html.tv .sp-comp { width: 60vh; max-width: calc(600px * var(--tvk, 1)); width: min(60vh, calc(600px * var(--tvk, 1))); }

/* ===== Title page: full screen like Plex on phones, a wide cinematic page on TVs ===== */
.sheet.title { --text: #f1f1f4; --muted: #b4b4c2; --panel: #15151c; --panel2: #1d1d27; --line: #2a2a37; background: #15151c !important; color: #f1f1f4 !important; animation: none; }
.sheet.title .hero .art img { object-fit: cover; }
.sheet.title .sheetbd::after { background: linear-gradient(180deg, rgba(21,21,28,0), #15151c); }
@media (max-width: 640px) {
  html:not(.tv) .sheet.title { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: none; border: 0; border-radius: 0; padding: 0 0 24px; -webkit-overflow-scrolling: touch; }
  html:not(.tv) .sheet.title .sheetbd { margin: 0; height: 54vh; min-height: 300px; border-radius: 0; }
  html:not(.tv) .sheet.title .sheetbd img { object-position: center 20%; }
  html:not(.tv) .sheet.title .sheetbd::after { height: 60%; background: linear-gradient(180deg, rgba(21,21,28,0), rgba(21,21,28,.85) 70%, #15151c); }
  html:not(.tv) .sheet.title .sheetback { position: fixed; top: 12px; top: calc(env(safe-area-inset-top) + 8px); left: 12px; margin: 0; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; font-size: 1.9rem; line-height: 1; background: rgba(0,0,0,.5); border: 0; color: #fff; }
  html:not(.tv) .sheet.title .sheetbd + .hero { display: block; margin: -96px 0 0; padding: 0 20px; }
  html:not(.tv) .sheet.title .hero .art { display: none; }
  html:not(.tv) .sheet.title .sheetback .bk { display: none; }
  html:not(.tv) .sheet.title .hero .info { min-width: 0; }
  html:not(.tv) .sheet.title .hero h1 { font-size: 2.1rem; line-height: 1.08; letter-spacing: .01em; margin: 0 0 8px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
  html:not(.tv) .sheet.title .actions { display: flex; margin: 16px 0; }
  html:not(.tv) .sheet.title .actions .btn.pri { flex: 1; justify-content: center; text-align: center; padding: 15px 20px; border-radius: 999px; font-size: 1.05rem; background: #fff; color: #111; border: 0; box-shadow: none; text-shadow: none; }
  html:not(.tv) .sheet.title > .related, html:not(.tv) .sheet.title > section, html:not(.tv) .sheet.title > .extras { padding-left: 20px; padding-right: 20px; }
  html:not(.tv) .sheet.title .related .rail > .card { width: 118px; }
}
/* TV: a landscape card that floats over the blurred page (about 70% of it), poster whole on the left, everything else beside it */
html.tv .sheet.title { position: relative; width: 76vw; max-width: calc(1760px * var(--tvk, 1)); height: 78vh; max-height: none; border-radius: 24px; padding: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 90px rgba(0,0,0,.7); }
html.tv .sheet.title .sheetbd { position: absolute; top: 0; left: 0; right: 0; height: 52%; margin: 0; border-radius: 0; opacity: .55; pointer-events: none; }
html.tv .sheet.title .sheetbd img { object-position: center 20%; }
html.tv .sheet.title .sheetbd::after { height: 100%; background: linear-gradient(180deg, rgba(21,21,28,.15), #15151c 96%); }
html.tv .sheet.title .sheetbd + .hero, html.tv .sheet.title .hero { position: relative; z-index: 1; display: flex; align-items: flex-start; margin: 0; padding: calc(44px * var(--tvk, 1)) calc(52px * var(--tvk, 1)) calc(40px * var(--tvk, 1)); }
html.tv .sheet.title .hero .art { display: block; flex: none; width: 24%; max-width: calc(380px * var(--tvk, 1)); min-width: calc(260px * var(--tvk, 1)); margin-right: calc(48px * var(--tvk, 1)); position: sticky; top: calc(28px * var(--tvk, 1)); border-radius: 12px; box-shadow: 0 14px 44px rgba(0,0,0,.7); }
html.tv .sheet.title .hero .art img { object-fit: contain; background: #0b0b10; }
html.tv .sheet.title .hero .info { flex: 1; min-width: 0; padding-top: 0; }
html.tv .sheet.title .hero h1 { font-size: 2.5rem; margin: 0 0 calc(6px * var(--tvk, 1)); }
html.tv .sheet.title .tp-playrow .tp-play { max-width: calc(460px * var(--tvk, 1)); }
html.tv .sheet.title .acts { max-width: calc(560px * var(--tvk, 1)); }
html.tv .sheet.title.nobd .sheetbd { display: none; }
html.tv .sheet.title .extras h2, html.tv .sheet.title .related h2 { margin: calc(28px * var(--tvk, 1)) 0 calc(12px * var(--tvk, 1)); }


/* ===== Title page details: meta line, rating chips, play row, round action buttons ===== */
.sheet.title .hero h1 { font-weight: 800; letter-spacing: .005em; }
.tp-meta { color: var(--muted); font-size: .98rem; margin: 2px 0 10px; display: flex; flex-wrap: wrap; align-items: center; }
.tagline { font-style: italic; margin-bottom: 4px; }
.rrow { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 14px; min-height: 0; }
.rrow .rchip { display: inline-flex; align-items: center; margin: 0 16px 8px 0; font-weight: 700; font-size: 1rem; color: #fff; }
.rchip .rmark { display: inline-block; margin-right: 7px; line-height: 1; }
.rchip.imdb .rmark { background: #f5c518; color: #111; font-weight: 900; font-size: .74rem; padding: 3px 6px; border-radius: 4px; letter-spacing: -.02em; }
.rchip.rt .rmark { font-size: 1.15rem; }
.rchip.mc .rmark { background: #3b3b4a; color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 6px; border-radius: 4px; }
.rchip.tmdb .rmark { background: linear-gradient(90deg, #90cea1, #01b4e4); color: #08222c; font-size: .7rem; font-weight: 900; padding: 3px 6px; border-radius: 4px; }
.tp-playrow { display: flex; align-items: center; margin: 4px 0 16px; }
.tp-playrow .tp-play { flex: 1; max-width: 520px; min-height: 52px; font-size: 1.08rem; justify-content: center; }
.tp-playrow .tp-play .ico { margin-right: 8px; display: inline-flex; }
.tp-playrow .tp-play .ico svg { width: 22px; height: 22px; }
.tp-restart { width: 52px; height: 52px; padding: 0; margin-left: 12px; border-radius: 50%; flex: none; }
.acts { display: flex; justify-content: space-between; max-width: 520px; margin: 0 0 18px; }
.act { display: flex; flex-direction: column; align-items: flex-start; align-items: center; flex: 1 1 0; min-width: 0; margin: 0 2px 6px; padding: 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .78rem; line-height: 1.25; text-align: center; border-radius: 14px; }
.act-c { width: 56px; height: 56px; margin-bottom: 7px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 14px rgba(0,0,0,.35); transition: transform .15s ease, background .15s ease; }
.act:hover .act-c, .act:focus .act-c { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.act:active .act-c { transform: scale(.94); }
.act.on .act-c { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); border-color: rgba(255,255,255,.4); }
.act.on { color: #fff; }
.act-l { max-width: 100%; padding: 0 2px; }
.act:focus-visible, .btn:focus-visible { outline: none; }
html.tv .acts { max-width: calc(640px * var(--tvk, 1)); }
html.tv .act { font-size: .95rem; }
html.tv .act-c { width: calc(68px * var(--tvk, 1)); height: calc(68px * var(--tvk, 1)); }
html.tv .act-c .ico svg { width: calc(32px * var(--tvk, 1)); height: calc(32px * var(--tvk, 1)); }
html.tv .act:focus .act-c { transform: scale(1.06); }
html.tv .tp-playrow .tp-play { min-height: calc(64px * var(--tvk, 1)); font-size: 1.2rem; }
html.tv .tp-restart { width: calc(64px * var(--tvk, 1)); height: calc(64px * var(--tvk, 1)); }
html.tv .rrow .rchip { font-size: 1.15rem; }
.tp-over { color: #dcdce6; line-height: 1.5; margin: 6px 0 6px; max-width: 70ch; }
.tp-dir { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.tp-kv { margin: 10px 0 12px; font-size: 1rem; grid-template-columns: 8.5em 1fr; gap: 10px 14px; }
.tp-kv dt { color: var(--muted); }
.tp-kv dd.accent { color: #f5a524; font-weight: 600; }
/* rate and review dialog */
.rd { width: 92vw; max-width: 420px; }
.rd-stars { display: flex; margin: 10px 0 14px; }
.rd-star { width: 48px; height: 48px; padding: 0; margin-right: 6px; background: none; border: 0; color: #ffffff40; border-radius: 10px; }
.rd-star .ico svg { width: 36px; height: 36px; }
.rd-star.on { color: #f5c518; }
.rd-note { width: 100%; box-sizing: border-box; border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); font: inherit; resize: vertical; margin-bottom: 12px; }
/* cast and reviews, polished */
.sheet.title .extras h2, .sheet.title .related h2 { font-size: 1.3rem; margin: 22px 0 10px; }
.casts .cast .cast-pic { box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.review { border-top: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .act-c { transition: none; } }

/* reviews: a row of cards you can focus and open */
.revs { padding: 4px 4px 14px; }
.revs .review { flex: 0 0 auto; width: 340px; margin: 0 14px 0 0; text-align: left; color: inherit; font: inherit; display: block; min-height: 190px; }
.revs .review .review-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; white-space: normal; }
.review:focus, .review:hover { background: rgba(255,255,255,.12); outline: none; }
.rv-more { color: #f5a524; font-weight: 600; font-size: .9rem; }
.rv-full { width: 92vw; max-width: 760px; max-height: 84vh; display: flex; flex-direction: column; }
.rv-body { overflow-y: auto; white-space: pre-line; line-height: 1.55; margin: 12px 0; padding-right: 8px; }
html.tv .review { width: calc(420px * var(--tvk, 1)); }

/* arrows on the title card's rows: shown whenever there is more to the left or right, also on the TV (point at them with the Magic Remote, or just press left and right) */
.sheet.title .rarrow.l { left: 0; } .sheet.title .rarrow.r { right: 0; }
.sheet.title .rarrow { width: 46px; top: 4px; bottom: 18px; border-radius: 12px; }
.rarrow.off { display: none !important; }
html.tv .sheet.title .rarrow:not(.off) { display: flex !important; opacity: .92; width: calc(64px * var(--tvk, 1)); font-size: 3.4rem; color: #fff; text-shadow: 0 2px 8px #000; }
html.tv .sheet.title .rarrow.l { background: linear-gradient(90deg, rgba(21,21,28,.95), rgba(21,21,28,0)); }
html.tv .sheet.title .rarrow.r { background: linear-gradient(270deg, rgba(21,21,28,.95), rgba(21,21,28,0)); }
.crew-job { white-space: nowrap; margin-right: 16px; }
.t10-note { color: var(--muted); font-size: .78rem; margin: -2px 0 8px; letter-spacing: .02em; }
html.tv .t10-note { font-size: 1rem; margin: 0 0 calc(10px * var(--tvk, 1)); }

/* ===== iPad and other tablets: the poster is shown whole beside the details, never cropped ===== */
@media (min-width: 641px) {
  html:not(.tv) .sheet.title { width: 94vw; max-width: 1100px; height: 94vh; max-height: 94vh; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html:not(.tv) .sheet.title .sheetbd + .hero, html:not(.tv) .sheet.title .hero { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 32px; padding: 0 36px 20px; }
  html:not(.tv) .sheet.title .hero .art { flex: none; align-self: flex-start; width: 32%; min-width: 210px; max-width: 320px; height: auto; position: -webkit-sticky; position: sticky; top: 64px; border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.65); }
  html:not(.tv) .sheet.title .hero .art img { object-fit: contain; background: #0b0b10; }
  html:not(.tv) .sheet.title .hero .info { flex: 1; min-width: 0; }
  html:not(.tv) .sheet.title > .related, html:not(.tv) .sheet.title > section, html:not(.tv) .sheet.title > .extras { padding-left: 36px; padding-right: 36px; }
}
/* ===== iPhone and iPad: smooth scrolling. Live blur behind a full-screen page is what made it stutter, so it is switched off there. ===== */
/* The card's own background is solid, so its own blur was invisible but costly: that one goes. The blur of the page behind the card (the scrim), the shadow and the Back button's glass stay where they can be seen (iPad). */
html:not(.tv) .sheet.title { -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-transform: translateZ(0); transform: translateZ(0); }
html:not(.tv) .sheet.title .sheetback { background: rgba(0,0,0,.55); }
@media (min-width: 641px) {
  html:not(.tv) .sheet.title { box-shadow: 0 22px 60px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.4); will-change: transform; }
  html:not(.tv) .sheet.title .sheetback { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
@media (max-width: 640px) { html:not(.tv) .sheet.title { box-shadow: none; } }
@media (max-width: 640px) {
  html:not(.tv) .scrim.titlescrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: #15151c; }
  html:not(.tv) .sheet.title .sheetbd::after { height: 45%; }
}

/* ===== TV title card, second pass: the poster is pinned on the left and always whole; only the details scroll ===== */
html.tv .sheet.title.tvcard { overflow: hidden; }
html.tv .tp-scroll { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow-x: hidden; overflow-y: auto; }
html.tv .tp-poster { position: absolute; z-index: 3; left: calc(48px * var(--tvk, 1)); top: calc(48px * var(--tvk, 1)); bottom: calc(48px * var(--tvk, 1)); width: 34%; max-width: calc(660px * var(--tvk, 1)); pointer-events: none; }
html.tv .tp-poster .art { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: auto; height: auto; min-width: 0; margin: 0; aspect-ratio: auto; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
html.tv .tp-poster .art::before { content: none !important; display: none !important; }
html.tv .tp-poster .art img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center top; background: transparent; border-radius: 10px; }
html.tv .sheet.title.tvcard .hero, html.tv .sheet.title.tvcard .sheetbd + .hero { display: block; padding: calc(48px * var(--tvk, 1)) calc(48px * var(--tvk, 1)) calc(40px * var(--tvk, 1)) calc(34% + calc(96px * var(--tvk, 1))); }
html.tv .sheet.title.tvcard .hero .info { min-width: 0; }
html.tv .tp-poster .art.loaded .ph { display: none; }
html.tv .tp-poster .art.has { background-size: contain; background-position: center top; background-repeat: no-repeat; border-radius: 10px; }

/* TV show page (Showtime): the poster gets an explicit size so it cannot collapse on older TV browsers, and scales with the screen. */
html.tv main .hero > .art:not(.sq) { width: calc(260px * var(--tvk, 1)); height: calc(390px * var(--tvk, 1)); aspect-ratio: auto; background: transparent; }
html.tv main .hero > .art.sq { width: calc(260px * var(--tvk, 1)); height: calc(260px * var(--tvk, 1)); aspect-ratio: auto; background: transparent; }
html.tv main .hero > .art::before { display: none !important; }
html.tv main .hero > .art img { width: 100%; height: 100%; object-fit: contain; object-position: center top; border-radius: 10px; background: transparent; }   /* the whole poster, never cropped */
html.tv main .hero { flex-wrap: nowrap; gap: calc(36px * var(--tvk, 1)); }

/* Headings with more weight and presence. */
h1 { font-weight: 800; font-size: 2rem; letter-spacing: -.005em; }
h2 { font-weight: 800; font-size: 1.45rem; letter-spacing: 0; }
.related h2, .sheet.title .extras h2, .sheet.title .related h2 { font-weight: 800; font-size: 1.4rem; }
html.tv h1 { font-size: 2.1rem; } html.tv h2 { font-size: 1.5rem; }

/* TV: a poster painted as a background (see tvPaint) shows whole, and the picture element beneath it steps aside */
html.tv .art.tvbg { background-size: contain; background-position: center top; background-color: transparent; }
html.tv .art.tvbg img { visibility: hidden; }
html.tv main .hero > .art.tvbg { background-size: contain; background-repeat: no-repeat; background-position: center top; background-color: transparent; box-shadow: none; border-radius: 10px; }   /* the whole poster, never cropped: same as the title card */
html.tv .season-grid .art.tvbg { background-size: contain; background-repeat: no-repeat; background-position: center; }

/* ---------- Bubble buttons: round, glossy, and the one you are on springs up above the rest ---------- */
.btn, .act .act-c, .tp-playrow .tp-play, .tp-restart {
  position: relative;
  border-radius: 14px;
  background-image: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.04) 48%, rgba(0,0,0,.14) 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.28), 0 3px 8px rgba(0,0,0,.45);
  transition: transform .28s cubic-bezier(.25,.8,.35,1), box-shadow .2s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn.pri { background-image: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)), linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 55%); background-blend-mode: normal; border-color: rgba(255,255,255,.35); }
.btn.bb-play, .btn.bb-info { border-radius: 14px; }
/* no white box: the lift, the glow and the shine show where you are */
.btn:focus, .btn:hover, .act:focus .act-c, .act:hover .act-c, .tp-play:focus, .tp-restart:focus {
  outline: none;
  z-index: 6;
  transform: translateY(-6px) scale(1.08);
  filter: brightness(1.12) saturate(1.1);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.55), inset 0 -3px 6px rgba(0,0,0,.25), 0 16px 22px -6px rgba(0,0,0,.65), 0 0 0 4px rgba(255,255,255,.0), 0 0 26px 2px rgba(255,74,87,.55);
}
.btn:focus, .act:focus .act-c, .tp-play:focus, .tp-restart:focus { animation: none; }
.act:focus, .act:focus-visible, .btn:focus-visible { outline: none; }
html.tv .act:focus .act-c {  transform: translateY(-6px) scale(1.08); }
.btn:active, .act:active .act-c { transform: translateY(0) scale(.92); transition-duration: .08s; }
@keyframes bubblepop {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-12px) scale(1.2, .94); }
  70% { transform: translateY(-5px) scale(1.09, 1.14); }
  100% { transform: translateY(-6px) scale(1.08); }
}
html[data-theme="light"] .btn:not(.pri), html[data-theme="light"] .act .act-c { box-shadow: inset 0 2px 1px rgba(255,255,255,.9), inset 0 -3px 6px rgba(0,0,0,.08), 0 3px 8px rgba(30,30,60,.25); }
/* people who asked for strong focus or calm motion keep what they chose */
html.a-focus .btn:focus, html.a-focus .act:focus .act-c { outline: 5px solid #ffd60a !important; outline-offset: 3px !important; }
html[data-theme="contrast"] .btn:focus, html[data-theme="contrast"] .act:focus .act-c { outline: 4px solid #ffd60a; outline-offset: 3px; }
html.a-calm .btn, html.a-calm .act .act-c { transition: none; animation: none !important; }
html.a-calm .btn:focus, html.a-calm .btn:hover, html.a-calm .act:focus .act-c { transform: none; }

/* ---------- Water progress bar: a glassy tube that fills with flowing water, and a droplet you can feel ---------- */
@keyframes waterflow { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 56px 0, 0 0; } }
.player .seek { -webkit-appearance: none; appearance: none; background: transparent; --p: 0%; height: 30px; outline: none; }
.player .seek::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0) 55%),
    linear-gradient(to right, rgba(0,0,0,0) var(--p), #4b4b58 var(--p)),
    radial-gradient(ellipse 16px 7px at 50% 0, rgba(255,255,255,.45), rgba(255,255,255,0) 72%),
    linear-gradient(to bottom, var(--accent-hi), var(--accent-lo));
  background-size: 100% 100%, 100% 100%, 56px 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat, repeat-x, no-repeat;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.55), 0 0 12px rgba(255,74,87,.22);
  animation: waterflow 2.2s linear infinite;
}
.player .seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 16%, #ffe1e3 38%, var(--accent-hi) 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 0 18px rgba(255,74,87,.85), 0 3px 8px rgba(0,0,0,.5);
  transition: transform .28s cubic-bezier(.25,.8,.35,1);
}
.player .seek:hover::-webkit-slider-thumb, .player .seek:focus::-webkit-slider-thumb { transform: scale(1.3); }
.player .seek:active::-webkit-slider-thumb { transform: scale(.88, 1.2); }
@media (pointer: coarse) { .player .seek { height: 40px; } .player .seek::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -10px; } }
html.a-calm .player .seek::-webkit-slider-runnable-track { animation: none; }
html.a-calm .player .seek::-webkit-slider-thumb { transition: none; transform: none; }

/* the droplet is drawn by the page so it can glide; the real handle stays underneath, invisible, to take the touch */
.player .seek::-webkit-slider-thumb { opacity: 0; }
.drop { position: absolute; width: 26px; height: 26px; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at 34% 28%, #fff 0 16%, #ffe1e3 38%, var(--accent-hi) 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 0 18px rgba(255,74,87,.85), 0 3px 8px rgba(0,0,0,.5);
  transition: transform .28s cubic-bezier(.25,.8,.35,1); }
.seek:hover ~ .drop, .seek:focus ~ .drop { transform: scale(1.3); }
.seek:active ~ .drop { transform: scale(.88, 1.2); }
@media (pointer: coarse) { .drop { width: 26px; height: 26px; } }
html.a-calm .drop { transition: none; transform: none; }
/* the scrubbing picture, big enough to read from the sofa */
html.tv .scrub { bottom: calc(46px * var(--tvk, 1)); transform: translateX(-50%) scale(1.7); transform-origin: 50% 100%; }

/* ---------- Bolder top bar on every app: a deep bar, plain heavy text tabs (no buttons) ---------- */
.top .tab { font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; padding: 8px 14px; background: none; box-shadow: none; border-radius: 6px 6px 0 0; transition: color .15s, transform .3s cubic-bezier(.25,.8,.35,1); }
.top .tab.on { color: #fff; font-weight: 900; box-shadow: none; }
.top .tab:focus, .top .tab:hover { outline: none; color: #fff; transform: translateY(-3px) scale(1.08); background: none; box-shadow: none; filter: none; }
html.tv .top .tab { font-size: 0.93rem; padding: calc(10px * var(--tvk, 1)) calc(11px * var(--tvk, 1)); margin-right: 0; }
.top .brand { position: sticky; left: 0; z-index: 2; padding-right: 14px; align-self: stretch; background: none; }
html[data-theme="light"] .top .brand { background: transparent; }
html.tv .top .brand { margin-right: calc(14px * var(--tvk, 1)); }
html.a-calm .top .tab, html.a-calm .top .tab:focus, html.a-calm .top .tab:hover { transition: none; transform: none; }
html.tv .top .tab.on, html .top .tab.on { box-shadow: none; }
html:not([data-theme="light"]) .top .tab { color: #b9b9c6; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
html:not([data-theme="light"]) .top .tab.on, html:not([data-theme="light"]) .top .tab:focus, html:not([data-theme="light"]) .top .tab:hover { color: #fff; }

/* ---------- Colour vision filters (Settings > Accessibility). Applied to the browsing screens and menus; the video only when the person turns on Apply colour vision to video, since a filter can slow playback on a TV. ---------- */
html.cb-protan #app, html.cb-protan #layer > :not(.player) { -webkit-filter: url(#cb-protan); filter: url(#cb-protan); }
html.cb-deutan #app, html.cb-deutan #layer > :not(.player) { -webkit-filter: url(#cb-deutan); filter: url(#cb-deutan); }
html.cb-tritan #app, html.cb-tritan #layer > :not(.player) { -webkit-filter: url(#cb-tritan); filter: url(#cb-tritan); }
html.cb-mono #app, html.cb-mono #layer > :not(.player) { -webkit-filter: grayscale(1); filter: grayscale(1); }

/* ---------- Opening (5 seconds): SCENA lights up letter by letter, settles under the logo tile, the tile rises. Every moving part is its own layer
   that only moves or fades (nothing is redrawn while it plays), so it stays smooth on a TV. ---------- */
#splash { background: radial-gradient(ellipse at 50% 50%, #1a0c0e 0%, #070304 60%, #000 100%); }
.spd-stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; margin: -360px 0 0 -640px; -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; }
.spd-tilel, .spd-wordl { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; }
.spd-tilel svg, .spd-wordl svg { width: 100%; height: 100%; display: block; }
.spd-ltr { position: absolute; left: 170px; top: 260px; width: 940px; height: 200px; }
.spd-wavel { position: absolute; left: 730px; top: 120px; width: 100px; height: 100px; }
.spd-ltr, .spd-wavel { -webkit-transform: translateZ(0); transform: translateZ(0); }   /* each is its own GPU layer: fading it costs nothing */
.spd-wordl { -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-animation: spd-settle 1.2s cubic-bezier(.45, 0, .2, 1) 1.85s both; animation: spd-settle 1.2s cubic-bezier(.45, 0, .2, 1) 1.85s both; will-change: transform; }
@-webkit-keyframes spd-settle { from { -webkit-transform: translate3d(0, 0, 0) scale(1); } to { -webkit-transform: translate3d(342px, 364.5px, 0) scale(.46667); } }
@keyframes spd-settle { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(342px, 364.5px, 0) scale(.46667); } }
.spd-ltr { opacity: 0; -webkit-animation: spd-ignite .55s linear both; animation: spd-ignite .55s linear both; }
.spd-l1 { animation-delay: .25s; -webkit-animation-delay: .25s; } .spd-l2 { animation-delay: .5s; -webkit-animation-delay: .5s; } .spd-l3 { animation-delay: .75s; -webkit-animation-delay: .75s; } .spd-l4 { animation-delay: 1s; -webkit-animation-delay: 1s; } .spd-l5 { animation-delay: 1.25s; -webkit-animation-delay: 1.25s; }
@-webkit-keyframes spd-ignite { 0% { opacity: 0; } 25% { opacity: .85; } 40% { opacity: .4; } 65% { opacity: 1; } 100% { opacity: 1; } }
@keyframes spd-ignite { 0% { opacity: 0; } 25% { opacity: .85; } 40% { opacity: .4; } 65% { opacity: 1; } 100% { opacity: 1; } }
.spd-tilel { opacity: 0; -webkit-transform-origin: 640px 292px; transform-origin: 640px 292px; -webkit-animation: spd-tile 1s cubic-bezier(.2, .7, .2, 1) 2.4s both; animation: spd-tile 1s cubic-bezier(.2, .7, .2, 1) 2.4s both; will-change: transform, opacity; }
@-webkit-keyframes spd-tile { 0% { opacity: 0; -webkit-transform: translate3d(0, 46px, 0) scale(.94); } 100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); } }
@keyframes spd-tile { 0% { opacity: 0; transform: translate3d(0, 46px, 0) scale(.94); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.spd-wavel { opacity: 0; -webkit-animation: spd-wv .6s ease-out both; animation: spd-wv .6s ease-out both; }
.spd-wa { animation-delay: 3.1s; -webkit-animation-delay: 3.1s; } .spd-wb { animation-delay: 3.25s; -webkit-animation-delay: 3.25s; }
@-webkit-keyframes spd-wv { from { opacity: 0; } to { opacity: 1; } }
@keyframes spd-wv { from { opacity: 0; } to { opacity: 1; } }
html.a-calm .spd-ltr, html.a-calm .spd-wavel, html.a-calm .spd-tilel, html.a-calm .spd-wordl { -webkit-animation: none; animation: none; opacity: 1; }
html.a-calm .spd-wordl { -webkit-transform: translate3d(342px, 364.5px, 0) scale(.46667); transform: translate3d(342px, 364.5px, 0) scale(.46667); }
html.a-calm .spd-ltr, html.a-calm .spd-wavel { opacity: 1; }
html.a-calm .spd-tile { opacity: 1; }
html.a-calm .spd-wordg { transform: translate(426px, 575px) scale(.056); }
html.cb-protan.a-cbvid .player video { -webkit-filter: url(#cb-protan); filter: url(#cb-protan); }
html.cb-deutan.a-cbvid .player video { -webkit-filter: url(#cb-deutan); filter: url(#cb-deutan); }
html.cb-tritan.a-cbvid .player video { -webkit-filter: url(#cb-tritan); filter: url(#cb-tritan); }
html.cb-mono.a-cbvid .player video { -webkit-filter: grayscale(1); filter: grayscale(1); }

/* TV focus: no outline and no moving frame. The selected thing lifts (a card also grows a little); that is the whole signal, as on Netflix. */
html.tv:not(.a-focus) :focus, html.tv:not(.a-focus) .card:focus, html.tv:not(.a-focus) .btn:focus, html.tv:not(.a-focus) .act:focus, html.tv:not(.a-focus) .cast:focus, html.tv:not(.a-focus) .t10:focus { outline: none; }
html.tv .card { transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease; box-shadow: none; background-clip: padding-box; }
html.tv .card:hover, html.tv .card:focus { transform: translate3d(0, -6px, 0) scale(1.07); box-shadow: 0 14px 30px rgba(0, 0, 0, .55); z-index: 5; }
html.tv .top .tab { transition: transform .26s cubic-bezier(.22, .61, .36, 1), color .2s ease; }
html.tv .btn { transition: transform .22s cubic-bezier(.22, .61, .36, 1), background-color .2s ease, color .2s ease; box-shadow: none; background-image: none; }
html.tv .act:focus .act-c, html.tv .act:hover .act-c { transform: translate3d(0, -3px, 0) scale(1.08); }
html.tv .act-c { transition: transform .22s cubic-bezier(.22, .61, .36, 1), background-color .2s ease; box-shadow: none; background-image: none; }

/* TV show and album pages: the poster stays put on the left while the details and rows scroll beside it (as on the title card), so it never slides up under the tab bar. */
html.tv main .hero > .art { position: fixed; left: calc(48px * var(--tvk, 1)); top: calc(210px * var(--tvk, 1)); z-index: 2; }
html.tv main .hero { margin-left: calc(296px * var(--tvk, 1)); min-height: calc(400px * var(--tvk, 1)); }
html.tv main .hero ~ * { margin-left: calc(296px * var(--tvk, 1)); }
html.tv main > .hero { animation: none; }   /* a running animation would make the fixed poster position itself inside the hero instead of on the screen */

/* Flat, quiet buttons (no gloss): a solid accent for the main action, a soft panel for the rest; focus brightens them. */
.btn.pri { background: var(--accent-lo); background-image: none; border: 0; box-shadow: none; text-shadow: none; }
html.tv .btn { background: rgba(255, 255, 255, .12); border: 0; }
html.tv .btn.pri { background: var(--accent-lo); }
html.tv .card .art { background: #1c1c26; }

/* A-Z rolodex: a see-through strip down the left edge, opened by pushing Right past the last title (see "A-Z rolodex" in app.js). */
#rolo { position: fixed; left: 0; top: 50%; z-index: 900; display: none; flex-direction: column; align-items: center; padding: calc(6px * var(--tvk, 1)) calc(30px * var(--tvk, 1)) calc(6px * var(--tvk, 1)) calc(18px * var(--tvk, 1)); background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); -webkit-transform: translateY(-50%); transform: translateY(-50%); pointer-events: auto; }
#rolo.on { display: flex; }
#rolo .rl { width: calc(58px * var(--tvk, 1)); height: calc(36px * var(--tvk, 1)); line-height: calc(36px * var(--tvk, 1)); padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .85); font-size: calc(28px * var(--tvk, 1)); font-weight: 700; border-radius: 999px; transition: transform .16s ease, background-color .16s ease, color .16s ease; }
#rolo .rl:disabled { color: rgba(255, 255, 255, .22); }
#rolo .rl:focus, #rolo .rl:hover:not(:disabled) { outline: none; background: #fff; color: #111; transform: scale(1.18); }
html:not(.tv) #rolo { --tvk: .8; }

#rolo-tab { position: fixed; left: 0; top: 50%; z-index: 800; display: none; padding: 14px 7px; border: 0; border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-transform: translateY(-50%); transform: translateY(-50%); writing-mode: vertical-rl; }
#rolo-tab.on { display: block; }
html:not(.tv) #rolo .rl { width: 44px; height: min(32px, calc((100vh - 70px) / 27)); line-height: min(32px, calc((100vh - 70px) / 27)); font-size: 18px; }

/* Front Row menu under its tab: the way in is large, Collections sits just below and to the right, smaller. */
.scrim.clear { background: rgba(0, 0, 0, .25); }
.frpop { position: fixed; display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: calc(260px * var(--tvk, 1)); padding: calc(10px * var(--tvk, 1)); border-radius: calc(16px * var(--tvk, 1)); background: rgba(22, 22, 30, .96); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.frpop .frmain { font-size: calc(26px * var(--tvk, 1)); padding: calc(14px * var(--tvk, 1)) calc(26px * var(--tvk, 1)); }
.frpop .frsub { font-size: calc(18px * var(--tvk, 1)); margin-left: calc(26px * var(--tvk, 1)); }

/* Panes of glass: nothing is outlined. A button, row or tile that is selected simply lifts out of the screen, brightens like frosted glass and casts a soft shadow;
   OK, a click or a touch runs it. (Strong focus outline in Accessibility, and the high-contrast theme, still draw their own outline on purpose.) */
:root { --glass: rgba(255, 255, 255, .20); --glass-hi: rgba(255, 255, 255, .34); --lift: 0 14px 28px rgba(0, 0, 0, .5); }
html[data-theme="light"] { --glass: rgba(255, 255, 255, .95); --glass-hi: #fff; --lift: 0 12px 26px rgba(20, 20, 40, .28); }
.btn, .row, .act .act-c, .chip, .ib { transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, background-color .2s ease; }
.btn:focus, .btn:hover, .row:focus, .row:hover, .chip:focus, .ib:focus { outline: none; transform: translate3d(0, -3px, 0) scale(1.04); background: var(--glass); box-shadow: var(--lift), inset 0 1px 0 var(--glass-hi); }
.btn.pri:focus, .btn.pri:hover { background: var(--accent-hi); box-shadow: var(--lift), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.danger:focus, .btn.danger:hover { background: rgba(255, 70, 70, .28); }
.row:focus, .row:hover { transform: translate3d(0, -2px, 0) scale(1.012); }
.act:focus .act-c, .act:hover .act-c { transform: translate3d(0, -3px, 0) scale(1.08); background: var(--glass); box-shadow: var(--lift), inset 0 1px 0 var(--glass-hi); }
html:not(.tv) .btn:hover, html:not(.tv) .row:hover { transform: none; }   /* a mouse pointer or a finger does not need the lift; the TV and keyboard do */
html.tv .btn:focus, html.tv .btn:hover { background: var(--glass); }
html.tv .btn.pri:focus, html.tv .btn.pri:hover { background: var(--accent-hi); }
#rolo .rl:focus, #rolo .rl:hover:not(:disabled) { background: var(--glass-hi); color: #fff; box-shadow: var(--lift); }
html.tv .btn:focus, html.tv .btn:hover { transform: translate3d(0, -3px, 0) scale(1.05); box-shadow: var(--lift), inset 0 1px 0 var(--glass-hi); }
html.tv .act:focus .act-c, html.tv .act:hover .act-c { box-shadow: var(--lift), inset 0 1px 0 var(--glass-hi); background: var(--glass); }
html.tv .card:focus, html.tv .card:hover { box-shadow: var(--lift); }

/* TV speed: tiles carry no animated shadow (a blurred shadow repaints every frame on a TV). The lift and growth are the whole effect, on the graphics card. */
html.tv .card, html.tv .card:hover, html.tv .card:focus { box-shadow: none; }
html.tv .card::after { display: none; }

/* Camera-roll upload progress, like a chat app: one bar that fills, then a tick. */
.uppanel { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); max-width: 520px; }
.upbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 8px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .25s ease; }
.upbar.ok i { background: #3ecf6e; } .upbar.bad i { background: #ff5a5a; }
html[data-theme="light"] .uppanel { background: rgba(0, 0, 0, .06); } html[data-theme="light"] .upbar { background: rgba(0, 0, 0, .12); }

/* More see-through top row; frosted where the page scrolls beneath it (kept off the TV, where blurring is slow). */
html:not(.tv) .top.solid { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* Tiles: selecting one raises it well clear and its title steps forward. */
html.tv .card:hover, html.tv .card:focus { transform: translate3d(0, -14px, 0) scale(1.14); z-index: 6; }
.card .t { transition: color .2s ease, transform .26s cubic-bezier(.22, .61, .36, 1); -webkit-transform-origin: 0 0; transform-origin: 0 0; }
html.tv .card:focus .t, html.tv .card:hover .t { color: #fff; font-weight: 800; transform: translate3d(0, 2px, 0) scale(1.1); }
html.tv .card:focus .s, html.tv .card:hover .s { color: #fff; }
html[data-theme="light"].tv .card:focus .t { color: #000; }
/* Front Row menu: the item you land on turns red and rises above the other. */
.frpop .btn { background: rgba(255, 255, 255, .10); box-shadow: none; transform: none; color: #fff; }
.frpop .btn:focus, .frpop .btn:hover { background: var(--accent-lo); color: #fff; transform: translate3d(0, -6px, 0) scale(1.1); box-shadow: 0 16px 28px rgba(0, 0, 0, .55); z-index: 3; position: relative; }
.frpop .frsub:focus, .frpop .frsub:hover { margin-left: 0; }
html .frpop .btn { background: rgba(255, 255, 255, .10); color: #fff; }
html .frpop .btn:focus, html .frpop .btn:hover, html.tv .frpop .btn:focus, html.tv .frpop .btn:hover { background: var(--accent-lo); color: #fff; transform: translate3d(0, -6px, 0) scale(1.1); }

/* Top bar: fully transparent. The section you land on turns red. A soft text shadow keeps the words readable over any picture. */
html .top, html .top.solid, html .top.onhome, html .top:not(.onhome), html[data-theme="light"] .top, html[data-theme="light"] .top.solid, html[data-theme="light"] .top:not(.onhome) { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html .top .tab { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .75); box-shadow: none; }
html .top .tab.on, html .top .tab:focus, html .top .tab:hover, html:not([data-theme="light"]) .top .tab.on, html:not([data-theme="light"]) .top .tab:focus, html:not([data-theme="light"]) .top .tab:hover, html[data-theme="light"] .top .tab.on, html[data-theme="light"] .top .tab:focus, html[data-theme="light"] .top .tab:hover { color: #ff4a57 !important; }
html.tv .top .tab.on, html.tv .top .tab:focus { color: #ff4a57 !important; }
html[data-theme="light"] .top .tab { color: var(--text); text-shadow: none; }
html .top .tab.on, html .top .tab:focus, html .top .tab:hover { color: #ff4a57 !important; }

.dlrow { display: flex; align-items: center; gap: 12px; }
.dlimg { width: 48px; height: 72px; object-fit: cover; border-radius: 6px; background: rgba(255, 255, 255, .08); flex: none; }

/* TV welcome, sign in with your phone, create an account */
.wel { min-height: 100vh; box-sizing: border-box; display: flex; align-items: center; padding: 5vh 6vw; background: radial-gradient(circle at 12% 0%, rgba(240, 32, 60, .16), rgba(240, 32, 60, 0) 46%), var(--bg); }
.wel-col { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.wel-l { display: flex; flex-direction: column; gap: 18px; min-width: 0; flex: 0 0 40%; max-width: 40%; }
.wel-r { flex: 1; min-width: 0; margin-left: 4vw; display: flex; flex-direction: column; gap: 16px; }
.wel-logo { height: 52px; width: auto; align-self: flex-start; }
.wel h1 { font-size: 3.2rem; line-height: 1.06; letter-spacing: -.02em; margin: 0; text-align: left; color: var(--text); }
.wel h2 { margin: 0; }
.wel-p { margin: 0; font-size: 1.3rem; line-height: 1.4; color: var(--muted); }
.wel-b { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.wel-btn { min-height: 64px; font-size: 1.3rem; }
.wel-k { font-size: 1.15rem; color: var(--muted); font-weight: 600; }
.wel-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wel-t { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.wel-t b { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.wel-t span { color: var(--muted); font-size: 1.02rem; line-height: 1.35; display: block; }
.wel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4vh; }
.wel-two { display: flex; align-items: flex-start; }
.wel-two > .wel-l { flex: 1 1 50%; max-width: 50%; }
.wel-two > .wel-qr, .wel-two > .wel-l + .wel-l { margin-left: 5vw; }
.wel-qr { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.qrcard { background: #fff; border-radius: 22px; padding: 14px; line-height: 0; }
.wel-pin { font-size: 3rem; font-weight: 800; letter-spacing: .18em; margin-top: 4px; }
.wel-s { display: flex; align-items: center; gap: 16px; font-size: 1.35rem; line-height: 1.35; }
.wel-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.wel-st { font-size: 1.1rem; color: var(--muted); min-height: 1.4em; }
.wel .input { font-size: 1.3rem; min-height: 60px; }
.wel .wel-l > * + * { margin-top: 22px; }
.wel .wel-r > * + * { margin-top: 18px; }
.wel .wel-b > * + * { margin-top: 14px; }
/* Scena Vision on the welcome screen, and the scan, pay, enjoy screen */
.scv-x { display: inline-block; position: relative; vertical-align: baseline; width: .92em; height: .74em; margin-left: -.2em; top: -.04em; text-transform: none; }
.scv-x svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.scv-x .mn { fill: #e0303c; } .scv-x .sh { fill: #fff; }
html[data-theme="light"] .scv-x .sh { fill: #14141c; }
.scv-h { display: inline-block; position: relative; top: -.09em; margin: 0 .02em 0 .11em; }
.wel-v { display: flex; margin-top: 18px; }
.wel-vt { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; font-size: 1.9rem; }
.wel-vt > * + * { margin-top: 10px; }
.wel-vt + .wel-vt { margin-left: 14px; }
.wel-soon { font-size: 1.05rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.wel-addr { margin-top: 12px; font-size: 1.7rem; font-weight: 800; letter-spacing: .01em; text-align: center; }
.vbuy { display: flex; align-items: center; padding: 10px 0; }
.vbuy-l { flex: 1; min-width: 0; padding-right: 30px; }
.vbuy-l > * + * { margin-top: 18px; }
.vbuy-h { font-size: 2.4rem; margin: 6px 0 6px; }
.vbuy .wel-qr { flex: 0 0 auto; }
.menu.vbuy-m { width: 1180px; max-width: 94vw; min-width: 0; padding: 28px 36px 24px; }
.menu.vbuy-m h3:empty { display: none; }
.vbuy .wel-s { font-size: 1.5rem; }
.vbuy .wel-qr { width: 380px; }
.vbuy .wel-addr { font-size: 1.6rem; }
.wel-now { color: #5fd38d; }
.menu.vbuy-m { background: #14141b; border: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.vbuy .wel-s { font-size: 1.4rem; }
.wel-ul { font-size: 1rem; line-height: 1.3; color: var(--muted); }
.wel-ul > * + * { margin-top: 4px; }
.wel-li { display: flex; }
.wel-dot { flex: none; width: 16px; color: var(--accent); }
.wel .wel-vt > .wel-ul { margin-top: 8px; }
.wel .wel-g { gap: 10px; }
.wel .wel-t { padding: 14px 18px; }
.wel .wel-t span { font-size: .95rem; }
.wel .wel-t b { font-size: 1.15rem; }
.wel-vh { display: flex; align-items: baseline; justify-content: space-between; }
.wel-vh .wel-soon { font-size: .95rem; text-align: right; }
.wel-ul { font-size: .82rem; }
.wel .wel-vt { padding: 14px 18px; font-size: 1.6rem; }
.wel .wel-vt { flex: 1 1 0; min-width: 0; }
.wel-vh .wel-soon { white-space: nowrap; font-size: .85rem; margin-left: 10px; }
.wel-vh { display: block; }
.wel-vh .wel-soon { display: block; margin: 4px 0 0; font-size: .9rem; }
.wel-vh .wel-soon { text-align: left; margin-top: 2px; }
/* Scena Vision-X: coming soon, with the website's purple glow and a slow sheen */
.wel .wel-x { position: relative; overflow: hidden; justify-content: center; background: -webkit-linear-gradient(top left, #1a1230, #0c0a16); background: linear-gradient(160deg, #1a1230, #0c0a16); border-color: rgba(160, 120, 255, .5); box-shadow: 0 0 26px 2px rgba(160, 120, 255, .35); }
.wel-x::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: -webkit-linear-gradient(left, transparent, rgba(255, 255, 255, .16), transparent); background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); -webkit-transform: skewX(-18deg); transform: skewX(-18deg); -webkit-animation: welsheen 4.5s ease-in-out infinite; animation: welsheen 4.5s ease-in-out infinite; pointer-events: none; }
@-webkit-keyframes welsheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes welsheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.wel-xsoon { color: #c4b2ff; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; font-size: .95rem; }
/* Welcome: what is free, in plain lines instead of boxes */
.wel-free { margin-top: 8px; }
.wel-free > * + * { margin-top: 26px; }
.wel-ft { font-size: 2.1rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.wel-fw { color: #ff4a57; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 2.5rem; }
.wel-fs { margin-top: 4px; font-size: 1.15rem; color: var(--muted); }
.wel-free > * + * { margin-top: 20px; }
.wel-ft { font-size: 1.7rem; }
.wel-fw { font-size: 2rem; }
.wel-fs { font-size: 1rem; margin-top: 2px; }
.wel .wel-r { justify-content: center; }
.wel .wel-r { text-align: center; }
.wel .wel-r .wel-k { text-align: center; }
.wel .wel-free { text-align: center; }
.wel .wel-vt, .wel .wel-vh, .wel .wel-ul { text-align: left; }
.wel .wel-x { text-align: center; align-items: center; }
.wel .wel-x .wel-vh { text-align: center; }
.wel .wel-panel { background: -webkit-linear-gradient(top, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); border: 1px solid var(--line); border-radius: 26px; padding: 28px 30px 30px; }
.wel .wel-panel > .wel-k { margin-bottom: 6px; }
/* Welcome as a billboard, like the Home screen: a big red-lit hero with the headline and buttons, the free list on glass, and a row below */
.wel.wel-bb { display: block; padding: 0; min-height: 100vh; background: #08080b; position: relative; overflow: hidden; }
.wel-bb .wel-hero { position: relative; height: 70vh; padding: 0 6vw; background: radial-gradient(circle at 78% 22%, rgba(224, 48, 60, .55), rgba(224, 48, 60, 0) 52%), linear-gradient(180deg, #1a0b0e, #08080b); }
.wel-bb .wel-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(8, 8, 11, 0), #08080b); pointer-events: none; }
.wel-bb .wel-tri { position: absolute; right: 7vw; top: 14vh; width: 30vw; height: 44vh; opacity: .16; background: #e0303c; -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.wel-bb .wel-logo { position: absolute; left: 6vw; top: 5vh; height: 46px; }
.wel-bb .wel-hl { position: absolute; z-index: 2; left: 6vw; bottom: 9vh; width: 46%; }
.wel-bb .wel-hl > * + * { margin-top: 18px; }
.wel-bb .wel-hl h1 { font-size: 3.6rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.wel-bb .wel-hl .wel-p { max-width: 40ch; }
.wel-bb .wel-b { flex-direction: row; margin-top: 22px; }
.wel-bb .wel-b > * + * { margin-top: 0; margin-left: 14px; }
.wel-bb .wel-btn { min-height: 64px; padding: 0 30px; }
.wel-bb .wel-panel { position: absolute; z-index: 2; right: 6vw; top: 9vh; width: 33%; padding: 22px 26px 24px; background: rgba(12, 12, 16, .62); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; }
.wel-bb .wel-free > * + * { margin-top: 16px; }
.wel-bb .wel-ft { font-size: 1.45rem; }
.wel-bb .wel-fw { font-size: 1.7rem; }
.wel-bb .wel-fs { font-size: .95rem; }
.wel-bb .wel-rail { position: relative; z-index: 2; padding: 0 6vw; margin-top: -4vh; }
.wel-bb .wel-rail .wel-k { margin-bottom: 12px; text-align: left; font-size: 1.3rem; color: var(--text); font-weight: 800; }
.wel-bb .wel-v { margin-top: 0; }
.wel-bb .wel-vt { text-align: left; }
.wel-bb .wel-x { text-align: center; }
.wel-bb .wel-panel { width: 40%; top: 6vh; padding: 32px 38px 34px; }
.wel-bb .wel-free > * + * { margin-top: 22px; }
.wel-bb .wel-ft { font-size: 1.85rem; }
.wel-bb .wel-fw { font-size: 2.2rem; }
.wel-bb .wel-fs { font-size: 1.15rem; }
.wel-bb .wel-hl { width: 44%; }
.wel-bb .wel-panel { width: 42%; top: 5vh; padding: 24px 30px 26px; }
.wel-bb .wel-free > * + * { margin-top: 16px; }
.wel-bb .wel-ft { font-size: 1.6rem; white-space: nowrap; }
.wel-bb .wel-fw { font-size: 2rem; }
.wel-bb .wel-fs { font-size: 1.05rem; }
.wel-bb .wel-hl { width: 48%; }
.wel-bb .wel-hl h1 { font-size: 3.3rem; }
.wel-bb .wel-panel { width: 43%; }
.wel-bb .wel-ft { font-size: 1.5rem; white-space: normal; }
.wel-bb .wel-fw { font-size: 1.9rem; }
.wel-bb .wel-hl { width: 45%; }
.wel-bb .wel-hl h1 { font-size: 3.1rem; }
.wel-bb .wel-hl .wel-p { max-width: 34ch; }
.wel-bb .wel-panel { top: 12vh; padding: 36px 30px 38px; }
.wel-bb .wel-free > * + * { margin-top: 26px; }
.wel-bb .wel-hl .wel-p { max-width: 44ch; }
.wel-bb .wel-panel { right: 3vw; width: 39%; }
.wel-bb .wel-ft { font-size: 1.45rem; }
.wel-bb .wel-fw { font-size: 1.85rem; }
.wel-bb .wel-rail { padding-right: 3vw; }
.wel-bb .wel-v { display: flex; }
.wel-bb .wel-v .wel-vt { flex: 1 1 auto; margin: 0; }
.wel-bb .wel-v .wel-x { flex: 0 0 39%; margin: 0 0 0 48px; }
.wel-bb .wel-v .wel-x { flex: 0 0 39vw; }
.wel-bb .wel-ft { font-size: 1.38rem; }
.wel-bb .wel-fw { font-size: 1.8rem; }
.wel-bb .wel-v .wel-vt { flex: 1 1 0; }
.wel-bb .wel-v .wel-x { flex: 1 1 0; margin-left: 48px; }
.wel-bb .wel-panel { width: calc((100vw - 9vw - 48px) / 2); }
.wel-bb .wel-v { align-items: stretch; }
.wel-bb .wel-panel { top: 15.5vh; }
.wel-bb .wel-v .wel-vt:not(.wel-x) { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 34px; }
.wel-bb .wel-vt:not(.wel-x) .wel-ul { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; margin-top: 14px; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: 1.55rem; margin: 0; }
.wel-bb .wel-vt:not(.wel-x) .wel-now { font-size: 1.3rem; }
.wel-bb .wel-v .wel-vt { height: 232px; box-sizing: border-box; }
.wel-bb .wel-vt:not(.wel-x) { padding: 18px 30px; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: 1.2rem; white-space: nowrap; }
.wel-bb .wel-vt:not(.wel-x) .wel-now { font-size: 1.15rem; }
.wel-bb .wel-vt:not(.wel-x) .wel-ul { margin-top: 8px; }
.wel-bb .wel-v .wel-vt { min-width: 0; height: 240px; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .95rem; }
.wel-bb .wel-vt:not(.wel-x) .wel-now { font-size: .95rem; }
.wel-bb .wel-vt:not(.wel-x) .wel-dot { margin-right: 10px; }
.wel-bb .wel-v { justify-content: space-between; }
.wel-bb .wel-v .wel-vt, .wel-bb .wel-v .wel-x { flex: 0 0 auto; width: calc((100vw - 9vw - 48px) / 2); margin: 0 !important; }
.wel-bb .wel-v .wel-vt { height: 256px; }
.wel-bb .wel-vt:not(.wel-x) { padding: 20px 34px; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: 1.12rem; }
.wel-bb .wel-vt:not(.wel-x) .wel-now { font-size: 1.1rem; }
.wel-bb .wel-vt:not(.wel-x) .wel-vh > :first-child { transform: scale(1.18); transform-origin: left center; }
.wel-bb .wel-vt:not(.wel-x) .wel-ul { margin-top: 12px; }
.wel-bb .wel-v .wel-vt:not(.wel-x) { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 40px 20px 34px; }
.wel-bb .wel-vt:not(.wel-x) .wel-vh { flex: 0 0 auto; }
.wel-bb .wel-vt:not(.wel-x) .wel-vh > :first-child { transform: none; }
.wel-bb .wel-vt:not(.wel-x) .wel-ul { flex: 0 0 auto; margin: 0; justify-content: center; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: 1.15rem; margin: 10px 0; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .92rem; margin: 12px 0; }
.wel-bb .wel-v .wel-vt:not(.wel-x) { padding: 20px 34px; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .86rem; }
.wel-bb .wel-vt:not(.wel-x) .wel-ul { margin-left: 28px; }
.wel-bb .wel-v .wel-vt:not(.wel-x) { padding-right: 30px; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .8rem; margin: 5px 0; }
.wel-bb .wel-vt:not(.wel-x) .wel-li { line-height: 1.15; margin: 0; padding: 4px 0; }
.wel-bb .wel-vt:not(.wel-x) .wel-ul { justify-content: center; }
/* Settings: you always know where you are. The highlighted category and the highlighted control light up in the Scena red, lift and glow. */
.smenu .sitem { transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.smenu .sitem:focus { outline: none; background: var(--accent); color: #fff; font-weight: 700; border-left-color: #fff; transform: translate3d(10px, 0, 0) scale(1.08); transform-origin: left center; box-shadow: 0 16px 34px rgba(0, 0, 0, .55), 0 0 30px rgba(224, 48, 60, .55); position: relative; z-index: 2; }
.smenu .sitem.on:not(:focus) { background: var(--panel2); }
.spane button:focus, .spane .btn:focus, .spane select:focus, .spane input:focus, .spane .row:focus, .spane [tabindex]:focus { outline: none !important; background: rgba(224, 48, 60, .42) !important; color: #fff; transform: translate3d(0, -5px, 0) scale(1.07); box-shadow: 0 18px 38px rgba(0, 0, 0, .6), 0 0 32px rgba(224, 48, 60, .6) !important; position: relative; z-index: 2; }
.spane input[type="checkbox"]:focus, .spane input[type="radio"]:focus { transform: scale(1.5); }
.spane label:focus-within { color: #fff; }

/* five free features: the box starts higher and is spaced tighter so the last line clears the two tiles below */
.wel-bb .wel-panel { top: 3.5vh !important; padding-top: 58px !important; padding-bottom: 58px !important; }
.wel-bb .wel-free > * + * { margin-top: 26px !important; }

/* every field and small button shows where the cursor is (LG app test: a selection effect on all objects) */
html.tv input:focus, html.tv select:focus, html.tv textarea:focus, html.tv .pw-eye:focus { outline: 3px solid #fff !important; outline-offset: 2px !important; }
html.tv .pw-eye:focus { background: rgba(224, 48, 60, .5) !important; border-radius: 8px; }

/* The welcome screen on phones and iPads: the same billboard, stacked in one column that scrolls (TVs keep the wide layout above) */
html:not(.tv) .wel.wel-bb { min-height: 100%; overflow: visible !important; padding-bottom: 32px; }
html:not(.tv) .wel-bb .wel-hero { height: auto !important; padding: 26px 20px 8px !important; }
html:not(.tv) .wel-bb .wel-hero::after, html:not(.tv) .wel-bb .wel-tri { display: none !important; }
html:not(.tv) .wel-bb .wel-logo { position: static !important; display: block; height: 34px !important; margin: 0 0 22px; }
html:not(.tv) .wel-bb .wel-hl { position: static !important; width: auto !important; }
html:not(.tv) .wel-bb .wel-hl h1 { font-size: 2rem !important; line-height: 1.12; }
html:not(.tv) .wel-bb .wel-hl .wel-p { font-size: 1rem; max-width: none; }
html:not(.tv) .wel-bb .wel-b { display: block !important; margin-top: 20px; }
html:not(.tv) .wel-bb .wel-b > * { display: block; width: 100%; box-sizing: border-box; min-height: 52px !important; margin: 0 0 12px !important; padding: 0 20px !important; }
html:not(.tv) .wel-bb .wel-panel { position: static !important; width: auto !important; margin: 20px 20px 0 !important; padding: 20px 18px !important; }
html:not(.tv) .wel-bb .wel-free > * + * { margin-top: 16px !important; }
html:not(.tv) .wel-bb .wel-ft { font-size: 1.15rem !important; white-space: normal !important; }
html:not(.tv) .wel-bb .wel-fw { font-size: 1.35rem !important; }
html:not(.tv) .wel-bb .wel-fs { font-size: .9rem !important; }
html:not(.tv) .wel-bb .wel-rail { position: static !important; margin: 22px 20px 0 !important; padding: 0 !important; }
html:not(.tv) .wel-bb .wel-rail .wel-k { font-size: 1.1rem !important; }
html:not(.tv) .wel-bb .wel-v { display: block !important; }
html:not(.tv) .wel-bb .wel-v .wel-vt { height: auto !important; margin: 0 0 14px !important; padding: 20px 18px !important; }
html:not(.tv) .wel-bb .wel-v .wel-x { padding: 26px 18px !important; }
html:not(.tv) .wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .95rem !important; white-space: normal !important; padding: 4px 0 !important; }
html:not(.tv) .wel-bb .wel-v .wel-vt:not(.wel-x) { display: block !important; }
@media (min-width: 700px) { html:not(.tv) .wel.wel-bb { max-width: 760px; margin: 0 auto; } html:not(.tv) .wel-bb .wel-hl h1 { font-size: 2.6rem !important; } }
html:not(.tv) .wel-bb .wel-panel { margin: 20px 0 0 !important; }
html:not(.tv) .wel-bb .wel-v .wel-vt, html:not(.tv) .wel-bb .wel-v .wel-x { display: block !important; width: 100% !important; max-width: none !important; flex: none !important; box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important; }
html:not(.tv) .wel-bb .wel-v .wel-x { display: flex !important; flex-direction: column; align-items: center; }
html:not(.tv) .wel-bb .wel-vt:not(.wel-x) .wel-li { display: flex !important; }
html:not(.tv) .wel-bb .wel-panel { display: none !important; }

/* phones and iPads: the free box is back, and the two Vision boxes sit side by side underneath it (portrait and landscape) */
html:not(.tv) .wel-bb .wel-panel { display: block !important; }
html:not(.tv) .wel-bb .wel-v { display: flex !important; flex-direction: row !important; align-items: stretch !important; }
html:not(.tv) .wel-bb .wel-v .wel-vt, html:not(.tv) .wel-bb .wel-v .wel-x { width: calc(50% - 6px) !important; flex: 0 0 calc(50% - 6px) !important; margin: 0 !important; padding: 16px 12px !important; font-size: 1.05rem !important; }
html:not(.tv) .wel-bb .wel-v .wel-vt + .wel-vt { margin-left: 12px !important; }
html:not(.tv) .wel-bb .wel-v .wel-x { justify-content: center !important; padding: 16px 8px !important; }
html:not(.tv) .wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .8rem !important; padding: 3px 0 !important; }
html:not(.tv) .wel-bb .wel-vt:not(.wel-x) .wel-dot { width: 12px; }
html:not(.tv) .wel-bb .wel-vt:not(.wel-x) .wel-ul { margin-top: 6px; }
@media (min-width: 700px) { html:not(.tv) .wel-bb .wel-v .wel-vt, html:not(.tv) .wel-bb .wel-v .wel-x { font-size: 1.5rem !important; padding: 22px 20px !important; } html:not(.tv) .wel-bb .wel-vt:not(.wel-x) .wel-li { font-size: .95rem !important; } }
@media (min-width: 900px) { html:not(.tv) .wel.wel-bb { max-width: 920px; } html:not(.tv) .wel-bb .wel-hl h1 { font-size: 3rem !important; } }

/* Device capabilities: big, clear tick rows (focusable buttons, so the remote and touch both work) */
.capbtn { display: flex; align-items: center; gap: 22px; width: 100%; text-align: left; margin-top: 14px; padding: 16px 20px; border-radius: 12px; background: var(--panel2); border: 2px solid var(--line); color: inherit; font: inherit; cursor: pointer; }
.captick { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px; border: 4px solid #8a8f98; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; line-height: 1; color: #fff; background: transparent; }
.capbtn.on .captick { background: var(--accent); border-color: var(--accent); }
.capbtn.on { border-color: var(--accent); }
.captxt { display: flex; flex-direction: column; gap: 4px; }
.captxt b { font-size: 1.15rem; }
.captxt small { font-size: .9rem; opacity: .75; font-weight: 400; }

/* Top 10 on LG: same scale as the other rows. The number is shorter than the poster and the row is no taller than it needs to be. */
.t10row { gap: 26px; padding-top: 14px; padding-bottom: 34px; }
.t10n { font-size: 11rem; line-height: .74; margin-right: -34px; -webkit-text-stroke-width: 4px; }
.t10 .art { width: 210px; }

/* Cast & Crew: every member is selectable, lifts and glows on focus; the card shows biography and their titles on this server */
.casts .cast { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.casts .cast:focus, .casts .cast:hover { transform: translate3d(0, -8px, 0) scale(1.14); background: rgba(224, 48, 60, .28); box-shadow: 0 20px 36px rgba(0, 0, 0, .6), 0 0 28px rgba(224, 48, 60, .55); position: relative; z-index: 3; }
.casts .cast:focus .t, .casts .cast:hover .t { font-weight: 800; color: #fff; }
.menu.person { width: min(900px, 94vw); max-width: 94vw; padding: 24px 28px; max-height: 92vh; overflow: auto; }
.pc-head { display: flex; gap: 22px; align-items: center; margin-bottom: 14px; }
.pc-pic { margin: 0 !important; flex: none; width: 150px !important; height: 150px !important; }
html.tv .pc-pic { width: calc(190px * var(--tvk, 1)) !important; height: calc(190px * var(--tvk, 1)) !important; }
.pc-bio { white-space: pre-line; line-height: 1.5; max-height: 9.5em; overflow: auto; padding: 6px 4px; border-radius: 8px; }
.pc-bio:focus { background: rgba(255, 255, 255, .06); outline: none; }
.pc-h { margin: 18px 0 8px; }
.pc-rail { display: flex; gap: 14px; overflow-x: auto; padding: 10px 6px 18px; }
.pc-t { flex: 0 0 auto; width: 170px; }
.pc-roles { font-size: .85rem; opacity: .8; text-align: center; margin-top: 4px; }
html.tv .pc-t { width: calc(210px * var(--tvk, 1)); }

/* Live TV front page: a billboard playing the channel you were on, then a row of wide channel tiles for each category */
.lv-bb { position: relative; height: 46vh; min-height: 300px; margin: 0 0 8px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #3a1520, #14233a); }
.lv-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; background: #000; }
.lv-bb.on .lv-video { opacity: 1; }
.lv-shade { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(8, 8, 12, .92) 8%, rgba(8, 8, 12, .35) 62%, rgba(8, 8, 12, .1)), linear-gradient(0deg, rgba(8, 8, 12, .85), rgba(8, 8, 12, 0) 55%); }
.lv-copy { position: absolute; left: 44px; bottom: 34px; right: 44px; max-width: 900px; }
.lv-h { font-size: 3rem; margin: 0 0 6px; }
.lv-sub { font-size: 1.15rem; opacity: .85; margin-bottom: 6px; }
.lv-desc { font-size: 1rem; opacity: .75; max-height: 3.2em; overflow: hidden; margin-bottom: 12px; max-width: 760px; }
html.tv .lv-h { font-size: calc(3.4rem * var(--tvk, 1)); }
html.tv .lv-sub { font-size: calc(1.3rem * var(--tvk, 1)); }
.lv-rows h2 { margin-top: 18px; }
.lv-w { flex: 0 0 auto; position: relative; width: 340px; height: 190px; border-radius: 16px; padding: 14px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #1c1c2c, #3a1520); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 24px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.37, 0, .2, 1), box-shadow .5s cubic-bezier(.37, 0, .2, 1), background .3s ease; }
html.tv .lv-w { width: calc(420px * var(--tvk, 1)); height: calc(236px * var(--tvk, 1)); }
.lv-w:focus, .lv-w:hover { outline: none; transform: translate3d(0, -10px, 0) scale(1.07); box-shadow: 0 30px 50px rgba(0, 0, 0, .7), 0 0 32px rgba(224, 48, 60, .6); background: linear-gradient(135deg, #2a2a40, #6a1a28); position: relative; z-index: 3; }
.lv-lg { align-self: flex-start; min-width: 54px; max-width: 150px; height: 42px; border-radius: 8px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; padding: 0 10px; font-weight: 800; overflow: hidden; }
.lv-lg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lv-live { position: absolute; right: 12px; top: 12px; background: var(--accent); border-radius: 6px; padding: 1px 9px; font-size: .7rem; font-weight: 800; }
.lv-t .t { font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-t .s { opacity: .72; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
html.tv .lv-t .t { font-size: calc(1.5rem * var(--tvk, 1)); } html.tv .lv-t .s { font-size: calc(1.15rem * var(--tvk, 1)); }
.lv-bar { height: 5px; background: rgba(255, 255, 255, .22); border-radius: 5px; margin-top: 8px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: var(--accent); }
.lv-all, .lv-cat { justify-content: center; align-items: center; text-align: center; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); }
.lv-all b, .lv-cat b { font-size: 1.6rem; }
html.tv .lv-all b, html.tv .lv-cat b { font-size: calc(2rem * var(--tvk, 1)); }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; padding: 14px 4px; }
html.tv .lv-grid { grid-template-columns: repeat(auto-fill, minmax(calc(420px * var(--tvk, 1)), 1fr)); }
.lv-grid .lv-w { width: auto; }

.lv-bb { height: 50vh; }
.lv-copy { bottom: 30px; }
.lv-h { font-size: 2.4rem; }
html.tv .lv-h { font-size: calc(2.8rem * var(--tvk, 1)); }
.lv-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.lv-copy .actions .btn { width: auto; flex: 0 0 auto; }
.lv-rows { padding-top: 6px; }

/* Top 10: every number sits in the same slot; "10" is squeezed into it; posters show whole */
.t10n { flex: 0 0 auto; width: 190px; display: flex; justify-content: flex-end; box-sizing: border-box; }
.t10n.two { transform: scaleX(.6); transform-origin: 100% 100%; letter-spacing: -.16em; }
.t10 .art img, .art:not(.sq):not(.wide) img { object-fit: contain; }

/* Top 10 posters have a fixed 2:3 size of their own */
.t10 .art { width: 190px; height: 285px; aspect-ratio: auto; flex: none; }
.t10 .art::before { content: none !important; display: none !important; }
html.tv .t10 .art { width: calc(210px * var(--tvk, 1)); height: calc(315px * var(--tvk, 1)); }
html.tv .t10 .art.tvbg { background-size: contain; background-position: center; background-repeat: no-repeat; }
.player { top: 0; left: 0; right: 0; bottom: 0; }
.player .ui { top: 0; left: 0; right: 0; bottom: 0; }
.player > .spin { position: fixed; z-index: 70; }
.spin-t { font-style: italic; position: absolute; left: 50%; top: 84px; transform: translateX(-50%); white-space: nowrap; color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.8); }

/* Oscar: head, eye and three sound waves made of plain boxes */
.oscar { position: absolute; left: 0; top: 14px; width: 96px; height: 72px; -webkit-transform-origin: 28px 68px; transform-origin: 28px 68px; -webkit-animation: bounce .7s linear infinite; animation: bounce .7s linear infinite; }
.o-head { position: absolute; left: 6px; top: 24px; width: 44px; height: 44px; border-radius: 50%; background: -webkit-linear-gradient(top, #ffe3a3, #ff7a59 55%, #e5195f); background: linear-gradient(180deg, #ffe3a3, #ff7a59 55%, #e5195f); }
.o-waves { position: absolute; left: 0; top: 0; -webkit-transform-origin: 29px 47px; transform-origin: 29px 47px; -webkit-animation: waves 1.3s ease-out infinite; animation: waves 1.3s ease-out infinite; }
.o-eye { position: absolute; left: 29px; top: 8px; width: 8px; height: 13px; border-radius: 50%; background: #3a0b24; -webkit-transform: rotate(35deg); transform: rotate(35deg); }
@-webkit-keyframes sing { 0%, 100% { -webkit-transform: translateY(0) scale(1); } 50% { -webkit-transform: translateY(-3px) scale(1.06); } }
@keyframes sing { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.06); } }
@-webkit-keyframes waves { 0% { opacity: .3; -webkit-transform: scale(.88); } 35% { opacity: 1; } 100% { opacity: .15; -webkit-transform: scale(1.14); } }
@keyframes waves { 0% { opacity: .3; transform: scale(.88); } 35% { opacity: 1; } 100% { opacity: .15; transform: scale(1.14); } }
@-webkit-keyframes roam { from { -webkit-transform: translateX(-64px); } to { -webkit-transform: translateX(64px); } }
@keyframes roam { from { transform: translateX(-64px); } to { transform: translateX(64px); } }
/* Oscar bounces along the words like a ball: he lands on them, squashes a little, and springs up */
@-webkit-keyframes bounce { 0%, 100% { -webkit-transform: translateY(0) scale(1.1, .86); -webkit-animation-timing-function: ease-out; } 50% { -webkit-transform: translateY(-26px) scale(.96, 1.05); -webkit-animation-timing-function: ease-in; } }
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1.1, .86); animation-timing-function: ease-out; } 50% { transform: translateY(-26px) scale(.96, 1.05); animation-timing-function: ease-in; } }
/* Oscar slides across the words inside this box (a move, not a layout change, so a slow TV keeps up) */
.o-roam { position: absolute; left: 0; top: 0; width: 96px; height: 72px; -webkit-animation: roam 2.8s ease-in-out infinite alternate; animation: roam 2.8s ease-in-out infinite alternate; }
/* a slow TV's automatic light look switches animations off; Oscar is the one thing that keeps moving there, unless Reduce motion was chosen on purpose */
html.a-calm:not(.a-still) .o-roam { -webkit-animation: roam 2.8s ease-in-out infinite alternate !important; animation: roam 2.8s ease-in-out infinite alternate !important; }
html.a-calm:not(.a-still) .oscar { -webkit-animation: bounce .7s linear infinite !important; animation: bounce .7s linear infinite !important; }
html.a-calm:not(.a-still) .o-waves { -webkit-animation: waves 1.3s ease-out infinite !important; animation: waves 1.3s ease-out infinite !important; }
.t10 .art, html.tv .t10 .art { padding-top: 0 !important; box-sizing: border-box; }

.card.on { box-shadow: 0 0 0 3px var(--accent, #e0303c); }
.card.on .t { color: #fff; }
.colbelow { margin-top: 6px; }

/* Live TV start screen (Live TV, Movies, Series) and poster grids */
.lv-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 28px 4px; }
.lv-sec { height: 360px; border-radius: 20px; padding: 36px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #f2f2f5; border: 1px solid rgba(255, 255, 255, .11); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: 0 12px 24px rgba(0, 0, 0, .4); transition: transform .5s cubic-bezier(.37, 0, .2, 1), box-shadow .5s cubic-bezier(.37, 0, .2, 1), background .3s ease, border-color .3s ease; }
.lv-sec b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.lv-sec .sub { font-size: 1.3rem; opacity: .85; }
.lv-sec:focus, .lv-sec:hover { outline: none; transform: scale(1.03); border-color: #e0303c; background: linear-gradient(160deg, rgba(224, 48, 60, .2), rgba(224, 48, 60, .05)); box-shadow: 0 0 60px rgba(224, 48, 60, .35); }
html.tv .lv-sec { height: calc(420px * var(--tvk, 1)); padding: calc(44px * var(--tvk, 1)); border-radius: calc(20px * var(--tvk, 1)); }
html.tv .lv-secs { gap: calc(40px * var(--tvk, 1)); padding: calc(32px * var(--tvk, 1)) calc(8px * var(--tvk, 1)); }
html.tv .lv-sec b { font-size: calc(3.2rem * var(--tvk, 1)); }
html.tv .lv-sec .sub { font-size: calc(1.4rem * var(--tvk, 1)); }
.lv-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; padding: 14px 4px; }
html.tv .lv-pgrid { grid-template-columns: repeat(auto-fill, minmax(calc(230px * var(--tvk, 1)), 1fr)); gap: calc(26px * var(--tvk, 1)); }
.lv-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; padding: 0; text-align: left; color: #fff; display: flex; align-items: flex-end; background: linear-gradient(160deg, #1c1c2c, #3a1520); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 24px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.37, 0, .2, 1), box-shadow .5s cubic-bezier(.37, 0, .2, 1); }
.lv-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-pt { position: relative; width: 100%; padding: 28px 12px 12px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.lv-pt b { font-size: 1.05rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.tv .lv-pt b { font-size: calc(1.3rem * var(--tvk, 1)); }
.lv-poster:focus, .lv-poster:hover { outline: none; transform: translate3d(0, -8px, 0) scale(1.06); z-index: 3; box-shadow: 0 30px 50px rgba(0, 0, 0, .7), 0 0 32px rgba(224, 48, 60, .6); }
.lv-rows.home-rows { margin-top: 0; }
@media (max-width: 800px) { .lv-rows.home-rows { margin-top: 0; } }

/* TV Hub: opening screen, Live TV / Movies / Series split screens, settings */
.tvh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .4rem 0 1rem; }
.tvh-head h1 { margin: 0; font-size: 2.2rem; line-height: 1.1; }
.tvh-hact { display: flex; gap: .6rem; }
.tvh-gear { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; }
.tvh-gear .tvh-ic, .tvh-row .tvh-ic, .tvh-cat .tvh-ic { width: 1.4rem; height: 1.4rem; display: inline-flex; }
.tvh-ic svg { width: 100%; height: 100%; }
.tvh-gear:focus, .tvh-gear:hover { outline: none; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px #fff; }
.tvh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tvh-tile { height: 8.5rem; border-radius: 12px; padding: 1.1rem; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); }
.tvh-tile b { font-size: 1.7rem; font-weight: 700; }
.tvh-tile .sub { font-size: .85rem; color: var(--muted); }
.tvh-tile:focus, .tvh-tile:hover { outline: none; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px #fff; }
.tvh-tile:focus .sub, .tvh-tile:hover .sub { color: #fff; }
.tvh-cards { display: flex; gap: 1rem; overflow: hidden; padding: .3rem .3rem .8rem; }
.tvh-card { width: 11rem; flex: none; text-align: left; color: var(--text); background: none; border: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.tvh-card b { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvh-card .sub { font-size: .8rem; color: var(--muted); }
.tvh-art { display: block; position: relative; height: 5.4rem; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.tvh-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvh-art u, .tvh-poster u { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--accent); }
.tvh-card:focus { outline: none; }
.tvh-card:focus .tvh-art, .tvh-card:hover .tvh-art { box-shadow: 0 0 0 3px #fff; }
.tvh-split { display: grid; grid-template-columns: minmax(0, 22%) minmax(0, 1fr) minmax(0, 28%); gap: 1.2rem; height: calc(100vh - 15rem); min-height: 18rem; }
.tvh-split.vod, .tvh-split.eps, .tvh-split.set { grid-template-columns: minmax(0, 22%) minmax(0, 1fr); }
.tvh-left, .tvh-list, .tvh-vright { overflow-y: auto; padding: .3rem; background: none; }
.tvh-left { background: var(--panel); border-radius: 12px; padding: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.tvh-mid { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.tvh-mid .tvh-list { flex: 1; }
.tvh-cat { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .55rem .8rem; border-radius: 10px; text-align: left; color: var(--muted); background: none; border: 0; font-size: 1.05rem; }
.tvh-cat .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvh-cat .c { font-size: .85rem; }
.tvh-cat.cur { background: var(--line); color: var(--text); font-weight: 600; }
.tvh-cat:focus, .tvh-cat:hover { outline: none; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px #fff; }
.tvh-lh { display: flex; align-items: baseline; gap: .8rem; padding: .2rem .2rem .6rem; }
.tvh-lh h2 { margin: 0; font-size: 1.6rem; }
.tvh-row { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .5rem .9rem; margin-bottom: .5rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-align: left; }
.tvh-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tvh-row .tx b { font-size: 1.1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvh-row .sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvh-row .val { flex: none; font-size: 1rem; }
.tvh-row .star { font-size: 1.4rem; color: #5a5a6b; }
.tvh-row .star.on { color: var(--accent); }
.tvh-row .tvh-ic { color: var(--danger); }
.tvh-lg { width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: .75rem; color: var(--muted); flex: none; }
.tvh-lg img { width: 100%; height: 100%; object-fit: contain; }
.tvh-row:focus, .tvh-row:hover { outline: none; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px #fff; }
.tvh-row:focus .sub, .tvh-row:hover .sub { color: #fff; }
.tvh-row:focus .star.on, .tvh-row:focus .tvh-ic { color: #fff; }
.tvh-clear { width: 100%; margin: .2rem 0 .6rem; padding: .7rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 1.1rem; font-weight: 600; }
.tvh-clear:focus, .tvh-clear:hover { outline: none; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px #fff; }
.tvh-none { padding: 1rem .4rem; }
.tvh-pvcol { display: flex; flex-direction: column; gap: .6rem; }
.tvh-pv { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.tvh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tvh-pv.on .tvh-video { opacity: 1; }
.tvh-live { position: absolute; left: .6rem; top: .6rem; background: var(--accent); color: #fff; border-radius: 6px; padding: .1rem .5rem; font-size: .75rem; font-weight: 700; }
.tvh-pv.locked { background: var(--panel); }
.tvh-pvi b { font-size: 1.2rem; }
.tvh-pvi .sub { font-size: .9rem; color: var(--muted); }
.tvh-pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; padding: .3rem; }
.tvh-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; padding: 0; text-align: left; color: #fff; display: flex; align-items: flex-end; background: var(--panel2); border: 1px solid var(--line); }
.tvh-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvh-pt { position: relative; width: 100%; padding: 1.4rem .5rem .4rem; font-size: .8rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.tvh-poster:focus, .tvh-poster:hover { outline: none; box-shadow: 0 0 0 3px #fff; }
.tvh-det { margin-top: .6rem; padding: .7rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-height: 3.6rem; }
.tvh-det b { font-size: 1.1rem; }
.tvh-det .sub { color: var(--muted); font-size: .85rem; }
.tvh-hint { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; padding: .8rem .2rem 0; color: var(--muted); font-size: .85rem; }
.tvh-hb { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--muted); padding: 0; font-size: inherit; cursor: pointer; }
.tvh-hb b { color: #fff; }
.tvh-dot { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; }
.tvh-dot.red { background: #ff5d5d; } .tvh-dot.green { background: #4cd08a; } .tvh-dot.yellow { background: #f2c230; } .tvh-dot.blue { background: #2d7bff; }
.tvh-pinin { width: 100%; font-size: 2rem; letter-spacing: .5em; text-align: center; }
html.tv .tvh-split { height: calc(100vh - 17rem); }
@media (max-width: 900px) { .tvh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tvh-split, .tvh-split.vod, .tvh-split.eps, .tvh-split.set { grid-template-columns: 1fr; height: auto; } .tvh-left { max-height: 12rem; } .tvh-pvcol { display: none; } .tvh-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pres { position: absolute; top: 1rem; right: 1.2rem; z-index: 60; background: rgba(0,0,0,.65); color: #fff; border-radius: 8px; padding: .3rem .8rem; font-weight: 700; font-size: .95rem; opacity: 0; transition: opacity .3s; pointer-events: none; }
.pres.on { opacity: 1; }
html.tv .pres { font-size: 1.3rem; top: calc(36px * var(--tvk, 1)); right: calc(48px * var(--tvk, 1)); }
/* TV Hub on a TV: larger type and wider lists, so the screen is used and reads from the sofa (everything scales with the TV's size) */
html.tv .tvh-head h1 { font-size: 2.9rem; }
html.tv .tvh-gear { width: 3.4rem; height: 3.4rem; }
html.tv .tvh-tile { height: 11.5rem; padding: 1.4rem; }
html.tv .tvh-tile b { font-size: 2.2rem; }
html.tv .tvh-tile .sub { font-size: 1.15rem; }
html.tv .tvh-card { width: 15rem; }
html.tv .tvh-card b { font-size: 1.2rem; }
html.tv .tvh-card .sub { font-size: 1rem; }
html.tv .tvh-art { height: 8rem; }
html.tv .tvh-split { grid-template-columns: minmax(0, 27%) minmax(0, 1fr) minmax(0, 30%); height: calc(100vh - 14.5rem); gap: 1.6rem; }
html.tv .tvh-split.vod, html.tv .tvh-split.eps, html.tv .tvh-split.set { grid-template-columns: minmax(0, 27%) minmax(0, 1fr); }
html.tv .tvh-left { padding: .8rem; gap: .4rem; }
html.tv .tvh-cat { font-size: 1.45rem; padding: .75rem 1rem; }
html.tv .tvh-cat .c { font-size: 1.15rem; }
html.tv .tvh-lh h2 { font-size: 2.2rem; }
html.tv .tvh-row { padding: .7rem 1.2rem; margin-bottom: .6rem; gap: 1.1rem; }
html.tv .tvh-row .tx b { font-size: 1.5rem; }
html.tv .tvh-row .sub { font-size: 1.1rem; }
html.tv .tvh-row .val { font-size: 1.3rem; }
html.tv .tvh-row .star { font-size: 1.8rem; }
html.tv .tvh-lg { width: 3.4rem; height: 3.4rem; font-size: 1rem; }
html.tv .tvh-clear { font-size: 1.4rem; padding: .9rem; }
html.tv .tvh-pvi b { font-size: 1.6rem; }
html.tv .tvh-pvi .sub { font-size: 1.15rem; }
html.tv .tvh-live { font-size: 1rem; }
html.tv .tvh-pt { font-size: 1.05rem; }
html.tv .tvh-det b { font-size: 1.5rem; }
html.tv .tvh-det .sub { font-size: 1.1rem; }
html.tv .tvh-hint { font-size: 1.15rem; gap: 1.6rem; }
.tvh-dots { display: flex; justify-content: center; gap: 1rem; margin: .4rem 0 1rem; }
.tvh-dots span { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--muted); }
.tvh-dots span.on { background: var(--accent); border-color: var(--accent); }
.tvh-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 20rem; margin: 0 auto; }
.tvh-key { font-size: 1.6rem; padding: .7rem 0; text-align: center; }
html.tv .tvh-key { font-size: 2rem; padding: .8rem 0; }
.tvh-sort { margin: .1rem .3rem .6rem; padding: .55rem 1.1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 1rem; font-weight: 600; }
.tvh-sort:focus, .tvh-sort:hover { outline: none; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px #fff; }
html.tv .tvh-sort { font-size: 1.35rem; padding: .7rem 1.3rem; }
.tvh-poster { display: block; aspect-ratio: auto; background: none; border: 0; border-radius: 0; overflow: visible; text-align: left; }
.tvh-pbox { position: relative; display: block; height: 0; padding-bottom: 150%; border-radius: 12px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.tvh-pbox img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.tvh-pbox u { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--accent); }
.tvh-pcap { display: block; margin-top: .4rem; font-size: .95rem; font-weight: 600; line-height: 1.2; max-height: 2.4em; overflow: hidden; color: var(--text); }
.tvh-poster:focus, .tvh-poster:hover { box-shadow: none; }
.tvh-poster:focus .tvh-pbox, .tvh-poster:hover .tvh-pbox { box-shadow: 0 0 0 3px #fff; }
.tvh-poster:focus .tvh-pcap { color: #fff; }
.tvh-srch { margin-left: .3rem; }
html.tv .tvh-pcap { font-size: 1.2rem; }
.tvh-pager { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: .8rem 0 .2rem; }
.tvh-pager .tvh-sort { margin: 0; }
.tvh-pgn { min-width: 8rem; text-align: center; }
html.tv .tvh-pgn { font-size: 1.3rem; }
.tvh-vright.vg { display: flex; flex-direction: column; overflow: hidden; }
.tvh-vright.vg .tvh-lh { flex: none; }
.tvh-vtop { flex: none; display: flex; gap: .4rem; }
.tvh-vs { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: .3rem; }
.tvh-vgrid { position: relative; width: 100%; }
.tvh-vright.vg .tvh-det { flex: none; }
.tvh-ph .tvh-pbox { opacity: .5; }
.tvh-left > .tvh-cat, .tvh-left > button { flex: none; }
.tvh-left { min-height: 0; }
/* channel lists: smaller rows, so more channels fit on the page */
.tvh-mid .tvh-row { padding: .3rem .8rem; margin-bottom: .25rem; gap: .8rem; }
.tvh-mid .tvh-row .tx b { font-size: 1rem; }
.tvh-mid .tvh-row .sub { font-size: .8rem; }
.tvh-mid .tvh-lg { width: 2rem; height: 2rem; }
.tvh-mid .tvh-row .star { font-size: 1.2rem; }
html.tv .tvh-mid .tvh-row { padding: .3rem 1rem; margin-bottom: .3rem; }
html.tv .tvh-mid .tvh-row .tx b { font-size: 1.2rem; }
html.tv .tvh-mid .tvh-row .sub { font-size: .95rem; }
html.tv .tvh-mid .tvh-lg { width: 2.6rem; height: 2.6rem; font-size: .8rem; }
html.tv .tvh-mid .tvh-row .star { font-size: 1.5rem; }
/* movies/series: more room for posters */
.tvh-vright.vg .tvh-det { margin-top: .3rem; padding: .35rem .8rem; min-height: 0; }
html.tv .tvh-vright.vg .tvh-det b { font-size: 1.2rem; }
html.tv .tvh-vright.vg .tvh-det .sub { display: none; }
.tvh-vright.vg .tvh-lh h2, .tvh-vright.vg .tvh-lh h3 { margin: 0 0 .3rem; }
html.tv .tvh-vright.vg .tvh-lh h2, html.tv .tvh-vright.vg .tvh-lh h3 { font-size: 1.8rem; }
/* live preview box: no aspect-ratio on older TV browsers, so a block of padding gives the 16:9 shape */
.tvh-pv { aspect-ratio: auto; height: 0; padding-bottom: 56.25%; }
.tvh-pv .tvh-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.tvh-pvmsg { position: absolute; left: 0; right: 0; bottom: 0; padding: .4rem .7rem; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); z-index: 2; }
html.tv .tvh-pvmsg { font-size: 1rem; }
.tvh-art img { left: 0; top: 0; right: 0; bottom: 0; }

/* TV Hub focus: one clear style everywhere (the Scena red with white writing, fixed colours so a TV cannot show white on white) */
html .tvh-tile:focus, html .tvh-cat:focus, html .tvh-sort:focus, html .tvh-row:focus, html .tvh-clear:focus, html .tvh-gear:focus, html .tvh-key:focus,
html .tvh-tile:hover, html .tvh-cat:hover, html .tvh-sort:hover, html .tvh-row:hover, html .tvh-clear:hover, html .tvh-gear:hover, html .tvh-key:hover {
  background-color: #d92b3a !important; background-image: none !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff; border-color: #ffffff !important; outline: none; box-shadow: 0 0 0 3px #ffffff, 0 8px 24px rgba(0,0,0,.5);
}
html .tvh-tile:focus *, html .tvh-cat:focus *, html .tvh-sort:focus *, html .tvh-row:focus *, html .tvh-clear:focus *, html .tvh-key:focus *, html .tvh-tile:focus .sub, html .tvh-row:focus .sub, html .tvh-row:focus .tx b { color: #ffffff !important; -webkit-text-fill-color: #ffffff; }
html .tvh-row:focus .star, html .tvh-row:focus .tvh-ic { color: #ffffff !important; }

/* TV Hub opening screen: the tiles fill the page instead of a strip at the top */
html.tv .tvh-tiles { gap: 1.2rem; margin-bottom: 1.6rem; padding: 0 .4rem; }
html.tv .tvh-tile { height: 34vh; min-height: 11.5rem; padding: 1.8rem; border-radius: 16px; }
html.tv .tvh-tile b { font-size: 2.6rem; }
html.tv .tvh-tile .sub { font-size: 1.3rem; }
html.tv .tvh-card { width: 17rem; }
html.tv .tvh-art { height: 9.5rem; }
html.tv .tvh-card b { font-size: 1.3rem; }
html.tv .tvh-tiles { margin-bottom: 1.2rem; }
html.tv .tvh-tile { height: 40vh; overflow: hidden; }
html.tv .tvh-tile b { font-size: 2.2rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* TV Hub colour: each opening tile has its own colour, and the panels carry a tint, so the pages are not grey */
html .tvh-tile[data-fk="tvh-live"] { background-image: linear-gradient(135deg, #c42b3c 0%, #6e1426 100%); border-color: #e0525f; }
html .tvh-tile[data-fk="tvh-mv"] { background-image: linear-gradient(135deg, #2f6fe0 0%, #17307a 100%); border-color: #5b94f0; }
html .tvh-tile[data-fk="tvh-sr"] { background-image: linear-gradient(135deg, #8a3fd1 0%, #3f1a78 100%); border-color: #ad6ef0; }
html .tvh-tile[data-fk="tvh-fav"] { background-image: linear-gradient(135deg, #e8a21c 0%, #8a4a0c 100%); border-color: #f5c04d; }
html .tvh-tile { color: #ffffff; }
html .tvh-tile .sub { color: rgba(255,255,255,.85); }
html .tvh-tile:focus, html .tvh-tile:hover { background-image: none !important; }
html .tvh-tile[data-fk="tvh-live"]:focus { background-color: #d92b3a !important; }
html .tvh-tile[data-fk="tvh-mv"]:focus { background-color: #2f6fe0 !important; }
html .tvh-tile[data-fk="tvh-sr"]:focus { background-color: #8a3fd1 !important; }
html .tvh-tile[data-fk="tvh-fav"]:focus { background-color: #e8a21c !important; }
html .tvh-left { background: rgba(60, 80, 170, .16); border: 1px solid rgba(110, 130, 220, .25); border-radius: 14px; }
html .tvh-cat.cur { background: rgba(91, 148, 240, .30); color: #fff; }
html .tvh-cat .c { color: #9fc0ff; }
html .tvh-mid .tvh-row { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
html .tvh-mid .tvh-row .sub { color: #a9b8e6; }
html .tvh-lh h2 { color: #ffffff; }
html .tvh-sort { background: rgba(91, 148, 240, .22); border-color: rgba(91, 148, 240, .5); color: #fff; }
html .tvh-head h1 { color: #ffffff; }

/* the TV Hub moves without transitions or animation: every press answers at once on an LG */
.tvh-split *, .tvh-tiles *, .tvh-left *, .tvh-row, .tvh-cat, .tvh-tile, .tvh-poster, .tvh-sort { transition: none !important; animation: none !important; }
.tvh-poster:focus .tvh-pbox, .tvh-row:focus { transform: none !important; }

/* the three columns keep to the height given to them: a long list scrolls inside its own column and can no longer run under the button hints */
.tvh-split { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.tvh-split > * { min-height: 0; max-height: 100%; }
.tvh-mid .tvh-list { min-height: 0; overflow-y: auto; }
.tvh-left { overflow-y: auto; }

/* the channel name under the list preview wraps inside its column instead of running out of it */
.tvh-pvcol { min-width: 0; overflow: hidden; }
.tvh-pvi { min-width: 0; overflow: hidden; }
.tvh-pvi b { display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.2; max-height: 3.7em; overflow: hidden; }
html.tv .tvh-pvi b { font-size: 1.35rem; }
.tvh-pvi .sub { white-space: normal; overflow: hidden; max-height: 2.6em; }

/* the buttons on the player overlay show clearly which one the arrows are on */
html .player .ctl button:focus, html .player .ctl .btn:focus, html .player .foot button:focus {
  background-color: #d92b3a !important; background-image: none !important; color: #fff !important; -webkit-text-fill-color: #fff;
  border-color: #fff !important; outline: 3px solid #fff !important; outline-offset: 1px; transform: none; opacity: 1 !important;
}

/* a film's own title lettering on the billboard (replaces the plain title when the server has it) */
html .bb-t.has-logo, html.tv .bb-t.has-logo { font-size: 0; line-height: 0; margin: 0 0 14px; text-shadow: none; }
.bb-logo { display: block; max-width: 100%; max-height: 22vh; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 3px 16px rgba(0, 0, 0, .65)); }
html .bb-t.has-logo, html.tv .bb-t.has-logo { overflow: visible; height: auto; }
html .tl-logo, html.tv .tl-logo { font-size: 0; line-height: 0; margin: 0 0 14px; text-shadow: none; overflow: visible; height: auto; }
.bb-logo { filter: none; object-fit: fill; object-position: 0 0; }
html .card .t.cap-logo { white-space: normal; height: auto; line-height: 0; margin-top: 8px; overflow: visible; }
html .card .t.cap-logo img { display: block; }
