/* =========================================================================
   Velmoa – "Premiere"
   Biograf-stil i familie med de store tjenester: topmenu, stor billboard,
   plakater uden pynt. Én varm accentfarve (Kertelys) brugt sparsomt.
   Billederne bærer: billboardets farver gløder svagt ned bag forsiden,
   og stemningerne er billedfliser længere nede.
   Lægges oven på index.html, så afspiller- og kildekode kan udvikles uafhængigt.
   ========================================================================= */

:root {
  --sort: #101114;        /* baggrund */
  --flade: #1b1c21;       /* kort, paneler, modal */
  --flade-2: #26272d;     /* hover, felter */
  --kertelys: #ee8a48;    /* Velmoa – logo, fremdrift, aktive valg */
  --tekst: #f5f5f5;

  --bg: var(--sort);
  --bg-2: var(--flade);
  --bg-3: var(--flade-2);
  --line: rgba(255, 255, 255, .1);
  --fg: var(--tekst);
  --muted: #a3a3ab;
  --accent: var(--kertelys);
  --progress: var(--kertelys);

  --card-r: 6px;
  --hdr-h: 68px;
  --text: "Figtree", system-ui, -apple-system, sans-serif;
  --display: var(--text);
}

html, body { font-family: var(--text); background: var(--bg); }
::selection { background: var(--kertelys); color: #111; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--text); }

/* ---------- Topmenu ---------- */
header { gap: 32px; background: transparent; transition: none; }
header::before, header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
  transition: opacity .45s ease;
}
header::before {
  bottom: -40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
/* Ingen synlig bjælke: indholdet opløses blødt ind under menuen uden kant */
header::after {
  bottom: -72px; opacity: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 96%, transparent) 0%,
    color-mix(in srgb, var(--bg) 92%, transparent) 32%,
    color-mix(in srgb, var(--bg) 78%, transparent) 50%,
    color-mix(in srgb, var(--bg) 52%, transparent) 66%,
    color-mix(in srgb, var(--bg) 24%, transparent) 82%,
    color-mix(in srgb, var(--bg) 7%, transparent) 93%,
    transparent 100%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
}
header.solid { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
header.solid::before { opacity: 0; }
header.solid::after { opacity: 1; }
.logo img { content: url("/logo.svg"); height: 24px !important; }
.logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
header nav { gap: 20px; }
header nav button { color: #d6d6da; font-size: 14px; font-weight: 500; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
header nav button { position: relative; transition: color .2s; }
header nav button:hover { color: #fff; }
header nav button.active { color: #fff; font-weight: 700; }
header nav button.active::after { display: none; }
header nav button::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
header nav button:hover::before, header nav button.active::before { transform: scaleX(1); }
header nav button.active::before { background: var(--kertelys); }

/* Søgefeltet: en blød pille med logoets åbne streg som lup. Kertelys tænder, når man skriver */
.search input {
  width: 40px; height: 40px; padding: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--kertelys) 7%, rgba(16, 17, 20, .62));
  border: 1.5px solid rgba(255, 255, 255, .13); font-size: 14.5px; font-weight: 500;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: width .3s cubic-bezier(.2, .8, .2, 1), padding .3s cubic-bezier(.2, .8, .2, 1), background .2s, border-color .2s, box-shadow .2s;
}
/* Kun luppen vises, til man klikker: feltet folder sig ud og bliver åbent, så længe der står en søgning */
.search:focus-within input, .search:has(input:not(:placeholder-shown)) input {
  width: var(--sw, min(300px, 25vw)); padding: 0 var(--spr, 16px) 0 44px; cursor: text;
}
.search input::placeholder { color: transparent; opacity: 1; }
.search:focus-within input::placeholder { color: #cfc9c1; }
.search input:hover { border-color: color-mix(in srgb, var(--kertelys) 45%, rgba(255, 255, 255, .13)); }
.search input:focus {
  background: color-mix(in srgb, var(--kertelys) 9%, rgba(16, 17, 20, .92));
  border-color: var(--kertelys);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--kertelys) 22%, transparent), 0 8px 26px rgba(0, 0, 0, .35);
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 18px; height: 18px; cursor: pointer; background: var(--kertelys);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search svg { z-index: 1; left: 10px; width: 20px; height: 20px; opacity: 1; color: var(--kertelys); transition: left .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.search:focus-within svg, .search:has(input:not(:placeholder-shown)) svg { left: 15px; }
.search:hover svg { transform: translateY(-50%) scale(1.1); }
.search:focus-within svg { transform: translateY(-50%) scale(1.1) rotate(-8deg); }
.search kbd { display: none; }

.userbtn { border-radius: 999px; padding: 8px 18px; background: var(--kertelys); color: #141414; font-weight: 700; }
.userbtn:hover { background: #f9a46a; }
.userbtn.in { background: transparent; padding: 0; gap: 8px; }
.userbtn.in:hover { background: transparent; }
.userbtn.in .uname { display: none; }
.userbtn .pav { width: 36px; height: 36px; margin: 0; font-size: 15px; border-radius: 50%; transition: box-shadow .2s, transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.userbtn.in:hover .pav { transform: scale(1.06); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--kertelys) 60%, transparent); }
header:has(+ .menu.open) .userbtn.in .pav { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--kertelys); }

/* ---------- Billboard ---------- */
/* Siden selv er gennemsigtig, så billboardets glød kan ligge bag den */
html { background: var(--bg); }
body { background: transparent; }
.ambient {
  position: absolute; top: 0; left: 0; right: 0; height: 170vh; z-index: -1; pointer-events: none;
  display: none; overflow: hidden;
  --amb-fade: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0,0,0,.97) 37%, rgba(0,0,0,.9) 44%,
              rgba(0,0,0,.79) 51%, rgba(0,0,0,.65) 58%, rgba(0,0,0,.5) 65%, rgba(0,0,0,.35) 72%,
              rgba(0,0,0,.21) 79%, rgba(0,0,0,.1) 86%, rgba(0,0,0,.03) 93%, transparent 100%);
  -webkit-mask-image: var(--amb-fade);
  mask-image: var(--amb-fade);
}
body.has-hero .ambient { display: block; }
.ambient i {
  position: absolute; inset: -15%; background: center / cover no-repeat; opacity: 0;
  filter: blur(70px) saturate(1.35) brightness(.5); transform: scale(1.15); transition: opacity 1.6s ease;
}
/* Fin kornstøj, så den mørke glød aldrig viser striber eller bånd */
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ambient i.on { opacity: .9; }

.hero { min-height: min(88vh, 860px); }
/* Billedet og skyggerne opløses nedad i gløden i stedet for at stoppe i en kant */
.hero-bg, .hero::before, .hero::after {
  /* Lang, blød udtoning (smoothstep) fra midten og helt ned */
  --fade: linear-gradient(to bottom, #000 0%, #000 34%, rgba(0,0,0,.97) 41%, rgba(0,0,0,.9) 48%,
          rgba(0,0,0,.79) 55%, rgba(0,0,0,.65) 62%, rgba(0,0,0,.5) 69%, rgba(0,0,0,.35) 76%,
          rgba(0,0,0,.21) 83%, rgba(0,0,0,.1) 90%, rgba(0,0,0,.03) 96%, transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.hero::after {
  background:
    linear-gradient(to right, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .4) 38%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(to top, rgba(16, 17, 20, .55) 0%, rgba(16, 17, 20, 0) 50%);
}
.hero-content { max-width: 560px; animation: none; }
.hero-content > * { animation: hero-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
.hero-content > :nth-child(5) { animation-delay: .32s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 { font-weight: 800; letter-spacing: -1.5px; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.hero .title-logo { max-height: 170px; }
.hero .meta { font-size: 15px; color: #e6e6e6; font-weight: 500; }
.hero .overview { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hero .btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dots button { width: 22px; height: 3px; border-radius: 0; background: rgba(255, 255, 255, .3); }

/* Miniaturer af de næste titler i billboardet */
.hero-thumbs {
  position: absolute; right: var(--gut); bottom: clamp(150px, 23vh, 230px); z-index: 2;
  display: none; gap: 10px; animation: hero-in .8s .3s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-thumbs button {
  position: relative; width: clamp(88px, 7.4vw, 128px); aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--flade) center / cover no-repeat;
  opacity: .55; filter: saturate(.7);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 20px rgba(0, 0, 0, .5);
  transition: opacity .3s, filter .3s, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.hero-thumbs button:hover { opacity: .9; filter: none; transform: translateY(-3px); }
.hero-thumbs button.on { opacity: 1; filter: none; transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 2px #fff, 0 12px 28px rgba(0, 0, 0, .6); }
.hero-thumbs i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .45); }
.hero-thumbs button.on i::after {
  content: ""; position: absolute; inset: 0; background: var(--kertelys); transform-origin: left;
  animation: fillbar 8s linear forwards;
}
@media (min-width: 1180px) and (hover: hover) {
  .hero-thumbs { display: flex; }
  .hero .dots { display: none; }
}

/* ---------- Knapper og mærker ---------- */
.btn { border-radius: 4px; padding: 11px 26px; font-size: 16px; font-weight: 700; }
.btn.play { background: #fff; color: #000; }
.btn.play:hover { background: rgba(255, 255, 255, .78); }
.btn.ghost { background: rgba(109, 109, 110, .7); color: #fff; backdrop-filter: none; }
.btn.ghost:hover { background: rgba(109, 109, 110, .45); }
.btn.red { background: var(--kertelys); color: #141414; }
.btn.red:hover { background: #f9a46a; }
.btn { transition: background .2s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.round {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center;
  background: rgba(16, 17, 20, .45); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
}
.btn.round svg { width: 22px; height: 22px; }
.btn.round:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px #fff; }
.pill { border-radius: 3px; border-color: rgba(255, 255, 255, .45); }
.tag, .card .badge { border-radius: 3px; background: var(--kertelys); color: #141414; font-weight: 700; letter-spacing: 0; box-shadow: none; }
.tag.lib, .card .badge.lib { background: #fff; color: #141414; }
.rating { color: #46d369; }

/* ---------- Rækker og kort ---------- */
main { padding-bottom: 40px; }
.row h2 { font-size: clamp(18px, 1.5vw, 23px); font-weight: 700; letter-spacing: -.3px; color: #f0f0f2; }

/* Rækker glider blødt ind, når man scroller ned til dem */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.row h2 small { color: var(--muted); }
.track { gap: 8px; }
.card { border-radius: var(--card-r); background-color: var(--flade); box-shadow: none; }
.card::after { box-shadow: none; }
@media (hover: hover) {
  .card:hover {
    transform: scale(1.05); z-index: 3;
    box-shadow: 0 0 0 3px rgba(249, 249, 249, .9), 0 16px 32px rgba(0, 0, 0, .6);
  }
}
.card:focus-visible { outline: 3px solid #fff; outline-offset: 0; }
/* Lysrefleks, der glider over kortet ved hover */
.card:not(.skeleton):not(.top10 .card)::before, .top10 .card .pst::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 62%);
  transform: translateX(-120%); transition: none;
}
@media (hover: hover) {
  .card:not(.skeleton):hover::before, .top10 .card:hover .pst::after { transform: translateX(120%); transition: transform .8s ease; }
}

/* Brede kort til "Fortsæt med at se" */
.card.wide { width: calc(var(--card-w) * 1.78); aspect-ratio: 16 / 9; }
.card.wide .lbl { display: none !important; }
.card.wide .wl {
  position: absolute; inset: auto 0 0 0; padding: 34px 12px 14px; text-align: left; display: grid; gap: 2px;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
}
.card.wide .wl b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.wide .wl small { font-size: 12px; color: #cfcfd4; }
/* Plakaten taler for sig selv; titlen vises kun, når der ikke er nogen plakat */
.card .lbl { display: none; }
.card.noimg .lbl, .card.still .lbl {
  display: block; opacity: 1; transform: none; background: rgba(0, 0, 0, .72); padding: 8px 10px 10px;
}
.card.noimg { background-image: none !important; background-color: var(--flade-2); }
.card.noimg .lbl { background: none; }
.card .pbtn { background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.card .bar { left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; background: rgba(255, 255, 255, .3); transition: height .2s ease; }
.card .bar i, .sh-resume i, .player .resume-bar i, .ep .th i { background: var(--progress); border-radius: 0; }
.card .bar i { transition: width .4s ease, box-shadow .25s ease; }
/* Fortsæt-stribe: hvor man slap, foldet op ved hover på kort med fremdrift */
.card .resume {
  position: absolute; inset: auto 0 0 0; z-index: 2; pointer-events: none; text-align: left;
  padding: 30px 10px 12px; display: grid; gap: 1px;
  background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
  opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease;
}
.card .resume b { font-size: 12px; font-weight: 800; letter-spacing: .2px; color: var(--accent); }
.card .resume small { font-size: 11px; color: #cfcfd4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .card.has-prog:hover .resume { opacity: 1; transform: none; }
  .card.has-prog:hover .bar { height: 6px; }
  .card.has-prog:hover .bar i { box-shadow: 0 0 10px var(--progress); }
}
.skeleton { background: var(--flade); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.row .arrow { top: 40px; bottom: 18px; }
.row .arrow.l, .row .arrow.r { background: rgba(16, 17, 20, .55); }
.row .arrow:hover { background: rgba(16, 17, 20, .8); }
.row .arrow svg { filter: none; }

/* Top 10: store tal bag plakaten */
.top10 .card .num {
  font-family: var(--text); font-weight: 800; color: var(--bg);
  -webkit-text-stroke: 3px #5c5c63; letter-spacing: -.08em;
  /* Skriftboksen er højere end tallet. Uden klip stikker den ud under kortet og
     gør rækken lodret scrollbar, så plakaterne kan rykke op og blive skåret over. */
  overflow-y: clip;
}
.top10 .card .pst { box-shadow: none; }
.top10 .card:hover .pst { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(249, 249, 249, .9); }
.top10 .card:hover .num { -webkit-text-stroke-color: #9a9aa0; }
/* Blød kant-fade, så de store tal og plakater opløses pænt i stedet for at
   blive skåret hårdt over ved kanten under scroll. Fade-zonen er præcis
   gutter-bred og slutter dér, hvor tal #1 starter i hvile — så hvileposition
   er uændret, mens kanten aldrig "glitcher". */
.top10 .track {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gut), #000 calc(100% - var(--gut)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--gut), #000 calc(100% - var(--gut)), transparent 100%);
}
/* Pilefeltet skal følge samme fade, ellers står det som en hård boks over kanten */
.row.top10 .arrow.l { background: linear-gradient(to right, rgba(16, 17, 20, .55), transparent); }
.row.top10 .arrow.r { background: linear-gradient(to left, rgba(16, 17, 20, .55), transparent); }
.row.top10 .arrow.l:hover { background: linear-gradient(to right, rgba(16, 17, 20, .8), transparent); }
.row.top10 .arrow.r:hover { background: linear-gradient(to left, rgba(16, 17, 20, .8), transparent); }

/* ---------- Stemninger som billedfliser ---------- */
.moods { margin: clamp(12px, 2vw, 24px) 0 clamp(6px, 1.2vw, 14px); position: relative; z-index: 3; scroll-margin-top: calc(var(--hdr-h) + 12px); }
.moods-head { margin: 0 var(--gut) 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.moods h2 { margin: 0; font-size: clamp(20px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.5px; color: #fff; }
.moods-head small { color: var(--muted); font-size: 14px; }
.mood-track { display: flex; gap: 14px; overflow-x: auto; padding: 18px var(--gut) 64px; scrollbar-width: none; scroll-padding-inline: var(--gut); scroll-snap-type: x proximity; }
.mood-track::-webkit-scrollbar { display: none; }
.mood {
  --c: #ee8a48;
  position: relative; flex: 0 0 auto; width: clamp(230px, 21vw, 330px); aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: 18px 20px;
  border: 0; border-radius: 12px; color: #fff; cursor: pointer; scroll-snap-align: start;
  background: color-mix(in srgb, var(--c) 22%, #15161a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 34px -16px rgba(0, 0, 0, .9);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.mood-art {
  position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat;
  filter: saturate(1.1); transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .4s;
}
/* Stemningens farve lægger sig over billedet nedefra */
.mood::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--c) 55%, #000) 0%, color-mix(in srgb, var(--c) 30%, transparent) 45%, transparent 75%),
    linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%);
  mix-blend-mode: normal; transition: opacity .35s;
}
.mood::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 62%);
  transform: translateX(-120%);
}
.mood b { font-size: clamp(19px, 1.5vw, 23px); font-weight: 800; line-height: 1.1; letter-spacing: -.4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.mood small { color: rgba(255, 255, 255, .85); font-size: 13px; margin-top: 4px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
@media (hover: hover) {
  .mood:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 80%, #fff), 0 16px 42px -14px color-mix(in srgb, var(--c) 55%, transparent);
  }
  .mood:hover .mood-art { transform: scale(1.12); filter: saturate(1.25); }
  .mood:hover::after { transform: translateX(120%); transition: transform .9s ease; }
}
.mood:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mood.on { box-shadow: 0 0 0 3px #fff, 0 14px 40px -10px color-mix(in srgb, var(--c) 65%, transparent); }
.mood.on b::after {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 10px; vertical-align: middle;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 60%, transparent);
}
/* "Overrask mig": flad Kertelys-flise med terning */
.mood.surprise { --c: #ee8a48; background: #1b1c21; box-shadow: inset 0 0 0 1px rgba(238, 138, 72, .45), 0 18px 34px -16px rgba(0, 0, 0, .9); }
.mood.surprise::before { display: none; }
.mood.surprise .dice { position: absolute; top: 18px; left: 20px; width: 42px; height: 42px; color: var(--kertelys); transition: transform .65s cubic-bezier(.3, 1.4, .5, 1); }
.mood.surprise .dice svg { width: 100%; height: 100%; display: block; }
.mood.surprise small { color: var(--muted); text-shadow: none; }
.mood.surprise b { text-shadow: none; }
@media (hover: hover) { .mood.surprise:hover .dice { transform: rotate(-12deg) scale(1.08); } }
.mood.surprise.rolling .dice { transform: rotate(720deg) scale(1.1); }
.mood.surprise.rolling { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .mood.surprise .dice { transition: none; } }
.mood-head { display: flex; align-items: center; gap: 14px; margin: 0 var(--gut) 18px; }
.mood-head span { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.6px; }
.mood-head .chip { margin-left: auto; }

/* ---------- "Velmoa anbefaler" ---------- */
.spot {
  position: relative; margin: clamp(10px, 2vw, 24px) var(--gut) clamp(36px, 4.5vw, 60px);
  min-height: clamp(360px, 38vw, 560px); border-radius: 14px; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px -30px rgba(0, 0, 0, .95);
}
.spot-bg {
  position: absolute; inset: -12% 0; z-index: -2; background: center 25% / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(10, 10, 12, .88) 0%, rgba(10, 10, 12, .5) 42%, rgba(10, 10, 12, 0) 70%),
    linear-gradient(to top, rgba(10, 10, 12, .7) 0%, rgba(10, 10, 12, 0) 45%);
}
.spot-in { max-width: 520px; }
.spot-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--kertelys); margin-bottom: 14px; }
.spot-kick img { width: 18px; height: 18px; }
.spot h3 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -1.5px; text-wrap: balance; }
.spot-logo { display: block; max-width: min(380px, 80%); max-height: 140px; margin: 0 0 16px; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.spot .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 15px; color: #e6e6e6; }
.spot p {
  margin: 0 0 22px; color: #eee; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.spot .btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-thumbs { animation: none; }
  .mood, .mood-art, .card::before, .mood::after { transition: none !important; }
  .spot-bg { transform: none; }
  .ambient i { transition: none; }
}

/* ---------- Chips, gitter, sider ---------- */
.chip { background: transparent; border-color: rgba(255, 255, 255, .35); backdrop-filter: none; font-weight: 600; }
.chip:hover { background: rgba(255, 255, 255, .1); }
.chip.on { background: #fff; color: #111; border-color: #fff; }
.grid { gap: 10px; }
.grid-title { font-weight: 800; letter-spacing: -.6px; }
.switch { color: var(--fg); }

/* ---------- Detaljevindue ---------- */
.modal { background: rgba(0, 0, 0, .72); backdrop-filter: none; }
.sheet { border-radius: 8px; border: 0; background: var(--flade); box-shadow: 0 24px 60px rgba(0, 0, 0, .75); }
.close { background: var(--flade); border: 0; }
.close:hover { background: var(--flade-2); transform: none; }
.sh-shade {
  background:
    linear-gradient(to top, var(--flade) 0%, rgba(27, 28, 33, 0) 45%),
    linear-gradient(to right, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
}
.sh-title { font-weight: 800; letter-spacing: -1px; }
.info .overview { color: #e8e8ea; }
.season-select { background: var(--flade-2); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; font-weight: 600; }
.ep { border-radius: 4px; border: 0; border-bottom: 1px solid var(--line); }
.ep:hover { background: var(--flade-2); }
.ep.active { background: var(--flade-2); border-color: transparent; }
.ep.active .n { color: var(--fg); }
.ep .th { border-radius: 4px; }
.similar .card { width: 132px; }

/* ---------- Detaljeside 2.0: titlens egen farvetone ---------- */
.sheet.detail2 { --tone: var(--flade); background: var(--tone); transition: background-color .6s ease; }
.sheet.detail2 .sh-shade {
  background:
    linear-gradient(to top, var(--tone) 0%, color-mix(in srgb, var(--tone) 70%, transparent) 20%, transparent 55%),
    linear-gradient(to right, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
}
.sheet.detail2 .info { background: var(--tone); }
.sheet.detail2 .close { background: rgba(0, 0, 0, .55); }
.sh-content .meta .age { border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px; padding: 0 6px; font-size: 12.5px; font-weight: 600; line-height: 20px; color: #fff; }
.sh-content .btns .btn svg { vertical-align: -3px; }
.info .tagline { margin: 4px 0 -6px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.3px; color: #fff; }

.facts2 { margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.facts2 div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.facts2 dt { color: rgba(255, 255, 255, .6); }
.facts2 dd { margin: 0; color: #fff; }

.cast { margin-top: 30px; }
.cast h4 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.cast-track { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.cast-track::-webkit-scrollbar { display: none; }
.person { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; }
.person .ph { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 8px; background: var(--flade-2) center 20% / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .25s, box-shadow .25s; }
.person b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.person small { font-size: 12px; color: rgba(255, 255, 255, .62); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .person:hover .ph { transform: scale(1.06); box-shadow: 0 0 0 2px #fff; } }
.person:focus-visible { outline: none; }
.person:focus-visible .ph { box-shadow: 0 0 0 3px #fff; }

.trailer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 4vw; background: rgba(0, 0, 0, .9); animation: fadein .25s ease; }
.trailer-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 86vh; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .8); }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer .close { position: fixed; top: 18px; right: 18px; }

/* Bedøm: rund knap, der folder tre valg ud som en pille */
.rate { position: relative; display: inline-flex; }
.rate svg.down { transform: rotate(180deg); }
.rate-btn.on { background: #fff; color: #111; box-shadow: none; }
.rate-btn.on:hover { background: rgba(255, 255, 255, .85); box-shadow: none; }
.rate-btn.pop { animation: rate-pop .35s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes rate-pop { 40% { transform: scale(1.18); } }
.rate .dbl { position: relative; display: inline-flex; width: 26px; height: 22px; }
.rate .dbl svg { position: absolute; width: 18px !important; height: 18px !important; }
.rate .dbl svg:first-child { left: 0; top: 4px; opacity: .55; }
.rate .dbl svg:last-child { right: 0; top: 0; }
.rate-pop {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; display: flex; gap: 4px; padding: 6px;
  border-radius: 999px; background: #2b2c32; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px) scale(.92); transform-origin: 50% 100%;
  transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s .22s;
}
.rate.open .rate-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.rate-pop button {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: #fff; cursor: pointer;
  transition: background .15s, transform .15s;
}
.rate-pop button svg { width: 22px; height: 22px; }
.rate-pop button:hover { background: rgba(255, 255, 255, .12); transform: scale(1.08); }
.rate-pop button.on { background: #fff; color: #111; }
.rate-pop button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .rate-pop, .rate-pop button { transition: none; } .rate-btn.pop { animation: none; } }

/* "Hvor var vi?": seneste afsnit med resumé øverst på seriens side */
.info:has(.www) .resume-note { display: none; }
.www {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 20px; align-items: center;
  margin: 0 0 26px; padding: 14px; border-radius: 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.www-still { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--flade-2) center / cover no-repeat; }
.www-still .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.www-still .bar i { display: block; height: 100%; background: var(--kertelys); }
.www-kick { font-size: 13px; font-weight: 700; color: var(--kertelys); }
.www h4 { margin: 4px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.www p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.www-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.www-act .btn { padding: 9px 20px; font-size: 15px; }
.www-act .btn svg { vertical-align: -3px; }
.www-act small { font-size: 12.5px; color: rgba(255, 255, 255, .55); }

@media (max-width: 700px) {
  .facts2 div { grid-template-columns: 84px 1fr; }
  .person { flex-basis: 80px; }
  .person .ph { width: 70px; height: 70px; }
  .www { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .rate-pop { left: auto; right: -6px; transform: translateY(6px) scale(.92); transform-origin: 85% 100%; }
  .rate.open .rate-pop { transform: none; }
}

/* ---------- Login, menu, toast ---------- */
.sheet.small { border-radius: 8px; }
.auth input, .pf-fields input[name=name] { border-radius: 4px; border-color: rgba(255, 255, 255, .2); background: var(--flade-2); }
.auth input:focus, .pf-fields input[name=name]:focus { border-color: #fff; }
/* Profilmenuen folder sig ud fra avataren: varmt kort med profilen øverst */
.menu {
  --mbg: color-mix(in srgb, var(--kertelys) 6%, #15161a);
  top: calc(var(--hdr-h) - 4px); width: 284px; max-width: calc(100vw - 2 * var(--gut)); padding: 8px; border-radius: 20px;
  background: var(--mbg); backdrop-filter: none; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6); transform-origin: calc(100% - 18px) 0;
}
.menu.open { animation: menu-in .24s cubic-bezier(.2, 1.1, .35, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
.menu .mhead {
  display: flex; align-items: center; gap: 13px; margin: 0; padding: 12px; border: 0; border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--kertelys) 24%, transparent), color-mix(in srgb, var(--kertelys) 5%, transparent));
}
.menu .mhead .pav { width: 48px; height: 48px; margin: 0; font-size: 20px; flex: none; }
.menu .mwho { padding: 0; margin: 0; border: 0; min-width: 0; line-height: 1.3; }
.menu .mwho b { display: block; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .mwho small { display: block; color: #d5cfc7; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .mprofiles { display: flex; gap: 2px; margin: 0; padding: 10px 2px 8px; border: 0; overflow-x: auto; scrollbar-width: none; }
.menu .mprofiles button {
  display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 62px; width: 62px; padding: 6px 2px;
  border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; min-width: 0;
}
.menu .mprofiles button span.mn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .mprofiles .pav { width: 38px; height: 38px; margin: 0; font-size: 16px; }
.menu .mprofiles button.on { color: #fff; }
.menu .mprofiles button.on .pav { box-shadow: 0 0 0 2px var(--mbg), 0 0 0 4px var(--kertelys); }
.menu .mi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #ece9e4; transition: background .15s, color .15s; }
.menu .mi svg { width: 19px; height: 19px; flex: none; color: var(--muted); transition: color .15s, transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.menu .mi:hover, .menu .mi:focus-visible { background: color-mix(in srgb, var(--kertelys) 15%, transparent); color: #fff; }
.menu .mi:hover svg, .menu .mi:focus-visible svg { color: var(--kertelys); transform: scale(1.1); }
.menu .mline { height: 1px; margin: 6px 12px; padding: 0; border: 0; background: rgba(255, 255, 255, .09); }
.menu .mhead + .mi { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .menu.open { animation: none; } }
.toast { background: #fff; color: #111; font-weight: 600; border-radius: 4px; }

/* ---------- Profiler: "Hvem ser med?" ---------- */
.pf { background: var(--bg); }
.pf h2 { font-weight: 600; letter-spacing: -.5px; }
.pav { background: var(--c); box-shadow: none; border-radius: 50%; color: #141414; }
.pav i { color: #fff; }
.pav.lg, .pf-edit { border-radius: 50%; }
.pav.add { background: transparent; box-shadow: inset 0 0 0 2px #4a4a52; }
.pf-tile:hover .pav.lg, .pf-tile:focus-visible .pav.lg { box-shadow: 0 0 0 3px #fff; transform: none; }
.pf-name { font-size: 16px; }
.pf-kids input:checked + span { background: var(--kertelys); }
.sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.pf .btn { border-radius: 999px; }

/* Monster-avatarer: kunsten er selv en cirkel; en lille zoom skjuler dens kant mod baggrunden */
.pav.img { background: #ece9df; }
.pav.img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.07); }

/* "Rediger profil": avataren i midten, valgmulighederne i en bane rundt om den */
.pf-form { max-width: 440px; text-align: center; }
.pf-form h2 { text-align: center; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.3px; margin: 0 0 clamp(14px, 2.4vh, 26px); }

.pf-orbit {
  --stage: min(430px, 100vw - 40px, max(54vh, 300px));
  --r: calc(var(--stage) * .41);
  --s: calc(var(--stage) * .165);
  position: relative; width: var(--stage); height: var(--stage); margin: 0 auto clamp(14px, 2.4vh, 26px);
}
.pf-orbit::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); transition: border-color .25s;
}
.pf-orbit #pfprev { position: absolute; inset: 0; display: grid; place-items: center; }
.pf-orbit .pav.lg {
  width: calc(var(--stage) * .46); height: calc(var(--stage) * .46); font-size: calc(var(--stage) * .2);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px var(--c);
}
.pf-orbit .pav.lg i { padding-bottom: 4px; }
.pf-orbit .pav.pop { animation: pf-pop .32s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pf-pop { from { transform: scale(.86); } }

.pf-orbit .av-pick {
  --a: calc(var(--i) * 36deg);
  --pos: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); padding: 0; border: 0; border-radius: 50%; overflow: hidden;
  background: #ece9df; cursor: pointer; transform: var(--pos);
  transition: box-shadow .15s, transform .18s cubic-bezier(.2, .8, .2, 1);
  animation: pf-fan .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 22ms);
}
@keyframes pf-fan { from { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -.5)) rotate(calc(var(--a) * -1)) scale(.5); } }
.pf-orbit .av-pick img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.07); }
.pf-orbit .av-pick.letter .pav { width: 100%; height: 100%; font-size: calc(var(--s) * .42); }
.pf-orbit .av-pick:hover { transform: var(--pos) scale(1.12); }
.pf-orbit .av-pick.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.pf-orbit .av-pick:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pf-form .pf-fields { width: min(360px, 100%); margin: 0 auto; }
.pf-form input[name=name] {
  display: block; width: 100%; height: 54px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px; outline: none;
  background: var(--flade); color: var(--fg); font: inherit; font-size: 20px; font-weight: 600; text-align: center;
  transition: border-color .15s;
}
.pf-form input[name=name]::placeholder { color: var(--muted); font-weight: 500; }
.pf-form input[name=name]:focus { border-color: var(--c); }
.pf-form .pf-colors { justify-content: center; margin: 16px 0; }
.pf-form .sw { width: 28px; height: 28px; }
.pf-form .pf-kids {
  flex-direction: row-reverse; justify-content: space-between; padding: 11px 16px 11px 24px; border-radius: 28px;
  background: var(--flade); text-align: left;
}
.pf-form .err { margin-top: 10px; text-align: center; }
.pf-form .err:empty { display: none; }
.pf-form .pf-actions { justify-content: center; gap: 8px; margin-top: 16px; padding-top: 0; border-top: 0; }
.pf-form .pf-actions .btn { padding: 13px 26px; justify-content: center; }
.pf-form .pf-actions .btn.play { flex: 1; }
.pf-form .pf-actions .btn.ghost { background: var(--flade); }
.pf-form .pf-actions .btn.ghost:hover { background: var(--flade-2); }
.pf-form .pf-actions .btn.danger { flex-basis: 100%; padding: 8px; background: none; font-size: 14px; font-weight: 600; }
.pf-form .pf-actions .btn.danger:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pf-orbit .av-pick, .pf-orbit .pav.pop { animation: none; }
  .pf-orbit .av-pick:hover { transform: var(--pos); }
}

/* ---------- Afspiller ---------- */
.fs { background: #000; color: var(--fg); font-family: var(--text); }

/* Skarphed efter forbindelsen. Kun på egen <video>: et CSS-filter på embed-iframen får Chrome til at tegne videoen sort. */
.fs[data-quality-tier="2160"] video { filter: url(#velmoa-4k-upscale) contrast(1.035) saturate(1.05); }
.fs[data-quality-tier="1440"] video { filter: contrast(1.02) saturate(1.03); }
.fs[data-quality-tier="1080"] video { filter: none; }

/* Skærmen er rolig: tilbage øverst, titel og betjening samlet nederst.
   Kun selve knapperne fanger klik, så resten af billedet stadig sætter på pause. */
.fs-top, .fs.ui .fs-top, .fs-bottom, .fs.ui .fs-bottom { pointer-events: none; }
.fs.ui .fs-back-btn, .fs.ui .fs-seekrow, .fs.ui .fs-row > :not(.fs-sp) { pointer-events: auto; }
.fs {
  --fs-gut: clamp(18px, 2.8vw, 40px);
  /* Velmoa.js kan give afspilleren filmens egen farve ved at sætte --kertelys, --fs-lys, --fs-skygge og --fs-dyb; ellers lyser Kertelys */
  --fs-lys: 238, 138, 72;                 /* accenten som tal, så glød og glas kan få egen styrke */
  --fs-skygge: 14, 9, 6;                  /* næsten sort i accentens tone: skærmens toninger */
  --fs-dyb: 26, 20, 16;                   /* lidt lysere: glas, menuer og mærkater */
  --fs-ild: linear-gradient(90deg, color-mix(in srgb, var(--kertelys) 78%, #000), var(--kertelys) 62%, color-mix(in srgb, var(--kertelys) 62%, #fff));
  --fs-varm: color-mix(in srgb, var(--kertelys) 48%, #fff);
  --fs-tændt: color-mix(in srgb, var(--kertelys) 80%, #fff);
  --fs-glas: rgba(var(--fs-dyb), .66);
  --fs-kant: rgba(255, 236, 220, .1);
}
.fs :focus-visible { outline: 2px solid var(--kertelys); outline-offset: 2px; }
.fs-top, .fs-bottom { transition: opacity .28s ease, transform .36s cubic-bezier(.2, .8, .2, 1); }

.fs-top {
  padding: max(16px, env(safe-area-inset-top)) var(--fs-gut) 72px; gap: 12px; transform: translateY(-10px);
  background: linear-gradient(to bottom, rgba(var(--fs-skygge), .66), rgba(var(--fs-skygge), .34) 40%, rgba(var(--fs-skygge), .1) 75%, transparent);
}
/* I stream-tilstand dækker en helt sort bjælke de øverste 68px, så kildens egen titel og knapper aldrig skinner igennem */
.fs.is-stream .fs-top {
  opacity: 1 !important; pointer-events: auto !important; transform: none !important;
  min-height: 68px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; background: #000;
}

.fs-back-btn {
  width: 44px; height: 44px; background: var(--fs-glas); box-shadow: inset 0 0 0 1px var(--fs-kant);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.fs-back-btn:hover { background: rgba(var(--fs-lys), .28); transform: none; }
.fs-back-btn svg { width: 24px; height: 24px; }
.fs-top .fs-ic[data-a="full"] { display: none; }
/* Velmua står diskret i hjørnet, så længe betjeningen er fremme */
.fs-brand-mark {
  order: 3; flex: 0 0 auto; width: clamp(92px, 8vw, 118px); aspect-ratio: 2095 / 552; opacity: .92;
  color: var(--kertelys); filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .5)); /* V'et tager filmens farve */
}
.fs-brand-mark svg { display: block; width: 100%; height: 100%; }

.fs-head { display: grid; gap: 8px; max-width: min(640px, 72%); margin-bottom: 12px; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.fs-about {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  max-height: 0; margin: 0; opacity: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .84);
  transition: max-height .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.fs.paused:not(.boot, .ended, .err) .fs-about { max-height: 5em; opacity: 1; transition-delay: .4s; }
.fs-top .fs-sp { flex: 1 1 0; min-width: 0; }
.fs-title b { font-weight: 800; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.6px; line-height: 1.12; }
.fs-title small { font-size: 14px; font-weight: 600; margin-top: 4px; color: var(--fs-varm); }
.fs-title small:empty { display: none; }
/* Filmens eget logo står i titlens sted; navnet bliver i DOM'en til skærmlæsere */
.fs-logo {
  display: block; width: auto; height: auto; max-width: min(340px, 56vw); max-height: clamp(58px, 11vh, 104px); margin-bottom: 8px;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .6)); transform-origin: left bottom; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.fs-logo[hidden] { display: none; }
.fs.paused:not(.boot, .ended, .err) .fs-logo { transform: scale(1.22); }
.fs.has-logo .fs-title b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fs.logo-dark :is(.fs-logo, .fs-veil-logo) { filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0, 0, 0, .6)); }
/* Pause: hvor længe er der tilbage, og hvornår er man færdig */
.fs-meta {
  max-height: 0; margin: 0; overflow: hidden; opacity: 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9);
  font-variant-numeric: tabular-nums; transition: max-height .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.fs-meta i { font-style: normal; color: var(--fs-varm); }
.fs.paused:not(.boot, .ended, .err) .fs-meta { max-height: 1.6em; opacity: 1; transition-delay: .3s; }

.fs-stream-controls { gap: 8px; flex: 0 0 auto; }
.fs-stream-controls[hidden] { display: none; }
.fs-btn-pill {
  height: 38px; padding: 0 16px; border-radius: 999px; flex: 0 0 auto; white-space: nowrap;
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--fs-kant);
  backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .15s;
}
.fs-btn-pill:hover { background: rgba(var(--fs-lys), .28); transform: none; }
.fs-btn-pill[hidden] { display: none; }
.fs-btn-source {
  background: rgba(255, 255, 255, .08);
  color: var(--tekst);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.fs-btn-source:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .2);
}
/* Kvalitetsmærket er skjult: indlejrede afspillere vælger selv opløsning, så mærket kunne kun gætte */
.fs-quality-pill, .fs-quality-menu { display: none !important; }

.fs-bottom {
  padding: 120px var(--fs-gut) max(18px, env(safe-area-inset-bottom)); transform: translateY(10px);
  background:
    radial-gradient(46% 62% at var(--fs-p, 0%) 100%, rgba(var(--fs-lys), .2), transparent 72%), /* lyset følger afspilningshovedet */
    linear-gradient(to top, rgba(var(--fs-skygge), .9), rgba(var(--fs-skygge), .76) 18%, rgba(var(--fs-skygge), .54) 38%, rgba(var(--fs-skygge), .3) 58%, rgba(var(--fs-skygge), .12) 76%, rgba(var(--fs-skygge), .03) 90%, transparent);
}
/* Pause: billedet træder et skridt tilbage i skæret fra et kertelys, og beskrivelsen kommer frem */
.fs::after {
  content: ""; position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .45s ease;
  background: radial-gradient(90% 80% at 12% 100%, rgba(var(--fs-lys), .2), transparent 62%), rgba(12, 8, 5, .46);
}
.fs.paused::after { opacity: 1; }

.fs-seekrow { gap: 14px; margin-bottom: 4px; }
.fs-cur, .fs-left { flex: 0 0 auto; min-width: 54px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .86); }
.fs-cur { text-align: left; }
.fs-seek { height: 26px; }
.fs-rail { height: 4px; background: rgba(255, 244, 235, .22); border-radius: 99px; transition: height .18s cubic-bezier(.2, .8, .2, 1); }
.fs-seek:hover .fs-rail, .fs-seek.drag .fs-rail { height: 7px; }
.fs-buf { background: rgba(255, 244, 235, .26); border-radius: inherit; }
.fs-hov { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 244, 235, .3); border-radius: inherit; pointer-events: none; }
.fs-seek:not(:hover) .fs-hov { opacity: 0; }
.fs-prog { background: var(--fs-ild); border-radius: inherit; box-shadow: 0 0 14px rgba(var(--fs-lys), .55); }
/* Afspilningshovedet er flammen i Kertelys: en lys kerne med varm glød */
.fs-prog::after {
  right: -7px; width: 14px; height: 14px; margin-top: -7px; background: #fff4e8;
  box-shadow: 0 0 0 3px rgba(var(--fs-lys), .5), 0 0 18px 5px rgba(var(--fs-lys), .8);
}
.fs.ui .fs-prog::after { transform: scale(.8); }
.fs-seek:hover .fs-prog::after, .fs-seek.drag .fs-prog::after { transform: scale(1.1); }
.fs-tip {
  bottom: 30px; background: var(--fs-glas); border-radius: 999px; padding: 6px 12px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--fs-kant); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

.fs-time { display: none; }
.fs-row { gap: clamp(2px, .6vw, 8px); }
.fs-ic { position: relative; width: 44px; height: 44px; transition: background .15s, color .15s, transform .15s cubic-bezier(.2, .8, .2, 1); }
.fs-ic svg { width: 26px; height: 26px; }
.fs-ic:hover { background: rgba(var(--fs-lys), .22); transform: none; }
.fs-ic:active { transform: scale(.92); }
.fs-ic.on, .fs-menu button.on::before { color: var(--kertelys); }
.fs-wide { height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--fs-kant); font-size: 13px; font-weight: 700; }
.fs-wide:hover { background: rgba(var(--fs-lys), .28); }
.fs-wide svg { width: 16px; height: 16px; }
/* Afspil er knappen, der tæller: den tænder i Kertelys og ånder roligt, når filmen holder pause */
.fs-row [data-a="play"] { width: 54px; height: 54px; margin-right: 4px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--fs-kant); }
.fs-row [data-a="play"]:hover { background: rgba(var(--fs-lys), .28); }
.fs-row [data-a="play"] svg { width: 30px; height: 30px; }
.fs.paused .fs-row [data-a="play"] { background: var(--kertelys); color: #1a0f07; animation: fs-breath 3.2s ease-in-out infinite; }
.fs.paused .fs-row [data-a="play"]:hover { background: var(--fs-tændt); }
@keyframes fs-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--fs-lys), .4), 0 0 20px rgba(var(--fs-lys), .4); }
  50% { box-shadow: 0 0 0 8px rgba(var(--fs-lys), 0), 0 0 34px rgba(var(--fs-lys), .62); }
}
@media (hover: hover) {
  .fs-row .fs-ic:not(.fs-wide, [data-a="play"])::after {
    content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px;
    padding: 6px 11px; border-radius: 999px; background: rgba(var(--fs-dyb), .9); color: #fff;
    font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity .15s ease, translate .15s ease;
  }
  .fs-row .fs-ic:last-child::after { left: auto; right: 0; translate: 0 4px; }
  .fs-row .fs-ic:hover::after { opacity: 1; translate: -50% 0; }
  .fs-row .fs-ic:last-child:hover::after { translate: 0 0; }
}

.fs-vol input {
  -webkit-appearance: none; appearance: none; height: 24px; margin: 0; background: none; cursor: pointer;
  --fs-track: linear-gradient(to right, var(--kertelys) var(--v, 100%), rgba(255, 244, 235, .24) var(--v, 100%));
}
.fs-vol:hover input, .fs-vol input:focus { width: 92px; margin: 0 8px 0 4px; }
.fs-vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--fs-track); }
.fs-vol input::-moz-range-track { height: 4px; border-radius: 99px; background: var(--fs-track); }
.fs-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.fs-vol input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }

/* Indlæsning er Velmuas V, hvor lyset løber gennem stregen (mærket sættes ind af velmoa.js) */
.fs-spin { width: 72px; height: 72px; margin: -36px; border: 0; box-shadow: none; animation: none; }
.fs-mark { display: block; width: 100%; height: 100%; overflow: visible; }
.fs-mark path { fill: none; stroke-width: 64; stroke-linecap: round; stroke-linejoin: round; }
.fs-mark .spor { stroke: rgba(255, 255, 255, .14); }
.fs-mark .lys {
  stroke: var(--kertelys); stroke-dasharray: .26 .74; filter: drop-shadow(0 0 22px rgba(var(--fs-lys), .9));
  animation: fs-lys 2s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes fs-lys { to { stroke-dashoffset: -1; } }
.fs.boot .fs-spin, .fs.boot .fs-pulse { display: none; }
.fs.boot .fs-bottom, .fs.boot .fs-cues { opacity: 0; }
.fs.boot .fs-bottom * { pointer-events: none !important; }
/* Tilbage kan altid nås, også mens man venter */
.fs.boot { cursor: default; }
.fs.boot .fs-top { opacity: 1; transform: none; }
.fs.boot .fs-back-btn { pointer-events: auto; }

/* Lille bekræftelse midt i billedet, når man sætter på pause eller fortsætter */
.fs-pulse {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px; z-index: 9; display: grid; place-items: center;
  border-radius: 50%; background: var(--fs-glas); color: #fff; opacity: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(var(--fs-lys), .4), 0 0 34px rgba(var(--fs-lys), .34);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fs-pulse svg { width: 40px; height: 40px; }
.fs-pulse.go { animation: fs-pulse .55s ease-out; }
@keyframes fs-pulse { from { opacity: .95; transform: scale(.8); } to { opacity: 0; transform: scale(1.25); } }

/* Spring frem og tilbage vises i den side, man springer til */
.fs-flash { padding: 10px 18px; border-radius: 999px; background: var(--fs-glas); box-shadow: inset 0 0 0 1px var(--fs-kant); font-size: 17px; font-variant-numeric: tabular-nums; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.fs-flash[data-side="back"] { left: 20%; }
.fs-flash[data-side="fwd"] { left: 80%; }

.fs-menu, .fs-upnext {
  background: var(--fs-glas); border: 1px solid var(--fs-kant); border-radius: 14px;
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.fs-menu { right: var(--fs-gut); bottom: 112px; padding: 8px; }
.fs-menu h5 { color: var(--fs-varm); }
.fs-menu button { border-radius: 8px; font-weight: 500; }
.fs-menu button:hover { background: rgba(var(--fs-lys), .18); }
.fs-menu button.on { background: rgba(var(--fs-lys), .14); font-weight: 700; }
.fs-upnext { right: var(--fs-gut); bottom: 190px; overflow: hidden; }
.fs-upnext:hover { border-color: rgba(var(--fs-lys), .6); }
.fs-upnext i { color: var(--fs-varm); letter-spacing: 0; font-size: 12px; }
/* Nedtællingen brænder langsomt ned langs kortets bund */
.fs-upnext::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fs-ild);
  transform: scaleX(var(--left, 1)); transform-origin: left; transition: transform .3s linear;
}
.fs-cues { font-family: var(--text); }
.fs-cues span { border-radius: 6px; padding: 2px 10px; background: rgba(var(--fs-skygge), .6); }
.fs.ui .fs-cues { bottom: 200px; }
.fs.paused.ui .fs-cues { bottom: 270px; }

/* Ventescene (sættes af velmoa.js, indtil filmen spiller): filmens billede fylder skærmen, og titlen står hvor den står under afspilning */
.fs-veil {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end;
  padding: 0 var(--fs-gut) clamp(48px, 9vh, 96px);
  overflow: hidden; pointer-events: none; background: #000; transition: opacity .25s ease;
}
.fs-veil[hidden] { display: none; }
.fs-veil.out { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.fs-veil::before, .fs-err::before {
  content: ""; position: absolute; inset: 0;
  background: var(--fs-art, none) center / cover no-repeat; opacity: .28;
}
.fs-veil::before { opacity: .7; animation: veil-drift 24s ease-out both; }
.fs-veil::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 50% 46%, rgba(var(--fs-skygge), .5), transparent 100%), linear-gradient(to top, rgba(var(--fs-skygge), .92), rgba(var(--fs-skygge), .4) 46%, rgba(var(--fs-skygge), .2)), linear-gradient(to right, rgba(var(--fs-skygge), .5), transparent 62%);
}
@keyframes veil-drift { from { transform: scale(1.07); } to { transform: none; } }
.fs-veil-in { position: relative; z-index: 1; display: grid; justify-items: start; gap: 8px; text-align: left; max-width: min(680px, 100%); }
.fs-veil-in b { font-weight: 800; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -1px; line-height: 1.06; color: #fff; }
.fs-veil-logo { display: block; width: auto; height: auto; max-width: min(560px, 76vw); max-height: 24vh; margin-bottom: 4px; filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .6)); }
.fs-veil-logo[hidden], .fs.has-logo .fs-veil-in b { display: none; }
.fs-veil-in small { font-size: 15px; font-weight: 600; color: var(--fs-varm); }
.fs-veil-in { animation: veil-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.fs-veil-mark { position: absolute; left: 50%; top: 46%; z-index: 1; width: clamp(84px, 9vw, 124px); aspect-ratio: 1; transform: translate(-50%, -50%); }
@keyframes veil-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Velmoas eget hjul skal ikke vise sig oven på ventescenen */
.fs.is-stream .fs-spin { display: none; }

.fs-err { background: #000; gap: 22px; overflow: hidden; }
.fs-err > * { position: relative; z-index: 1; }
.fs-err p { max-width: 480px; margin: 0; padding: 24px 26px; border-radius: 14px; background: var(--fs-glas); border: 1px solid var(--fs-kant); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); font-size: 15px; line-height: 1.55; color: var(--fg); }
.fs-err p b { font-size: 20px; font-weight: 700; }

.fs-providers {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.fs-prov-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}
.fs-prov-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.fs-prov-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--fs-glas);
  border: 1px solid var(--fs-kant);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.fs-prov-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.fs-prov-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.fs-prov-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.fs-prov-name {
  font-size: 13px;
  font-weight: 600;
}
.fs-prov-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .fs-mark .lys { animation: none; stroke-dasharray: none; }
  .fs.paused .fs-row [data-a="play"] { animation: none; box-shadow: 0 0 24px rgba(var(--fs-lys), .5); }
  .fs-veil-in { animation: none; }
  .fs-veil { transition: none; }
  .fs-veil::before { animation: none; }
  .fs-pulse.go { animation-duration: .01s; }
  .fs-top, .fs-bottom { transform: none; }
}

/* Touch: de tre vigtigste knapper står midt på skærmen, hvor tommelfingrene er */
@media (hover: none) and (pointer: coarse) {
  .fs.ui::after { opacity: 1; }
  .fs-row [data-a="play"], .fs-row [data-a="back"], .fs-row [data-a="fwd"] { position: absolute; margin: 0; left: 50%; }
  .fs-row [data-a="play"] { width: 72px; height: 72px; margin-left: -36px; bottom: calc(50dvh - 36px); }
  .fs-row [data-a="play"] svg { width: 40px; height: 40px; }
  .fs-row [data-a="back"], .fs-row [data-a="fwd"] { width: 56px; height: 56px; bottom: calc(50dvh - 28px); }
  .fs-row [data-a="back"] svg, .fs-row [data-a="fwd"] svg { width: 36px; height: 36px; }
  .fs-row [data-a="back"] { margin-left: -136px; }
  .fs-row [data-a="fwd"] { margin-left: 80px; }
}
@media (max-height: 520px) {
  .fs-about, .fs-meta { display: none; }
  .fs-logo { max-height: 52px; }
  .fs-bottom { padding-top: 72px; }
}

footer { background: transparent; border-top: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  :root { --hdr-h: 56px; --gut: 14px; }
  header { gap: 12px; }
  .logo img { content: url("/velmoa-mark.svg"); height: 26px !important; width: 26px !important; }
  .search { --sw: 100%; --spr: 8px; flex: 0 1 40px; transition: flex-grow .3s cubic-bezier(.2, .8, .2, 1); }
  .search input::placeholder { font-size: 13px; }
  .search:focus-within, .search:has(input:not(:placeholder-shown)) { flex: 1 1 40px; }
  .hero { min-height: 72vh; }
  .btn { padding: 9px 18px; font-size: 15px; }
  .mood { width: 72vw; max-width: 300px; padding: 14px 16px; }
  .spot { margin-left: 0; margin-right: 0; border-radius: 0; min-height: 440px; padding: 22px var(--gut); }
  .spot::before { background: linear-gradient(to top, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .6) 50%, rgba(10, 10, 12, .1) 100%); }
  .btn.round { width: 40px; height: 40px; }
  .ambient i { filter: blur(50px) saturate(1.3) brightness(.5); }
  .tabbar { background: var(--bg); backdrop-filter: none; border-top-color: var(--line); }
  .tabbar button.active { color: #fff; font-weight: 600; }
  .sheet { border-radius: 0; }
  .sheet.small { border-radius: 8px; }

  .fs.is-stream .fs-top, .fs-top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .fs-head { max-width: 100%; }
  .fs-title b { font-size: 19px; }
  .fs-title small { font-size: 13px; }
  .fs-back-btn { width: 40px; height: 40px; }
  .fs.ui .fs-cues { bottom: 160px; }
  /* Pillerne bliver til ikonknapper, så titlen får pladsen */
  .fs-stream-controls { gap: 6px; }
  .fs-stream-controls .fs-btn-pill { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .fs-stream-controls .fs-btn-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fs-err p { padding: 20px; font-size: 14px; }
}

/* Login: Google-knap (Googles egne farver: hvid flade, farvet G) */
.auth .btn.google { background: #fff; color: #1f1f1f; margin: 0 0 4px; border: 1px solid #dadce0; }
.auth .btn.google:hover { background: #f1f3f4; }
.auth .btn.google svg { width: 18px; height: 18px; flex: none; }
.auth .btn[disabled] { opacity: .6; pointer-events: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Grundlæggende polering ---------- */
/* Plakater, der endnu ikke er hentet: rolig flade med titlen, som toner over i billedet */
.card.lz { background-image: none !important; animation: lz-pulse 1.6s ease-in-out infinite; }
.card.lz .lbl { opacity: 1; transform: none; }
.card.lz-in { animation: lz-in .35s ease both; }
@keyframes lz-pulse { 50% { background-color: var(--flade-2); } }
@keyframes lz-in { from { filter: brightness(.4); } }
@media (prefers-reduced-motion: reduce) { .card.lz, .card.lz-in { animation: none; } }

/* Billboardet viser et mindre billede, mens det store hentes */
.hero { background: transparent; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--hero-ph, none) center 20% / cover no-repeat; }
/* Pladsholderen forsvinder, så snart det rigtige billede vises – ellers skinner den første titel igennem i udtoningen */
.hero::before { transition: opacity .6s ease; }
.hero:has(.hero-bg.on)::before { opacity: 0; }

/* Menuen må ikke knække over to linjer */
header nav button { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) { header nav { gap: 14px; } header nav button { font-size: 13.5px; } .search { --sw: min(220px, 24vw); --spr: 8px; } .search input { font-size: 13.5px; } }
@media (min-width: 761px) and (max-width: 900px) { header:has(.search:focus-within) nav button[data-view="free"], header:has(.search input:not(:placeholder-shown)) nav button[data-view="free"] { display: none; } }
/* Her er der ikke plads til både menuikoner og åben søgning, så ikonerne viger */
@media (min-width: 1181px) and (max-width: 1400px) { header:has(.search:focus-within) nav .nav-ic, header:has(.search input:not(:placeholder-shown)) nav .nav-ic { display: none; } }
@media (min-width: 761px) and (max-width: 960px) { header nav button[data-view="library"] { display: none; } }

/* Under søgning er intet menupunkt aktivt */
body.searching header nav button.active { color: #d6d6da; font-weight: 500; }
body.searching header nav button.active::before { transform: scaleX(0); }
body.searching .tabbar button.active { color: inherit; opacity: .7; }

/* Søgeoverskriften står som en rigtig overskrift */
.search-h.first { font-size: clamp(20px, 2vw, 28px); color: #fff; font-weight: 800; letter-spacing: -.4px; }

/* Detaljesiden på telefon: Afspil i fuld bredde, de andre knapper deler linjen under */
@media (max-width: 600px) {
  .sh-content { left: 18px; right: 18px; bottom: 18px; }
  .sh-content .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sh-content .btns .btn { justify-content: center; margin: 0; }
  .sh-content .btns .btn.play { grid-column: 1 / -1; }
  .sh-content .btns .btn:last-child:nth-child(2) { grid-column: 1 / -1; }
  .info { padding: 18px 18px 26px; }
  .info-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* Ikoner i topmenuen, som på Apple TV: det aktive punkt får et udfyldt ikon i Kertelys */
header nav button { display: inline-flex; align-items: center; gap: 7px; }
header nav .nav-ic { width: 17px; height: 17px; flex: none; opacity: .85; transition: color .2s, opacity .2s; }
header nav button:hover .nav-ic { opacity: 1; }
header nav button.active .nav-ic { color: var(--kertelys); opacity: 1; }
header nav button.active .nav-ic path, header nav button.active .nav-ic rect { fill: color-mix(in srgb, var(--kertelys) 25%, transparent); }
body.searching header nav button.active .nav-ic { color: inherit; opacity: .85; }
body.searching header nav button.active .nav-ic path, body.searching header nav button.active .nav-ic rect { fill: none; }
@media (min-width: 761px) and (max-width: 1180px) { header nav .nav-ic { display: none; } }

/* Individuelle afsnit og markering som set */
.ep-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
  border-radius: 10px;
}
.ep-row:hover {
  background: var(--bg-3);
}
.ep-row .ep {
  border-bottom: none;
  background: transparent !important;
}
.ep-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ep-badge-watched {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #46d369;
  color: #0b0c0f;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
  z-index: 2;
}
.ep-tag-seen {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(70, 211, 105, 0.16);
  color: #46d369;
  font-size: 11px;
  font-weight: 600;
}
.ep-tag-prog {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
}
.ep-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex: 0 0 auto;
  margin-right: 12px;
  opacity: 0.45;
}
.ep-row:hover .ep-watch-btn {
  opacity: 0.85;
}
.ep-watch-btn:hover {
  opacity: 1 !important;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}
.ep-watch-btn.is-watched {
  width: auto;
  height: auto;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(70, 211, 105, 0.15);
  border: 1px solid rgba(70, 211, 105, 0.35);
  color: #46d369;
  opacity: 1;
}
.ep-watch-btn.is-watched:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  transform: scale(1.03);
}
@media (max-width: 600px) {
  .ep-watch-btn {
    margin-right: 6px;
  }
}

/* Login: telefon, QR-kode, indbakke og påmindelse om at bekræfte email */
.auth .btn.phone { background: var(--flade-2); color: var(--fg); border: 1px solid rgba(255, 255, 255, .2); margin: 8px 0 4px; }
.auth .btn.phone:hover { background: #303138; }
.auth .btn.phone svg { width: 18px; height: 18px; flex: none; }
.auth .forgot { display: block; margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.auth .forgot:hover { color: var(--fg); }
.auth .auth-foot { margin: 18px 0 0; }
.auth-center { text-align: center; }
.auth-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  color: var(--kertelys); background: color-mix(in srgb, var(--kertelys) 14%, transparent); }
.auth-icon svg { width: 26px; height: 26px; }
.qr-box { width: 216px; height: 216px; margin: 2px auto 14px; padding: 14px; background: #fff; border-radius: 10px; }
.qr-box:empty { background: var(--flade-2); }
.qr-box svg { display: block; width: 100%; height: 100%; }
.auth .qr-code { margin: 0; font-size: 13px; }
.auth .qr-code strong { color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
#verifybar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; font-size: 14px; color: var(--fg);
  background: var(--flade); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
#verifybar button { font: inherit; cursor: pointer; border: 0; background: none; color: var(--fg); }
#verifybar .send { flex: none; padding: 6px 12px; font-weight: 600; color: #141414; background: var(--kertelys); border-radius: 4px; }
#verifybar .hide { flex: none; padding: 6px; color: var(--muted); }
@media (max-width: 560px) { #verifybar { left: 16px; right: 16px; transform: none; font-size: 13px; } }

/* Oprettelse: monstrene byder velkommen, og avataren er et valgfrit sidste trin */
.auth-monsters { display: flex; justify-content: center; align-items: center; margin: 2px 0 18px; }
.auth-monsters img { width: 52px; height: 52px; margin-left: -12px; border-radius: 50%; box-shadow: 0 0 0 3px var(--flade);
  animation: monster-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.auth-monsters img:first-child { margin-left: 0; }
.auth-monsters img:nth-child(2), .auth-monsters img:nth-child(4) { width: 60px; height: 60px; z-index: 1; animation-delay: .06s; }
.auth-monsters img:nth-child(3) { width: 72px; height: 72px; z-index: 2; animation-delay: .12s; }
.auth-monsters img:nth-child(4) { animation-delay: .18s; }
.auth-monsters img:nth-child(5) { animation-delay: .24s; }
@keyframes monster-in { from { opacity: 0; transform: translateY(12px) scale(.8); } }

.av-hero { width: 112px; height: 112px; margin: 4px auto 18px; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 46px; font-weight: 700;
  box-shadow: 0 0 0 4px var(--flade), 0 0 0 6px var(--kertelys); }
.av-hero.img { background: none; }
.av-hero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: av-pop .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes av-pop { from { transform: scale(.7); opacity: .4; } }

.pf-avatars.av-grid { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; gap: 12px; margin: 20px 0 22px; }
.av-grid .av-pick { width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; border-radius: 50%; background: none; box-shadow: none; }
.pf-avatars.av-grid .av-pick.letter { background: var(--c); color: #fff; font: inherit; font-size: 22px; font-weight: 700; }
.pf-avatars.av-grid .av-pick.on { box-shadow: 0 0 0 2px var(--flade), 0 0 0 4px var(--kertelys); }
.av-grid .av-pick:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .auth-monsters img, .av-hero img { animation: none; } }

/* ---------- Indlæsning: siden er aldrig tom ---------- */
.hero:empty {
  background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.8s infinite linear;
}
.boot-rows { position: relative; z-index: 1; margin-top: -90px; }
.skel-line {
  width: 180px; height: 18px; border-radius: 6px;
  background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skel-block {
  display: block; min-height: 96px; border-radius: 8px;
  background: linear-gradient(100deg, var(--bg-3) 30%, var(--flade-2, #24252b) 50%, var(--bg-3) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s infinite linear;
}
.top10 .pst.noart { display: grid; place-items: center; padding: 10px; text-align: center; font-size: 13px; font-weight: 600; background-image: linear-gradient(160deg, #2a2a35, #121218) !important; }
.top10 .pst.noart::after { content: attr(data-art); }
.netnote {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px;
  background: var(--flade-2, #24252b); color: var(--fg); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: fadein .25s ease;
}
.netnote button {
  flex: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  background: var(--fg); color: var(--bg); font: inherit; font-weight: 600;
}
@media (max-width: 760px) { .netnote { bottom: 76px; } }
.top10 .card.skeleton { width: var(--card-w); background: linear-gradient(100deg, var(--bg-3) 30%, var(--flade-2, #24252b) 50%, var(--bg-3) 70%) 0 0 / 300% 100% !important; border-radius: var(--card-r); }
@media (prefers-reduced-motion: reduce) { .hero:empty, .skel-line, .skel-block { animation: none; } }

/* Spring intro over og næste afsnit i afspilleren */
.fs-skip { position: absolute; right: clamp(16px, 3vw, 44px); bottom: 130px; z-index: 12; display: flex; gap: 8px; align-items: stretch; }
.fs-skip[hidden] { display: none; }
.fs-skip button { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.fs-skip-go { background: var(--kertelys); color: #1a0f07; box-shadow: 0 6px 26px rgba(var(--fs-lys), .38); }
.fs-skip-go:hover { background: var(--fs-tændt); }
.fs-skip-always { background: var(--fs-glas); color: #fff; box-shadow: inset 0 0 0 1px var(--fs-kant); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.fs-skip-always:hover { background: rgba(var(--fs-lys), .28); }
.fs-skip-always.on { color: var(--kertelys); }
.fs.err .fs-skip, .fs.err .fs-upnext { display: none; }
/* Undertekstmenuen står samme sted: kortene viger, så længe den er åben */
.fs:has(.fs-menu:not([hidden])) :is(.fs-skip, .fs-upnext) { visibility: hidden; }
.fs-upnext { z-index: 12; }
.fs-upnext-stay { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.fs-upnext-stay:hover { color: #fff; }
.fs-upnext-stay[hidden] { display: none; }
@media (max-width: 640px) {
  .fs-skip { right: 16px; bottom: 112px; }
  .fs-skip button { height: 40px; padding: 0 14px; font-size: 13px; }
}
