/* 1080p TV-canvas. Avur navy. RiksTV-/streaming-stil: topbar → hero → rader. */
html, body {
    margin: 0;
    padding: 0;
    width: 1920px;
    height: 1080px;
    background: #0a1733; /* Avur navy (BackgroundPrimary) */
    color: #ffffff;
    font-family: "Samsung One", "Tizen", sans-serif;
    overflow: hidden;
}

/* --- Splash --- */
#splash {
    position: fixed; left: 0; top: 0;
    width: 1920px; height: 1080px;
    background: #0a1733;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}
#splash img { width: 420px; height: auto; }
#splash.hidden { opacity: 0; }

#app { position: relative; height: 100%; }
#home-view {
    display: flex;
    flex-direction: row;
    height: 100%;
    box-sizing: border-box;
    /* Full-skjerm cinematisk hero-bakgrunn settes i home.js (bak BÅDE sidemeny og innhold,
       med venstre-fade) — paritet med Android/Apple TV. */
    background-color: #0a1733; background-size: cover; background-position: center;
}
.screen {
    display: none;
    position: absolute;
    left: 0; top: 0;
    width: 1920px; height: 1080px;
    box-sizing: border-box;
    padding: 40px 64px;
    overflow-y: auto;
}

/* --- Sticky venstre master-meny (ikon-rail, utvides ved fokus) + hovedområde --- */
.sidebar {
    width: 104px; flex: none; box-sizing: border-box;
    display: flex; flex-direction: column;
    padding: 30px 0 18px;
    /* Transparent så hero-bildet skinner gjennom bak menyen (venstre-fade i home.js
       holder den lesbar) — paritet med TV-klientene. */
    background: transparent; border-right: none;
}
.sidebar-logo { height: 40px; width: auto; margin: 0 auto 26px; }
.sidebar-menu { flex: 1; display: flex; flex-direction: column; }
.menu-spacer { flex: 1; min-height: 16px; }   /* dytter TV-guide/Arkiv/Innstillinger ned */
.menu-label { display: none; }   /* navnet vises som overskrift i hovedområdet */
.menu-item {
    display: flex; align-items: center; justify-content: center;
    height: 62px; margin: 6px 16px; border-radius: 14px; color: #7f8fb8;
}
.menu-icon { width: 32px; height: 32px; flex: none; }
.menu-item.active .menu-icon { color: #ffffff; }              /* gjeldende seksjon */
.menu-item.focused { background: #ffffff; }                    /* tydelig hvit fokus-chip */
.menu-item.focused .menu-icon { color: #0b1730; }
/* Aktiv nedlasting: pulserende «Nedlastinger»-ikon som indikator (brukerkrav). */
@keyframes avur-dl-pulse { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.3; transform: translateY(2px); } }
.menu-downloading:not(.focused) .menu-icon { color: #4a86e8; animation: avur-dl-pulse 1.1s ease-in-out infinite; }
.auth-state { display: none; }
/* Bunn-statustekst på forsiden fjernet (brukerkrav) — «Avspilling stoppet» m.fl. */
#status { display: none; }

#home-main {
    flex: 1; min-width: 0; box-sizing: border-box;
    padding: 32px 48px 0; overflow: hidden;
    display: flex; flex-direction: column;
    background: transparent;   /* bildet ligger nå full-skjerm på #home-view (bak menyen òg) */
}
.section-title { font-size: 40px; font-weight: 700; margin: 0 0 16px; flex: none; }
/* Tittel + hero står fast øverst; kun rutenettet scroller. */
/* Rutenett-modus: kun kort-radens høyde (ligger i bunn, hero vokser over).
   Verktøy-modus: fyll hele content-rammen. */
.home-content { flex: none; min-height: 0; overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; display: flex; flex-direction: column; }
.home-content::-webkit-scrollbar { display: none; }
.home-content.tool-active { flex: 1; overflow: hidden; padding-bottom: 0; }
.tool-host { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.tool-loading { font-size: 26px; opacity: 0.55; padding: 48px 8px; }
/* Én horisontal rad med kort (som Programdetalj), scroller sideveis.
   margin-top:auto skyver raden til BUNNEN av content-vinduet → mer av hero-bildet vises. */
/* Horisontal padding (40px): uten den klipper .home-grids overflow-x fokus-markeringen
   (scale + hvit ramme) på første/siste flis ved venstre/høyre kant (Tizen-paritet). */
.home-grid { display: flex; flex-wrap: nowrap; gap: 24px; padding: 8px 40px 16px; overflow-x: auto; scrollbar-width: none; flex: none; margin-top: auto; }
.home-grid::-webkit-scrollbar { display: none; }

/* --- Hero --- */
.hero {
    flex: 1;            /* vokser → tekst (justify-end) havner nederst, rett over kort-raden */
    min-height: 0;
    margin: 0 0 16px;
    padding: 8px 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;   /* bildet er nå full-vindu-bakgrunn på #home-main */
}
.hero-text { max-width: 62%; }
.hero-img {
    flex: none; width: 604px; height: 340px; align-self: center;
    background-size: cover; background-position: center; border-radius: 12px;
}
.hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.hero-badge {
    font-size: 20px; font-weight: 700; letter-spacing: 0.05em;
    background: #e2342f; padding: 4px 12px; border-radius: 6px;
}
.hero-badge-arkiv { background: #2c4a8c; }   /* ARKIV = blå (skiller fra rød DIREKTE) */
.hero-channel { font-size: 24px; opacity: 0.8; }
.hero-title { font-size: 52px; font-weight: 700; margin-bottom: 10px; }
.hero-desc {
    font-size: 24px; opacity: 0.75; max-width: 1100px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-progress {
    margin-top: 16px; width: 360px; height: 5px;
    background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden;
}
.hero-progress-fill { height: 100%; background: #e2342f; }

/* --- Rader (rails) --- */
.rails { flex: 1; overflow-y: auto; padding-bottom: 16px; }
.rail { margin-top: 22px; }
.rail-title { font-size: 28px; font-weight: 600; margin: 0 0 12px 64px; }
.rail-row {
    display: flex;
    gap: 18px;
    padding: 6px 64px;
    overflow-x: auto;
    scrollbar-width: none;
}
.rail-row::-webkit-scrollbar { display: none; }

/* --- Kanal-kort --- */
.card {
    flex: 0 0 auto;
    width: 280px;
    height: 168px;
    box-sizing: border-box;
    padding: 18px 20px;
    background: #15244a;
    border: 3px solid transparent;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    outline: none;
}
.card.focused { border-color: #ffffff; transform: scale(1.04); background: #20356b; }
/* Kanalen som vises nå i detalj-bunnen — subtil markør (fokus-ramma vinner) */
.det-rec-cur:not(.focused) { border-color: rgba(226,52,47,0.8); }
/* Kompakte bilde-forward kanal-kort i Programdetalj-bunnen */
.det-rec-card { width: 244px; }
.det-rec-card .col-img { height: 137px; }
.det-rec-card .col-meta { padding: 8px 12px 12px; }
.det-rec-card .col-title { font-size: 19px; }
.det-rec-card .col-sub { font-size: 15px; }
.det-rec-card .ch-logo { height: 22px; max-width: 74px; padding: 3px 6px; top: 8px; left: 8px; }
.det-rec-card .ch-mark { font-size: 22px; top: 8px; right: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-num { font-size: 26px; font-weight: 700; opacity: 0.7; }
.card-ext { font-size: 24px; color: #7fb0ff; }
.card-brand {
    flex: 1; min-height: 0; padding: 6px 0;
    display: flex; align-items: center; justify-content: center;
}
.card-logo { max-width: 84%; max-height: 66px; object-fit: contain; }
.card-name { font-size: 30px; font-weight: 600; }
.card-now {
    font-size: 22px; opacity: 0.8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-progress {
    position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
    background: rgba(255,255,255,0.08); border-radius: 0 0 12px 12px; overflow: hidden;
}
.card-progress-fill { height: 100%; background: #e2342f; }

/* Collection-kort (kuraterte temarader): liggende bilde + tittel/undertittel */
.col-card {
    width: 360px; flex: none; box-sizing: border-box;
    border: 3px solid transparent; border-radius: 12px; overflow: hidden;
    background: #15244a; transition: transform 0.12s ease;
}
.col-card.focused { border-color: #ffffff; transform: scale(1.04); }
.col-img { width: 100%; height: 203px; background-size: cover; background-position: center; background-color: #0e1c3d; position: relative; }
/* VOD-item i «On-demand»-raden: «on-demand»-merke + HDR-merke på plakaten. */
.col-vod-badge { position: absolute; left: 8px; top: 8px; font-size: 15px; font-weight: 800; letter-spacing: 0.3px; background: rgba(139,123,240,0.94); color: #fff; padding: 3px 10px; border-radius: 6px; }
.col-hdr { position: absolute; right: 8px; top: 8px; font-size: 14px; font-weight: 800; background: rgba(0,0,0,0.6); color: #fff; padding: 2px 8px; border-radius: 5px; }
.hero-badge-vod { background: #8b7bf0; }
.col-img-none { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; color: #aab6d4; }
.col-meta { padding: 12px 16px 16px; }
.col-title { font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-sub { font-size: 18px; opacity: 0.6; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Live TV-kort: kanallogo-badge + progress oppå now-playing-bildet */
.ch-imgwrap { position: relative; }
.ch-logo {
    position: absolute; top: 10px; left: 10px; height: 28px; max-width: 96px; object-fit: contain;
    background: rgba(11,23,48,0.68); padding: 5px 8px; border-radius: 7px;
}
.ch-mark { position: absolute; top: 10px; right: 12px; font-size: 26px; }
.ch-prog { margin-top: 10px; }

/* --- Status + diagnostikk --- */
.status { margin: 12px 64px 0; font-size: 20px; opacity: 0.6; min-height: 26px; }
#diag { margin: 6px 64px 0; font-size: 15px; opacity: 0.35; }

/* --- Skjermer: Innstillinger --- */
.screen-title { font-size: 42px; font-weight: 700; margin: 0 0 20px; }
.set-section {
    font-size: 24px; font-weight: 600; color: #7fb0ff;
    margin: 22px 0 8px;
}
.set-row {
    width: 760px; box-sizing: border-box;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 22px; margin-bottom: 8px;
    background: #15244a; border: 3px solid transparent; border-radius: 10px;
    outline: none;
}
.set-row.focused { border-color: #ffffff; background: #20356b; }
.set-row-main { flex: 1; }
.set-row-title { font-size: 26px; font-weight: 600; }
.set-row-caption { font-size: 18px; opacity: 0.6; margin-top: 2px; }
.set-row-value { font-size: 26px; font-weight: 700; color: #7fb0ff; }

.profile-card {
    width: 760px; box-sizing: border-box;
    background: #15244a; border-radius: 12px; padding: 22px;
}
.profile-line { display: flex; font-size: 22px; margin-bottom: 8px; }
.profile-label { width: 240px; opacity: 0.6; }

/* --- Skjerm: TV-guide (EPG) --- */
#epg { display: flex; flex-direction: column; overflow: hidden; }
.epg-msg { font-size: 24px; opacity: 0.6; margin-top: 16px; }
.epg-axis-row { display: flex; height: 28px; }
.epg-corner { width: 160px; flex: none; }
.epg-axis-vp { flex: 1; overflow: hidden; position: relative; height: 28px; }
.epg-axis-track { position: relative; height: 28px; will-change: transform; }
.epg-tick { position: absolute; top: 0; font-size: 18px; opacity: 0.55; }

.epg-body { flex: 1; overflow-y: auto; margin-top: 6px; }
.epg-lane { display: flex; height: 138px; margin-bottom: 10px; align-items: center; }
.epg-chan {
    width: 160px; flex: none; padding-right: 12px; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
}
.epg-chan-num { font-size: 24px; font-weight: 700; opacity: 0.7; }
.epg-chan-logo { max-width: 132px; max-height: 54px; object-fit: contain; }
.epg-chan-name { font-size: 18px; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.epg-lane-vp { flex: 1; overflow: hidden; position: relative; height: 138px; }
.epg-lane-track { position: relative; height: 138px; will-change: transform; }

.epg-cell {
    /* Bunn-padding 30px reserverer en sone for progressbar/«Arkiv» SLIK AT den aldri
       ligger oppå tittelen (som flyter i innholdsboksen over). */
    position: absolute; top: 8px; height: 122px; box-sizing: border-box;
    padding: 12px 16px 30px; background: #15244a;
    border: 2px solid transparent; border-radius: 8px; overflow: hidden;
    background-size: cover; background-position: center;
}
.epg-cell.focused { border-color: #ffffff; background-color: #20356b; z-index: 3; }
.epg-cell-time { font-size: 16px; opacity: 0.6; }
.epg-cell-title {
    font-size: 21px; margin-top: 3px; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.epg-cell.live .epg-cell-title { font-weight: 700; }
.epg-cell-prog { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 5px; background: rgba(255,255,255,0.18); border-radius: 3px; }
.epg-cell-prog-fill { height: 100%; background: #e2342f; border-radius: 3px; }
.epg-cell-arkiv { position: absolute; bottom: 10px; left: 16px; font-size: 16px; color: #7fb0ff; }
.epg-empty { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); font-size: 18px; }

/* --- Skjerm: Arkiv (catchup) — bilde-forward browse (redesign 2026-08-11) --- */
#catchup, #downloads { display: flex; flex-direction: column; overflow: hidden; }
.ar-top { display: flex; align-items: center; gap: 32px; margin-bottom: 20px; }
.ar-top .screen-title { margin: 0; }
/* Brødsmulesti i tittelen: Arkiv › Serie › Komedie. Klikkbare forelder-nivåer
   dempet; «du er her» (siste) i full styrke. */
.ar-crumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.ar-crumb { white-space: nowrap; }
.ar-crumb.link { color: #6f86b8; cursor: pointer; }
.ar-crumb.link:hover { color: #eaf0ff; text-decoration: underline; text-underline-offset: 6px; }
.ar-crumb.cur { color: #eaf0ff; }
.ar-crumb-sep { color: #4a5878; margin: 0 2px; font-weight: 400; }
.ar-search {
    display: flex; align-items: center; gap: 14px;
    background: #0d1c3c; border: 2px solid rgba(255,255,255,0.09);
    border-radius: 999px; padding: 12px 24px; color: #8ea0c8;
    /* Ligg til høyre for tittelen (brødsmulestien tar venstre side). */
    flex: 0 1 480px; margin-left: auto;
}
.ar-search svg { width: 26px; height: 26px; flex: none; }
.ar-search input { background: none; border: none; outline: none; color: #eaf0ff; font-size: 26px; width: 100%; min-width: 0; font-family: inherit; }
.ar-search input::placeholder { color: #5f7099; }
.ar-search.focused { border-color: #ffffff; box-shadow: 0 0 0 2px #ffffff; background: #12244d; }

.ar-chips { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: nowrap; overflow: hidden; }
.ar-chip {
    font-size: 24px; font-weight: 600; color: #8ea0c8;
    background: rgba(255,255,255,0.06); border: 2px solid transparent;
    padding: 8px 22px; border-radius: 999px; white-space: nowrap;
}
.ar-chip.sel { background: #23407a; color: #fff; }
.ar-chip.focused { background: #ffffff; color: #0b1730; }

/* Nedlastinger-flis: hjørne-knapper (spill offline / slett) over posteren. */
.dl-corner { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.dl-cbtn { width: 40px; height: 40px; border: none; border-radius: 8px; cursor: pointer;
    background: rgba(8,16,34,0.72); color: #eaf0ff; font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center; }
.dl-cbtn:hover { background: #2f6fd6; }
.dl-cdel:hover { background: #b53a3a; }
.dl-usage { margin: 20px 0 0; opacity: 0.6; }
/* Pågående nedlasting-tile: «Laster ned»-badge + blå progressbar (skilt fra rød
   avspillingsprogresjon), litt dempet poster. Ikke fokuserbar (ren status). */
.dl-badge { position: absolute; top: 10px; right: 10px; font-size: 16px; font-weight: 700;
    color: #eaf0ff; background: rgba(47,111,214,0.92); padding: 4px 10px; border-radius: 6px; }
.dl-active-card .ar-poster { opacity: 0.82; }
.dl-active-card .ar-prog { height: 7px; background: rgba(255,255,255,0.2); }
.dl-active-card .ar-prog i { background: #2f6fd6; transition: width 0.3s ease; }

.ar-rows { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 40px; scrollbar-width: none; padding-bottom: 40px; }
.ar-rows::-webkit-scrollbar { display: none; }
.ar-row-title { font-size: 28px; font-weight: 700; margin: 0 0 18px; }
.ar-count { color: #5f7099; font-weight: 500; font-size: 22px; margin-left: 8px; }
/* Wrappende rutenett: tiles fyller sidebredden og seksjonene scroller NEDOVER
   (i stedet for én horisontal rad pr. sjanger). Ekstra gap = luft mellom tiles. */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, 300px); gap: 40px 30px; justify-content: start; padding: 4px 2px; }

.ar-card { width: 300px; flex: none; }
.ar-poster {
    width: 300px; height: 169px; border-radius: 10px; overflow: hidden; position: relative;
    background-color: #12244d; background-size: cover; background-position: center;
    border: 1px solid rgba(255,255,255,0.10);
    display: flex; align-items: flex-end; padding: 10px;
    transition: transform .12s, outline-color .1s;
}
.ar-ch { font-size: 18px; font-weight: 800; background: rgba(0,0,0,0.5); padding: 3px 10px; border-radius: 6px; color: #fff; }
.ar-card-dl { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 8px; border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 20px; cursor: pointer; }
.ar-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,0.25); }
.ar-prog i { display: block; height: 100%; background: #e2342f; }
.ar-ctitle { width: 300px; font-size: 24px; font-weight: 600; margin: 10px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-csub { font-size: 20px; color: #8ea0c8; }
.ar-cdesc { width: 300px; font-size: 18px; color: #5f7099; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-card.focused .ar-poster { outline: 4px solid #ffffff; outline-offset: 3px; transform: translateY(-4px); }
.ar-card.focused .ar-ctitle { color: #fff; }
.ar-empty { font-size: 22px; opacity: 0.6; margin-top: 24px; }

/* --- Skjerm: Filmer (VOD, on-demand) --- */
/* padding:0 → VOD-detaljen (.det-hero) fyller skjermen som kanaldetaljen; rutenettet
   får egen padding via .vod-top/.vod-grid. */
#vod { padding: 0; overflow-y: auto; }
.vod-top { margin-bottom: 8px; padding: 48px 60px 0; }
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, 220px); gap: 36px 28px; justify-content: start; padding: 8px 60px 60px; }
.vod-card { width: 220px; position: relative; cursor: pointer; }
.vod-poster {
    width: 220px; height: 320px; border-radius: 12px; overflow: hidden; position: relative;
    background-color: #12244d; border: 1px solid rgba(255,255,255,0.10);
    transition: transform .12s, outline-color .1s;
}
.vod-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vod-poster-ph { display: flex; align-items: center; justify-content: center; padding: 16px;
    background: linear-gradient(155deg, #24407e 0%, #14264f 55%, #0e1c3d 100%); }
.vod-poster-ph span { font-size: 24px; font-weight: 700; text-align: center; color: #cdd8f0; }
.vod-badge-hdr { position: absolute; top: 10px; right: 10px; font-size: 15px; font-weight: 800;
    letter-spacing: 0.5px; background: rgba(139,123,240,0.92); color: #fff; padding: 3px 9px; border-radius: 6px; }
.vod-card-meta { margin-top: 10px; }
.vod-card-title { width: 220px; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vod-card-sub { font-size: 18px; color: #8ea0c8; margin-top: 2px; }
.vod-card.focused .vod-poster { outline: 4px solid #ffffff; outline-offset: 3px; transform: translateY(-4px); }
.vod-card.focused .vod-card-title { color: #fff; }

/* VOD-detalj */
.vod-detail { display: flex; gap: 48px; align-items: flex-start; max-width: 1400px; }
.vod-detail-poster { flex: none; width: 300px; height: 436px; border-radius: 14px; overflow: hidden;
    background: #12244d; border: 1px solid rgba(255,255,255,0.10); }
.vod-detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vod-detail-body { flex: 1 1 auto; max-width: 900px; }
.vod-detail-title { font-size: 52px; font-weight: 700; margin: 0 0 10px; }
.vod-detail-sub { font-size: 26px; color: #aab8dc; margin-bottom: 14px; }
.vod-detail-meta { font-size: 20px; color: #8ea0c8; margin-bottom: 22px; }
.vod-detail-desc { font-size: 24px; line-height: 1.5; color: #d3ddf2; margin: 0 0 30px; max-width: 820px; }
.vod-detail-actions { display: flex; gap: 18px; margin-bottom: 26px; }
.vod-btn { font-size: 24px; font-weight: 600; padding: 14px 34px; border-radius: 10px;
    background: #22397a; border: 2px solid transparent; color: #fff; cursor: pointer; }
.vod-btn-ghost { background: #182a54; }
.vod-btn.focused { border-color: #ffffff; background: #2c4a8c; }
.vod-btn-ghost.focused { background: #24416f; }
/* Attribusjon (CC-BY lisenskrav) — SKAL vises i detaljvisningen når satt. */
.vod-attribution { font-size: 17px; color: #7789ad; line-height: 1.45; border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px; max-width: 820px; }

/* --- Skjerm: Programdetalj --- */
#details { padding: 0; }
.det-msg { font-size: 24px; opacity: 0.6; padding: 48px; }
/* Inline OSD-feilboks (avspillingsfeil/«ikke tilgjengelig» → detaljside). Auto-skjul i JS. */
.det-osd {
    position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
    max-width: 60%; z-index: 40; text-align: center;
    background: rgba(18, 10, 12, 0.94);
    border: 1px solid rgba(226,52,47,0.55); border-left: 5px solid #E2342F;
    border-radius: 12px; padding: 16px 28px; box-shadow: 0 10px 34px rgba(0,0,0,0.55);
}
.det-osd-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.det-osd-text { font-size: 20px; color: #fff; opacity: 0.92; }
/* Full-skjerm 16:9-hero: bilde fyller hele skjermen uten beskjæring (16:9-bilde
   på 16:9-skjerm). Body + anbefalinger ligger i bunn over en scrim. */
.det-hero { position: relative; height: 1080px; background: linear-gradient(180deg, #1b2c54 0%, #0a1733 100%); }
.det-hero-scrim { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(10,23,51,0) 45%, rgba(10,23,51,0.85) 80%, #0a1733 100%); }
.det-hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px; }
/* Svak transparent panel bak detalj-teksten → lesbar over varierte bilder */
.det-hero-body {
    display: inline-block; max-width: 66%;
    background: rgba(8, 17, 38, 0.5); border-radius: 16px; padding: 26px 32px; margin-bottom: 22px;
}
.det-meta-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.det-title { font-size: 56px; font-weight: 700; margin-bottom: 8px; }
.det-metaline { font-size: 22px; opacity: 0.7; margin-bottom: 10px; }
.det-quality { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.q-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 18px; font-weight: 700; letter-spacing: 0.04em;
    padding: 3px 11px; border-radius: 5px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
}
.q-drm { background: rgba(226,52,47,0.22); border-color: rgba(226,52,47,0.55); }
.q-lock { width: 16px; height: 16px; fill: currentColor; }
.det-desc {
    font-size: 24px; opacity: 0.8; max-width: 980px; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.det-actions { display: flex; gap: 16px; margin-top: 20px; }
.det-btn {
    font-size: 26px; font-weight: 600; padding: 14px 38px;
    border: 3px solid transparent; border-radius: 10px;
    background: #1b2c54; color: #ffffff; outline: none; cursor: default;
}
.det-btn.focused { border-color: #ffffff; background: #2c4a8c; }
.det-btn-back { background: #0f1d3d; }
.det-btn-back.focused { background: #24416f; }
/* «Last ned»-knappen som progressbar: fyll bak en sentrert %-etikett. Samme
   størrelse/plass som en vanlig .det-btn så knapperaden ikke hopper. */
.det-dl-bar { position: relative; overflow: hidden; min-width: 220px; text-align: center; }
.det-dl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: #2f6fd6; transition: width 0.25s ease; z-index: 0; }
.det-dl-label { position: relative; z-index: 1; }
/* Ferdig nedlastet: grønn-tonet utløps-info. */
.det-dl-done { background: #17402a; }
.det-dl-done.focused { background: #1f5a3a; border-color: #ffffff; }
/* Slett-knapp (fare) + utløps-note + slett-bekreftelse-spørsmål i handlingsraden. */
.det-dl-del { background: #4a1d1d; }
.det-dl-del.focused { background: #7a2a2a; border-color: #ffffff; }
.det-dl-note { align-self: center; color: #7bd6a2; font-size: 22px; font-weight: 600; margin-left: 6px; }
/* Stjerne for planlagt visning (Apple TV-paritet): hul (omriss) når ikke planlagt,
   gull FYLT når planlagt. Egen fyll-styring vinner over knappfarge. */
.det-star { padding: 10px 22px; }
.det-star-svg { width: 30px; height: 30px; display: block; vertical-align: middle;
    fill: none; stroke: currentColor; stroke-width: 1.6; }
.det-star-on .det-star-svg { fill: #ffd34d; stroke: #ffd34d; }
.det-star-on.focused .det-star-svg { fill: #e0a92e; stroke: #e0a92e; }
.det-confirm-q { align-self: center; color: #eaf0ff; font-size: 24px; font-weight: 600; margin-right: 6px; }
.det-recs { margin-top: 24px; }

/* --- Spiller (AVPlay + rx-player) --- */
#player { display: none; }
#av-player { position: fixed; left: 0; top: 0; width: 1920px; height: 1080px; }
/* rx-player <video> fyller skjermen; skjult til rx-motoren er aktiv (engine.use). */
.rx-video { position: fixed; left: 0; top: 0; width: 1920px; height: 1080px; background: #000; display: none; }
/* rx-player html-tekst-overlay: NØYAKTIG samme størrelse som videoen (rx-player
   posisjonerer cues absolutt inni den). pointer-events:none så den ikke fanger fokus. */
.rx-text-track { position: fixed; left: 0; top: 0; width: 1920px; height: 1080px; display: none; pointer-events: none; z-index: 55; }
body.engine-rx .rx-video { display: block; }
body.engine-rx .rx-text-track { display: block; }
body.engine-rx #av-player { display: none; }
/* Motor-indikator (test): liten badge øverst til høyre mens vi spiller. */
.engine-badge { display: none; position: fixed; top: 14px; right: 18px; z-index: 60;
  font: 600 20px/1 sans-serif; color: #fff; background: rgba(10,23,51,0.78);
  padding: 8px 14px; border-radius: 8px; letter-spacing: 0.5px; }
/* Motor-indikator = test-verktøy under rx-migrasjonen; skjult i produksjon. */
body.playing .engine-badge { display: none; }
body.engine-rx .engine-badge { background: rgba(20,90,40,0.82); }
body.playing { background: transparent; }
body.playing #app { display: none; }
body.playing #player { display: block; }
body.playing #debug-overlay { display: none !important; }

/* Undertekst-overlay — AVPlay tegner ikke eksterne subs selv; rendres her over
   videoen (som ligger på et hw-plan bak den transparente WebView-en). */
#subtitle {
    /* z 650 < OSD 700: teksten ligger i ro og kan dekkes av OSD-en (skal ikke
       flyttes/legge seg oppå kontrollene). */
    display: none; position: fixed; left: 0; right: 0; bottom: 90px; z-index: 650;
    text-align: center; padding: 0 8%; box-sizing: border-box;
    font-size: 40px; font-weight: 600; line-height: 1.35; color: #ffffff;
    text-shadow: 0 0 4px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.95);
    pointer-events: none;
}

.osd {
    position: fixed; left: 64px; right: 64px; bottom: 56px; box-sizing: border-box;
    z-index: 700;   /* over bilde-overlayet (500) og underteksten (650), under ticker */
    min-height: 150px;
    padding: 20px 28px; background: rgba(10, 23, 51, 0.78);
    border-radius: 12px; opacity: 0; transition: opacity 0.3s ease;
}
.osd.visible { opacity: 1; }
.osd-row { display: flex; align-items: center; gap: 20px; }
.osd-logo { position: absolute; right: 28px; bottom: 18px; height: 30px; width: auto; opacity: 0.9; pointer-events: none; }
/* Status-badgen (rød boks venstre) er fjernet: «DIREKTE» vises allerede til høyre,
   og vi viser ikke buffring. Beholdt regelen skjult for å unngå markup-endring. */
.osd-badge { display: none; }   /* legacy — status vises i .osd-pos */
.osd-channel { font-size: 30px; font-weight: 600; white-space: nowrap; }
/* Status-pille (DIREKTE/ARKIV/PAUSE/…) øverst til høyre; farge settes i JS. */
.osd-pos { margin-left: auto; font-size: 22px; font-weight: 700; padding: 5px 16px; border-radius: 7px; letter-spacing: 0.5px; }
.osd-prog { font-size: 30px; font-weight: 700; color: #ffffff; margin-top: 10px; }
.osd-timeline { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.osd-t-start, .osd-t-end { font-size: 22px; color: #aab6d4; white-space: nowrap; min-width: 64px; }
.osd-t-end { text-align: right; }
.osd-track { position: relative; flex: 1; height: 8px; background: rgba(255,255,255,0.18); border-radius: 4px; }
.osd-fill { position: absolute; left: 0; top: 0; height: 100%; background: #e2342f; border-radius: 4px; }
.osd-head {
    position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
    background: #ffffff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(226,52,47,0.45);
    transition: transform .1s, box-shadow .1s;
}
/* Valgt/fokusert hode (scrub-modus): større + hvit ring så det leses som «grepet». */
.osd-head.scrubbing { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(255,255,255,0.6); }
/* Klokkeslett for nåværende strømposisjon — flyter over spillehodet */
.osd-headtime {
    position: absolute; bottom: 20px; transform: translateX(-50%);
    font-size: 22px; font-weight: 700; color: #fff; white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.85); pointer-events: none;
}
/* Program-strukturmarkører på tidslinja (tv-markers-kontrakt) */
.osd-markers { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
.osd-mk { position: absolute; top: -3px; width: 3px; height: 14px; margin-left: -1px; border-radius: 2px; background: #ffffff; }
.osd-mk-span { top: 0; height: 8px; margin-left: 0; border-radius: 0; opacity: 0.55; }
.mk-chapter { background: #ffffff; }
.mk-highlight { top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #16d97f; box-shadow: 0 0 0 2px rgba(0,0,0,0.4); }
.mk-ad { background: #ffb300; }
.mk-intro, .mk-recap, .mk-credits { background: rgba(255,255,255,0.85); }
.osd-mk-span.mk-intro, .osd-mk-span.mk-recap, .osd-mk-span.mk-credits { background: #8aa0ff; }
/* Live-indikator: ren status ved kanten (.on, rød), ellers «Hopp til nå»-knapp. */
.osd-live { font-size: 20px; font-weight: 700; white-space: nowrap; letter-spacing: 0.04em;
    color: #cdd6ee; background: rgba(255,255,255,0.12); padding: 5px 14px; border-radius: 6px; }
.osd-live.on { color: #e2342f; background: transparent; padding: 0; }
/* «Hopp over intro/reklame»-knapp (Regel 4) — vises når spillehodet er i et
   skippable intervall; OK aktiverer. Sitter til venstre i raden (etter kanalnavn);
   .osd-pos beholder sin margin-left:auto og blir høyre-justert som før. */
.osd-skip {
    font-size: 22px; font-weight: 700; color: #0a1733;
    background: #16d97f; padding: 6px 16px; border-radius: 6px; white-space: nowrap;
}
.osd-hint { display: block; margin-top: 14px; font-size: 20px; color: #aab6d4; }

/* Numerisk kanalinntasting (talltastatur under direkte) — overlegg øverst til venstre */
#number-entry {
    display: none; position: fixed; left: 64px; top: 56px; z-index: 60;
    font-size: 84px; font-weight: 800; color: #ffffff; letter-spacing: 0.08em;
    padding: 14px 36px; background: rgba(10, 23, 51, 0.82); border-radius: 14px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7); min-width: 120px; text-align: center;
}

/* --- App-versjonssjekk: full-skjerm blokkering (must_update) + banner (update_available) --- */
#force-update {
    display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2000;
    background: #0a1733; align-items: center; justify-content: center;
}
#force-update .fu-box { width: 1000px; max-width: 80%; text-align: center; padding: 40px; }
#force-update .fu-title { font-size: 48px; font-weight: 700; color: #ffffff; margin-bottom: 28px; }
#force-update .fu-msg { font-size: 30px; line-height: 1.5; color: #d7e0f4; }
#force-update .fu-hint { margin-top: 36px; font-size: 24px; color: #aab6d4; }
/* «Ingen nettverkstilkobling»-skjerm (full blokkering ved oppstart uten nett) */
#no-network {
    display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2100;
    background: #0a1733; align-items: center; justify-content: center;
}
#no-network .nn-box { width: 1000px; max-width: 80%; text-align: center; padding: 40px; }
#no-network .nn-title { font-size: 48px; font-weight: 700; color: #ffffff; margin-bottom: 28px; }
#no-network .nn-msg { font-size: 30px; line-height: 1.5; color: #d7e0f4; }
#no-network .nn-hint { margin-top: 36px; font-size: 24px; color: #aab6d4; }

#update-banner {
    position: fixed; left: 0; right: 0; top: 0; z-index: 1500;
    background: rgba(20, 42, 87, 0.96); color: #ffffff; text-align: center;
    font-size: 24px; padding: 16px; transition: opacity 0.5s ease;
}
#update-banner.hidden { opacity: 0; }

/* --- Info-modal (utilgjengelig kanal, f.eks. TV 2 under reforhandling) --- */
.modal {
    display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1000;
    background: rgba(0,0,0,0.66); align-items: center; justify-content: center;
}
.modal.visible { display: flex; }
.modal-box {
    width: 820px; max-width: 80%; padding: 52px; box-sizing: border-box;
    background: rgba(21,36,74,0.9); border-radius: 16px; text-align: center;
}
.modal-title { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.modal-msg { font-size: 28px; line-height: 1.45; color: #d7e0f4; margin-bottom: 40px; }
.modal-img { max-width: 100%; max-height: 40vh; width: auto; border-radius: 10px; margin: 0 auto 24px; display: block; }

/* ===== App-innhold: ticker + bilde-overlay + home_info_block ===== */
#live-ticker {
    position: fixed; left: 0; right: 0; top: 0; z-index: 880;
    display: none; align-items: center; overflow: hidden;
    height: 56px; box-sizing: border-box; font-size: 26px; font-weight: 600; padding: 0 24px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.9);
}
.ticker-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-text { display: inline-block; padding-left: 100%; animation: ticker-scroll 24s linear infinite; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
#ticker-image-overlay {
    display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 500;
    align-items: center; justify-content: center; background: rgba(0,0,0,0.35); pointer-events: none;
}
.ticker-ov-img { max-width: 60%; max-height: 60%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 12px 60px rgba(0,0,0,0.7); }
#home-info-block {
    display: none; position: fixed; left: 148px; top: 34px; z-index: 400;
    max-width: 720px; box-sizing: border-box;
    background: rgba(10, 23, 51, 0.82); border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px; padding: 18px 24px; pointer-events: none;
}
.hib-img { max-height: 120px; max-width: 100%; border-radius: 8px; margin-bottom: 12px; display: block; }
.hib-title { font-size: 28px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.hib-body { font-size: 22px; line-height: 1.4; color: #d7e0f4; }
.modal-ok {
    font-size: 26px; font-weight: 600; padding: 14px 60px;
    border: 3px solid #ffffff; border-radius: 10px; background: #2c4a8c; color: #ffffff; outline: none;
}
.modal-ok.focused { background: #3a5cab; }

/* "ⓘ"-merke på utilgjengelige kanal-kort */
.card-info, .card-ext { font-size: 26px; }
.card-info { color: #ffd34d; }

/* Lyd/tekst-meny (pil ned under avspilling) */
/* z-index 750: OVER avspillings-OSD-en (700) — Lyd/Tekst-menyen (info-OSD) skal ligge
   foran kontrollene, ikke bak. Spilleren skjuler i tillegg OSD-en mens menyen er åpen. */
.trackmenu {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 750;
    padding: 44px 64px 60px;
    background: linear-gradient(180deg, rgba(10,23,51,0) 0%, rgba(10,23,51,0.92) 38%);
}
.trackmenu.visible { display: block; }
.tm-hint { font-size: 20px; color: #aab6d4; margin-top: 20px; text-align: center; }
/* Bunnlinje-layout (paritet med avspillings-OSD): programinfo venstre, Lyd/Teksting
   sammenfoldet høyre, oppløsning+DRM-badge nederst høyre. */
.tm-bar { display: flex; align-items: flex-start; gap: 64px; }
.tm-left { flex: 1; min-width: 0; }
.tm-right { width: 460px; flex: none; display: flex; flex-direction: column; gap: 14px; }
/* Programinfo (venstre) */
.tm-info-ch { font-size: 24px; font-weight: 600; color: #ffd34d; margin-bottom: 10px; letter-spacing: 0.03em; }
.tm-info-title { font-size: 40px; font-weight: 700; color: #ffffff; line-height: 1.15; }
.tm-info-meta { font-size: 23px; color: #aab6d4; margin-top: 10px; }
.tm-info-desc {
    font-size: 24px; line-height: 1.45; color: #d7e0f4; margin-top: 18px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
/* Lyd/Teksting-gruppe (sammenfoldet rad / utvidet liste) */
.tm-grp { border-radius: 10px; background: rgba(255,255,255,0.06); padding: 6px; }
.tm-grp-foc { background: rgba(44,74,140,0.55); box-shadow: 0 0 0 2px #4f74d8; }
.tm-grp-exp { background: rgba(255,255,255,0.08); }
.tm-grp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.tm-grp-title { font-size: 26px; font-weight: 700; color: #ffd34d; }
.tm-grp-val { font-size: 26px; color: #ffffff; font-weight: 600; }
.tm-grp-open { border-bottom: 2px solid rgba(255,255,255,0.14); margin-bottom: 4px; }
.tm-item { font-size: 25px; padding: 10px 16px; border-radius: 8px; color: #d7e0f4; }
.tm-item.tm-sel { color: #ffffff; font-weight: 600; }
.tm-item.tm-foc { background: #2c4a8c; color: #ffffff; }
.tm-empty { opacity: 0.5; }
/* Oppløsning- + DRM-badge nederst høyre */
.tm-badges { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.tm-badge {
    font-size: 20px; font-weight: 700; padding: 5px 14px; border-radius: 6px;
    background: rgba(255,255,255,0.16); color: #ffffff; letter-spacing: 0.03em;
}
.tm-badge-drm { background: #b4862a; }


/* Innlogging (credentials-fallback) */
.login-wrap {
    max-width: 760px; margin: 0 auto; padding: 96px 0 0;
    display: flex; flex-direction: column;
}
.login-title { font-size: 48px; font-weight: 700; margin: 0 0 12px; }
.login-sub { font-size: 24px; color: #aab6d4; margin: 0 0 40px; line-height: 1.4; }
.login-field { margin: 0 0 24px; }
.login-label { display: block; font-size: 22px; color: #aab6d4; margin: 0 0 10px; }
.login-input {
    width: 100%; box-sizing: border-box;
    font-size: 30px; color: #ffffff; font-family: inherit;
    padding: 18px 22px; background: #15244a;
    border: 3px solid transparent; border-radius: 10px; outline: none;
}
.login-input.focused { border-color: #ffffff; background: #20356b; }
.login-error {
    display: none; font-size: 22px; color: #ff8a85;
    margin: 0 0 20px; min-height: 26px;
}
.login-btn {
    align-self: flex-start; margin-top: 8px;
    font-size: 28px; font-weight: 700; color: #ffffff; font-family: inherit;
    padding: 16px 40px; background: #1b2c54;
    border: 3px solid transparent; border-radius: 999px; outline: none; cursor: default;
}
.login-btn.focused { border-color: #ffffff; background: #2c4a8c; }

/* --- Skjerm: Enheter (enhetsstyring) --- */
#devices { padding: 48px 60px; overflow-y: auto; }
.dev-lead { font-size: 24px; opacity: 0.85; margin: 0 0 10px; max-width: 900px; }
.dev-sub { font-size: 22px; opacity: 0.6; margin: 0 0 18px; }
.dev-empty { font-size: 24px; opacity: 0.6; margin-top: 16px; }
.dev-row {
    width: 900px; max-width: 100%; box-sizing: border-box;
    display: flex; align-items: center; gap: 18px;
    padding: 18px 24px; margin-bottom: 12px;
    background: #15244a; border: 3px solid transparent; border-radius: 10px;
    outline: none; cursor: pointer;
}
.dev-row.focused { border-color: #ffffff; background: #20356b; }
.dev-icon { width: 34px; height: 34px; flex: none; color: #9db4e6; }
.dev-main { flex: 1; min-width: 0; }
.dev-name { font-size: 26px; font-weight: 600; display: flex; align-items: center; }
.dev-current {
    font-size: 18px; font-weight: 700; color: #0b1730; background: #7fb0ff;
    border-radius: 6px; padding: 2px 10px; margin-left: 12px;
}
.dev-meta { font-size: 18px; opacity: 0.6; margin-top: 4px; }
.dev-action { font-size: 24px; font-weight: 700; color: #7fb0ff; }

/* ==== Paritet Apple/Tizen/Android (2026-08-27) ==== */

/* Spiller-OSD: kanallogo + tittel/infolinje i topp-raden, «Direkte» som
   tekst-kapsel i kontrollraden. */
.osd-row { align-items: center; }
.osd-chlogo { height: 44px; max-width: 104px; object-fit: contain; margin-right: 8px; display: none; }
.osd-titles { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
/* Én linje m/ ellipse: lange titler brøt over flere linjer og gjorde OSD-en
   altfor høy (høyden skal være konstant uansett programnavn). */
.osd-titles .osd-prog { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-proginfo {
    font-size: 21px; color: #d9e1f2; line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 1100px;
}
.ctrl-btn-text {
    width: auto; padding: 0 26px; border-radius: 999px;
    font-size: 24px; font-weight: 700; font-family: inherit;
}

/* Forside: statisk infoboks (nesten-tett navy) + metalinje + kanallogo oppe
   til høyre på direktekort. */
.hero-text {
    background: rgba(10,23,51,0.92); border-radius: 20px;
    padding: 26px 30px; box-sizing: border-box;
    min-height: 250px; max-width: 56%;
}
.hero-meta2 { font-size: 22px; color: #aab6d4; margin-bottom: 8px; }
.hero-title { margin-bottom: 8px; }
.ch-card .ch-logo { left: auto; right: 10px; }
.ch-card .ch-mark { top: auto; bottom: 10px; }

/* Buffer-indikator: pulserende Avur-merke, ingen plate. */
#player-buffer.avur-buffer-pulse {
    position: fixed; left: 50%; top: 50%; width: 200px;
    transform: translate(-50%, -50%);
    z-index: 600;   /* over video, under OSD (700) */
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    animation: avur-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes avur-pulse {
    from { opacity: 0.45; transform: translate(-50%, -50%) scale(0.88); }
    to   { opacity: 1.0;  transform: translate(-50%, -50%) scale(1.0); }
}
