/* AfD TV – Grundlayout. Farben: Dunkelblau (Fläche), AfD-Blau #009EE0 (Bedienung, Token --cyan), AfD-Rot #E30613 (Marke/Fortschritt, Token --red) */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --navy-950: #050814;
  --navy-900: #080d1f;
  --navy-850: #0c1330;
  --navy-800: #111a3d;
  --navy-700: #1b2654;
  --navy-600: #2a3870;
  --cyan: #009ee0;
  --cyan-strong: #0079b0;
  --cyan-soft: rgba(0, 158, 224, 0.14);
  --red: #e30613;
  --red-strong: #b8050f;
  --text: #eef3ff;
  --text-2: #b6c1dd;
  --text-3: #7d8aad;
  --line: rgba(173, 192, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --gutter: clamp(16px, 4vw, 60px);
  --radius: 6px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Versteckt heißt versteckt – auch wenn eine Komponente selbst display setzt (z. B. Fernseher-Anzeige im Player) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  user-select: none;
}
.logo-img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.site-footer .logo-img { height: 32px; }
.logo .bad { color: var(--red); text-shadow: 0 0 18px rgba(227, 6, 19, 0.35); }
.logo .flix { color: var(--cyan); text-shadow: 0 0 18px rgba(0, 158, 224, 0.3); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 68px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.85) 0%, rgba(5, 8, 20, 0) 100%);
  transition: background-color 0.4s;
}
.site-header.solid { background-color: var(--navy-950); }
.main-nav { display: flex; gap: 22px; font-size: 14px; }
.main-nav a { color: var(--text-2); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); font-weight: 700; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.search-box {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.search-box button { width: 36px; height: 36px; display: grid; place-items: center; }
.search-box input {
  width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: width 0.35s var(--ease), padding 0.35s;
}
.search-box.open { border-color: rgba(238, 243, 255, 0.7); background: rgba(5, 8, 20, 0.75); }
.search-box.open input { width: 220px; padding-right: 10px; }
.search-box input::placeholder { color: var(--text-3); }
.header-icon-link { display: grid; place-items: center; width: 36px; height: 36px; }

.mobile-nav { display: none; }

/* ---------- Titelbild (Hero) ---------- */
.hero {
  position: relative;
  height: min(56.25vw, 88vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video { opacity: 0; transition: opacity 1s; }
.hero-media.playing video { opacity: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s 0.9s;
}
.hero-slide.active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease), visibility 0s; z-index: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(77deg, rgba(5, 8, 20, 0.92) 0%, rgba(8, 13, 31, 0.55) 38%, rgba(8, 13, 31, 0) 70%),
    linear-gradient(180deg, rgba(8, 13, 31, 0) 62%, var(--navy-900) 100%);
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 96px;
  bottom: calc(9vw + 56px);
  width: min(46%, 660px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-kicker .mark { height: 26px; width: auto; }
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.4vw, 6rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  transition: font-size 0.8s var(--ease);
}
.hero-tagline { margin: 18px 0 0; font-size: clamp(1rem, 1.4vw, 1.3rem); font-weight: 600; }
.hero-description {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.8s, max-height 0.8s;
  max-height: 6em;
}
.hero-title.long { font-size: clamp(2.4rem, 4.2vw, 4.6rem); }
.hero.compact .hero-description { opacity: 0; max-height: 0; }
.hero.compact .hero-title { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-side {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(9vw + 110px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 255, 0.6);
  background: rgba(5, 8, 20, 0.3);
  transition: border-color 0.2s, background-color 0.2s;
}
.round-btn:hover { border-color: var(--text); background: rgba(238, 243, 255, 0.12); }
.age-strip {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 44px 0 12px;
  border-left: 3px solid var(--cyan);
  background: rgba(27, 38, 84, 0.6);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px 0 20px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 26px; height: 26px; }
.btn-primary { background: var(--cyan); color: var(--navy-950); }
.btn-primary:hover { background: #33b8ec; }
.btn-secondary { background: rgba(125, 138, 173, 0.38); color: var(--text); backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(125, 138, 173, 0.26); }
.btn-small { height: 38px; font-size: 15px; padding: 0 18px 0 14px; }

/* ---------- Reihen ---------- */
.rows { position: relative; z-index: 3; margin-top: -9vw; padding-bottom: 60px; }
.rows.no-hero { margin-top: 0; padding-top: 110px; }
.row { margin-bottom: 3.2vw; }
.row-title {
  margin: 0 var(--gutter) 10px;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.row-title .count { color: var(--text-3); font-size: 0.7em; font-weight: 600; }
.row-viewport { position: relative; }
.row-track {
  --per-row: 6;
  --gap: 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gutter) - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
  gap: var(--gap);
  padding: 4px var(--gutter);
  scroll-padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row-arrow {
  position: absolute;
  top: 4px;
  bottom: 4px;
  z-index: 4;
  width: calc(var(--gutter) - 6px);
  display: grid;
  place-items: center;
  background: rgba(5, 8, 20, 0.55);
  opacity: 0;
  transition: opacity 0.25s, background-color 0.2s;
}
.row-arrow .icon { width: 32px; height: 32px; transition: transform 0.2s; }
.row-arrow:hover { background: rgba(5, 8, 20, 0.8); }
.row-arrow:hover .icon { transform: scale(1.25); }
.row-arrow.prev { left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.row-arrow.next { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.row-viewport:hover .row-arrow:not([hidden]) { opacity: 1; }

/* ---------- Karten ---------- */
.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  text-align: left;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card-label {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.9));
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 8px;
  border-radius: 0 0 0 var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.card-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 3px;
  background: rgba(238, 243, 255, 0.3);
}
.card-progress span { display: block; height: 100%; background: var(--red); }
.card:has(.card-progress) .card-label { padding-bottom: 18px; }
.card:hover img { transform: scale(1.04); }

/* ---------- Vorschau beim Überfahren ---------- */
.preview-pop {
  position: absolute;
  z-index: 60;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-850);
  box-shadow: var(--shadow);
  transform-origin: center;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease);
}
.preview-pop.visible { opacity: 1; transform: scale(1); }
.preview-pop.origin-left { transform-origin: left center; }
.preview-pop.origin-right { transform-origin: right center; }
.preview-media { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.preview-media img, .preview-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-media video { opacity: 0; transition: opacity 0.5s; }
.preview-media video.ready { opacity: 1; }
.preview-media .card-label { font-size: 1.4rem; }
.preview-mute { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; }
.preview-info { padding: 14px 16px 18px; }
.preview-actions { display: flex; align-items: center; gap: 8px; }
.preview-actions .round-btn { width: 36px; height: 36px; background: rgba(8, 13, 31, 0.6); }
.preview-actions .round-btn.play { background: var(--cyan); border-color: var(--cyan); color: var(--navy-950); }
.preview-actions .round-btn.play:hover { background: #33b8ec; }
.preview-actions .round-btn.more { margin-left: auto; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.meta-line .new { color: var(--cyan); font-weight: 800; }
.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(238, 243, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.tag-line { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 13px; }
.tag-line span + span::before { content: '•'; margin-right: 10px; color: var(--text-3); }

/* ---------- Detailfenster ---------- */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  background: rgba(3, 5, 12, 0.72);
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-layer.visible { opacity: 1; }
.modal {
  position: relative;
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-850);
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.modal-layer.visible .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-950);
}
.modal-hero { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-hero img, .modal-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-hero video { opacity: 0; transition: opacity 0.8s; }
.modal-hero.playing video { opacity: 1; }
.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 19, 48, 0) 45%, var(--navy-850) 100%);
  pointer-events: none;
}
.modal-hero-content { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 36px; }
.modal-title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 70%;
}
.modal-hero-actions { display: flex; align-items: center; gap: 10px; }
.modal-hero-actions .round-btn.mute { margin-left: auto; }
.modal-body { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding: 4px 48px 32px; }
.modal-body .meta-line { margin-top: 0; }
.modal-tagline { margin: 14px 0 8px; font-weight: 700; font-size: 1.1rem; }
.modal-description { margin: 0; color: var(--text-2); white-space: pre-line; }
.modal-facts { font-size: 14px; color: var(--text-3); }
.modal-facts p { margin: 0 0 10px; }
.modal-facts strong { color: var(--text-2); font-weight: 600; }
.modal-section { padding: 0 48px 44px; }
.modal-section h3 { margin: 0 0 16px; font-size: 1.4rem; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.similar-item { border-radius: var(--radius); overflow: hidden; background: var(--navy-800); cursor: pointer; text-align: left; }
.similar-item .card { border-radius: 0; }
.similar-item-body { padding: 12px 14px 16px; }
.similar-item-body .meta-line { margin-top: 0; justify-content: space-between; }
.similar-item-body p { margin: 10px 0 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Rasteransichten (Neu, Meine Liste, Suche) ---------- */
.page { padding: 110px var(--gutter) 60px; min-height: 80vh; }
.page-title { margin: 0 0 24px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; }
.page-title small { display: block; margin-top: 4px; color: var(--text-3); font-size: 1rem; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 8px; }
.empty {
  max-width: 520px;
  margin: 8vh auto;
  text-align: center;
  color: var(--text-2);
}
.empty h2 { margin: 0 0 8px; color: var(--text); }
.empty .btn { margin-top: 20px; }

/* ---------- Player ---------- */
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  cursor: none;
  user-select: none;
}
.player.show-ui { cursor: default; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-ui { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.player.show-ui .player-ui, .player.paused .player-ui { opacity: 1; }
.player.show-ui .player-ui > *, .player.paused .player-ui > * { pointer-events: auto; }
.player-top {
  position: absolute;
  inset: 0 0 auto;
  padding: 22px 28px 60px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}
.player-top .back { display: grid; place-items: center; width: 44px; height: 44px; }
.player-top .back .icon { width: 34px; height: 34px; }
.player-bottom {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 28px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
}
.scrub { position: relative; display: flex; align-items: center; gap: 16px; }
.scrub-bar { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.scrub-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(238, 243, 255, 0.25);
  transition: height 0.15s;
}
.scrub-bar:hover .scrub-rail, .scrub-bar.dragging .scrub-rail { height: 7px; }
.scrub-buffer, .scrub-fill { position: absolute; inset: 0 auto 0 0; }
.scrub-buffer { background: rgba(238, 243, 255, 0.35); }
.scrub-fill { background: var(--red); }
.scrub-knob {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.25);
  transform: translateY(-50%) scale(0.8);
  transition: transform 0.15s;
}
.scrub-bar:hover .scrub-knob, .scrub-bar.dragging .scrub-knob { transform: translateY(-50%) scale(1.15); }
.scrub-tip {
  position: absolute;
  bottom: 26px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.scrub-bar:hover .scrub-tip, .scrub-bar.dragging .scrub-tip { opacity: 1; }
.scrub-time { font-size: 15px; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.controls { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.ctl { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; transition: transform 0.15s, background-color 0.2s; }
.ctl .icon { width: 34px; height: 34px; }
.ctl:hover { transform: scale(1.15); }
.controls .now-playing { flex: 1; min-width: 0; text-align: center; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 16px; }
.controls .now-playing span { color: var(--text-2); font-weight: 500; }
.volume { display: flex; align-items: center; }
.volume input { width: 0; opacity: 0; transition: width 0.25s, opacity 0.25s; accent-color: var(--cyan); }
.volume:hover input, .volume:focus-within input { width: 100px; opacity: 1; }
.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(238, 243, 255, 0.2);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
  display: none;
}
.player.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.flash {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 20, 0.55);
  animation: flash 0.6s var(--ease) forwards;
}
.flash .icon { width: 44px; height: 44px; }
@keyframes flash { from { opacity: 1; transform: scale(0.8); } to { opacity: 0; transform: scale(1.4); } }
.up-next {
  position: absolute;
  right: 28px;
  bottom: 150px;
  width: min(380px, calc(100% - 56px));
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-850);
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.up-next-body { padding: 14px 16px 16px; }
.up-next-body small { color: var(--text-3); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.up-next-body h4 { margin: 4px 0 12px; font-size: 1.1rem; }
.up-next-actions { display: flex; gap: 8px; }
.up-next .countdown { position: absolute; left: 0; top: 0; height: 3px; background: var(--red); }
.player-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }

/* ---------- Fußzeile ---------- */
.site-footer {
  padding: 40px var(--gutter) 50px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.site-footer .logo { font-size: 22px; margin-right: 10px; }
.site-footer a:hover { color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--navy-700);
  border-left: 3px solid var(--cyan);
  box-shadow: var(--shadow);
  font-weight: 600;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Anpassung an Bildschirmbreiten ---------- */
@media (max-width: 1400px) { .row-track { --per-row: 5; } }
@media (max-width: 1100px) { .row-track { --per-row: 4; } .hero-content { width: 52%; } }
@media (max-width: 800px) {
  .row-track { --per-row: 3; }
  .main-nav { display: none; }
  .mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 49;
    display: flex;
    gap: 8px;
    padding: 6px var(--gutter) 10px;
    overflow-x: auto;
    scrollbar-width: none;
    transition: background-color 0.4s;
  }
  .mobile-nav.solid { background: var(--navy-950); }
  .mobile-nav a {
    flex: none;
    padding: 5px 14px;
    border: 1px solid rgba(238, 243, 255, 0.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(5, 8, 20, 0.35);
  }
  .mobile-nav a.active { background: var(--text); color: var(--navy-950); border-color: var(--text); }
  .page { padding-top: 130px; }
  .rows.no-hero { padding-top: 130px; }
  .search-box.open input { width: 150px; }
  .modal-body { grid-template-columns: 1fr; gap: 16px; padding: 4px 24px 24px; }
  .modal-hero-content { left: 24px; right: 24px; bottom: 20px; }
  .modal-section { padding: 0 24px 32px; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-header { height: 60px; gap: 16px; }
  .logo { font-size: 28px; }
  .logo-img { height: 36px; max-width: 130px; }
  .mobile-nav { top: 60px; }
  .row-track { --per-row: 2.3; --gap: 6px; scroll-snap-type: x proximity; }
  .row-arrow { display: none; }
  .hero { height: 78vh; min-height: 480px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(8, 13, 31, 0.2) 0%, rgba(8, 13, 31, 0) 30%, rgba(8, 13, 31, 0.85) 72%, var(--navy-900) 100%);
  }
  .hero-content { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 64px; text-align: center; align-items: stretch; }
  .hero-description { display: none; }
  .hero-kicker { align-self: center; }
  .hero-actions { justify-content: center; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 0 16px 0 12px; font-size: 16px; }
  .hero-actions .btn { flex: 1; max-width: 180px; }
  .hero-side { display: none; }
  .rows { margin-top: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 6px; }
  .modal { width: 100%; margin: 0; border-radius: 0; min-height: 100vh; }
  .modal-title { max-width: 100%; font-size: 2.2rem; margin-bottom: 14px; }
  .similar-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .similar-item-body p { display: none; }
  .player-top { padding: 14px 12px 40px; }
  .player-bottom { padding: 40px 12px 12px; }
  .controls { gap: 0; }
  .ctl { width: 44px; height: 44px; }
  .ctl .icon { width: 28px; height: 28px; }
  .controls .now-playing { font-size: 14px; padding: 0 6px; }
  .controls .now-playing span, .volume input { display: none; }
  .site-footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .row-track { scroll-behavior: auto; }
}

/* ---------- Titelbild-Slider ---------- */
.hero-controls {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: calc(9vw + 28px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-dots { display: flex; gap: 6px; }
.hero-dot { width: 26px; height: 18px; display: grid; align-items: center; }
.hero-dot span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--text) 50%, rgba(238, 243, 255, 0.35) 50%) right / 200% 100% no-repeat;
  transition: height 0.2s;
}
.hero-dot:hover span { height: 5px; }
.hero-dot.active span { animation: hero-progress var(--hero-seconds, 10s) linear forwards; }
.hero.paused .hero-dot.active span, .hero.static .hero-dot.active span { animation-play-state: paused; }
.hero.static .hero-dot.active span { background-position: left; animation: none; }
@keyframes hero-progress { from { background-position: right; } to { background-position: left; } }
.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 40%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 20, 0.45);
  opacity: 0;
  transition: opacity 0.25s, background-color 0.2s;
}
.hero-arrow .icon { width: 30px; height: 30px; }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(5, 8, 20, 0.8); }
.hero-controls .round-btn { background: rgba(5, 8, 20, 0.45); }
@media (hover: none) { .hero-arrow { display: none; } }
@media (max-width: 640px) {
  .hero-controls { left: 0; right: 0; bottom: 22px; justify-content: center; }
  .hero-controls .round-btn { position: absolute; right: var(--gutter); width: 34px; height: 34px; }
  .hero-content { bottom: 70px; }
}

/* ---------- App installieren ---------- */
.install-banner {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 20px;
  width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  box-shadow: var(--shadow);
  transform: translate(-50%, 30px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.install-banner.visible { opacity: 1; transform: translate(-50%, 0); }
.install-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-950); }
.install-text { display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.install-text strong { color: var(--text); font-size: 15px; }
.install-steps { margin: 2px 0 0; padding-left: 18px; }
.install-steps li { margin: 2px 0; }
.ios-share { display: inline-grid; place-items: center; width: 24px; height: 24px; vertical-align: middle; color: var(--cyan); }
.install-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 520px) {
  .install-banner { grid-template-columns: auto 1fr; }
  .install-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); height: calc(68px + env(safe-area-inset-top)); }
}

/* ---------- Fernseher ---------- */
.cast-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 12px;
  background: rgba(5, 8, 20, 0.85);
  text-align: center;
  pointer-events: auto;
}
.cast-status > div:first-child { display: grid; justify-items: center; gap: 10px; font-size: 17px; }
.cast-status .icon { width: 44px; height: 44px; color: var(--cyan); }
.cast-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.player.casting video { opacity: 0.25; }
.player.casting .player-ui { opacity: 1; }

/* ---------- Top 5 ---------- */
/* Jede Kachel ist ein Container: Ziffer und Karte skalieren mit ihrer Breite (cqw), nichts wird abgeschnitten.
   Karte = 74 % der Kachelbreite (16:9 → Höhe 41,6 cqw); Ziffer ≈ 1,25 × Kartenhöhe. */
.row-top .row-title { margin-bottom: 6px; }
.top-grid {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 22px);
}
.top-grid > li { container-type: inline-size; min-width: 0; }
.top-item { position: relative; height: 52cqw; margin-top: 10px; }
.top-rank {
  position: absolute;
  left: -2cqw;
  bottom: -1cqw;
  font-family: var(--display);
  font-weight: 900;
  font-size: 62cqw;
  line-height: 0.84;
  letter-spacing: -0.04em;
  color: var(--navy-950);
  -webkit-text-stroke: 0.022em rgba(238, 243, 255, 0.75);
  paint-order: stroke fill;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  user-select: none;
  pointer-events: none;
}
.top-item .card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 74%;
  z-index: 1;
  box-shadow: -10px 0 24px rgba(5, 8, 20, 0.55);
}
.top-item .card-label { font-size: clamp(0.8rem, 1.05vw, 1.1rem); }
.top-grid > li:hover .top-rank { -webkit-text-stroke-color: var(--cyan); }
@media (max-width: 900px) {
  .top-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-top: 6px;
  }
  .top-grid::-webkit-scrollbar { display: none; }
  .top-grid > li { scroll-snap-align: start; }
}
@media (max-width: 560px) { .top-grid { grid-auto-columns: 72%; } }

/* ---------- Untertitel ---------- */
.player video::cue {
  font-family: var(--font);
  font-size: clamp(16px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: rgba(5, 8, 20, 0.72);
}
.ctl[aria-pressed="true"] { color: var(--cyan); }

/* ---------- Reihen: „Alle anzeigen“ ---------- */
.row-link { display: inline-flex; align-items: baseline; gap: 12px; }
.row-more { display: inline-flex; align-items: center; gap: 2px; font-size: 0.72em; font-weight: 700; color: var(--cyan); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.row-more .icon { width: 1.1em; height: 1.1em; }
.row-link:hover .row-more, .row-link:focus-visible .row-more { opacity: 1; transform: none; }
@media (hover: none) { .row-more { opacity: 1; transform: none; } }

/* ---------- Glocke / Benachrichtigungen ---------- */
.row-title { align-items: center; }
.row-bell { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; color: var(--text-3); transition: color 0.2s, background-color 0.2s; }
.row-bell .icon { width: 19px; height: 19px; }
.row-bell:hover { color: var(--text); background: rgba(238, 243, 255, 0.08); }
.row-bell.on { color: var(--cyan); }
.page-title .row-bell { vertical-align: middle; width: 36px; height: 36px; }
.bell-panel { position: absolute; z-index: 95; display: grid; gap: 10px; padding: 16px; border-radius: 10px; background: var(--navy-800); border: 1px solid var(--navy-600); box-shadow: var(--shadow); font-size: 14px; }
.bell-panel strong { font-size: 15px; }
.bell-panel p { margin: 0; color: var(--text-2); }
.bell-option { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.bell-option input { width: 18px; height: 18px; accent-color: var(--cyan); }
.bell-hint { font-size: 13px; color: var(--text-3) !important; }
.bell-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bell-msg { color: var(--red) !important; font-size: 13px; }
.bell-msg:empty { display: none; }

/* ---------- Livestreams ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; background: var(--red); color: #fff; font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; }
.live-badge.pulse::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-in-out infinite; }
.live-badge.upcoming { background: var(--navy-700); letter-spacing: 0.04em; }
@keyframes live-pulse { 50% { opacity: 0.25; } }
.card-badge.live { background: var(--red); }
.card-duration { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 3px; background: rgba(5, 8, 20, 0.85); font-size: 12px; font-weight: 700; }
.live-card { display: grid; align-content: space-between; padding: 12px 12px 10px; background:
  radial-gradient(120% 90% at 100% 0%, rgba(0, 158, 224, 0.28), transparent 60%),
  linear-gradient(160deg, var(--navy-700), var(--navy-850)); border: 1px solid var(--line); }
.live-card-title::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 7px; border-radius: 2px; background: var(--red); }
.card.live-card .live-card-logo { width: 38px; height: auto; object-fit: contain; transform: none; }
.live-card-title { font-family: var(--display); font-weight: 800; font-size: clamp(0.95rem, 1.15vw, 1.2rem); line-height: 1.02; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 44px; }
.live-card:hover { border-color: var(--navy-600); }
.live-player { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr; background: #000; }
.live-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--navy-950); }
.live-top .back { display: grid; place-items: center; width: 44px; height: 44px; }
.live-top .back .icon { width: 30px; height: 30px; }
.live-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.live-heading strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-stage { position: relative; min-height: 0; }
.live-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-consent { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: var(--navy-900) center / cover no-repeat; }
.consent-card { width: min(520px, 100%); display: grid; gap: 14px; padding: 26px; border-radius: 12px; background: rgba(8, 13, 31, 0.92); border: 1px solid var(--navy-600); box-shadow: var(--shadow); }
.consent-card h2 { margin: 0; font-size: 1.3rem; }
.consent-card p { margin: 0; color: var(--text-2); line-height: 1.55; }
.consent-card a { color: var(--cyan); }
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.consent-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--cyan); flex: none; }
.consent-check.small { font-weight: 500; font-size: 14px; color: var(--text-2); }
.consent-card .btn { justify-self: start; }
.consent-card .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- YouTube mit eigener Bedienleiste ---------- */
.yt-shell { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; background: #000; }
.yt-video { position: relative; min-height: 0; }
.yt-video iframe, .yt-video #yt-target { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-bar { display: flex; align-items: center; gap: 6px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--navy-950); border-top: 1px solid var(--line); }
.yt-bar .ctl { width: 44px; height: 44px; }
.yt-bar .ctl .icon { width: 28px; height: 28px; }
.yt-spacer { flex: 1; }
.yt-live { padding: 4px 8px; }
.yt-scrub { flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; margin: 0 10px; }
.yt-rail { position: relative; width: 100%; height: 5px; border-radius: 3px; background: rgba(238, 243, 255, 0.25); overflow: hidden; }
.yt-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); }
.yt-time { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.yt-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); }
.yt-shell:fullscreen { grid-template-rows: 1fr auto; }
@media (max-width: 560px) { .yt-bar .volume input { display: none; } .yt-time { font-size: 12px; } }

/* ---------- Bearbeiten im Frontend (Admins) ---------- */
.edit-btn { border-color: rgba(0, 158, 224, 0.7); color: var(--cyan); }
.edit-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(460px, 100%); overflow-y: auto;
  background: var(--navy-850); border-left: 1px solid var(--navy-600); box-shadow: var(--shadow);
  padding: 0 20px 24px;
}
.edit-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 16px 0; background: var(--navy-850); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.edit-head strong { font-size: 1.15rem; margin-right: auto; }
.edit-admin-link { font-size: 13px; color: var(--cyan); }
.edit-form { display: grid; gap: 14px; }
.edit-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.edit-field input, .edit-field textarea, .edit-field select {
  width: 100%; padding: 9px 11px; border-radius: 6px; border: 1px solid var(--navy-600);
  background: var(--navy-900); color: var(--text); font: inherit; font-size: 15px; font-weight: 500;
}
.edit-field textarea { resize: vertical; line-height: 1.5; }
.edit-field input:focus, .edit-field textarea:focus, .edit-field select:focus { outline: none; border-color: var(--cyan); }
.edit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.edit-chips, .edit-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 11px; border: 1px solid var(--navy-600); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.edit-chip input { accent-color: var(--cyan); }
.edit-chip:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.edit-frame { display: grid; gap: 8px; justify-items: start; }
.edit-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.edit-msg { margin: 0; font-size: 13px; color: var(--text-2); min-height: 1em; }
.edit-actions { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 12px 0; background: var(--navy-850); }
.edit-loading, .edit-error { padding: 24px 0; color: var(--text-2); }
@media (max-width: 480px) { .edit-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Hinweis Weiterverbreitung ---------- */
.rights-note { margin-left: auto; font-size: 12px; color: rgba(238, 243, 255, 0.55); text-align: right; }
.rights-start {
  position: absolute; left: 24px; bottom: 120px; z-index: 2; max-width: min(520px, calc(100% - 48px));
  padding: 8px 12px; border-radius: 6px; background: rgba(5, 8, 20, 0.6);
  font-size: 13px; color: rgba(238, 243, 255, 0.8); pointer-events: none; transition: opacity 1.2s;
}
.rights-start.fade { opacity: 0; }
.footer-rights { flex-basis: 100%; order: 10; font-size: 12px; color: var(--text-3); }
.rights-register { font-size: 12px; }
@media (max-width: 640px) { .rights-note { display: none; } .rights-start { left: 12px; bottom: 96px; font-size: 12px; } }

/* Niedrige Fenster (z. B. Laptop 1440×700): Beschreibung kürzen, damit Titel und Knöpfe Platz haben */
@media (min-width: 641px) and (max-height: 820px) {
  .hero-description { -webkit-line-clamp: 2; max-height: 3.2em; }
  .hero-title { font-size: clamp(2.4rem, 4.4vw, 4.6rem); }
  .hero-title.long { font-size: clamp(2.1rem, 3.6vw, 3.8rem); }
}
@media (min-width: 641px) and (max-height: 660px) {
  .hero-description, .hero-tagline { display: none; }
}
