/* ByteIP - designad for 1920x1080. Alla matt i px mot den basen. */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Gamla webOS (WebKit 538): overgangar startar sekunder for sent, sa
   rullningen med transform stod stilla nar man gick ner (2026-10-17).
   js/log.js satter klassen; allt hoppar direkt i stallet. */
html[data-noanim] * { -webkit-transition: none !important; transition: none !important; }

html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #111315;
  color: #eef1f4;
  font-family: "Samsung One", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  -webkit-user-select: none;
  user-select: none;
  cursor: none;
}

/* AVPlay ritar i ett hardvarulager BAKOM webbsidan. Nar spelaren ar aktiv
   maste hela vagen ner till canvas vara genomskinlig, annars hors ljudet men
   bilden syns inte.

   Bade html och body maste tommas. Om bara body gors genomskinlig propagerar
   html:s bakgrund till canvas i stallet och malar over videolagret - exakt
   samma symptom som om ingenting hade gjorts. */
html.playing, body.playing { background: transparent; }
html.playing #video-backdrop { display: none; }

/* Spelande fonster (D5, js/ui-player.js minimize): samma strom fortsatter
   i ett fonster uppe till hoger. html och body ar genomskinliga som under
   uppspelning, och bakgrundslagret blir ett hal: elementet ligger pa
   fonstrets plats och malar resten av skarmen med en skugga utan blur
   (spread). Allt annat pa hem/bladdraren ar redan ritat ovanpa det, sa
   bara rektangeln slapper igenom AVPlays hardvarulager. Rektangeln ar
   PIP_RECT i js/ui-player.js. */
html.pip, body.pip { background: transparent; }
html.pip #video-backdrop {
  left: 1392px; top: 147px; width: 480px; height: 270px;
  background: transparent; border-radius: 12px;
  box-shadow: 0 0 0 2400px #111315;
}
html.pip.engine-html5 #html5-player { display: block; }
.pip-frame {
  position: absolute; left: 1392px; top: 147px; width: 480px; height: 270px;
  border: 3px solid rgba(255,255,255,.18); border-radius: 12px;
  z-index: 20;
}
.pip-frame.focused { border-color: #ffffff; }
.pip-label {
  position: absolute; left: 12px; bottom: 12px; max-width: 450px;
  padding: 4px 12px; border-radius: 8px;
  background: rgba(10,11,12,.72); color: #eef1f4; font-size: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pip-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: #35c6ff; vertical-align: 1px; }
/* Krysset pa fonstret (JB 2026-10-18): pekare och pekskarm (webb, LG)
   har ingen Tillbaka-knapp att stoppa rutan med. Pa TV med fjarr finns
   det inte. */
.pip-close {
  display: none; position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(10,11,12,.72); color: #ffffff; cursor: pointer;
  align-items: center; justify-content: center;
}
html.web .pip-close, html.webos .pip-close { display: flex; }
.pip-close svg { width: 22px; height: 22px; }
.pip-close:hover { background: rgba(204,27,34,.9); }
.pip-hint { display: none; color: #c4cad1; }
.pip-frame.focused .pip-hint { display: inline; }
/* Kolumnerna: detaljkolumnens bildplats ar fonstret. Texten under det
   borjar langre ner, och tipsen ligger i flodet sa att de inte hamnar
   over den (JB:s TV 2026-10-17: Next-raden lag under tipsen i Series). */
html.pip .col-detail { padding-top: 312px; }
html.pip .col-detail .poster { display: none; }

#html5-player {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  background: #000;
  object-fit: contain;
  display: none;
}
html.playing.engine-html5 #html5-player { display: block; }

#video-backdrop {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  background: #111315;
  pointer-events: none;
}

.screen {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
}
.hidden { display: none !important; }

/* Avstand mellan flexbarn som marginaler, inte `gap`: flex-gap kom i
   Chromium 84 och 2021 ars Samsung (Tizen 6.0) kor Chromium 76. Ligger
   overst sa att senare regler med egen marginal vinner. */
.pair-box > * { margin-right: 48px; }
.pair-box > *:last-child { margin-right: 0; }
.tabs > * { margin-right: 14px; }
.tabs > *:last-child { margin-right: 0; }
.hcards > * { margin-right: 20px; }
.hcards > *:last-child { margin-right: 0; }
.epg-line > * { margin-right: 12px; }
.epg-line > *:last-child { margin-right: 0; }
.topbar > * { margin-right: 40px; }
.topbar > *:last-child { margin-right: 0; }
.sections > * { margin-right: 10px; }
.sections > *:last-child { margin-right: 0; }
.topbar-right > * { margin-right: 24px; }
.topbar-right > *:last-child { margin-right: 0; }
.vlist li > * { margin-right: 16px; }
.vlist li > *:last-child { margin-right: 0; }
.detail-hint > * { margin-right: 24px; }
.detail-hint > *:last-child { margin-right: 0; }
.guide-hero > * { margin-right: 32px; }
.guide-hero > *:last-child { margin-right: 0; }
.g-hero-line > * { margin-right: 18px; }
.g-hero-line > *:last-child { margin-right: 0; }
.g-row > * { margin-right: 12px; }
.g-row > *:last-child { margin-right: 0; }
.g-ch > * { margin-right: 14px; }
.g-ch > *:last-child { margin-right: 0; }
.g-choice-row > * { margin-right: 20px; }
.g-choice-row > *:last-child { margin-right: 0; }
.set-value > * { margin-right: 22px; }
.set-value > *:last-child { margin-right: 0; }
.ctl-head > * { margin-right: 24px; }
.ctl-head > *:last-child { margin-right: 0; }
.ctl-sub > * { margin-right: 22px; }
.ctl-sub > *:last-child { margin-right: 0; }
.ctl-buttons > * { margin-right: 14px; }
.ctl-buttons > *:last-child { margin-right: 0; }
.ctl-btn > * { margin-right: 12px; }
.ctl-btn > *:last-child { margin-right: 0; }
.trackmenu-tabs > * { margin-right: 12px; }
.trackmenu-tabs > *:last-child { margin-right: 0; }
.exit-buttons > * { margin-right: 20px; }
.exit-buttons > *:last-child { margin-right: 0; }
.grid-row > * { margin-right: 20px; }
.grid-row > *:last-child { margin-right: 0; }
.hit-main > * { margin-bottom: 7px; }
.hit-main > *:last-child { margin-bottom: 0; }
.hit-top > * { margin-right: 16px; }
.hit-top > *:last-child { margin-right: 0; }
.hit-epg > * { margin-right: 12px; }
.hit-epg > *:last-child { margin-right: 0; }
.hit-epg .hit-now > * { margin-right: 12px; }
.hit-epg .hit-now > *:last-child { margin-right: 0; }
.hit-epg .hit-next > * { margin-right: 12px; }
.hit-epg .hit-next > *:last-child { margin-right: 0; }

.brand { font-size: 72px; font-weight: 600; letter-spacing: 0; }
.brand span { color: #35c6ff; font-weight: 600; }
.brand.small { font-size: 34px; }
/* Market ur ikonen: binart b (0110 0010) dar en etta ar en playknapp.
   Ritat i CSS - <img> renderas inte pa TV:n. Matt i em sa det foljer
   ordmarkets storlek. */
.brand-mark {
  display: inline-block; vertical-align: -.02em;
  width: 1.62em; height: .74em; margin-right: .32em;
}
.brand-mark i {
  float: left; width: .3em; height: .3em; margin-left: .14em;
  border: .05em solid rgba(255,255,255,.32); border-radius: 50%;
}
.brand-mark i:nth-child(4n+1) { margin-left: 0; }
.brand-mark i:nth-child(n+5) { margin-top: .14em; }
.brand-mark i.on { background: #ffffff; border-color: #ffffff; }
.brand-mark i.play {
  width: 0; height: 0; border-radius: 0;
  margin-left: .17em; margin-right: -.03em;
  border-style: solid; border-width: .15em 0 .15em .27em;
  border-color: transparent transparent transparent #35c6ff;
}
/* Produktnamnet halls lattare an varumarket sa "ByteIP" laser sig forst. */
.brand em {
  font-style: normal; font-weight: 400;
  font-size: .62em; color: #9aa2ac;
  margin-left: 10px; letter-spacing: 0;
}

/* ---- Parning via telefon ----
   Parningsvyn behover mer bredd an inloggningsformularet: QR-koden och den
   stora parningskoden ligger sida vid sida. Utan den extra bredden skjuter
   koden ut genom boxens kant. */
.login-box.wide { width: 1240px; padding: 48px 56px; }

.pair-box {
  display: flex; align-items: center;
  margin: 24px 0 8px;
  padding: 36px;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
}
.pair-qr {
  display: block; flex: none;
  width: 360px; height: 360px;
  background: #ffffff;
  border-radius: 12px;
}
.pair-right { flex: 1; min-width: 0; }

/* QR-koden ar huvudsaken. Texten bredvid forklarar vad som ska hanta, och
   den skrivna koden ar en utvag for den som inte kan skanna - darfor
   diskret, inte dominerande. */
.pair-step { color: #ffffff; font-size: 34px; font-weight: 600; margin: 0 0 12px; }
.pair-lead { color: #9aa2ac; font-size: 23px; line-height: 1.5; margin: 0 0 18px; }
.pair-trial { color: #35d98f; font-size: 22px; font-weight: 600; margin: 0 0 22px; }
.pair-status { color: #35c6ff; font-size: 22px; margin: 0 0 30px; }

.pair-manual {
  color: #9aa2ac; font-size: 22px; line-height: 1.6;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
}
.pair-url { color: #9aa2ac; }
.pair-code {
  color: #eef1f4; font-weight: 700; letter-spacing: 3px;
  white-space: nowrap;
}

/* ---- Kopplad men obetald ---- */
.pay-box {
  margin: 28px 0 8px;
  padding: 36px 40px;
  background: rgba(53,198,255,.08);
  border: 1px solid rgba(53,198,255,.3);
  border-radius: 18px;
}
/* QR:n som oppnar portalen for inloggning och betalning. Vit platta med
   rundade horn sa att den tysta zonen fran drawQr smalter in. */
.pay-qr {
  display: block;
  margin: 0 auto 24px;
  border-radius: 12px;
  background: #ffffff;
}
.pay-title { color: #ffffff; font-size: 34px; font-weight: 600; margin: 0 0 14px; }
.pay-scan { color: #9aa2ac; font-size: 21px; margin: 0 0 14px; }
.pay-text { color: #c4cad1; font-size: 25px; line-height: 1.5; margin: 0 0 18px; }
.pay-url { color: #35c6ff; font-weight: 700; }
.pay-hint { color: #9aa2ac; font-size: 22px; margin: 0; }
.pay-alt { color: #9aa2ac; font-size: 22px; margin: 16px 0 0; }
.pay-alt b { color: #35c6ff; }

/* ================= STARTSKARM =================
   Synlig fran forsta bildrutan (index.html), goms av js/app.js vid forsta
   skarmbytet. Ligger over allt annat sa att den kan tonas bort ovanpa
   hemskarmen. Bakgrunden ar samma grafit som html/body (banden runt ytan
   i webbklienten smalter in) med tva stilla ljusfalt som i Androids och
   LG:s startbilder. Den enda rorelsen ar playknappen som pulserar -
   en opacity-animation pa ett litet element, billig aven pa TV-GPU:n. */
.splash {
  /* Over webbklientens knapprad (#web-bar, 1000): Back-knappen lag annars
     ovanpa startskarmen tills portalen svarat. */
  z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  background: #111315;
  background-image:
    radial-gradient(ellipse 760px 540px at 24% 18%, rgba(26, 80, 98, .55), rgba(26, 80, 98, 0) 70%),
    radial-gradient(ellipse 860px 620px at 86% 92%, rgba(58, 42, 92, .42), rgba(58, 42, 92, 0) 70%);
  opacity: 1;
  transition: opacity .25s ease-out;
}
.splash.splash-out { opacity: 0; pointer-events: none; }
.splash-box { display: flex; align-items: center; }
.splash-box > * { margin-right: 64px; }
.splash-box > *:last-child { margin-right: 0; }
.splash-tile {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 220px; border-radius: 44px;
  background: linear-gradient(160deg, #1b2129 0%, #0f1216 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 24px 60px rgba(0,0,0,.45);
  font-size: 110px;
}
.splash-tile .brand-mark { margin-right: 0; vertical-align: 0; }
.splash-word { font-size: 110px; font-weight: 400; color: #ffffff; letter-spacing: 0; }
@-webkit-keyframes splash-pulse { from { opacity: .35; } to { opacity: 1; } }
@keyframes splash-pulse { from { opacity: .35; } to { opacity: 1; } }
.splash .brand-mark i.play {
  -webkit-animation: splash-pulse 1.3s ease-in-out infinite alternate;
  animation: splash-pulse 1.3s ease-in-out infinite alternate;
}
html[data-noanim] .splash .brand-mark i.play { -webkit-animation: none; animation: none; }

/* ================= INLOGGNING ================= */
#screen-login {
  display: flex; align-items: center; justify-content: center;
  background: #111315;
}

.login-box {
  width: 760px;
  padding: 56px 64px 48px;
  background: #1a1c1f;
  border-radius: 20px;
}
.login-sub { margin: 8px 0 32px; color: #9aa2ac; font-size: 24px; }

.tabs { display: flex; margin-bottom: 28px; }
.tab {
  flex: 1; padding: 16px 0;
  background: rgba(255,255,255,.05);
  border: 2px solid transparent; border-radius: 12px;
  color: #c4cad1; font-size: 24px; font-family: inherit;
}
.tab.active { background: rgba(255,255,255,.12); color: #ffffff; }

.fields label {
  display: block; margin-bottom: 20px;
  color: #9aa2ac; font-size: 20px; letter-spacing: .5px;
}
.fields input {
  display: block; width: 100%; margin-top: 8px;
  padding: 16px 18px;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: #eef1f4; font-size: 26px; font-family: inherit;
  outline: none;
}
.fields input::-webkit-input-placeholder { color: #7d858f; }

button.primary {
  width: 100%; margin-top: 12px; padding: 20px 0;
  background: #35c6ff;
  border: 2px solid transparent; border-radius: 14px;
  color: #04151f; font-size: 28px; font-weight: 700; font-family: inherit;
}
button.ghost {
  padding: 10px 22px;
  background: rgba(255,255,255,.06);
  border: 2px solid transparent; border-radius: 10px;
  color: #c4cad1; font-size: 20px; font-family: inherit;
}

.status { min-height: 34px; margin-top: 18px; font-size: 22px; color: #ffcf5c; }
.status.error { color: #ff6b6b; }
.status.ok { color: #6ee7a8; }
.hint { margin-top: 10px; color: #9aa2ac; font-size: 22px; }

/* Fokusmarkering - ett sprak overallt: vit ram + ljus platta. Kort och
   tablablock lagger till skala i sina egna regler. Cyan betyder
   varumarke och live, aldrig fokus (DESIGN-INVENTERING.md D1). */
.focused, input.focused, button.focused {
  border-color: #ffffff !important;
  box-shadow: none;
  background: rgba(255,255,255,.14);
  color: #ffffff;
}
button.primary.focused {
  background: #6fd8ff;
  color: #04151f;
}

/* ================= HEM ================= */

/* Radernas behallare rullar vertikalt via transform - overflow doljer resten. */
/* Fran menyns underkant (132) till 1030. Sokrutan under menyn ar borta
   sedan 2026-10-15 (D4) - var 812. */
.home-body { height: 898px; overflow: hidden; padding: 20px 48px 0; }


/* Informationsytan (js/infopanel.js, D5): fast yta pa 300 px under menyn
   pa hem och over sektionsraderna. Tva lager som tonas med opacity;
   postern hogerstalld och morkad av en statisk gradient (ingen blur). */
.info-panel { position: relative; height: 300px; overflow: hidden; }
.info-layer {
  position: absolute; left: 0; top: 0; width: 1920px; height: 300px;
  opacity: 0; transition: opacity .25s cubic-bezier(.2,0,0,1);
}
.info-layer.on { opacity: 1; }
.info-art {
  position: absolute; right: 0; top: 0; width: 1100px; height: 300px;
  background: center 25% / cover no-repeat;
}
.info-art::after {
  content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #111315 0%, rgba(17,19,21,.86) 35%, rgba(17,19,21,.6) 100%),
              linear-gradient(0deg, #111315 0%, rgba(17,19,21,0) 40%);
}
/* Det spelande fonstret ligger dar postern annars ar. */
.info-panel.pip .info-art { display: none; }
.info-text { position: absolute; left: 48px; top: 28px; width: 1250px; }
.info-eyebrow { color: #9aa2ac; font-size: 22px; font-weight: 600; }
.info-title {
  margin-top: 2px; color: #ffffff; font-size: 46px; font-weight: 700; line-height: 56px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.info-facts { margin-top: 6px; color: #c4cad1; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-bar { width: 420px; height: 6px; margin-top: 12px; background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden; }
.info-bar div { height: 100%; background: #35c6ff; }
.info-next { margin-top: 10px; color: #9aa2ac; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-next:empty { display: none; }
.info-plot { margin-top: 12px; max-width: 1100px; max-height: 68px; overflow: hidden; color: #9aa2ac; font-size: 24px; line-height: 34px; }
/* Raderna under ytan: 898 - 300. */
.home-body.under-info, .browse-scroll.under-info { height: 598px; }

/* Tom hem: valkomst och tre stora vagar in (D7). */
.home-empty { padding-top: 40px; }
.home-empty-title { color: #ffffff; font-size: 46px; font-weight: 700; }
.home-empty-lead { margin-top: 10px; color: #c4cad1; font-size: 26px; }
.home-empty-cards { display: flex; margin-top: 48px; }
.home-empty-cards > * { margin-right: 36px; }
.home-empty-cards > *:last-child { margin-right: 0; }
.start-card {
  width: 560px; height: 300px; padding: 0 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: #1a1c1f;
  border: 3px solid transparent; border-radius: 16px;
  transition: transform .15s cubic-bezier(.2,0,0,1);
}
.start-card.focused { transform: scale(1.04); }
.start-card-name { color: #eef1f4; font-size: 46px; font-weight: 700; }
.start-card-sub { margin-top: 10px; color: #9aa2ac; font-size: 24px; }
.start-card.focused .start-card-sub { color: #c4cad1; }
.home-empty-hint { margin-top: 44px; color: #9aa2ac; font-size: 24px; }
.home-empty-hint b { color: #eef1f4; font-weight: 600; }

/* Forstoringsglas ritat i CSS - emojier renderas olika (och ofta fult)
   mellan firmwareversioner, en border och en pseudo-element gor det inte. */
.search-icon {
  display: inline-block; position: relative;
  width: 20px; height: 20px;
  margin-right: 22px; vertical-align: -2px;
  border: 3px solid currentColor; border-radius: 50%;
}
.search-icon::after {
  content: '';
  position: absolute;
  width: 11px; height: 3px;
  background: currentColor; border-radius: 2px;
  right: -10px; bottom: -4px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.home-rows { transition: transform .18s ease-out; }

.hrow { margin-bottom: 34px; opacity: .68; }
.hrow.active { opacity: 1; }
.hrow-title {
  margin-bottom: 14px;
  color: #9aa2ac; font-size: 26px; font-weight: 600;
}
.hrow.active .hrow-title { color: #eef1f4; }

/* Korten ligger pa en rad som rullar horisontellt via transform. */
.hrow > div:last-child { overflow: visible; }
.hcards {
  display: flex;
  /* Glidet nar raden rullar i sidled. Langre och mjukare an fokusbytet,
     sa att rorelsen kanns som en svepning och inte ett hopp. */
  transition: transform .32s cubic-bezier(.25, .8, .3, 1);
  white-space: nowrap;
}

/* position + z-index sa att det uppskalade fokuskortet ritas over sina
   grannar i stallet for att hamna under nasta kort i DOM-ordningen. */
.hcard {
  flex: none; width: 220px; position: relative;
  transition: transform .15s cubic-bezier(.2,0,0,1);
}
/* Fokus pa hemkorten: kortet vaxer med vit ram och djup skugga - sa gor
   moderna TV-appar. Den globala fokusregeln (cyan ram + tonad platta runt
   hela rutan) neutraliseras har; den ar till for knappar och falt. */
.hcard.focused {
  z-index: 2;
  transform: scale(1.07);
  border-color: transparent !important;
  box-shadow: none;
  background: transparent;
}
.hcard.wide { width: 500px; }

.hcard-img {
  position: relative;
  height: 310px;
  background: rgba(255,255,255,.05) center/cover no-repeat;
  border: 3px solid transparent; border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease-out;
}
.hcard.wide .hcard-img { height: 282px; }
.hcard.focused .hcard-img {
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 16px 42px rgba(0,0,0,.65);
}
/* No artwork: hue tile with the name (ByteIP.cards.hueTile). */
.noart {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px;
}
.hue-tile-name {
  max-height: 90px; overflow: hidden;
  color: #eef1f4; font-size: 24px; font-weight: 600; line-height: 30px;
  text-align: center; white-space: normal;
}

/* Fortsatt titta: forloppsremsa och "X min kvar" ligger pa bilden. */
.hcard-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px; background: rgba(0,0,0,.55);
}
.hcard-bar div { height: 100%; background: #35c6ff; }
.hcard-left {
  position: absolute; right: 8px; bottom: 12px;
  padding: 3px 10px;
  background: rgba(0,0,0,.72); border-radius: 6px;
  color: #eef1f4; font-size: 20px;
}

.hcard-title {
  margin-top: 10px;
  color: #c4cad1; font-size: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcard.focused .hcard-title { color: #ffffff; }
.hcard-sub {
  color: #9aa2ac; font-size: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* TV-guiden: mini-tabla. En rad per kanal - kanalruta till vanster och
   programmen som tidsproportionella block pa en gemensam tidslinje, sa
   klockslagen ligger i lod mellan kanalerna. Fargtonen per kanal satts
   inline av js/ui-home.js (harledd ur kanalnamnet). */
.hrow.epg { margin-bottom: 10px; }
.hrow.epg + .hrow:not(.epg) { margin-top: 34px; }
.epg-line { display: flex; height: 84px; }
.epg-logo {
  flex: none; width: 200px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; overflow: hidden;
}
.epg-logo-img { width: 72%; height: 64%; background: center/contain no-repeat; }
.epg-logo-name {
  padding: 0 12px;
  color: #eef1f4; font-size: 20px; font-weight: 600; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.epg-cells { position: relative; flex: 1; overflow: hidden; }
/* Sparet ar bredare an raden och glider (samma idiom som helskarmstablan). */
.epg-track { position: absolute; left: 0; top: 0; height: 84px; transition: transform .3s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.epg-now {
  position: absolute; top: -2px; bottom: -2px; width: 3px; z-index: 3; pointer-events: none;
  background: #35c6ff;
  transition: left .3s cubic-bezier(.2,.7,.2,1);
}
.epg-now::before { content: ""; position: absolute; left: -4px; top: -2px; width: 11px; height: 11px; border-radius: 50%; background: #35c6ff; }
.epg-cell.past { opacity: .55; }
.epg-cell.nodata { background: rgba(255,255,255,.04); color: #7d858f; font-size: 20px; }
.hrow-hint { margin-left: 18px; color: #9aa2ac; font-size: 20px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.epg-cell {
  position: absolute; top: 0; height: 84px;
  padding: 14px 18px;
  border: 3px solid transparent; border-radius: 10px;
  overflow: hidden;
  transition: transform .15s ease-out, border-color .15s ease-out;
}
.epg-cell.focused {
  border-color: rgba(255,255,255,.92) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  transform: scale(1.03);
  z-index: 2;
}
/* Nu-rutan: pagaende program i fast bredd forst pa raden (js/rows.js). */
.epg-cell.now .epg-cell-title { font-size: 22px; }
.epg-cell-time { color: rgba(255,255,255,.7); font-size: 20px; }
.epg-cell-title {
  margin-top: 2px;
  color: #eef1f4; font-size: 21px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.epg-cell-prog {
  position: absolute; left: 0; bottom: 0; height: 4px;
  background: rgba(255,255,255,.5);
}
#home-clock { color: #9aa2ac; font-size: 24px; }

/* Provperiodens dagar - syns bara medan den pagar. */
.trial-badge {
  padding: 6px 14px;
  background: rgba(110,231,168,.12);
  border-radius: 8px;
  color: #6ee7a8; font-size: 20px;
}
.trial-badge:empty { display: none; }

/* ================= SOK ================= */

.search.big {
  flex: 1; max-width: 980px;
  padding: 14px 24px;
  font-size: 27px;
}
.search.big.focused, .search.big:focus {
  border-color: #ffffff;
  box-shadow: none;
}
.search-status { color: #9aa2ac; font-size: 22px; white-space: nowrap; }

/* Kanallogotyper ar liggande och ljusa - visa hela, inte beskuret. */
.hcard-img.logo {
  background-size: contain;
  background-origin: content-box;
  padding: 24px;
  height: 160px;
  background-color: rgba(255,255,255,.06);
}

/* ================= BLADDRA ================= */
/* 36 px luft over menyn: pa en stor TV (70" hos JB:s mamma, 2026-10-13)
   satt flikraden for nara overkanten - TV:ns sakra zon ar ~54 px och
   flikarna borjade 24 px in. Skarmkropparna nedanfor ar 36 px lagre. */
.topbar {
  display: flex; align-items: center;
  height: 96px; margin-top: 36px; padding: 0 48px;
  background: rgba(17,19,21,.96);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sections { display: flex; flex: 1; }
.section-tab {
  padding: 12px 28px;
  background: transparent;
  border: 2px solid transparent; border-radius: 10px;
  color: #9aa2ac; font-size: 24px; font-family: inherit;
}
.section-tab.active { color: #ffffff; background: rgba(255,255,255,.08); }
/* Sokfliken (D4): forstoringsglaset ur .search-icon framfor ordet. */
.search-tab .search-icon { width: 19px; height: 19px; margin-right: 16px; vertical-align: -1px; }
.topbar-right { display: flex; align-items: center; }
#clock { color: #9aa2ac; font-size: 24px; }

/* Sektionsraderna ligger ovanfor kolumnerna i samma rullande yta. Nar
   fokus ar i kolumnerna flyttas ytan upp med radernas hojd (js/ui-browse.js)
   sa att kolumnerna fyller ytan (132-1030). Medan man soker i sektionen
   tar sokrutan 86 px (D4). */
.browse-scroll { height: 898px; overflow: hidden; }
.browse-scroll.searching { height: 812px; }
.browse-scroll-inner { transition: transform .22s ease-out; }
.browse-rows { padding: 20px 48px 0; }
.browse-rows:empty { padding: 0; }

.browse-body {
  display: flex;
  height: 898px;
}
.col { height: 100%; overflow: hidden; }
.col-categories { width: 420px; border-right: 1px solid rgba(255,255,255,.07); }
.col-channels   { width: 800px; border-right: 1px solid rgba(255,255,255,.07); }
.col-detail     { width: 700px; padding: 28px 32px 36px; display: flex; flex-direction: column; }
.col-detail > * { flex: none; }
/* Det som inte far plats klipps i stallet for att ga in under tipsen. */
.col-detail > .epg, .col-detail > .meta { flex: 0 1 auto; min-height: 0; overflow: hidden; }

.col-title {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 28px;
  color: #9aa2ac; font-size: 24px; font-weight: 600;
}
.search {
  width: 320px; padding: 8px 14px;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.10); border-radius: 8px;
  color: #eef1f4; font-size: 20px; font-family: inherit; outline: none;
  text-transform: none; letter-spacing: 0;
}

.vlist { list-style: none; height: 792px;   /* 12 rader a 66 px: kolumnen ar 898 - 68 (rubrik) = 830 px, nederkant 992 */ overflow: hidden; position: relative; }
.vlist li {
  position: relative;
  display: flex; align-items: center;
  height: 66px; padding: 0 28px;
  border-left: 5px solid transparent;
  color: #c4cad1; font-size: 25px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vlist li .num { width: 82px; color: #7d858f; font-size: 21px; flex: none; }
.vlist li .label { overflow: hidden; text-overflow: ellipsis; }
.vlist li .fav { margin-left: auto; color: #ffcf5c; flex: none; }
.vlist li .seen { margin-left: auto; color: #6ee7a8; font-size: 22px; flex: none; }
.vlist li .fav + .seen { margin-left: 12px; }

/* Titthistorik: remsa langst ner i raden som visar hur langt man sett. */
.vlist li .watchbar {
  position: absolute; left: 33px; right: 28px; bottom: 8px;
  height: 4px;
  background: rgba(255,255,255,.14);
  border-radius: 2px;
  overflow: hidden;
}
.vlist li .watchbar span {
  display: block; height: 100%;
  background: #35c6ff;
}
.vlist li .watchbar.done span { background: #6ee7a8; }

/* Movies/Series as posters (Settings, js/ui-browse.js renderPosterCell):
   5 x 138 px per row with 14 px between, three rows of 255 = 765 of the
   list's 792. Only the drawn rows exist (ListView cols). */
.vlist.posters { display: flex; flex-wrap: wrap; align-content: flex-start; padding: 10px 0 0 24px; }
.vlist.posters li.pcell {
  display: block; flex: none; width: 138px; height: 243px; margin: 0 14px 12px 0; padding: 0;
  border-left: 0; background: transparent; overflow: visible;
}
.vlist.posters li.pcell.focused, .vlist.posters li.pcell.selected { background: transparent; box-shadow: none; }
.vlist.posters li.pcell.focused { z-index: 2; transform: scale(1.06); }
.pcell .pimg {
  position: relative; height: 207px;
  background: rgba(255,255,255,.05) center/cover no-repeat;
  border: 3px solid transparent; border-radius: 10px; overflow: hidden;
}
.pcell.focused .pimg { border-color: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.pcell.selected .pimg { border-color: rgba(255,255,255,.35); }
.pcell .hue-tile-name { font-size: 20px; line-height: 25px; max-height: 100px; }
.vlist li.pcell .fav { position: absolute; top: 6px; right: 8px; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.vlist li.pcell .seen { position: absolute; top: 6px; left: 8px; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.vlist li.pcell .watchbar { left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0; background: rgba(0,0,0,.55); }
.pcell .ptitle {
  margin-top: 8px; color: #c4cad1; font-size: 19px; line-height: 26px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcell.focused .ptitle { color: #ffffff; }

/* Live TV: avdelare mellan de anvanda kategorierna (overst, i
   anvandningsordning) och resten i leverantorens ordning. */
.vlist li.rest-start { border-top: 1px solid rgba(255,255,255,.10); }

.vlist li.season-row .label { font-size: 27px; color: #eef1f4; }
.vlist li.season-row .season-count {
  margin-left: auto;
  color: #7d858f; font-size: 20px; flex: none;
}
.vlist li.season-row .seen { margin-left: 14px; }
/* Kolumnerna (2026-10-17, JB:s van forstod inte var han var): bara den
   aktiva kolumnen har en stark markering och vit rubrik, de passiva tonas
   ner. Den passiva listans kom-ihag-rad (selected) ar en tunn kant, den
   oppnade kategorin (open) har cyan kant och vit text aven nar fokus
   star i kanallistan. */
.col.passive { opacity: .5; }
.col.active .col-title { color: #ffffff; }
.vlist li.selected { background: transparent; color: #d6dbe0; border-left-color: rgba(255,255,255,.3); }
.vlist li.open { background: rgba(53,198,255,.10); color: #ffffff; border-left-color: #35c6ff; }
.vlist li.focused {
  background: rgba(255,255,255,.18);
  border-left-color: #ffffff;
  color: #ffffff;
  box-shadow: none;
}

/* Flyttlaget (hallmenyns Move): posten man haller i bar en cyan ram. */
.vlist[data-moving] li.focused {
  background: rgba(53,198,255,.22);
  border-left-color: #35c6ff;
  box-shadow: inset 0 0 0 3px #35c6ff;
}

.poster {
  width: 100%; height: 340px; margin-bottom: 24px;
  background: rgba(255,255,255,.04) center/contain no-repeat;
  border-radius: 14px;
}
/* Channels: a smaller logo box, contained with a max height (SVG logos
   were stretched), so now/next sits near the top. */
.poster.logo {
  width: 300px; height: 160px; padding: 22px 28px;
  background-color: rgba(255,255,255,.06);
  background-size: contain; background-origin: content-box;
}
#detail-title { font-size: 34px; font-weight: 600; line-height: 1.25; }
.d-now-title { color: #ffffff; font-size: 30px; font-weight: 600; line-height: 1.25; }
.d-now-time { margin-top: 6px; color: #c4cad1; font-size: 22px; }
.d-bar { height: 6px; margin-top: 12px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.d-bar div { height: 100%; background: #35c6ff; }
.d-desc { margin-top: 14px; max-height: 99px; overflow: hidden; color: #9aa2ac; font-size: 22px; line-height: 33px; }
.d-next { margin-top: 18px; color: #c4cad1; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-next b { color: #9aa2ac; font-weight: 600; }
.d-none { color: #7d858f; font-size: 22px; }
.epg { margin-top: 18px; color: #9aa2ac; font-size: 22px; line-height: 1.5; }
.epg .now { color: #ffffff; }
.epg .next { color: #9aa2ac; margin-top: 8px; }
.meta { margin-top: 18px; color: #7d858f; font-size: 20px; line-height: 1.5; }
/* Speltid, ar, genre, betyg under titeln (JB 2026-10-14). */
.facts { margin-top: 8px; color: #c4cad1; font-size: 22px; }
.facts:empty { display: none; }
.detail-hint {
  margin-top: auto; padding-top: 16px; width: 636px;
  display: flex; flex-wrap: wrap;
  color: #9aa2ac; font-size: 22px; line-height: 1.4;
}
.detail-hint > * { white-space: nowrap; margin-top: 4px; }
.detail-hint b { color: #eef1f4; }

.browse-status {
  position: absolute; left: 48px; bottom: 22px;
  color: #9aa2ac; font-size: 20px;
}

/* ================= TABLA I HELSKARM (js/ui-guide.js) ================= */
.guide {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  padding: 56px 64px 0;
  background: linear-gradient(180deg, rgba(13,14,16,.86), rgba(13,14,16,.97) 40%);
  z-index: 45;
}
/* Over bladdraren (ingen video bakom) ar tablan ogenomskinlig - annars
   syns flikar och logotyper som spoken i programblocken. */
html:not(.playing) .guide { background: #111315; }
.guide-hero { display: flex; height: 196px; }
.g-hero-logo {
  width: 280px; height: 160px; flex: none; border-radius: 16px;
  background: center / 70% no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: #eef1f4; font-size: 30px; font-weight: 600; text-align: center; padding: 0 20px;
}
.g-hero-main { flex: 1; min-width: 0; }
.g-hero-channel { color: #9aa2ac; font-size: 24px; font-weight: 600; }
.g-hero-title {
  margin-top: 6px; color: #ffffff; font-size: 46px; font-weight: 700; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-hero-line { margin-top: 8px; display: flex; align-items: center; }
.g-hero-time { color: #c4cad1; font-size: 24px; }
.g-state { padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #eef1f4; font-size: 20px; font-weight: 600; }
.g-state.now { background: rgba(53,198,255,.22); color: #35c6ff; }
.g-state.past { color: #9aa2ac; }
.g-hero-desc {
  margin-top: 10px; color: #9aa2ac; font-size: 22px; line-height: 1.4;
  max-height: 62px; overflow: hidden;
}
.g-hero-side { width: 340px; flex: none; text-align: right; }
.g-clock { color: #9aa2ac; font-size: 22px; }
.g-count { margin-top: 6px; color: #7d858f; font-size: 20px; }
/* Filterknappen: Upp fran forsta raden eller Gron. Vanster/Hoger vaxlar. */
.g-filter { display: inline-block; margin-top: 10px; padding: 8px 18px; border-radius: 999px; border: 3px solid transparent; background: rgba(255,255,255,.08); color: #c4cad1; font-size: 21px; font-weight: 600; }
.g-filter.focused { background: rgba(255,255,255,.18); border-color: #ffffff; color: #ffffff; }

.guide-grid { position: relative; margin-top: 14px; }
.g-ruler { position: relative; height: 40px; margin-left: 272px; overflow: hidden; }
.g-tick {
  position: absolute; top: 0; height: 40px; line-height: 40px;
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,.14);
  color: #9aa2ac; font-size: 20px;
}
.g-rows { position: relative; }
.g-row { display: flex; height: 92px; margin-bottom: 8px; }
.g-ch {
  width: 260px; flex: none; display: flex; align-items: center;
  padding: 0 14px; border-radius: 12px; border: 3px solid transparent;
  background: rgba(255,255,255,.06);
}
/* Kanalrutan markeras som vald, inte fokuserad - en fokusring i taget
   (programblocket bar den). */
.g-ch.focused { background: rgba(255,255,255,.14); border-color: transparent !important; }
.g-ch-logo {
  width: 92px; height: 58px; flex: none; border-radius: 8px;
  background: center / 80% no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.g-ch-initial { color: #eef1f4; font-size: 28px; font-weight: 700; }
.g-ch-text { min-width: 0; }
.g-ch-name { color: #eef1f4; font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ch-fav { color: #ffcf5c; font-size: 20px; margin-top: 2px; }
.g-cells { position: relative; flex: 1; overflow: hidden; }
/* Sparet ar bredare an fonstret och glider med transform (mjuk rullning). */
.g-track { position: absolute; left: 0; top: 0; height: 100%; transition: transform .3s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.g-ruler .g-track { height: 40px; }
.g-cell {
  position: absolute; top: 0; height: 92px; padding: 12px 16px;
  border: 3px solid transparent; border-radius: 10px; overflow: hidden;
  box-sizing: border-box;
}
.g-cell.past { opacity: .55; }
.g-cell { transition: border-color .12s ease-out; }
.g-cell.focused {
  border-color: #ffffff; opacity: 1; z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.g-cell.nodata { background: rgba(255,255,255,.04); color: #7d858f; font-size: 20px; line-height: 62px; }
.g-cell-time { color: rgba(255,255,255,.7); font-size: 20px; }
.g-cell-title { margin-top: 2px; color: #eef1f4; font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cell-prog { position: absolute; left: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.55); }
.g-now {
  position: absolute; top: 0; bottom: 0; width: 3px; z-index: 3;
  transition: left .3s cubic-bezier(.2,.7,.2,1);
  background: #35c6ff;
}
.g-now::before { content: ""; position: absolute; left: -5px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: #35c6ff; }
.g-state.cu { background: rgba(110,231,168,.16); color: #6ee7a8; }
.g-choice { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 48; background: rgba(13,14,16,.55); display: flex; align-items: center; justify-content: center; }
.g-choice-box { width: 760px; padding: 36px 40px 28px; background: #1a1c1f; border-radius: 20px; text-align: center; }
.g-choice-title { color: #ffffff; font-size: 32px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-choice-row { display: flex; justify-content: center; margin-top: 28px; }
.g-choice-btn { min-width: 260px; padding: 18px 28px; border-radius: 14px; border: 3px solid transparent; background: rgba(255,255,255,.08); color: #c4cad1; font-size: 26px; font-weight: 600; }
.g-choice-btn.focused { background: rgba(255,255,255,.18); border-color: #ffffff; color: #ffffff; }
.g-choice-hint { margin-top: 22px; color: #9aa2ac; font-size: 22px; }

.guide-foot {
  position: absolute; left: 64px; right: 64px; bottom: 26px;
  display: flex; justify-content: space-between;
  color: #9aa2ac; font-size: 22px;
}
.guide-foot b { color: #eef1f4; }

/* ================= INSTALLNINGAR ================= */
.settings-title { flex: 1; color: #eef1f4; font-size: 30px; font-weight: 600; }
.settings-body { padding: 36px 48px 0; }
/* Listan ar hogre an skarmen: menyrad 132 + 36 = 168, nederkant 1030,
   tipsraden under tar 76. Listan glider i klipprutan (translateY via
   ByteIP.dom i js/settings.js) sa att raden i fokus syns. */
.settings-clip { height: 786px; overflow: hidden; }
.settings-list { max-width: 1300px; transition: transform .2s ease-out; }
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 96px; padding: 14px 32px; margin-bottom: 10px;
  background: rgba(255,255,255,.05); border: 3px solid transparent; border-radius: 14px;
}
.set-row.focused { background: rgba(255,255,255,.12); border-color: #ffffff; }
.set-row.about { background: transparent; min-height: 64px; margin-bottom: 0; }
.set-row.about.focused { background: rgba(255,255,255,.06); }
.set-label { color: #eef1f4; font-size: 28px; font-weight: 600; }
.set-row.about .set-label { color: #9aa2ac; font-size: 24px; font-weight: 400; }
.set-hint { margin-top: 4px; color: #9aa2ac; font-size: 20px; }
.set-value { display: flex; align-items: center; color: #ffffff; font-size: 27px; }
.set-arrow { color: #35c6ff; font-size: 40px; line-height: 1; }
.set-arrow.dim { color: #3a3f45; }
.set-current { min-width: 180px; text-align: center; }
.set-text { color: #c4cad1; font-size: 24px; }
.settings-hint { margin-top: 24px; color: #9aa2ac; font-size: 22px; }
.settings-hint b { color: #eef1f4; }

/* ================= SPELARE ================= */
#screen-player { background: transparent; }

/* Kontrollfaltet (js/player-ctl.js). Ligger i nederkanten over en
   gradient; remsan med kanaler/avsnitt overst, sedan titel, strimma och
   knappar. Fokus ar vit ram + ljus platta, samma sprak som hemkorten. */
.ctl {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 160px 64px 64px;
  background: linear-gradient(180deg, transparent, rgba(13,14,16,.72) 30%, rgba(13,14,16,.94));
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.ctl.show { opacity: 1; pointer-events: auto; }
/* Passivt (kvitto efter kanalbyte/spolning): ingen fokusmarkering. */
.ctl.passive .focused { border-color: transparent !important; background: rgba(255,255,255,.08); transform: none; box-shadow: none; }
.ctl.passive .ctl-bar.focused { height: 6px; }
.ctl.passive .ctl-bar.focused #ctl-bar-fill::after { display: none; }

.ctl-strip {
  position: relative; height: 236px; margin-bottom: 26px;
  overflow: hidden;
}
.ctl-strip-label {
  position: absolute; left: 0; top: 0;
  color: #9aa2ac; font-size: 22px; font-weight: 600;
}
.ctl-card {
  position: absolute; top: 40px;
  width: 256px; height: 180px; padding: 12px 14px;
  box-sizing: border-box;
  background: rgba(255,255,255,.07);
  border: 3px solid transparent; border-radius: 12px;
  color: #c4cad1;
  overflow: hidden;
}
.ctl-card.playing { background: rgba(53,198,255,.14); }
/* Favorit (stjarna) och nyligen sedd (punkt) markeras i kortets horn. */
.ctl-card.fav::after, .ctl-card.recent::after {
  content: "\2605"; position: absolute; right: 12px; top: 8px;
  color: #ffcf5c; font-size: 20px;
}
.ctl-card.recent::after { content: "\25CF"; color: #9aa2ac; font-size: 14px; top: 12px; }
.ctl-card.playing .ctl-card-name { color: #35c6ff; }
.ctl-card.focused {
  background: rgba(255,255,255,.16); border-color: #ffffff; color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.ctl-card.focused .ctl-card-name { color: #ffffff; }
.ctl-card-logo {
  height: 72px; border-radius: 6px;
  background: rgba(255,255,255,.08) center / contain no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.ctl-card-logo.poster { background-size: cover; background-position: center top; }
.ctl-card-logo.noart .hue-tile-name { max-height: 60px; }
.ctl-card-name {
  margin-top: 10px; font-size: 24px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ctl-card-sub {
  margin-top: 4px; font-size: 20px; color: #9aa2ac; height: 26px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ctl-card.focused .ctl-card-sub { color: #c4cad1; }
.ctl-card-prog {
  position: absolute; left: 14px; right: 14px; bottom: 10px; height: 4px;
  background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden;
}
.ctl-card-prog div { height: 100%; background: #35c6ff; }

.ctl-head { display: flex; align-items: baseline; }
.ctl-number { color: #9aa2ac; font-size: 46px; font-weight: 700; }
.ctl-name { font-size: 46px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-badge {
  margin-left: auto; padding: 6px 14px; flex: none;
  background: rgba(255,255,255,.10); border-radius: 8px;
  font-size: 20px; color: #c4cad1;
}
.ctl-sub {
  margin-top: 10px; display: flex; align-items: baseline;
  color: #c4cad1; font-size: 26px; white-space: nowrap; overflow: hidden;
}
.ctl-sub-title.dim { color: #9aa2ac; }
.ctl-sub-time { color: #9aa2ac; font-size: 22px; }
.ctl-sub-next { color: #9aa2ac; font-size: 22px; overflow: hidden; text-overflow: ellipsis; }
.ctl-bar {
  height: 6px; margin-top: 18px;
  background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden;
}
#ctl-bar-fill { height: 100%; width: 0; background: #35c6ff; position: relative; }
/* Fokus pa strimman: tjockare, med en knopp i anden - har spolar Vanster/Hoger. */
.ctl-bar { overflow: visible; }
.ctl-bar.focused { height: 10px; background: rgba(255,255,255,.26); }
.ctl-bar.focused #ctl-bar-fill::after {
  content: ""; position: absolute; right: -11px; top: 50%;
  width: 22px; height: 22px; margin-top: -11px;
  background: #ffffff; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53,198,255,.45);
}


.ctl-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.ctl-buttons { display: flex; }
.ctl-btn {
  display: flex; align-items: center;
  height: 64px; padding: 0 24px;
  background: rgba(255,255,255,.08);
  border: 3px solid transparent; border-radius: 32px;
  color: #c4cad1; font-size: 23px; font-weight: 600;
}
/* Ikonerna ar inline-SVG (js/icons.js) i textens farg - inga Unicode-
   tecken, de saknades i LG:s typsnitt och blev rutor. */
.icon { display: inline-block; line-height: 0; }
.icon svg { display: block; }
.ctl-btn-icon svg { width: 30px; height: 30px; }
/* Spolning-play-spolning som runda ikonknappar, play storst (VOD). */
.ctl-btn.round { width: 64px; padding: 0; justify-content: center; border-radius: 50%; }
.ctl-btn.round .ctl-btn-icon svg { width: 34px; height: 34px; }
.ctl-btn.big { width: 76px; height: 76px; margin-top: -6px; margin-bottom: -6px; }
.ctl-btn.big .ctl-btn-icon svg { width: 40px; height: 40px; }
.ctl-gap { width: 26px; flex: none; }
.ctl-btn.focused {
  background: rgba(255,255,255,.18); border-color: #ffffff; color: #ffffff;
}
.ctl-time { color: #9aa2ac; font-size: 22px; flex: none; margin-left: 24px; }

/* Nasta avsnitt-rutan de sista 30 sekunderna: nedre hogra hornet, flyttar
   upp over kontrollfaltet nar det ar oppet. OK startar nasta direkt. */
.nextcard {
  position: absolute; right: 64px; bottom: 64px;
  width: 560px; padding: 20px 24px 18px;
  background: rgba(17,19,21,.94);
  border: 3px solid #ffffff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  transition: bottom .2s ease;
  z-index: 35;
}
.ctl.show ~ .nextcard { bottom: 400px; }
.nextcard-label { color: #9aa2ac; font-size: 22px; font-weight: 600; }
.nextcard-title { margin-top: 6px; color: #ffffff; font-size: 28px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nextcard-foot { margin-top: 10px; display: flex; justify-content: space-between; color: #9aa2ac; font-size: 21px; }
.nextcard-foot b { color: #eef1f4; }
.nextcard-bar { height: 4px; margin-top: 12px; background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden; }
.nextcard-bar div { height: 100%; background: #35c6ff; }

/* Undertexter ritas av appen, inte av AVPlay. Placeras hogt nog for att inte
   hamna under infofaltet, och med kraftig kontur sa texten gar att lasa mot
   ljus bild. */
.subtitle {
  position: absolute; left: 0; right: 0; bottom: 108px;
  text-align: center;
  pointer-events: none;
  z-index: 30;
}
.subtitle span {
  display: inline-block;
  max-width: 1500px;
  padding: 10px 24px;
  background: rgba(0, 0, 0, .55);
  border-radius: 8px;
  color: #ffffff;
  font-size: 42px; line-height: 1.3; font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9);
  white-space: pre-wrap;
}
/* Undertextstil fran installningarna: attributet satts pa spelarskarmen. */
#screen-player[data-subs~="small"] .subtitle span { font-size: 34px; }
#screen-player[data-subs~="large"] .subtitle span { font-size: 54px; }
#screen-player[data-subs~="nobox"] .subtitle span { background: transparent; }

/* Infofaltet ska inte lagga sig ovanpa texten. */
.ctl.show ~ .subtitle { bottom: 360px; }

.player-error {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; padding: 36px 40px;
  background: rgba(26,16,16,.92);
  border: 1px solid rgba(255,107,107,.45); border-radius: 16px;
  color: #ffb9b9; font-size: 26px; line-height: 1.5; text-align: center;
}

.zaplist {
  position: absolute; top: 0; right: 0;
  width: 660px; height: 1080px;
  padding-top: 24px;
  background: rgba(17,19,21,.96);
}
.zaplist-title {
  padding: 0 28px 18px;
  color: #9aa2ac; font-size: 22px; font-weight: 600;
}
.zaplist .vlist { height: 1000px; }

.trackmenu {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  padding: 32px 0 24px;
  background: #1a1c1f;
  border-radius: 20px;
  z-index: 40;
}
.trackmenu-tabs {
  display: flex;
  padding: 0 36px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.trackmenu-tabs .tt {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  color: #9aa2ac; font-size: 25px; text-align: center;
}
.trackmenu-tabs .tt.active {
  background: rgba(255,255,255,.12);
  color: #ffffff;
}
.trackmenu .vlist { height: auto; max-height: 528px; padding: 12px 0; }
.trackmenu .vlist li { height: 64px; padding: 0 36px; font-size: 26px; }
.trackmenu .vlist li .check {
  margin-left: auto; color: #35c6ff; font-size: 24px; flex: none;
}
.trackmenu-hint {
  padding: 16px 36px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #9aa2ac; font-size: 22px; text-align: center;
}
.trackmenu-empty {
  padding: 34px 36px; color: #9aa2ac; font-size: 24px; text-align: center;
}

.spinner {
  position: absolute; left: 50%; top: 50%;
  margin: -34px 0 0 -34px;
  width: 68px; height: 68px;
}
.spinner div {
  width: 68px; height: 68px;
  border: 6px solid rgba(255,255,255,.16);
  border-top-color: #35c6ff;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.debug-log {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  padding: 40px 48px;
  background: rgba(10,11,12, .95);
  color: #9fe8b5;
  font-family: "Courier New", monospace;
  font-size: 19px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-all;
  overflow-y: auto;
  z-index: 100;
}

/* Exit-bekraftelsen (Samsungs Return Key Policy). Over allt utom loggpanelen. */
.exit-dialog {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  background: rgba(10,11,12,.72);
  z-index: 60;
}
.exit-box {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 640px; padding: 44px 48px 40px;
  background: #1a1c1f;
  border-radius: 20px;
  text-align: center;
}
.exit-title { font-size: 30px; color: #eef1f4; }
.exit-buttons { display: flex; margin-top: 36px; }
.exit-btn {
  flex: 1; padding: 16px 0;
  background: rgba(255,255,255,.06);
  border: 2px solid transparent; border-radius: 12px;
  color: #c4cad1; font-size: 26px; font-family: inherit;
}

/* Hallmenyn (js/ctxmenu.js): en liten ruta vid det man haller i. Over
   tablan och rutorna, under exitdialogen. Storleken pa .ctx satts i
   skriptet (ytan kan vara bredare an 1920). Ingen blur, ingen flex-gap. */
.ctx {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  background: rgba(10,11,12,.5);
  z-index: 58;
}
.ctx-box {
  position: absolute;
  width: 380px; padding: 10px;
  box-sizing: border-box;
  background: #1a1c1f;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.6);
  -webkit-animation: ctx-in .12s ease-out; animation: ctx-in .12s ease-out;
}
@-webkit-keyframes ctx-in { from { opacity: 0; margin-top: -8px; } to { opacity: 1; margin-top: 0; } }
@keyframes ctx-in { from { opacity: 0; margin-top: -8px; } to { opacity: 1; margin-top: 0; } }
html[data-noanim] .ctx-box { -webkit-animation: none; animation: none; }
.ctx-title {
  height: 58px; line-height: 50px; padding: 0 14px;
  box-sizing: border-box;
  color: #9aa2ac; font-size: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.ctx-item {
  height: 60px; line-height: 60px; padding: 0 14px;
  box-sizing: border-box;
  border-radius: 10px;
  color: #c4cad1; font-size: 25px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ctx-item .ctx-icon { display: inline-block; width: 26px; height: 26px; margin-right: 16px; vertical-align: -5px; }
.ctx-item .ctx-icon svg { width: 26px; height: 26px; display: block; }
.ctx-item.danger { color: #ff9a8f; }
.ctx-item.focused { background: #eef1f4; color: #111315; }
.ctx-item.danger.focused { background: #ff9a8f; color: #111315; }
html.web .ctx-item, html.webos .ctx-item { cursor: pointer; }

.toast {
  position: absolute; left: 50%; bottom: 90px;
  transform: translateX(-50%);
  padding: 16px 32px;
  background: #232629;
  border-radius: 12px;
  color: #eef1f4; font-size: 24px;
  z-index: 50;
}

/* The media source is not answering (js/app.js loginFailed): stays until a
   retry gets through. In the 50 px band under the content edge (1030), so it
   covers nothing; not over the picture while playing. */
.source-notice {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  padding: 6px 22px 6px 18px;
  background: #232629;
  border: 1px solid rgba(255, 196, 77, .35);
  border-radius: 20px;
  color: #eef1f4; font-size: 20px; line-height: 24px;
  white-space: nowrap;
  z-index: 44;   /* under helskarmstablan (.guide 45) */
}
.source-dot {
  display: inline-block; vertical-align: middle;
  width: 10px; height: 10px; margin: -2px 12px 0 0;
  border-radius: 50%;
  background: #ffc44d;
}
html.playing .source-notice { display: none; }

/* Held Up/Down in a long list (N4): where the cursor is, fades after release. */
.list-pos {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 64px;
  background: rgba(44,48,53,.96);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  color: #ffffff; font-size: 150px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; transition: opacity .25s ease-out;
  pointer-events: none;
  z-index: 55;
}
.list-pos.on { opacity: 1; transition-duration: .08s; }
.list-pos-total { color: #7d858f; font-size: 72px; font-weight: 600; }

/* ---------- Webbklienten (html.web, js/web.js) ----------
   Layouten ar fast 1920x1080; body skalas till fonstret och centreras,
   html ar letterbox-ytan. Muspekaren syns. */
/* .fit: layouten (1920x1080) skalas till fonstret av js/web.js - webben och
   Android. Bakgrunden lamnas at html-regeln overst sa att html.playing
   fortfarande gor den genomskinlig (Android ritar videon bakom webbvyn). */
html.fit { width: 100%; height: 100%; }
html.fit body { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ================= ANDROID: KOMPOSITORLAGER =================
   (data-android pa html satts av js/fit-boot.js; attribut, inte klass,
   eftersom setStageMode i js/player.js skriver om html.className). Philips 55OLED903, 2026-10-18:
   Android-sidan tog p50 65 ms / p90 150 ms per bild under navigering fast
   JS var ~5 %. Orsaken var ommalning: radlistans translateY, radernas
   opacitet, kortens vaxande och informationsytans toning lag alla i
   sidans enda lager, sa varje piltryck malade om 50-70 Mpx och varje
   overgangsbild lika mycket igen. Har far det som ror sig egna lager, sa
   att rorelserna gar i kompositorn utan ommalning:
   - radlistan (translateY) och bladdrarens yta,
   - varje kortremsa (translateX) och varje kort (scale vid fokus, z-index),
   - informationsytans tva lager (opacity) och postern,
   - bladdrarens kolumner, sa att listorna inte flyttar mellan lager nar
     fokuskortets lager byter storlek (annars malades bada listkolumnerna
     om vid varje tryck i raderna).
   Opaciteten pa en inaktiv rad laggs pa korten i stallet for raden:
   opacity pa en rad med lager inuti kraver en render surface per rad
   och ett lager for rubriken som skapas och forsvinner vid radbyte.
   Rubrikens farg ar den gamla fargen blandad med .68 mot bakgrunden -
   samma utseende. Ramfargens overgang pa kortet tas bort: den malade om
   kortet varje bild i 150 ms (vaxandet ar kvar, det gar i kompositorn).
   Bara korten i remsorna far lager, inte sokvyns rutnat (upp till 240
   kort - lika manga lager hade kostat mer GPU-minne an det sparar).
   Tizen, webOS och webbklienten rors inte - oprovat dar. */
html[data-android] #home-rows, html[data-android] #search-rows, html[data-android] .browse-scroll-inner,
html[data-android] .hcards, html[data-android] .hcards > .hcard, html[data-android] .col,
html[data-android] .info-art { will-change: transform; }
html[data-android] .info-layer { will-change: opacity; }
html[data-android] .hrow { opacity: 1; }
html[data-android] .hrow:not(.active) .hcard, html[data-android] .hrow:not(.active) .epg-logo,
html[data-android] .hrow:not(.active) .epg-track, html[data-android] .hrow:not(.active) .epg-now { opacity: .68; }
html[data-android] .hrow:not(.active) .hrow-title, html[data-android] .hrow:not(.active) .hrow-hint { color: #6e747c; }
html[data-android] .hcard-img { transition: none; }
html[data-android] .epg-cell { transition: transform .15s ease-out; }
/* Bred yta (js/web.js fit, 2026-10-18): allt som ar 1920 brett foljer
   --stage-w, sa ett brett fonster (Teslan) fylls utan band pa sidorna.
   Rader och menyrad flyter, kolumnerna far mer plats till hoger. */
html[data-wide] .screen, html[data-wide] #html5-player, html[data-wide]:not(.pip) #video-backdrop,
html[data-wide] .info-layer, html[data-wide] .guide, html[data-wide] .g-choice,
html[data-wide] .exit-dialog, html[data-wide] .debug-log { width: var(--stage-w); }
html[data-wide] .pip-frame, html[data-wide].pip #video-backdrop { left: calc(var(--stage-w) - 528px); }
/* I kolumnerna far detaljkolumnen den extra bredden, och rutan raknas ur
   kolumnens matt i JS (pipRect i js/ui-player.js) - inline-stil pa ram,
   hal och kolumnens padding. Med fast 636 px lag rutan hogerstalld
   utanfor kolumnen (JB 2026-10-18). */
html[data-wide] .browse-body .col-detail { width: auto; flex: 1 1 auto; min-width: 700px; }
/* Golv: under 960x540 rullar sidan i stallet for att krympa vidare. */
html[data-tiny] { overflow: auto; }
html.web.playing { background: #000; }
/* Det spelande fonstret (pip): html.pip gor html genomskinlig for AVPlays
   hardvarulager pa Samsung, men i webblasaren ar <video> ett vanligt
   element och genomskinlig html visade sidans vita bakgrund utanfor den
   skalade ytan (JB pa play.byteip.se 2026-10-18). Samma pa LG. */
html.web.pip, html.webos.pip { background: #000; }
html.web, html.web body { cursor: default; touch-action: none; }
html.web .focusable, html.web .start-card, html.web .hcard, html.web .epg-cell, html.web li { cursor: pointer; }
.web-only { display: none; }
html.web .web-only { display: block; }
.pair-web { font-size: 20px; color: #9aa2ac; margin-top: 12px; }
.pair-url a { color: #eef1f4; text-decoration: underline; }
/* Webben ar bara for betalda konton (WEBB-PLAN.md) - ingen provperiodstext. */
html.web .pair-trial { display: none; }

/* Knappraden i webbklienten (js/web.js). Ligger over allt, aven spelaren.
   I spelaren goms den och muspekaren efter nagra sekunders stillhet. */
#web-bar { display: none; }
/* Webbklientens knappar i menyraden (JB 2026-10-18): helskarm som ikon och
   Tesla-laget i rott bredvid Settings, bara nar html.web. Pa TV finns de
   inte (ingen pekare, inget helskarmsval). */
.web-only { display: none; }
html.web .web-only { display: inline-flex; align-items: center; }
html.web .web-only > * { margin-right: 24px; }
button.ghost.web-fs, #web-bar .web-btn.web-fs {
  align-items: center; justify-content: center;
  width: 48px; height: 44px; padding: 0; min-width: 0; border-radius: 10px;
}
button.ghost.web-fs { display: inline-flex; }
/* I knappraden bara i spelaren (granskaren 2026-10-18: display-regeln
   slog player-only och ikonen syntes dubbelt pa hem). */
#web-bar .web-btn.web-fs { display: none; }
.web-fs svg { width: 26px; height: 26px; }
button.ghost.web-tesla-btn { background: #cc1b22; border-color: #cc1b22; color: #ffffff; font-weight: 600; letter-spacing: .02em; }
button.ghost.web-tesla-btn:hover, button.ghost.web-fs:hover { filter: brightness(1.15); }

/* Nere till hoger under innehallets nederkant (1030): forut nere till
   vanster med 58 px hoga knappar, rakt over hemmets tablarad, bladdrarens
   statusrad och spelarens knapprad (webbgenomgangen 2026-10-17). */
html.web #web-bar {
  display: flex; gap: 10px;
  position: absolute; bottom: 8px; right: 18px; z-index: 1000;
  transition: opacity .3s;
}
html.web #web-bar.hidden { display: none; }
#web-bar .web-btn {
  font: inherit; font-size: 21px; line-height: 1;
  padding: 10px 20px; min-width: 0;
  border: 0; border-radius: 40px;
  background: rgba(17,19,21, .78); color: #eef1f4;
  cursor: pointer;
}
#web-bar .web-btn:hover { background: rgba(45,49,54, .9); }
#web-bar .web-btn:active { background: #35c6ff; color: #000; }
#web-bar .player-only { display: none; }
#web-bar.in-player .player-only { display: inline-block; }
/* Tillbaka gor ingenting pa hem i webbklienten - visa den inte dar. */
#web-bar.on-home .web-back { display: none; }
html.web.idle, html.web.idle body { cursor: none; }

/* ---------- LG webOS (html.webos, js/web.js) ----------
   Magic Remote-pekaren ar en mus och LG:s checklista kraver att allt gar
   att trycka pa med den - visa pekaren och gor det klickbara till pekare.
   Layouten ar redan 1920x1080 (appinfo.json), ingen skalning. Under
   uppspelning ar <video> ett vanligt element, sa html far vara svart. */
html.webos, html.webos body { cursor: default; }
/* Ch +/- nar inte appar pa LG: tips som namner dem goms. */
html.webos .no-webos { display: none; }
html.webos .focusable, html.webos .hcard, html.webos .epg-cell, html.webos li { cursor: pointer; }
html.webos.playing { background: #000; }
html.web.idle #web-bar { opacity: 0; pointer-events: none; }
/* Tesla-knappen: bara pa inloggningsskarmen (annars i menyraden);
   helskarmsikonen bara i spelaren, dar ingen menyrad finns. */
#web-bar .login-only { display: none; }
#web-bar.in-player .web-fs { display: inline-flex; }
#web-bar.in-player .not-player { display: none; }
#web-bar.on-login .web-btn { display: none; }
#web-bar.on-login .web-tesla { display: inline-block; }

/* Sokrutan under menyn (hem och bladdraren). Fast hojd 86 px inkl.
   marginaler - visas bara medan man soker i en sektion (D4). */
.search-bar {
  display: flex; align-items: center;
  height: 66px; margin: 10px 48px;
  padding: 0 28px;
  background: rgba(255,255,255,.05);
  border: 3px solid rgba(255,255,255,.10);
  border-radius: 14px;
  color: #9aa2ac; font-size: 26px;
  transition: border-color .15s ease-out;
}
.search-bar.focused {
  border-color: #ffffff;
  box-shadow: none;
  color: #eef1f4;
}

/* Kategorikolumnen: Favorites forst med stjarna, nalade kategorier med
   en prick i appens cyan (FAVORITER-PLAN.md). */
.vlist li .cat-star { color: #ffcf5c; font-size: 22px; flex: none; }
.vlist li .cat-pin { color: #35c6ff; font-size: 20px; flex: none; }
/* Tom Favorites-kategori: hur man fyller den, i stallet for en tom kolumn. */
.channels-empty { padding: 20px 28px; color: #9aa2ac; font-size: 22px; line-height: 1.4; }
/* More-kortet sist pa Favorites-raden: platta i stallet for bild. */
.hcard.more .hcard-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
}
.hcard-more-label { color: #eef1f4; font-size: 28px; font-weight: 600; }
.hcard-more-count { margin-top: 6px; color: #9aa2ac; font-size: 21px; }

/* Sokfaltet i sokrutan (bladdraren): skrivs direkt i rutan, traffarna
   ritas under som rutnat. Antalet star till hoger. */
.search-bar-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: #eef1f4; font: inherit; font-size: 26px;
}
.search-bar-input::-webkit-input-placeholder { color: #9aa2ac; }
.search-bar.typing { border-color: #ffffff; color: #eef1f4; }
.search-bar-count { margin-left: 20px; color: #9aa2ac; font-size: 22px; white-space: nowrap; }

/* Posterrutnatet (js/grid.js): 6 kort per rad, tva rader synliga pa 812 px (med sokrutan). */
.grid { padding: 20px 48px 0; transition: transform .18s ease-out; }
.grid-row { display: flex; margin-bottom: 26px; }
.grid .hcard { width: 250px; }
.grid .hcard-img { height: 352px; }

/* Kanaltraffar i soken: hela bredden, kategorin till hoger pa varje rad,
   tjockare linje dar en ny kategori borjar. */
.hits { margin: 20px 48px 0; height: 764px; }
.vlist li .cat { margin-left: auto; padding-left: 24px; color: #9aa2ac; font-size: 20px; flex: none; max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.vlist li .fav + .cat { margin-left: 16px; }
.vlist li.group-start { border-top: 2px solid rgba(255,255,255,.14); }
/* Nu och nasta i kanaltraffarna: gra text mellan namnet och kategorin. */
.hits li .label { flex: none; max-width: 520px; }
.hits li .cat { margin-left: 24px; }

/* Kanaltraffar som tablarader (sok i Live TV). */
.hits li.hit-row { height: 88px; padding: 6px 28px; align-items: center; }
.hits li.hit-row .num { align-self: center; }
.hit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hit-top { display: flex; align-items: center; min-width: 0; }
.hit-top .label { flex: none; max-width: 700px; overflow: hidden; text-overflow: ellipsis; }
.hit-top .cat { margin-left: auto; padding-left: 24px; }
.hit-epg { display: flex; align-items: center; min-width: 0; font-size: 20px; color: #9aa2ac; white-space: nowrap; overflow: hidden; }
.hit-epg .chip {
  flex: none; padding: 2px 9px; border-radius: 6px;
  font-size: 20px; font-weight: 700; letter-spacing: 0; line-height: 26px;
  background: rgba(53,198,255,.18); color: #35c6ff;
}
.hit-epg .chip-next { background: rgba(255,255,255,.08); color: #c4cad1; }
.hit-epg .ptitle { color: #d6dbe0; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.hit-epg .ptime { flex: none; color: #7d858f; font-variant-numeric: tabular-nums; }
.hit-epg .pbar { flex: none; width: 96px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.hit-epg .pbar span { display: block; height: 100%; background: #35c6ff; }
.hit-epg .pnone { color: #7d858f; }
.vlist li.focused .hit-epg .ptitle { color: #ffffff; }
/* NOW ar en fast kolumn sa att NEXT star i lod mellan raderna. */
.hit-epg .hit-now { flex: none; width: 720px; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.hit-epg .hit-next { flex: 1; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.hit-epg .hit-now .ptitle { flex: 1; max-width: none; }
/* Rattningar efter forsta TV-bilden 2026-09-20: chipparna lika breda och
   sma (gamla .now-regeln strackte NOW till en balk), kategorin langst
   till hoger pa namnraden. */
.hits li .hit-epg .chip { flex: none; min-width: 64px; text-align: center; }
.hits li .hit-top .cat { margin-left: auto; padding-left: 24px; }
/* Titel, tid och strimma halls ihop till vanster i NOW-kolumnen; NEXT
   borjar anda pa samma stalle. Stjarnan star intill kanalnamnet. */
.hits li .hit-epg .hit-now .ptitle { flex: 0 1 auto; max-width: 400px; }
.hits li .hit-top .fav { margin-left: 0; }

/* Filterraden i soken (JB 2026-10-15): en i taget, All forst, bara
   grupper med traffar. Vanster/Hoger byter direkt. */
.search-filters { display: flex; padding: 4px 0 18px; }
.search-filters > * { margin-right: 12px; }
.sf-chip {
  padding: 8px 22px; border-radius: 999px;
  border: 3px solid transparent;
  background: rgba(255,255,255,.06);
  color: #c4cad1; font-size: 24px; font-weight: 600;
}
.sf-chip.active { background: rgba(255,255,255,.16); color: #ffffff; }
.sf-count { margin-left: 10px; color: #9aa2ac; font-weight: 400; }
.sf-chip.active .sf-count { color: #c4cad1; }
/* Recent searches (2026-10-17): the same chips with a label, on the
   search screen under the box and in the sections inside the box. */
.sf-label { align-self: center; color: #9aa2ac; font-size: 22px; white-space: nowrap; }
.sf-label b { color: #eef1f4; }
.search-recent { display: flex; align-items: center; margin-left: auto; white-space: nowrap; overflow: hidden; }
.search-recent > * { margin-left: 10px; }
.search-recent .sf-chip { padding: 4px 16px; font-size: 20px; }

/* Live TV channel list with now/next (N7, 2026-10-15): the search hits'
   row style, 88 px; 9 rows = 792 px, the same bottom edge as 12 x 66.
   Next sits right on the name line, NOW with time and progress under it. */
.vlist.chan-epg li.hit-row { height: 88px; padding: 6px 28px; }
.chan-epg .hit-top .label { flex: 0 1 auto; max-width: 360px; }
.chan-epg .hit-top .fav { margin-left: 0; }
.chan-epg .hit-top .hit-next {
  margin-left: auto; padding-left: 20px;
  flex: 0 1 auto; min-width: 0;
  display: flex; align-items: center;
  font-size: 20px; color: #9aa2ac; overflow: hidden;
}
.chan-epg .hit-next > * { margin-right: 8px; }
.chan-epg .hit-next > *:last-child { margin-right: 0; }
.chan-epg .hit-next .nlabel { flex: none; color: #7d858f; }
.chan-epg .hit-next .ptime { flex: none; color: #7d858f; font-variant-numeric: tabular-nums; }
.chan-epg .hit-next .ptitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #9aa2ac; }
.chan-epg .hit-epg .chip { min-width: 64px; text-align: center; }
.chan-epg .hit-epg .ptitle { flex: 0 1 auto; min-width: 0; max-width: none; }
.chan-epg .hit-epg .pbar { width: 72px; }

/* Kanalnamn med upphojda tecken fran leverantoren (HD, VIP, RAW som
   Unicode-modifierare) ritas med ett reservtypsnitt som ar hogre an
   Samsung One - med overflow:hidden klipptes toppen av (JB 2026-10-15).
   En luftigare radhojd ger plats. */
.info-title, .hcard-title, .vlist li .label, .hit-top .label, .g-ch-name,
.ctl-name, .ctl-card-name, .epg-logo-name, .pip-label, .nextcard-title,
.g-hero-title, .g-cell-title, .epg-cell-title, .g-choice-title {
  line-height: 1.3;
}

/* Spelande fonster i kolumnerna: fyller detaljkolumnens bildplats
   (PIP_RECTS.detail i js/ui-player.js, JB 2026-10-15). */
html.pip.pip-detail #video-backdrop { left: 1252px; top: 160px; width: 636px; height: 358px; }
html.pip-detail .pip-frame { left: 1252px; top: 160px; width: 636px; height: 358px; }
html.pip-detail .pip-label { max-width: 600px; }
html.pip.pip-detail .col-detail { padding-top: 410px; }

/* Radhojden racker inte: reservtypsnittets upphojda tecken ar for hoga
   (JB:s TV-prov 2026-10-15). Luft inuti klipprutan ovanfor texten,
   och lika mycket negativ marginal sa att layouten inte flyttar sig. */
.info-title, .hcard-title, .vlist li .label, .hit-top .label, .g-ch-name,
.ctl-name, .ctl-card-name, .epg-logo-name, .pip-label, .nextcard-title,
.g-hero-title, .g-cell-title, .epg-cell-title, .g-choice-title {
  padding-top: .3em; margin-top: -.3em;
}
.info-title { margin-top: calc(2px - .3em); }
.hcard-title, .ctl-card-name { margin-top: calc(10px - .3em); }
.g-cell-title, .epg-cell-title { margin-top: calc(2px - .3em); }
.nextcard-title, .g-hero-title { margin-top: calc(6px - .3em); }

/* Tangenttipset for hela sektionen star till hoger pa forsta radens rubrikrad. */
.hrow-hint.right { float: right; margin-left: 0; }

/* ---------- Telefon (html[data-mobile], js/web.js, 2026-10-18) ----------
   Samma layoutmotor och samma skarmar, men ytan ar 640 layoutpixlar bred
   (1280 liggande, html[data-landscape]) och lika hog som skarmen
   (--stage-h). Allt nedan skriver om 1920-layouten till en kolumn i
   Netflix-appens stil: marke och Settings uppe, flikarna som bottenrad,
   informationsytan som hjalteyta i full bredd, raderna med mindre kort,
   kolumnerna en i taget (den passiva goms, detaljkolumnen ar borta -
   OK pa en post spelar eller oppnar som pa TV:n) och spelaren med bilden
   overst och kontrollerna under. Liggande telefon: ingen hjalteyta, och
   spelaren fyller skarmen med kontrollfaltet over bilden som pa TV:n.
   Teslan, TV-apparaterna och vanliga fonster traffas aldrig av reglerna
   (attributet satts bara av fitMobile i js/web.js). */
html[data-mobile], html[data-mobile] body { width: var(--stage-w); height: var(--stage-h); overflow: hidden; cursor: auto; }
html[data-mobile] .screen, html[data-mobile] #video-backdrop, html[data-mobile] #html5-player,
html[data-mobile] .exit-dialog, html[data-mobile] .guide { width: var(--stage-w); height: var(--stage-h); }

/* Menyrad: marke + Settings/Sign out uppe; flikarna blir en bottenrad. */
html[data-mobile] .topbar { height: 84px; margin-top: 12px; padding: 0 20px; }
html[data-mobile] .topbar > * { margin-right: 14px; }
html[data-mobile] .brand.small { font-size: 30px; flex: 1; }
html[data-mobile] #home-clock, html[data-mobile] #clock,
html[data-mobile] .web-tesla-btn, html[data-mobile] .topbar .web-fs { display: none !important; }
html[data-mobile] .topbar-right > * { margin-right: 10px; }
html[data-mobile] button.ghost { padding: 8px 14px; font-size: 20px; }
html[data-mobile] .sections {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: 104px; padding: 10px 8px 16px;
  background: rgba(11,12,13,.97); border-top: 1px solid rgba(255,255,255,.08);
  justify-content: space-around;
}
html[data-mobile] .sections > * { margin-right: 0; }
html[data-mobile] .section-tab { flex: 1; padding: 10px 4px; font-size: 19px; text-align: center; border-radius: 12px; }
html[data-mobile] .section-tab.active { background: transparent; color: #35c6ff; }
html[data-mobile] .search-tab .search-icon { margin-right: 6px; }

/* Informationsytan blir hjalteytan: postern i full bredd, texten nederst. */
html[data-mobile] .info-panel { height: 420px; }
html[data-mobile] .info-layer { width: var(--stage-w); height: 420px; }
html[data-mobile] .info-art { left: 0; right: 0; width: auto; height: 420px; background-position: center 20%; }
html[data-mobile] .info-art::after { left: 0; right: 0; width: auto; background: linear-gradient(180deg, rgba(17,19,21,.1) 0%, rgba(17,19,21,.35) 45%, #111315 100%); }
html[data-mobile] .info-text { left: 20px; right: 20px; top: auto; bottom: 18px; width: auto; }
html[data-mobile] .info-eyebrow { font-size: 18px; }
html[data-mobile] .info-title { font-size: 40px; line-height: 1.1; }
html[data-mobile] .info-facts { font-size: 20px; }
html[data-mobile] .info-plot { font-size: 20px; line-height: 28px; max-height: 56px; max-width: none; }
html[data-mobile] .info-next { font-size: 18px; }
html[data-mobile] .info-bar { width: 100%; }

/* Rader: hela hojden mellan hjalteyta och bottenrad, mindre kort. */
html[data-mobile] .home-body, html[data-mobile] .home-body.under-info,
html[data-mobile] .browse-scroll, html[data-mobile] .browse-scroll.under-info {
  height: calc(var(--stage-h) - 96px - 420px - 104px); padding: 14px 20px 0;
}
html[data-mobile] .browse-scroll.searching { height: calc(var(--stage-h) - 96px - 86px - 104px); }
html[data-mobile] .browse-rows { padding: 14px 20px 0; }
html[data-mobile] .hrow { margin-bottom: 22px; opacity: 1; }
html[data-mobile] .hrow-title { font-size: 21px; margin-bottom: 10px; color: #eef1f4; }
html[data-mobile] .hrow-hint { display: none; }
html[data-mobile] .hcards > * { margin-right: 10px; }
html[data-mobile] .hcard { width: 150px; }
html[data-mobile] .hcard-img { height: 212px; border-width: 2px; border-radius: 8px; }
html[data-mobile] .hcard.wide { width: 300px; }
html[data-mobile] .hcard.wide .hcard-img { height: 169px; }
html[data-mobile] .hcard.focused { transform: none; }
html[data-mobile] .hcard-title { font-size: 18px; }
html[data-mobile] .hcard-sub, html[data-mobile] .hcard-left { font-size: 16px; }
/* Mini-tablan: smalare kanalruta, lagre rader. */
html[data-mobile] .epg-line { height: 72px; }
html[data-mobile] .epg-logo { width: 120px; margin-right: 8px; }
html[data-mobile] .epg-logo-name { font-size: 16px; }
html[data-mobile] .epg-track, html[data-mobile] .epg-cell { height: 72px; }
html[data-mobile] .epg-cell { font-size: 17px; }

/* Kolumnerna: en i taget. Aktiv kolumn fyller bredden, den passiva goms,
   detaljkolumnen finns inte (js/ui-browse.js setColState). Radantalet
   raknas ur hojden (mobileRows i js/ui-browse.js), sa listan klipps inte. */
html[data-mobile] .browse-body { flex-direction: column; height: calc(var(--stage-h) - 96px - 104px); }
html[data-mobile] .col { width: 100% !important; border-right: 0; }
html[data-mobile] .col.passive, html[data-mobile] .col-detail { display: none; }
html[data-mobile] .col-title { height: 60px; padding: 0 20px; font-size: 22px; }
html[data-mobile] .col-categories .col-title { display: none; }
html[data-mobile] .vlist { height: auto; }
html[data-mobile] .vlist li { height: 72px; padding: 0 20px; font-size: 24px; }
html[data-mobile] .vlist.chan-epg li { height: 88px; }
html[data-mobile] .vlist li.focused { border-left-color: #35c6ff; }
html[data-mobile] .col-categories .vlist li { height: 64px; font-size: 23px; }
html[data-mobile] .col-categories .vlist li::after { content: "\203A"; margin-left: auto; color: #5c646e; font-size: 28px; }
html[data-mobile] .col-categories .vlist li .fav { margin-left: 12px; }
html[data-mobile] .vlist.posters { padding: 10px 0 0 20px; }
html[data-mobile] .vlist.posters li.pcell { margin-right: 12px; }
html[data-mobile] .browse-status, html[data-mobile] .detail-hint, html[data-mobile] .list-pos { display: none !important; }

/* Sokfalt och chips over kategorierna (index.html #cat-tools). */
.cat-tools { display: none; }
html[data-mobile] .cat-tools { display: block; padding: 8px 20px 4px; }
html[data-mobile] .cat-tools.hidden { display: none !important; }
.cat-search {
  display: flex; align-items: center;
  padding: 10px 16px; margin-bottom: 10px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12); border-radius: 12px;
}
.cat-search .search-icon { width: 20px; height: 20px; margin-right: 12px; }
#cat-filter {
  flex: 1; min-width: 0; padding: 4px 0;
  background: transparent; border: 0; outline: none;
  color: #eef1f4; font-size: 21px; font-family: inherit;
}
#cat-filter::-webkit-input-placeholder { color: #7d858f; }
.cat-chips { display: flex; overflow: hidden; white-space: nowrap; padding-bottom: 10px; }
.cat-chip {
  flex: none; margin-right: 8px; padding: 8px 16px;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #c4cad1;
  font-size: 19px; font-family: inherit; cursor: pointer;
}
.cat-chip.on { background: #35c6ff; color: #0b0c0d; font-weight: 600; }

/* Spelaren i staende lage: bilden overst i 16:9, kontrollerna under den
   som en panel som alltid syns (ingen fjarr att vacka den med). */
html[data-mobile] #html5-player { height: 360px; top: 0; }
html[data-mobile] .ctl { top: 360px; bottom: auto; padding: 24px 20px 0; background: #0d0e10; opacity: 1; pointer-events: auto; }
html[data-mobile] .ctl-strip { display: none; }
html[data-mobile] .ctl-head .ctl-name { font-size: 30px; }
html[data-mobile] .ctl-sub { font-size: 19px; }
html[data-mobile] .ctl-foot { flex-direction: column; align-items: stretch; }
html[data-mobile] .ctl-buttons { flex-wrap: wrap; justify-content: center; }
html[data-mobile] .ctl-buttons > * { margin: 0 6px 12px; }
html[data-mobile] .ctl-btn { font-size: 19px; padding: 10px 14px; }
html[data-mobile] .ctl-time { margin-top: 4px; text-align: center; }
html[data-mobile] .nextcard { right: 20px; bottom: auto; top: 380px; width: auto; left: 20px; }
html[data-mobile] .player-error { width: auto; left: 20px; right: 20px; transform: translateY(-50%); }
html[data-mobile] .subtitle { bottom: auto; top: 290px; }

/* Overlagg som star pa fasta 1080-platser. */
html[data-mobile] .toast { bottom: 124px; max-width: 600px; }
html[data-mobile] .source-notice { bottom: 104px; white-space: normal; width: 560px; text-align: center; }
html[data-mobile] .exit-box { width: 560px; padding: 28px; }
html[data-mobile] .trackmenu { width: 600px; }

/* Webbknapparna: Tillbaka som en rund knapp ovanfor flikraden (ingen
   Tillbaka-tangent pa en telefon); i spelaren nere till hoger. */
html[data-mobile] #web-bar { bottom: 120px; right: 16px; }
html[data-mobile] #web-bar.in-player { bottom: 16px; }
html[data-mobile] #web-bar .web-btn { font-size: 23px; padding: 12px 22px; background: rgba(45,49,54,.92); }

/* Inloggning: QR-koden over texten i stallet for bredvid. */
html[data-mobile] .splash-tile { width: 150px; height: 150px; border-radius: 30px; font-size: 76px; }
html[data-mobile] .splash-word { font-size: 76px; }
html[data-mobile] .splash-box > * { margin-right: 36px; }
html[data-mobile] .splash-box > *:last-child { margin-right: 0; }
html[data-mobile] .login-box, html[data-mobile] .login-box.wide { width: 600px; padding: 32px 24px 28px; }
html[data-mobile] .brand { font-size: 48px; }
html[data-mobile] .pair-box { flex-direction: column; align-items: stretch; padding: 24px; }
html[data-mobile] .pair-box > * { margin-right: 0; margin-bottom: 20px; }
html[data-mobile] .pair-box > *:last-child { margin-bottom: 0; }
html[data-mobile] .pair-qr { margin: 0 auto; width: 320px; height: 320px; }
html[data-mobile] .pair-step { font-size: 28px; }
html[data-mobile] .pair-lead, html[data-mobile] .pair-web { font-size: 20px; }

/* Sokskarmen: rutan tar hela menyraden, resultaten hela hojden. */
html[data-mobile] #screen-search .brand, html[data-mobile] .search-status { display: none; }
html[data-mobile] .search.big { max-width: none; padding: 10px 16px; font-size: 22px; }
html[data-mobile] #screen-search .home-body { height: calc(var(--stage-h) - 96px); }
html[data-mobile] .search-filters { flex-wrap: wrap; }
html[data-mobile] .search-filters > * { margin-bottom: 8px; }

/* Installningar. */
html[data-mobile] .settings-body { padding: 20px 20px 0; }
html[data-mobile] .settings-clip { height: auto; }
html[data-mobile] .settings-list { max-width: none; }

/* Liggande telefon: ingen hjalteyta, raderna direkt under menyn;
   spelaren fyller skarmen med kontrollfaltet over bilden som pa TV:n. */
html[data-landscape] .info-panel { display: none; }
html[data-landscape] .home-body, html[data-landscape] .home-body.under-info,
html[data-landscape] .browse-scroll, html[data-landscape] .browse-scroll.under-info {
  height: calc(var(--stage-h) - 96px - 104px);
}
html[data-landscape] #html5-player { height: var(--stage-h); }
html[data-landscape] .ctl {
  top: auto; bottom: 0; padding: 60px 40px 24px;
  background: linear-gradient(180deg, transparent, rgba(13,14,16,.72) 30%, rgba(13,14,16,.94));
  opacity: 0; pointer-events: none;
}
html[data-landscape] .ctl.show { opacity: 1; pointer-events: auto; }
html[data-landscape] .ctl-foot { flex-direction: row; align-items: center; }
html[data-landscape] .ctl-buttons { flex-wrap: nowrap; }
html[data-landscape] .ctl-buttons > * { margin: 0 8px 0 0; }
html[data-landscape] .ctl-time { margin: 0 0 0 16px; text-align: right; }
html[data-landscape] .nextcard { left: auto; top: auto; right: 24px; bottom: 24px; width: 480px; }
html[data-landscape] .subtitle { top: auto; bottom: 60px; }
html[data-landscape] .toast { bottom: 40px; }
