/* Scena look: a cosmetic layer only. No markup, key handling or page layout is changed here.
   Colours come from the opening sequence: a plum-black ground, amber, magenta and violet glows, cream-to-peach lettering. */
:root {
  --bg: #050205; --panel: #0e070d; --panel2: #130a12; --line: rgba(255, 214, 190, .14);
  --text: #fbf3ea; --muted: #a89aa6;
  --accent: #e5195f; --accent-hi: #ff4d84; --accent-lo: #c4134d; --accent-ink: #ffffff;
  --glass: rgba(255, 236, 224, .09);
  --cream: #fff1e3; --peach: #f0b79e;
}
body { background: #050205; color: var(--text); }
/* the soft glows of the opening sequence, behind everything */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 55% at 88% -8%, rgba(229, 25, 95, .20), rgba(229, 25, 95, 0) 62%), radial-gradient(70% 55% at 0% 0%, rgba(255, 154, 60, .12), rgba(255, 154, 60, 0) 60%), radial-gradient(60% 50% at 50% 110%, rgba(123, 77, 255, .14), rgba(123, 77, 255, 0) 65%); }
html.nplay body::before { display: none; }

/* ---- top menu: hidden until the remote moves up to it ---- */
html .top { -webkit-transform: translateY(-110%); transform: translateY(-110%); opacity: 0; transition: transform .38s cubic-bezier(.22, .61, .36, 1), opacity .3s ease; justify-content: center; background: linear-gradient(180deg, rgba(5, 2, 5, .94), rgba(5, 2, 5, .7) 70%, rgba(5, 2, 5, 0)); }
html .top:focus-within, html .top:hover { -webkit-transform: none; transform: none; opacity: 1; }
html.tv .top.solid, html .top.solid { background: linear-gradient(180deg, rgba(5, 2, 5, .94), rgba(5, 2, 5, .7) 70%, rgba(5, 2, 5, 0)) !important; box-shadow: none; }
html::before { content: ''; position: fixed; top: 12px; left: 50%; width: 72px; height: 3px; margin-left: -36px; border-radius: 2px; background: rgba(255, 214, 190, .3); z-index: 4; pointer-events: none; }
html.nplay::before { display: none; }
/* the menu is split around the wordmark: the first tabs on the left, the rest on the right */
html .top > .tab { order: 3; }
html .top > .tab:nth-child(-n+6) { order: 1; }
html .top > .brand { order: 2; }
html .top > .spacer { display: none; }
html .top .brand, html.tv .top .brand { position: static; left: auto; margin: 0 calc(30px * var(--tvk, 1)); padding: 0; width: calc(150px * var(--tvk, 1)); height: calc(31px * var(--tvk, 1)); align-self: center; flex: none; background: linear-gradient(180deg, #fff6e4, #f0b79e); -webkit-mask: url(wordmark.svg) center / contain no-repeat; mask: url(wordmark.svg) center / contain no-repeat; }
html .top .brand img { display: none; }
html .top .tab { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); border-radius: 0; margin: 0 4px; }
html.tv .top .tab { padding: calc(12px * var(--tvk, 1)) calc(20px * var(--tvk, 1)); }
html.tv .top .tab { font-weight: 600; }
html .top .tab.on, html.tv .top .tab.on { background: transparent; border-color: transparent; color: var(--cream) !important; box-shadow: inset 0 -2px 0 var(--peach); }
html .top .tab:focus, html .top .tab:hover, html .top .tab.on:focus, html.tv .top .tab:focus { color: var(--cream) !important; }
html .top .tab::before { display: none; }

/* ---- buttons, chips: pills, no bubble shine ---- */
html .btn, html .act .act-c, html .tp-playrow .tp-play, html .tp-restart { background-image: none; box-shadow: none; border-radius: 999px; background-color: rgba(255, 236, 224, .09); border: 1px solid rgba(255, 214, 190, .22); color: var(--text); letter-spacing: .06em; white-space: nowrap; }
html .btn.pri { background-image: none; background-color: var(--cream); color: #1a0d14; border-color: var(--cream); }
html .btn.pri:focus, html .btn.pri:hover { background-color: #fff; }
html .btn.bb-play, html.tv .btn.bb-play, html[data-theme] .btn.bb-play { background: var(--cream); background-image: none; color: #1a0d14 !important; border: 0; border-radius: 999px; box-shadow: none; }
html .btn.bb-info { background-color: rgba(255, 236, 224, .12); color: var(--text); border: 1px solid rgba(255, 214, 190, .24); border-radius: 999px; }
html .btn:focus, html .btn:hover, html .act:focus .act-c, html .act:hover .act-c { background-color: rgba(255, 236, 224, .2); border-color: rgba(255, 214, 190, .7); box-shadow: 0 0 0 2px rgba(255, 214, 190, .35), 0 10px 26px rgba(229, 25, 95, .22); }
html .btn.pri:focus, html .btn.bb-play:focus, html .btn.bb-play:hover, html.tv .btn.bb-play:focus { background: #fff; color: #1a0d14 !important; box-shadow: 0 0 0 3px rgba(255, 214, 190, .55), 0 10px 30px rgba(255, 154, 60, .3); }
html .chip { background: rgba(255, 236, 224, .06); border-color: rgba(255, 214, 190, .2); letter-spacing: .05em; }
html .chip.on { background: var(--cream); color: #1a0d14; }

/* ---- posters and cards: calmer, with a warm glow where you are ---- */
html .card { background: linear-gradient(155deg, #130a12, #0e070d); box-shadow: 0 6px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 236, 224, .06); border-radius: 18px; }
html .card .art { border-radius: 13px; }
html.tv .card:focus .art, html.tv .card:hover:focus .art { box-shadow: 0 0 0 2px rgba(255, 224, 204, .92), 0 0 26px 3px rgba(255, 154, 60, .38), 0 22px 40px rgba(0, 0, 0, .6); }
html.a-focus.tv .card:focus .art { box-shadow: none; }
html .card:focus .t, html .card:hover .t { color: var(--cream); background: rgba(255, 236, 224, .16); box-shadow: none; }
.bar > i { background: var(--accent); }

/* ---- headings, panels, billboard ---- */
h2 { font-family: Georgia, "Times New Roman", "Noto Serif", serif; font-style: italic; font-weight: 500; letter-spacing: .01em; color: var(--cream); }
.panel { background: rgba(255, 236, 224, .05); border-color: rgba(255, 214, 190, .14); border-radius: 18px; }
.billboard { background: #0b0509; }
.billboard::before { background: linear-gradient(90deg, rgba(5, 2, 5, .94) 0%, rgba(5, 2, 5, .55) 38%, rgba(5, 2, 5, 0) 70%); }
.billboard::after { background: linear-gradient(180deg, rgba(5, 2, 5, 0), #050205); }
.bb-dot { background: rgba(255, 224, 204, .3); }
.bb-dot.on { background: var(--peach); }
.tab, .sub { color: var(--muted); }

/* ---- TV Hub in the same look: the blues and bright tile colours become the opening's amber, magenta and violet ---- */
html .tvh-tile { border-radius: 18px; }
html .tvh-tile[data-fk="tvh-live"] { background-image: linear-gradient(135deg, #e5195f 0%, #4a0f2c 100%); border-color: rgba(255, 130, 170, .55); }
html .tvh-tile[data-fk="tvh-mv"] { background-image: linear-gradient(135deg, #ff9a3c 0%, #5a2a0c 100%); border-color: rgba(255, 190, 120, .55); }
html .tvh-tile[data-fk="tvh-sr"] { background-image: linear-gradient(135deg, #7b4dff 0%, #2a1566 100%); border-color: rgba(170, 140, 255, .55); }
html .tvh-tile[data-fk="tvh-fav"] { background-image: linear-gradient(135deg, #f0b79e 0%, #7a2a45 100%); border-color: rgba(255, 214, 190, .6); }
html .tvh-tile:focus, html .tvh-tile:hover { box-shadow: 0 0 0 3px rgba(255, 236, 224, .9), 0 0 34px 4px rgba(255, 154, 60, .35) !important; border-color: rgba(255, 236, 224, .9); }
html .tvh-tile[data-fk="tvh-live"]:focus { background-color: #e5195f !important; }
html .tvh-tile[data-fk="tvh-mv"]:focus { background-color: #e0851f !important; }
html .tvh-tile[data-fk="tvh-sr"]:focus { background-color: #7b4dff !important; }
html .tvh-tile[data-fk="tvh-fav"]:focus { background-color: #c9667f !important; }
html .tvh-left { background: rgba(255, 236, 224, .05); border: 1px solid rgba(255, 214, 190, .14); border-radius: 18px; }
html .tvh-cat.cur { background: rgba(255, 214, 190, .16); color: var(--cream); }
html .tvh-cat .c { color: var(--peach); }
html .tvh-mid .tvh-row { background: rgba(255, 236, 224, .05); border-color: rgba(255, 214, 190, .14); border-radius: 14px; }
html .tvh-mid .tvh-row .sub { color: var(--muted); }
html .tvh-sort { background: rgba(255, 236, 224, .08); border-color: rgba(255, 214, 190, .3); color: var(--cream); border-radius: 999px; }
html .tvh-gear { background: rgba(255, 236, 224, .08); border-color: rgba(255, 214, 190, .3); }
html .tvh-lh h2, html .tvh-head h1 { color: var(--cream); }
html .tvh-hb b { color: var(--peach); }
html .tvh-row:focus, html .tvh-row:hover, html .tvh-cat:focus, html .tvh-cat:hover, html .tvh-sort:focus, html .tvh-sort:hover { border-color: rgba(255, 236, 224, .85); box-shadow: 0 0 0 2px rgba(255, 236, 224, .8), 0 8px 24px rgba(229, 25, 95, .3); }
/* the player's buttons: the opening's pink where the arrows are */
html .player .ctl button:focus, html .player .ctl .btn:focus, html .player .foot button:focus { background-color: var(--accent) !important; border-color: var(--cream) !important; outline-color: var(--cream) !important; }
html .tvh-row .dots { margin-left: 10px; color: var(--muted); font-size: 1.3em; letter-spacing: .1em; line-height: 1; }
html .tvh-row:focus .dots { color: var(--cream); }

/* the bottom of the billboard melts into the page: no shadow and no solid fade colour, so no edge shows against the glows behind */
html .billboard, html .billboard.sec { box-shadow: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0) 100%); }
.billboard::after { background: linear-gradient(180deg, rgba(5, 2, 5, 0), rgba(5, 2, 5, .55)); }


/* ---- TV Hub, option B (editorial): near-black panels with a peach hairline, italic serif titles, clean lines for lists ---- */
/* shared by all options: the focus rules of the old hub no longer paint solid red and white */
html.tv .tvh-tile:focus,html.tv .tvh-tile:hover,html.tv .tvh-cat:focus,html.tv .tvh-cat:hover,html.tv .tvh-row:focus,html.tv .tvh-row:hover,html.tv .tvh-sort:focus,html.tv .tvh-sort:hover,html.tv .tvh-gear:focus,html.tv .tvh-clear:focus{-webkit-text-fill-color:currentColor}
html.tv .tvh-head h1{font-family:Georgia,"Times New Roman","Noto Serif",serif;font-style:italic;font-weight:500;letter-spacing:.005em;color:var(--cream)!important}
html.tv .tvh-head .sub{color:var(--peach)}
html.tv .tvh-lg{background:rgba(255,236,224,.08);border-radius:12px}
html.tv .tvh-row .star{color:rgba(255,214,190,.3)}
html.tv .tvh-row .star.on,html.tv .tvh-row:focus .star.on{color:var(--peach)!important}
html.tv .tvh-pv{border-radius:20px;border:1px solid rgba(255,214,190,.18);background:#0b0509;box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 60px rgba(229,25,95,.12)}
html.tv .tvh-live{background:var(--accent);border-radius:999px;letter-spacing:.12em;padding:.15rem .7rem}
html.tv .tvh-pvi b{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:500;font-size:1.5rem;color:var(--cream)}
html.tv .tvh-hint{border-top:1px solid rgba(255,214,190,.1);padding-top:.9rem}
html.tv .tvh-hb b{color:var(--cream);border:1px solid rgba(255,214,190,.3);border-radius:6px;padding:0 .45rem}
html.tv .tvh-lh h2,html.tv h2{color:var(--cream)}
/* B: Editorial. Quiet near-black panels, a hairline of peach, a large ghost letter; lists as clean lines */
html.tv .tvh-tile{background:linear-gradient(180deg,#150a13,#0a050a)!important;border:0!important;border-top:2px solid rgba(240,183,158,.55)!important;border-radius:6px;position:relative;overflow:hidden}
html.tv .tvh-tile::after{content:attr(data-g);position:absolute;right:-.6rem;top:-1.2rem;font:italic 500 17rem/1 Georgia,"Times New Roman",serif;color:rgba(255,214,190,.07);pointer-events:none}
html.tv .tvh-tile[data-fk="tvh-live"]::after{content:'L'}html.tv .tvh-tile[data-fk="tvh-mv"]::after{content:'M'}html.tv .tvh-tile[data-fk="tvh-sr"]::after{content:'S'}html.tv .tvh-tile[data-fk="tvh-fav"]::after{content:'F'}
html.tv .tvh-tile b{position:relative;font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:2.5rem;color:var(--cream);letter-spacing:.01em}
html.tv .tvh-tile .sub{position:relative;color:var(--muted);font-size:1.1rem;letter-spacing:.03em}
html.tv .tvh-tile:focus,html.tv .tvh-tile:hover{background:linear-gradient(180deg,#2a1020,#12060f)!important;border-top:4px solid var(--cream)!important;box-shadow:0 22px 60px rgba(229,25,95,.28)!important;color:var(--cream)!important}
html.tv .tvh-tile:focus::after{color:rgba(255,214,190,.16)}
html.tv .tvh-tile:focus .sub{color:var(--peach)!important}
html.tv .tvh-left{background:none;border:0;border-right:1px solid rgba(255,214,190,.12);border-radius:0}
html.tv .tvh-cat{border-radius:0;color:var(--muted);background:none;border:0;border-left:3px solid transparent}
html.tv .tvh-cat.cur{background:none;color:var(--cream);border-left-color:var(--peach)}
html.tv .tvh-cat:focus,html.tv .tvh-cat:hover{background:linear-gradient(90deg,rgba(229,25,95,.28),rgba(229,25,95,0))!important;color:var(--cream)!important;border:0!important;border-left:3px solid var(--cream)!important;box-shadow:none!important}
html.tv .tvh-mid .tvh-row{background:none;border:0;border-bottom:1px solid rgba(255,214,190,.1);border-radius:0;margin-bottom:0}
html.tv .tvh-row:focus,html.tv .tvh-row:hover{background:linear-gradient(90deg,rgba(229,25,95,.28),rgba(229,25,95,.02))!important;border:0!important;border-bottom:1px solid rgba(255,214,190,.1)!important;box-shadow:inset 3px 0 0 var(--cream)!important;color:var(--cream)!important}
html.tv .tvh-row:focus .sub{color:var(--peach)!important}
html.tv .tvh-sort,html.tv .tvh-gear{background:none;border:0;border-bottom:1px solid rgba(255,214,190,.4);border-radius:0;color:var(--cream)}
html.tv .tvh-pv{border-radius:6px}
/* option B, the rest of the hub */
html.tv .tvh-pbox{border:0;border-radius:4px;background:#150a13}
html.tv .tvh-pcap{font-family:Georgia,"Times New Roman",serif;font-weight:500;color:var(--muted);font-size:1.15rem}
html.tv .tvh-poster:focus .tvh-pbox,html.tv .tvh-poster:hover .tvh-pbox{box-shadow:0 0 0 2px var(--cream),0 18px 44px rgba(229,25,95,.35)!important}
html.tv .tvh-poster:focus .tvh-pcap{color:var(--cream)!important}
html.tv .tvh-det{background:none;border:0;border-left:2px solid var(--peach);border-radius:0;padding:.35rem 1rem}
html.tv .tvh-det b{font-family:Georgia,"Times New Roman",serif;font-weight:500;color:var(--cream)}
html.tv .tvh-vright.vg .tvh-lh h2,html.tv .tvh-lh h2{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:500;color:var(--cream)}
html.tv .tvh-row .val{color:var(--peach);font-size:1.05rem}

/* TV Hub: drawn at the size of the design (a touch smaller than the rest of the app). The picture of a playing channel keeps normal size. */
html.tv.tvh-sm:not(.nplay){font-size:calc(20px * var(--fs,1) * var(--tvk,1))}
html.tv.tvh-sm .tab{font-size:calc(1.05 * 28px * var(--fs,1) * var(--tvk,1))}
/* Favourite channels row on the landing page */
html.tv .tvh-lv{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 30% 20%,#2a3a52,#0a0d16)}
html.tv .tvh-lv .tvh-fv{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s}
html.tv .tvh-card.pv .tvh-fv{opacity:1}
html.tv .tvh-lv .lvb{position:absolute;z-index:2;left:.5rem;top:.5rem;font:700 .65rem/1 Inter,Roboto,sans-serif;letter-spacing:.06em;color:#fff;background:#c8185a;padding:.2rem .45rem;border-radius:4px}
html.tv .tvh-lv .lvl{position:absolute;z-index:2;right:.5rem;top:.5rem;width:1.9rem;height:1.9rem;border-radius:6px;background:rgba(0,0,0,.5);color:var(--peach);font:600 .7rem/1 Inter,Roboto,sans-serif;display:flex;align-items:center;justify-content:center;overflow:hidden}
html.tv .tvh-lv .lvl img{width:100%;height:100%;object-fit:contain}
html.tv .tvh-lv u{z-index:2}

/* TV Hub opening tiles: theme tones (rose, copper, plum, peach) over the deep plum base; the selected tile lifts with the cream edge */
html.tv .tvh-tile[data-fk="tvh-live"]{background:linear-gradient(160deg,#9c1a48 0%,#4a1026 60%,#170810 100%)!important;border-top-color:rgba(240,183,158,.55)!important}
html.tv .tvh-tile[data-fk="tvh-mv"]{background:linear-gradient(160deg,#a85a2c 0%,#4d2514 60%,#1a0d0a 100%)!important;border-top-color:rgba(240,183,158,.55)!important}
html.tv .tvh-tile[data-fk="tvh-sr"]{background:linear-gradient(160deg,#5a3a8e 0%,#2a1a4a 60%,#120b22 100%)!important;border-top-color:rgba(240,183,158,.55)!important}
html.tv .tvh-tile[data-fk="tvh-fav"]{background:linear-gradient(160deg,#b8706a 0%,#5e2640 60%,#210e1a 100%)!important;border-top-color:rgba(240,183,158,.55)!important}
html.tv .tvh-tile:focus[data-fk="tvh-live"],html.tv .tvh-tile:hover[data-fk="tvh-live"]{background:linear-gradient(160deg,#c8235e 0%,#6e1a38 65%,#2a0e1a 100%)!important;box-shadow:0 22px 60px rgba(229,25,95,.4)!important}
html.tv .tvh-tile:focus[data-fk="tvh-mv"],html.tv .tvh-tile:hover[data-fk="tvh-mv"]{background:linear-gradient(160deg,#d27a3c 0%,#6e3a1c 65%,#2a150e 100%)!important;box-shadow:0 22px 60px rgba(255,154,60,.35)!important}
html.tv .tvh-tile:focus[data-fk="tvh-sr"],html.tv .tvh-tile:hover[data-fk="tvh-sr"]{background:linear-gradient(160deg,#7a54b8 0%,#3c2670 65%,#190f36 100%)!important;box-shadow:0 22px 60px rgba(123,77,255,.38)!important}
html.tv .tvh-tile:focus[data-fk="tvh-fav"],html.tv .tvh-tile:hover[data-fk="tvh-fav"]{background:linear-gradient(160deg,#dc8f84 0%,#85304f 65%,#34121f 100%)!important;box-shadow:0 22px 60px rgba(240,150,130,.38)!important}
html.tv .tvh-tile .sub{color:rgba(255,240,230,.8)}

/* video behind the billboard: fades in over the picture, under the text and the fade at the foot */
.bb-vid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0; transition: opacity 1s; background: transparent; pointer-events: none; }
.bb-vid.on { opacity: 1; }
html.a-calm .bb-vid { display: none; }

/* while a billboard clip plays, nothing else on the billboard animates, so a slower TV spends everything on the video */
.billboard.bb-playing .bb-img,.billboard.bb-playing .bb-img.on{animation:none!important;transition:none!important}
.billboard.bb-playing *{animation:none!important}

/* a mask or blur over a playing video makes a TV redraw the whole billboard every frame: while a clip plays, take them off (the picture looks the same, the bottom edge fades to the page colour instead) */
.billboard.bb-playing{-webkit-mask-image:none!important;mask-image:none!important}
.billboard.bb-playing::after{background:linear-gradient(180deg,rgba(5,2,5,0) 0%,rgba(5,2,5,.55) 55%,#050205 100%)!important}
.billboard.bb-solid .bb-img{visibility:hidden!important}
.billboard.bb-playing::before,.billboard.bb-playing::after{display:none!important}   /* nothing translucent is drawn over the playing clip: the title and buttons keep their own shadow */

/* Google TV and Fire TV: the clip is drawn by the TV's own player behind the page, so the page lets it show through inside the billboard */
html.bbn,html.bbn body{background:transparent!important}
html.bbn body::before{clip-path:inset(var(--bbn-b,0px) 0 0 0)}
html.bbn .billboard{background:transparent!important}
html.bbn #app{background:transparent}

/* the text over the billboard stays readable on bright frames of a playing clip: a soft shadow on the words themselves, no dark layer over the picture */
.billboard .bb-o, .billboard .bb-m, .billboard .bb-tag { text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 16px rgba(0, 0, 0, .8); }

/* the billboard's dashes: lit red while the remote is on them, so it is plain they can be moved along */
.bb-dot { outline: none; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.bb-dot:focus { background: #e0303c !important; transform: scaleY(2); box-shadow: 0 0 0 3px rgba(224, 48, 60, .35), 0 0 16px rgba(224, 48, 60, .85); }

/* TV top bar: the Scena logo is dead centre (both sides get the same room), tabs run out from it, and the Search and Settings icons sit at the far right */
html.tv .top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-content: stretch; }
html.tv .top > .tgrp { display: flex; align-items: center; min-width: 0; }
html.tv .top > .tgrp.l { grid-column: 1; justify-content: flex-end; }
html.tv .top > .tgrp.r { grid-column: 3; justify-content: flex-start; }
html.tv .top > .brand { grid-column: 2; order: 0; }
html.tv .top .tab.ico { display: inline-flex; align-items: center; justify-content: center; }
html.tv .top .tab.ico svg { width: 1.45em; height: 1.45em; display: block; }
html.tv .top .tgrp.r .tab.icofirst { margin-left: auto; }

/* the billboard clip fills the whole screen behind the page; the page's own background goes clear while it plays */
.bb-vid.bb-full { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 0; object-fit: cover; object-position: 50% 50%; }
html.bbn #app { position: relative; z-index: 1; }
html.bbn .home-rows { background: linear-gradient(180deg, rgba(5, 2, 5, 0), rgba(5, 2, 5, .72) 180px); }

/* Favourites guide under the preview */
.tvh-pvg{margin-top:.6rem;display:flex;flex-direction:column;gap:.25rem;overflow:hidden}
.tvh-pvg .gl{display:flex;gap:.8rem;font-size:.95rem;color:var(--muted);white-space:nowrap}
.tvh-pvg .gl.now{color:var(--cream)}
.tvh-pvg .gt{flex:none;min-width:3.6em;color:var(--peach)}
.tvh-pvg .gn{overflow:hidden;text-overflow:ellipsis}
html.tv .tvh-pvg .gl{font-size:1.1rem}

/* equal side padding so the logo is dead centre */
html.tv .top{padding-left:calc(36px * var(--tvk, 1)) !important;padding-right:calc(36px * var(--tvk, 1)) !important}
/* spread each side evenly */
html.tv .top > .tgrp.l, html.tv .top > .tgrp.r{justify-content:space-between !important}
html.tv .top > .tgrp.l{padding-right:calc(24px * var(--tvk, 1))}
html.tv .top > .tgrp.r{padding-left:calc(24px * var(--tvk, 1))}
html.tv .top .tgrp.r .tab.icofirst{margin-left:0 !important}

/* Settings pages: groups of rows, each with a name, a plain description and its control on the right */
.spage { max-width: 980px; }
.spt { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; font-size: 1.9rem; margin: 0 0 6px; color: var(--cream, var(--text)); }
.sgrp { margin: 26px 0 0; }
.shead { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--peach, var(--muted)); margin: 0 0 10px 4px; }
.scard { border: 1px solid rgba(255, 214, 190, .14); border-radius: 14px; background: rgba(255, 236, 224, .04); overflow: hidden; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 214, 190, .1); width: 100%; text-align: left; }
.srow:last-child { border-bottom: 0; }
.srow .sl { flex: 1 1 auto; min-width: 0; }
.srow .sn { font-weight: 600; font-size: 1.05rem; color: var(--cream, var(--text)); }
.srow .sd { margin-top: 4px; font-size: .92rem; line-height: 1.45; color: var(--muted); max-width: 62ch; }
.srow .sctl, .srow > .input, .srow > .ssel, .srow > .stog { flex: none; }
.sctl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; max-width: 46%; }
.sctl .input { max-width: 240px; }
.ssel { min-width: 120px; }
.stog { position: relative; width: 48px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 0; flex: none; transition: background .15s; }
.stog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.stog.on { background: var(--accent, #e5195f); }
.stog.on::after { transform: translateX(20px); }
.stog:focus-visible, .btn:focus-visible { outline: 2px solid var(--cream, #fff); outline-offset: 2px; }
@media (max-width: 760px) { .srow { flex-direction: column; align-items: stretch; gap: 12px; } .sctl { justify-content: flex-start; max-width: none; } }

/* Every settings page shares one width, one card, one heading and one kind of switch */
.spane { max-width: 980px; }
.spane .panel { border: 1px solid rgba(255, 214, 190, .14); background: rgba(255, 236, 224, .04); border-radius: 14px; padding: 18px 20px; margin: 0 0 18px; }
.spane .panel > h3, .spane .panel > h2 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; font-size: 1.4rem; margin: 0 0 8px; color: var(--cream, var(--text)); }
.spane .panel > p, .spane .panel .sub, .spane .panel .muted { font-size: .92rem; line-height: 1.5; }
.spane .panel .btn { min-height: 38px; }
.spane .panel input[type=checkbox], .spane .srow input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; vertical-align: middle; margin: 0 10px 0 0; cursor: pointer; transition: background .15s; }
.spane .panel input[type=checkbox]::after, .spane .srow input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.spane .panel input[type=checkbox]:checked, .spane .srow input[type=checkbox]:checked { background: var(--accent, #e5195f); }
.spane .panel input[type=checkbox]:checked::after, .spane .srow input[type=checkbox]:checked::after { transform: translateX(16px); }
.spane .panel input[type=checkbox]:focus-visible { outline: 2px solid var(--cream, #fff); outline-offset: 2px; }
.spane .panel label { display: flex; align-items: flex-start; gap: 0; line-height: 1.4; }

/* Player controls: round icon buttons */
.player .ctl .btn.ico { position: relative; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.player .ctl .btn.ico .ic { display: inline-flex; }
.player .ctl .btn.ico svg { width: 22px; height: 22px; }
.player .ctl .btn.ico.big { width: 54px; height: 54px; background: var(--cream, #fff); color: #1a0f12; border-color: transparent; }
.player .ctl .btn.ico.big svg { width: 26px; height: 26px; }
.player .ctl .btn.ico.rec { color: #ff4d5e; }
.player .ctl .btn.ico .num { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); font-size: 9px; font-weight: 700; text-align: center; line-height: 1; pointer-events: none; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.player .ctl { gap: 10px; }
html.tv .player .ctl .btn.ico { width: calc(58px * var(--tvk, 1)); height: calc(58px * var(--tvk, 1)); }
html.tv .player .ctl .btn.ico.big { width: calc(70px * var(--tvk, 1)); height: calc(70px * var(--tvk, 1)); }
html.tv .player .ctl .btn.ico svg { width: calc(28px * var(--tvk, 1)); height: calc(28px * var(--tvk, 1)); }
html.tv .player .ctl .btn.ico .num { font-size: calc(11px * var(--tvk, 1)); }

/* the artwork dissolves as soon as the clip is playing, instead of lingering over it */
.billboard.bb-playing.bb-fade .bb-img, .billboard.bb-playing.bb-fade .bb-img.on { opacity: 0 !important; -webkit-transition: opacity .3s linear !important; transition: opacity .3s linear !important; }

/* TV Full guide: everything in proportion, with more channels in view */
html.tv .sky { --rh: calc(66px * var(--tvk, 1)); }
html.tv .sky .chip { font-size: .72rem; padding: .32em .9em; }
html.tv .sky .btn, html.tv .sky .btn.sm { font-size: .78rem; padding: .4em 1em; min-height: 0; }
html.tv .sky-search, html.tv .sky .input { font-size: .78rem; padding: .4em .8em; width: calc(260px * var(--tvk, 1)); }
html.tv .sky-top { gap: calc(18px * var(--tvk, 1)); margin: 0 0 calc(8px * var(--tvk, 1)); }
html.tv .sky-prev { width: min(30%, calc(330px * var(--tvk, 1))); }
html.tv .sky-title { font-size: 1.2rem; -webkit-line-clamp: 1; }
html.tv .sky-who, html.tv .sky-time, html.tv .sky-desc { font-size: .78rem; }
html.tv .sky-desc { -webkit-line-clamp: 2; }
html.tv .sky-vmsg, html.tv .sky-sound { font-size: .62rem; }
html.tv .sky-live { font-size: .6rem; }
html.tv .sky-bar { margin-bottom: calc(6px * var(--tvk, 1)); gap: calc(8px * var(--tvk, 1)); }
html.tv .sky-date { font-size: .8rem; padding: 8px 12px; }
html.tv .sky-times { height: calc(34px * var(--tvk, 1)); }
html.tv .sky-tm { font-size: .68rem; padding-top: 8px; }
html.tv .sky-n, html.tv .sky-star { font-size: .72rem; }
html.tv .sky-nm { font-size: .78rem; }
html.tv .sky-p .pt { font-size: .76rem; }
html.tv .sky-p .ps { font-size: .62rem; }
html.tv .sky-ch .logo { width: calc(40px * var(--tvk, 1)); height: calc(28px * var(--tvk, 1)); }
html.tv .sky-scroll { height: calc(100vh - calc(470px * var(--tvk, 1))); }
html.tv .sky-vmsg { padding-right: calc(110px * var(--tvk, 1)); }

/* the channel's own logo from the playlist, beside its name under the preview */
.tvh-pvh { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.tvh-pvh b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvh-pvlogo { flex: none; height: 2.4rem; max-width: 4.6rem; width: auto; object-fit: contain; border-radius: 4px; }

/* Billboard: Watch together sits on its own line under Play and More Info */
.bb-b.bb-pb { margin-top: 0; }
.bb-b .bb-party { background: rgba(255,255,255,.12); }
/* Watch together / Join watch party dialogs: tidy and centred */
.menu .sub { text-align: center; line-height: 1.45; margin: 4px 6px 6px; opacity: .85; }
.menu .code { text-align: center; margin: 12px 0 8px; padding: 14px 10px; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 2.6rem; letter-spacing: .3em; }
.menu .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.menu .actions .btn { flex: 1 1 140px; justify-content: center; text-align: center; margin: 0; }
.menu .input { width: 100%; box-sizing: border-box; margin: 6px 0; }
.menu .err { text-align: center; min-height: 1.2em; margin: 4px 0; }
html.tv .menu .code { font-size: calc(2.6rem * var(--tvk, 1)); }

/* Full guide preview: exact pixel box set by the app on TVs */
.sky-prev.fx::before { display: none !important; }
html.tv .sky-prev.fx { padding: 0; }

.wt-m .actions { flex-direction: column; flex-wrap: nowrap; }
.wt-m .actions .btn { flex: none; width: 100%; }

/* web app on a computer or phone: the top menu stays in view (only TVs hide it until Up is pressed on the remote) */
html:not(.tv) .top { -webkit-transform: none; transform: none; opacity: 1; }
html:not(.tv)::before { display: none; }
/* web app: the whole top bar fits the window (it scales with the width), and if a very narrow window is still too small it scrolls from its left edge instead of cutting the first items off */
html:not(.tv) .top { justify-content: safe center; padding-left: 8px; padding-right: 8px; }
html:not(.tv) .top .tab { font-size: clamp(.56rem, .86vw, 1.08rem); letter-spacing: .04em; padding: 8px clamp(3px, .5vw, 12px); margin: 0 clamp(0px, .25vw, 5px); white-space: nowrap; }
html:not(.tv) .top .brand { padding-right: 0; }
