/* ============================================================
   Norway Live (NLTV) — Design System
   "Calm & cinematic public-broadcaster"
   ------------------------------------------------------------
   Tokens first, then base, layout, components.
   Red is reserved EXCLUSIVELY for the LIVE signal.
   ============================================================ */

/* ---- Fonts (self-hosted — Google Fonts @import is blocked by our CSP) ---- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;            /* variable weight axis */
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ---- */
:root {
  /* Surfaces — deep, slightly-warm slate-black (not flat navy) */
  --bg:            oklch(0.17 0.018 248);
  --bg-2:          oklch(0.205 0.018 248);
  --surface:       oklch(0.235 0.017 248);
  --surface-2:     oklch(0.275 0.016 248);
  --line:          oklch(1 0 0 / 0.09);
  --line-strong:   oklch(1 0 0 / 0.16);

  /* Text */
  --ink:           oklch(0.98 0.004 250);
  --ink-soft:      oklch(0.82 0.008 250);
  --ink-mute:      oklch(0.66 0.012 250);
  --ink-faint:     oklch(0.55 0.012 250);

  /* LIVE — the one red. Do not use for anything else. */
  --live:          oklch(0.60 0.224 26);
  --live-glow:     oklch(0.60 0.224 26 / 0.55);

  /* Warm accent — hygge gold for CTAs / hovers */
  --warm:          oklch(0.84 0.094 78);
  --warm-soft:     oklch(0.84 0.094 78 / 0.14);

  /* Radii & shadow */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow:    0 2px 8px oklch(0 0 0 / 0.25);
  --shadow-lg: 0 24px 60px -18px oklch(0 0 0 / 0.7);

  /* Spacing scale (8px base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }

/* Skip-to-content link — visually hidden until keyboard-focused */
.skip-link {
  position: fixed; left: var(--s4); top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s4); outline: 2px solid var(--live); outline-offset: 2px; }
main:focus { outline: none; }

/* (Former serif accent removed — type is now one uniform family/treatment.) */
.serif { font-family: inherit; font-style: normal; }

/* ============================================================
   LIVE badge — the signature red signal
   ============================================================ */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--live);
  padding: 5px 10px 5px 9px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.12) inset, 0 6px 18px -6px var(--live-glow);
}
.live-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 oklch(1 0 0 / 0.9);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(1 0 0 / 0.7); }
  70%  { box-shadow: 0 0 0 7px oklch(1 0 0 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(1 0 0 / 0); }
}
.live-badge.sm { font-size: 9.5px; padding: 3px 7px; gap: 5px; }
.live-badge.sm .dot { width: 5px; height: 5px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.17 0.018 248 / 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s5);
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.brand .word span { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: var(--s4); }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: oklch(1 0 0 / 0.05); }
.nav a.active { color: var(--ink); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 3px; gap: 2px;
}
.lang-toggle button {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: 999px; color: var(--ink-mute);
  transition: color 0.2s, background 0.2s;
}
.lang-toggle button.on { background: var(--ink); color: var(--bg); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-mute); background: oklch(1 0 0 / 0.04); }
.icon-btn svg { width: 18px; height: 18px; }

.burger { display: none; }

/* ============================================================
   Search overlay
   ============================================================ */
.search-overlay { position: fixed; inset: 0; z-index: 60; display: none; }
.search-overlay.open { display: block; }
.search-overlay .sr-scrim { position: absolute; inset: 0; background: oklch(0 0 0 / 0.62); backdrop-filter: blur(6px); }
.search-panel {
  position: relative; width: min(640px, calc(100% - 32px)); margin: 9vh auto 0;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: srpop 0.22s var(--ease);
}
@keyframes srpop { from { opacity: 0; transform: translateY(-10px); } }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-box > svg { width: 20px; height: 20px; color: var(--ink-mute); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 17px; }
.search-box input::placeholder { color: var(--ink-faint); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .sr-close { width: 34px; height: 34px; flex-shrink: 0; }
.search-box .sr-close svg { width: 16px; height: 16px; }
.search-results { max-height: min(60vh, 540px); overflow-y: auto; padding: 8px; }
.sr-item { display: grid; grid-template-columns: 68px 1fr; gap: 12px; padding: 8px; border-radius: var(--r-sm); align-items: center; }
.sr-item:hover, .sr-item.active { background: var(--surface); }
.sr-thumb { position: relative; aspect-ratio: 16/10; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-meta { min-width: 0; }
.sr-meta h4 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta p { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.sr-empty { padding: 32px 20px; text-align: center; color: var(--ink-mute); font-size: 15px; }

/* drawer search trigger (mobile) */
.drawer-search { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--ink-soft); padding: 0; }
.drawer-search svg { width: 20px; height: 20px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px oklch(1 0 0 / 0.35); }
.btn-warm { background: var(--warm); color: oklch(0.22 0.03 70); }
.btn-warm:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--warm); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-mute); background: oklch(1 0 0 / 0.05); }

/* ============================================================
   Hero — cinematic featured live feed
   ============================================================ */
.hero {
  position: relative; margin-top: var(--s5);
}
.hero-stage {
  display: block;
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 7; min-height: 420px;
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);   /* fallback fill if the image is slow/missing */
}
/* Stacking is explicit & positive — never negative z-index. A transformed,
   negative-z-index child inside an isolated/clipped/rounded box renders
   *behind* the stage in WebKit (Safari), which blanked out the hero image. */
.hero-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.04);
  transition: transform 8s linear;
}
.hero:hover .hero-stage img { transform: scale(1.1); }
.hero-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, oklch(0.14 0.02 248 / 0.95) 0%, oklch(0.14 0.02 248 / 0.2) 45%, oklch(0.14 0.02 248 / 0) 70%),
    linear-gradient(to right, oklch(0.14 0.02 248 / 0.7) 0%, oklch(0.14 0.02 248 / 0) 55%);
}
.hero-content {
  position: absolute; left: 0; bottom: 0; padding: var(--s7);
  max-width: 640px; z-index: 2;
}
.hero-meta { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.hero-meta .place { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; }
.hero p { margin-top: var(--s4); font-size: 17px; color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.viewers { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-mute); }
.viewers svg { width: 15px; height: 15px; }

/* ============================================================
   Section header
   ============================================================ */
.section { margin-top: var(--s9); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s6);
}
.section-head .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head .lead { color: var(--ink-mute); font-size: 15px; margin-top: 8px; max-width: 46ch; }
.see-all {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.see-all:hover { color: var(--ink); border-color: var(--ink); }
.see-all svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.see-all:hover svg { transform: translateX(3px); }

/* ============================================================
   Channel cards (live grid)
   ============================================================ */
.grid {
  display: grid; gap: var(--s5);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease);
  display: block;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.235 0.017 248) 1%, oklch(0.235 0.017 248 / 0) 40%);
}
.card .live-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card-viewers {
  position: absolute; top: 14px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: oklch(0.12 0.02 248 / 0.55); backdrop-filter: blur(6px);
  padding: 4px 7px 4px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.card-viewers svg { width: 13px; height: 13px; opacity: 0.92; }
.card-viewers .d {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
  color: oklch(1 0 0 / 0.62); padding: 2px 6px; border-radius: 999px;
  background: oklch(1 0 0 / 0.12);
}
.card-body { padding: var(--s4) var(--s5) var(--s5); }
.card-body h3 { font-size: 20px; font-weight: 700; }
.card-body p {
  margin-top: 8px; font-size: 14.5px; color: var(--ink-mute); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-end;
}
.card-foot .go { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.card-foot .go svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.card:hover .card-foot .go svg { transform: translateX(4px); }
.card-foot .place { font-size: 13px; color: var(--ink-faint); }

/* ============================================================
   Rail — horizontal scroll row (ski resorts)
   ============================================================ */
.rail-outer { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 248px;
  gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s3); margin: 0 calc(-1 * var(--s5)); padding-inline: var(--s5);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; }
.tile-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.07); }
.tile-media .live-badge { position: absolute; top: 9px; left: 9px; }
.tile-media::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, oklch(0.14 0.02 248 / 0.5), transparent 50%); }
.tile h4 { margin-top: 11px; font-size: 15px; font-weight: 600; }
.tile .sub { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.rail-btn {
  position: absolute; top: calc(50% - 34px); transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 999px;
  background: oklch(0.18 0.02 248 / 0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--ink);
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.rail-btn:hover { background: var(--surface-2); }
.rail-btn.prev { left: -10px; }
.rail-btn.next { right: -10px; }
.rail-btn svg { width: 20px; height: 20px; }

/* ============================================================
   Strip / mini features (Fyr til fyr style)
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s7); align-items: center;
  background: linear-gradient(135deg, var(--bg-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.feature-media { position: relative; aspect-ratio: 4/3; height: 100%; min-height: 360px; }
.feature-media img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.feature-media .live-badge { position: absolute; top: 18px; left: 18px; }
.feature-body { padding: var(--s7) var(--s7) var(--s7) 0; }
.feature-body .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.feature-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 12px; }
.feature-body p { color: var(--ink-soft); font-size: 16px; margin-top: var(--s4); }
.feature-body .actions { margin-top: var(--s6); display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: var(--s9); border-top: 1px solid var(--line);
  background: var(--bg-2); padding: var(--s8) 0 var(--s6);
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.footer-brand .tagline { font-size: 22px; color: var(--ink-soft); margin-top: var(--s4); max-width: 28ch; }
.footer-brand img { height: 30px; margin-bottom: var(--s2); }
.footer-col h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: var(--s4); }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: var(--ink-mute); padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  font-size: 13px; color: var(--ink-faint); flex-wrap: wrap;
}

/* ============================================================
   Player page
   ============================================================ */
.player-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: var(--s6);
  margin-top: var(--s5); align-items: start;
}
.player-stage {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow-lg);
}
.player-stage > img { width: 100%; height: 100%; object-fit: cover; }
.player-stage .live-badge { position: absolute; top: 16px; left: 16px; z-index: 3; }
.player-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, oklch(0 0 0 / 0.55), transparent 28%);
}
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5);
}
.player-bar .ctrl { width: 40px; height: 40px; border-radius: 999px; display:grid; place-items:center; color:#fff; background: oklch(1 0 0 / 0.1); backdrop-filter: blur(6px); transition: background 0.2s; }
.player-bar .ctrl:hover { background: oklch(1 0 0 / 0.22); }
.player-bar .ctrl svg { width: 18px; height: 18px; }
.player-bar .scrub { flex: 1; height: 4px; border-radius: 999px; background: oklch(1 0 0 / 0.25); position: relative; }
.player-bar .scrub::before { content:''; position:absolute; left:0; top:0; bottom:0; width: 100%; background: var(--live); border-radius: 999px; }
.player-bar .ts { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; display: inline-flex; align-items:center; gap:7px; }

.player-info { margin-top: var(--s5); }
.player-info .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.player-info h1 { font-size: clamp(26px, 3vw, 36px); }
.player-info .place { color: var(--ink-mute); margin-top: 8px; font-size: 15px; display:flex; align-items:center; gap:8px; }
.player-info .place svg { width: 16px; height: 16px; }
.player-actions { display: flex; gap: var(--s2); align-items: center; }
.views30 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 9px 7px 13px; font-variant-numeric: tabular-nums;
}
.views30 svg { width: 14px; height: 14px; opacity: 0.85; }
.views30 b { color: var(--ink); font-weight: 700; }
.views30 .d {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; color: var(--ink-mute);
  background: oklch(1 0 0 / 0.08); padding: 3px 7px; border-radius: 999px;
}
.chip { display:inline-flex; align-items:center; gap:8px; padding: 9px 16px; border-radius: 999px; border:1px solid var(--line-strong); font-size:14px; font-weight:500; color: var(--ink-soft); transition: border-color .2s, color .2s, background .2s; }
.chip:hover { color: var(--ink); border-color: var(--ink-mute); background: oklch(1 0 0 /0.04); }
.chip svg { width: 16px; height: 16px; }
.player-desc { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 16px; max-width: 70ch; }

.sidebar h3 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--s4); }
.side-item { display: grid; grid-template-columns: 132px 1fr; gap: var(--s3); padding: var(--s2); border-radius: var(--r-sm); transition: background 0.2s; }
.side-item:hover { background: var(--surface); }
.side-item.current { background: var(--surface); outline: 1px solid var(--line-strong); }
.side-thumb { position: relative; aspect-ratio: 16/10; border-radius: 7px; overflow: hidden; }
.side-thumb img { width:100%; height:100%; object-fit: cover; }
.side-thumb .live-badge { position: absolute; top: 6px; left: 6px; }
.side-meta { align-self: center; }
.side-meta h4 { font-size: 15px; font-weight: 600; }
.side-meta p { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.side-meta .v { font-size: 12px; color: var(--ink-mute); margin-top: 5px; display:flex; align-items:center; gap:6px; }
.side-meta .v svg { width: 12px; height: 12px; }
.side-meta .v b { color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.side-meta .v .d30 { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-faint); background: oklch(1 0 0 / 0.07); padding: 2px 5px; border-radius: 999px; }

/* ============================================================
   Interior pages — shared
   ============================================================ */
.page { padding-top: var(--s7); }
.page-head {
  margin-bottom: var(--s7); padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}
.page-head h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; }
.page-head .lead { color: var(--ink-soft); font-size: 18px; margin-top: var(--s4); max-width: 62ch; }

/* Neutral (non-live) tag */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); background: oklch(0.12 0.02 248 / 0.55); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 6px;
}

/* Image placeholder (developer drops the real frame here) */
.img-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, oklch(1 0 0 / 0.025) 0 2px, transparent 2px 11px);
}
.img-ph span { position: relative; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   Prose — editorial body type (info pages + article blocks)
   ============================================================ */
.prose { max-width: 70ch; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.prose section { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 var(--s4); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--ink); margin: var(--s7) 0 var(--s4); letter-spacing: -0.02em; }
.prose h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin: var(--s6) 0 var(--s3); }
.prose h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin: var(--s5) 0 var(--s2); text-transform: uppercase; letter-spacing: 0.04em; }
.prose a { color: var(--warm); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: oklch(0.84 0.094 78 / 0.45); transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--warm); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: 1.4em; }
.prose li { margin-bottom: var(--s2); padding-left: 0.2em; }
.prose li::marker { color: var(--ink-faint); }
.prose ul li { list-style-type: disc; }
/* Quill 2 emits bullet lists as <ol><li data-list="bullet"> — keep them bulleted. */
.prose ol li[data-list="bullet"] { list-style-type: disc; }
.prose blockquote { margin: var(--s5) 0; padding: var(--s2) 0 var(--s2) var(--s5); border-left: 3px solid var(--warm); color: var(--ink); font-style: italic; }
.prose figure { margin: var(--s5) 0; }
.prose figure img { width: 100%; border-radius: var(--r); display: block; }
.prose figcaption { margin-top: var(--s2); font-size: 13.5px; color: var(--ink-faint); text-align: center; }
.prose img { border-radius: var(--r); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: var(--s6) 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: var(--r-sm); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); overflow-x: auto; margin: var(--s5) 0; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s5) 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* ============================================================
   Article — single story (hero + typed content blocks)
   ============================================================ */
.article { max-width: 760px; margin-inline: auto; }
.article-head { margin-bottom: var(--s6); }
.article-kicker { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 13px; color: var(--ink-mute); }
.article-kicker time { color: var(--ink-faint); }
.article-kicker .tag { text-decoration: none; }
.article-head h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; margin-top: var(--s4); letter-spacing: -0.025em; }
.article-lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); line-height: 1.5; margin-top: var(--s4); }
.article-byline { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); }
.article-hero { margin: var(--s6) 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-body { max-width: none; }
.article-body > * + * { margin-top: var(--s5); }

/* Content blocks */
.blk-rich > :first-child { margin-top: 0; }
.blk-h { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-top: var(--s2); }
.blk-image { margin: var(--s6) 0; }
.blk-image img { width: 100%; border-radius: var(--r); display: block; }
.blk-image figcaption { margin-top: var(--s2); font-size: 13.5px; color: var(--ink-faint); text-align: center; }
.blk-image.w-wide { margin-inline: calc(-1 * var(--s7)); }
.blk-image.w-full { width: min(94vw, 1080px); position: relative; left: 50%; transform: translateX(-50%); }
.blk-image.w-full img, .blk-image.w-wide img { border-radius: var(--r-lg); }
.blk-quote { margin: var(--s7) 0; padding: 0 0 0 var(--s5); border-left: 3px solid var(--warm); }
.blk-quote p { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; font-weight: 600; color: var(--ink); font-style: normal; }
.blk-quote cite { display: block; margin-top: var(--s3); font-size: 14px; font-style: normal; color: var(--ink-mute); }
.blk-video { width: min(94vw, 1080px); position: relative; left: 50%; transform: translateX(-50%); aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.blk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-cta { margin: var(--s6) 0; display: flex; justify-content: center; }
.blk-divider { border: 0; height: 1px; background: var(--line); margin: var(--s7) 0; }
.card-date { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
@media (max-width: 760px) {
  .blk-image.w-wide { margin-inline: 0; }
}

/* Arkivet — discontinued-channel cards (display-only, not links) */
.arch-card { cursor: default; }
.arch-card:hover { transform: none; border-color: var(--line); box-shadow: none; }
.arch-card .card-media img { filter: grayscale(0.35) brightness(0.92); }
.arch-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: oklch(1 0 0 / 0.14); color: var(--ink); backdrop-filter: blur(4px); }

/* Archive grid */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.arch-desc { margin-top: 10px; font-size: 14.5px; color: var(--ink-mute); line-height: 1.55; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s8); align-items: start; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.info-card { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); background: var(--bg-2); }
.info-card .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.info-card .val { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.info-card a.val:hover { color: var(--ink-soft); }
.contact-intro { color: var(--ink-soft); font-size: 17px; margin-bottom: var(--s6); max-width: 46ch; }

.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field .req { color: var(--ink-faint); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink-mute); background: var(--surface-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--ink-mute); }
.consent input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 1px; }

/* Empty state (Aktuelt) */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  padding: var(--s8); text-align: center; background: var(--bg-2);
}
.empty .ico { width: 52px; height: 52px; margin: 0 auto var(--s4); color: var(--ink-faint); }
.empty .ico svg { width: 100%; height: 100%; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--ink-mute); margin-top: 12px; font-size: 16px; max-width: 44ch; margin-inline: auto; }

/* Full ski grid */
.ski-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }

@media (max-width: 1080px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .ski-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .archive-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .ski-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .page { padding-top: var(--s5); }
}
@media (max-width: 440px) {
  .ski-grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }
}

/* ============================================================
   Language visibility
   ============================================================ */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-no] { display: none; }
html[lang="en"] [data-lang-en] { display: revert; }

/* ============================================================
   Mobile nav drawer
   ============================================================ */
.mobile-drawer { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .player-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s5); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: var(--s4); }
  .nav, .lang-toggle, .header-right .icon-btn.search, .header-right .icon-btn.login { display: none; }
  .burger { display: grid; }
  .hero-stage { aspect-ratio: auto; min-height: 460px; }
  .hero-content { padding: var(--s5); }
  .grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 240px; aspect-ratio: 16/10; }
  .feature-body { padding: var(--s6) var(--s5) var(--s6); }
  .section { margin-top: var(--s8); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .rail-btn { display: none; }
  .section-head { flex-wrap: wrap; }

  /* mobile drawer */
  .mobile-drawer {
    position: fixed; inset: 0; z-index: 100; display: block;
    background: oklch(0.15 0.02 248 / 0.6); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .mobile-drawer.open { opacity: 1; visibility: visible; }
  .mobile-drawer .panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
    background: var(--bg-2); border-left: 1px solid var(--line);
    padding: var(--s5); transform: translateX(100%); transition: transform 0.35s var(--ease);
    display: flex; flex-direction: column; gap: var(--s2);
  }
  .mobile-drawer.open .panel { transform: translateX(0); }
  .mobile-drawer .panel .top { display:flex; justify-content: space-between; align-items:center; margin-bottom: var(--s4); }
  .mobile-drawer .panel a { font-size: 18px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-drawer .panel .lang-toggle { display: inline-flex; margin-top: var(--s5); align-self: flex-start; }
}
@media (max-width: 440px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ── Cookie consent banner (shown only when GA is configured in admin) ── */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -18px 40px -20px oklch(0 0 0 / 0.6);
  opacity: 0; transform: translateY(12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.consent-banner.open { opacity: 1; transform: translateY(0); }
.consent-inner {
  max-width: 980px; margin: 0 auto; display: flex; align-items: center;
  gap: var(--s4); flex-wrap: wrap;
}
.consent-inner p { flex: 1 1 380px; margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.consent-inner p a { color: var(--warm); text-decoration: underline; }
.consent-actions { display: flex; gap: var(--s2); }
.consent-actions .btn { border: 1px solid var(--line-strong); }
.footer-legal a { color: var(--ink-mute); }
.footer-legal a:hover { color: var(--ink); }
