/* BFS Screening Room: ein Gestaltungssystem für Viewer und Admin.
   Abstände: 4 / 8 / 12 / 16 / 24 / 32 / 48. Schrift: 12 / 13.5 / 15 / 19 / 22 / Display. Radien: 10 / 14 / 20. */
:root {
  --bg: #050605;
  --card: #0e100d;
  --card-2: #151813;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f4ef;
  --muted: #9aa294;
  --lime: #6ed21f;
  --lime-dim: rgba(110, 210, 31, 0.16);
  --danger: #ff6b5e;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 19px; --fs-xl: 22px;
  --d-fast: 180ms; --d-normal: 320ms; --d-slow: 600ms; --d-shimmer: 1400ms;
  --ease: cubic-bezier(.215, .61, .355, 1);      /* spring = easeOutCubic: Standard */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);   /* pop = easeOutBack: Dinge, die ankommen */
  --ease-exit: cubic-bezier(.55, .055, .675, .19); /* exit = easeInCubic */
  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
html.lb-open { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 600px at 0% 0%, rgba(110, 210, 31, 0.22), transparent 62%),
                    radial-gradient(700px 500px at 100% 100%, rgba(110, 210, 31, 0.06), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--s5) 80px; }

.brandbar { display: flex; justify-content: center; padding: var(--s7) 0 var(--s5); }
.brandbar img { width: min(300px, 70vw); height: auto; display: block; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); color: var(--muted); font-size: var(--fs-sm); padding-bottom: var(--s3); }

/* Typografie */
h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 var(--s3); font-weight: 700; }
h2 { font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 var(--s4); font-weight: 650; }
.muted { color: var(--muted); }
.sm { font-size: var(--fs-sm); }
.lime { color: var(--lime); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: var(--fs-xs); color: var(--lime); font-weight: 600; margin-bottom: var(--s3); }
.lead { color: var(--muted); margin: calc(var(--s2) * -1) 0 var(--s4); font-size: var(--fs-sm); }
.mt { margin-top: var(--s4); }
.mt-s { margin-top: var(--s2); }
.formend { margin-top: var(--s5); }

/* Karten und Formulare */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
}
.card > h2:last-child { margin-bottom: 0; }
.gate { max-width: 460px; margin: 6vh auto 0; }
label { display: block; font-size: var(--fs-sm); color: var(--muted); margin: var(--s4) 0 6px; }
.card > h2 + label, .card > h2 + .row > div > label, .card > .lead + .row > div > label, .row > div > label:first-child, .gate > p + label { margin-top: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.row + .row, .row + label, label + .row { margin-top: var(--s4); }
.row > div > label { margin-top: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: var(--s4) 0; } }
input, textarea, select {
  width: 100%; background: #0a0b09; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text);
  padding: var(--s3) 14px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim); }
input[type="checkbox"] { width: auto; }
textarea { min-height: 88px; resize: vertical; }
.err { color: var(--danger); font-size: var(--fs-sm); margin-top: var(--s3); min-height: 20px; }
.ok { color: var(--lime); font-size: var(--fs-sm); margin: 0 0 var(--s3); }
.notice { font-size: var(--fs-xs); color: var(--muted); margin: var(--s5) 0 0; max-width: 720px; }
.notice-box { background: var(--lime-dim); border: 1px solid rgba(110, 210, 31, .3); color: var(--text); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: var(--fs-sm); margin-top: var(--s4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons und Pills: gleiche Höhen überall */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); cursor: pointer; text-decoration: none;
  background: var(--lime); color: #071003; border: 1px solid var(--lime); border-radius: 999px; padding: 0 22px; min-height: 44px;
  font: inherit; font-weight: 650; transition: transform var(--d-fast) var(--ease), filter var(--d-fast), border-color var(--d-fast), background var(--d-fast);
}
.btn:hover { text-decoration: none; }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); transform: translateY(-1px); } }
.btn:active { transform: scale(.97); filter: brightness(.94); transition-duration: 90ms; }
.btn:disabled { opacity: .5; cursor: default; transform: none; filter: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--lime); filter: none; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 94, .4); }
.btn.small { padding: 0 14px; min-height: 34px; font-size: var(--fs-sm); }
.pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; line-height: 1; font-size: var(--fs-xs); min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.good { color: var(--lime); border-color: rgba(110, 210, 31, .4); }
.pill.bad { color: var(--danger); border-color: rgba(255, 107, 94, .4); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s2); }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.actions.big { gap: var(--s3); margin-top: var(--s5); }
.actions.big .btn { min-height: 50px; padding: 0 26px; }

/* Bibliothek */
.hero { padding: var(--s2) 0 var(--s5); max-width: 760px; }
.section { margin: var(--s6) 0 var(--s4); display: flex; align-items: baseline; gap: var(--s3); }
.section .count { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s5); }
.grid.tall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; transition: transform var(--d-normal) var(--ease), border-color var(--d-normal), box-shadow var(--d-normal); text-align: left; color: inherit; padding: 0; font: inherit;
}
@media (hover: hover) { .tile:hover { transform: translateY(-4px); border-color: rgba(110, 210, 31, .5); box-shadow: 0 18px 50px -20px rgba(110, 210, 31, .35); } }
.tile:active { transform: scale(.985); transition-duration: 90ms; }
.tile.static { cursor: default; }
.tile.static:hover, .tile.static:active { transform: none; box-shadow: none; border-color: var(--line); }
.tile .meta { padding: var(--s4) 18px 18px; }
.tile .meta b { display: block; font-size: 17px; line-height: 1.3; }
.tile .meta > span { font-size: var(--fs-sm); color: var(--muted); }
.empty { padding: 60px var(--s5); text-align: center; color: var(--muted); }

/* Poster: runde Ecken, sanftes Einblenden */
.poster {
  aspect-ratio: 2 / 3; display: flex; align-items: flex-end; position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(160deg, #1a2214, #0a0c08);
}
.tile .poster { border-radius: 0; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); }
.poster img.fade { opacity: 0; }
.poster img.fade.in { opacity: 1; }
@media (hover: hover) { .tile:hover .poster img { transform: scale(1.02); } }
.poster .ph { padding: var(--s5); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; }
.poster.big { box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .85), 0 0 0 1px var(--line); border-radius: 22px; }

/* Titelseite */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: var(--s6) 40px; align-items: start; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } .detail .poster { max-width: 260px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin: var(--s5) 0 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.fact small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.logline { font-size: var(--fs-lg); line-height: 1.5; color: #dfe4d8; max-width: 640px; margin: 0; }
.lockbox { margin-top: var(--s5); max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.lockbox p { margin: var(--s2) 0 var(--s4); }
.episodes { margin-top: var(--s6); }
.epgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.epcard {
  display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: var(--s3); align-items: center; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); color: inherit; font: inherit; cursor: pointer;
  transition: border-color var(--d-fast), transform var(--d-normal) var(--ease), background var(--d-fast);
}
@media (hover: hover) { .epcard:hover { border-color: var(--lime); transform: translateY(-2px); background: var(--card-2); } }
.epcard:active { transform: scale(.985); transition-duration: 90ms; }
.epcard .n { grid-row: 1 / 3; color: var(--lime); font-weight: 700; font-size: var(--fs-lg); }
.epcard .nm { font-weight: 600; }
.epcard .rt { font-size: var(--fs-xs); grid-column: 2; }
.epcard .go { grid-row: 1 / 3; grid-column: 3; color: var(--lime); }

/* Bewegung */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.view { animation: fadeIn var(--d-normal) var(--ease) both; }
.rise { animation: rise var(--d-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* Ladezustände */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.topload { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; overflow: hidden; opacity: 0; transition: opacity .25s; pointer-events: none; }
.topload.on { opacity: 1; }
.topload i { display: block; width: 40%; height: 100%; background: var(--lime); box-shadow: 0 0 14px var(--lime); animation: slide 1.1s ease-in-out infinite; }
.skel, .skel-l, .poster.loading::after {
  background: linear-gradient(100deg, #12150f 20%, #1c2316 50%, #12150f 80%); /* warmer Hauch statt Grau */
  background-size: 200% 100%; animation: shimmer var(--d-shimmer) linear infinite;
}
.poster.loading::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.skel-tile { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); padding-bottom: 18px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.skel-tile .skel { aspect-ratio: 2 / 3; border-radius: 0; }
.skel-l { height: 12px; border-radius: 6px; margin: var(--s3) 18px 0; }
.skel-l.s, .skel-l.w40 { width: 40%; }
.skel-l.w70 { width: 70%; }
.skel-l.s { margin-top: var(--s2); }
.skel-card .skel-l { margin: 0 0 var(--s3); height: 14px; }
.skel-card .skel-l:last-child { margin-bottom: 0; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(7, 16, 3, .25); border-top-color: #071003; animation: spin .7s linear infinite; }
.btn.ghost.busy::after, .btn.danger.busy::after { border-color: rgba(255, 255, 255, .2); border-top-color: var(--lime); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: var(--s6); transform: translate(-50%, 12px); opacity: 0; z-index: 100; max-width: min(92vw, 460px);
  background: rgba(20, 24, 17, .96); border: 1px solid rgba(110, 210, 31, .4); color: var(--text); border-radius: var(--r-md); padding: var(--s3) var(--s5);
  font-size: var(--fs-sm); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8); transition: opacity var(--d-normal), transform var(--d-normal) var(--ease-pop);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* Lightbox-Player */
dialog.lightbox {
  position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; background: transparent; color: var(--text); overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(3, 4, 3, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transition: opacity 260ms var(--ease-exit); }
dialog.lightbox.show::backdrop { opacity: 1; transition: opacity var(--d-normal) var(--ease); }
.lb {
  height: 100%; display: flex; align-items: center; justify-content: center; padding: var(--s4);
  opacity: 0; transform: translateY(8%) scale(.985); transition: opacity 260ms var(--ease-exit), transform 260ms var(--ease-exit);
}
dialog.lightbox.show .lb { opacity: 1; transform: none; transition: opacity var(--d-normal) var(--ease), transform var(--d-normal) var(--ease); }
.lb-col { --H: min(calc(100dvh - 200px), 860px); --pw: max(260px, min(94vw, calc(var(--H) * var(--r, 1.7778)), 1280px)); display: flex; flex-direction: column; gap: var(--s3); width: var(--pw); }
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); }
.lb-kind { text-transform: uppercase; letter-spacing: .18em; font-size: var(--fs-xs); color: var(--lime); font-weight: 600; margin-bottom: 2px; }
.lb-head h2 { margin: 0; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.lb-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text);
  font-size: 15px; cursor: pointer; transition: background var(--d-fast), border-color var(--d-fast), transform var(--d-fast) var(--ease);
}
.lb-close:hover { background: rgba(255, 255, 255, .12); border-color: var(--lime); transform: rotate(90deg); }
.lb-chips { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip {
  flex: none; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 var(--s4); min-height: 34px;
  font: inherit; font-size: var(--fs-sm); cursor: pointer; transition: color var(--d-fast), border-color var(--d-fast), background var(--d-fast);
}
.chip:hover { color: var(--text); border-color: var(--lime); }
.chip.on { background: var(--lime); border-color: var(--lime); color: #071003; font-weight: 650; }
.lb-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.playerbox {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden;
  container-type: inline-size; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
}
.lb-col .playerbox { aspect-ratio: var(--ar, 16 / 9); }
.playerbox video, .playerbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; transition: opacity var(--d-slow) var(--ease); }
.playerbox.loading video, .playerbox.loading iframe { opacity: 0; }
.spinner { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--lime); animation: spin .8s linear infinite; }
.playerbox:not(.loading) .spinner { display: none; }
.perr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s5); color: var(--muted); }
.fsbtn {
  position: absolute; top: var(--s3); right: var(--s3); z-index: 6; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 12, 9, .55); backdrop-filter: blur(8px); color: #fff; font-size: 16px; cursor: pointer; opacity: 0; transition: opacity var(--d-normal), background var(--d-fast);
}
.playerbox:hover .fsbtn, .fsbtn:focus-visible { opacity: 1; }
.fsbtn:hover { background: rgba(10, 12, 9, .8); }
@media (hover: none) { .fsbtn { opacity: .85; } }
.playerbox:fullscreen, .playerbox:-webkit-full-screen { width: 100vw !important; height: 100vh !important; border-radius: 0; aspect-ratio: auto; background: #000; box-shadow: none; }
.playerbox:fullscreen::backdrop, .playerbox:-webkit-full-screen::backdrop { background: #000; }
.playerbox:fullscreen iframe, .playerbox:fullscreen video { background: #000; }

/* Wasserzeichen: groß und fest die Marke, klein und wandernd der Name des Zuschauers */
.wm-big {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em;
  padding: 0 8%; text-align: center; text-transform: uppercase; color: #fff; opacity: .26; pointer-events: none; user-select: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.wm-big span { font-size: clamp(9px, 2.1cqw, 18px); letter-spacing: .5em; padding-left: .5em; font-weight: 600; }
.wm-big img { width: clamp(150px, 60cqw, 560px); height: auto; display: block; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .7)) drop-shadow(0 2px 14px rgba(0, 0, 0, .5)); }
.wm {
  position: absolute; z-index: 5; pointer-events: none; user-select: none; color: #fff; opacity: var(--o, .34);
  font-size: clamp(10px, 1.7cqw, 14px); font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); white-space: nowrap; max-width: 90%;
  transition: left 2.6s ease, top 2.6s ease, opacity 1.8s ease;
}
.nextup {
  position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 7; padding: var(--s4); border-radius: var(--r-md);
  background: rgba(10, 12, 9, .82); backdrop-filter: blur(12px); border: 1px solid var(--line); animation: rise .4s var(--ease) both;
}
.nx-l { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.nx-t { font-weight: 650; margin: 2px 0 var(--s3); }
.nx-c { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); }

/* Admin */
.tabs { display: flex; gap: var(--s2); margin: var(--s2) 0 var(--s5); flex-wrap: wrap; align-items: center; }
.tabs.filters { margin-bottom: 0; }
.tile .poster .ph { display: none; }
.tabs .pill { min-height: 36px; padding: 0 var(--s4); }
.tab { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 36px; cursor: pointer; font: inherit; font-size: var(--fs-sm); transition: color .15s, border-color .15s; }
.tab:hover { color: var(--text); border-color: var(--lime); }
.tab.on { color: #071003; background: var(--lime); border-color: var(--lime); font-weight: 650; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; padding: var(--s2) var(--s3) var(--s3); border-bottom: 1px solid var(--line); }
td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.stack > * + * { margin-top: var(--s5); }
.bar { height: 6px; background: #1b1f17; border-radius: 999px; overflow: hidden; margin-top: var(--s2); }
.bar i { display: block; height: 100%; background: var(--lime); width: 0; transition: width .2s; }
.linkbox { background: #0a0b09; border: 1px dashed var(--lime); border-radius: var(--r-md); padding: var(--s3) var(--s4); word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: var(--fs-sm); margin: 0 0 var(--s3); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2); margin-top: 6px; }
.checks label { display: flex; gap: var(--s2); align-items: center; margin: 0; color: var(--text); font-size: var(--fs-sm); background: #0a0b09; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s2) var(--s3); cursor: pointer; }
.checks label:hover { border-color: var(--lime); }
.eprow { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s2) 0; }
.eplist .eprow { border-bottom: 1px solid var(--line); }
.eprow .n { width: 28px; color: var(--lime); font-weight: 700; }
.eprow .nm { flex: 1; min-width: 140px; }
.admin-title { display: flex; gap: var(--s5); align-items: flex-start; flex-wrap: wrap; }
.admin-title .thumb { width: 90px; flex: none; }
.admin-title .thumb .poster { border-radius: var(--r-md); }
.admin-title .thumb .ph { font-size: var(--fs-xs); padding: var(--s2); }
.admin-title .info { flex: 1; min-width: 240px; }
.admin-title h2 { margin-bottom: var(--s1); }
.admin-title .sec { margin-top: var(--s4); }
.checkrow { display: flex; gap: var(--s3); align-items: center; color: var(--text); margin-top: var(--s4); }
.scroll-x { overflow-x: auto; }

/* Boot-Screen (Muster aus dem Snäxx-Web-Start): Logo, schmaler Balken, sanftes Ausblenden */
#boot {
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s5);
  background: var(--bg); background-image: radial-gradient(900px 600px at 0% 0%, rgba(110, 210, 31, 0.22), transparent 62%);
  transition: opacity .45s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot img { width: min(168px, 46vw); height: auto; }
#boot .bar-boot { width: 168px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
#boot .bar-boot i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f8a00, var(--lime)); animation: slide 1.25s ease-in-out infinite; }

/* Player-Start: unscharfes Poster auf Schwarz, Ladekreis erst nach 250 ms (sonst wirkt es wie ein Hänger oder ein Flackern) */
.pb-poster { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(22px); opacity: .45; transform: scale(1.1); transition: opacity var(--d-slow) var(--ease); }
.playerbox:not(.loading) .pb-poster { opacity: 0; pointer-events: none; }
.spinner { opacity: 0; animation: spin .8s linear infinite, fadeIn 220ms ease 250ms forwards; }
.perr { flex-direction: column; gap: var(--s4); }
.perr p { margin: 0; max-width: 28ch; }

/* Skeleton-Layout spiegelt die Bibliothek: Hero-Zeilen, Titelzeile, Kacheln */
.skel-hero { max-width: 760px; padding: var(--s2) 0 var(--s5); }
.skel-hero .skel-l { margin: 0 0 var(--s3); height: 14px; }
.skel-hero .skel-l.h1 { height: 44px; width: min(420px, 80%); border-radius: var(--r-sm); }
.skel-hero .skel-l.w40 { width: 120px; }
.skel-hero .skel-l.w70 { width: 70%; }
.skel-title { margin: var(--s6) 0 var(--s4); }
.skel-title .skel-l { margin: 0; width: 160px; height: 20px; }

/* Admin: Abschnitte der Titelkarte, Folgen-Details, Cast & Crew */
.secs { margin-top: var(--s5); border-top: 1px solid var(--line); }
.sec { border-bottom: 1px solid var(--line); }
.sec > summary { cursor: pointer; list-style: none; padding: var(--s3) 0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::after { content: '+'; color: var(--lime); font-size: 18px; transition: transform var(--d-fast) var(--ease); }
.sec[open] > summary::after { content: '–'; }
.sec-body { padding: 0 0 var(--s4); }
textarea.tall { min-height: 140px; }
.eppanel { margin: var(--s2) 0 var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: #0a0b09; }
.cover { width: 160px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }
.cover.sm { width: 64px; flex: none; }
.cover.ph { display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); color: var(--muted); background: var(--card); }
.covrow { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.plist { display: grid; gap: var(--s2); }
.prow { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--card-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--lime); font-size: var(--fs-sm); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn { flex: 1; min-width: 160px; }
.row3 { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr auto; gap: var(--s2); align-items: center; }
@media (max-width: 720px) { .row3 { grid-template-columns: 1fr; } }

/* Detailseite: Blöcke, Besetzung, Folgen mit Cover, Extras */
.block { margin-top: var(--s6); }
.synopsis { color: #cdd3c6; max-width: 680px; margin: var(--s3) 0 0; white-space: pre-line; line-height: 1.6; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s5) var(--s4); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: var(--fs-sm); }
.person span { font-size: var(--fs-xs); }
.avatar.big { width: 92px; height: 92px; font-size: var(--fs-xl); margin-bottom: var(--s2); }
.epgrid.rich { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.epcard.rich { grid-template-columns: 148px 1fr auto; grid-template-rows: auto; gap: var(--s3); padding: var(--s2); align-items: stretch; text-align: left; }
.epcard.rich.locked { cursor: default; opacity: .78; }
.epcard.rich.locked:hover { transform: none; border-color: var(--line); background: var(--card); }
.epcover { width: 148px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); background: var(--card-2); display: block; align-self: center; }
.epcover.ph { display: flex; align-items: center; justify-content: center; color: var(--lime); font-weight: 700; font-size: var(--fs-xl); }
.epbody { display: flex; flex-direction: column; justify-content: center; gap: var(--s1); min-width: 0; padding: var(--s1) 0; }
.ephead { display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.ephead .n { color: var(--lime); font-weight: 700; }
.ephead .nm { font-weight: 600; }
.ephead .rt { font-size: var(--fs-xs); }
.epsum { margin: 0; font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.epcard.rich .go, .epcard.rich .lockchip { align-self: center; grid-row: auto; grid-column: auto; padding-right: var(--s3); }
.lockchip { font-size: var(--fs-xs); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
@media (max-width: 520px) { .epgrid.rich { grid-template-columns: 1fr; } .epcard.rich { grid-template-columns: 110px 1fr auto; } .epcover { width: 110px; } }
.xgrid { display: flex; gap: var(--s3); flex-wrap: wrap; }
.xcard { display: flex; align-items: center; gap: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); color: inherit; font: inherit; cursor: pointer; transition: border-color var(--d-fast), transform var(--d-normal) var(--ease); text-align: left; }
@media (hover: hover) { .xcard:hover { border-color: var(--lime); transform: translateY(-2px); } }
.xcard:active { transform: scale(.985); }
.xk { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.xn { font-weight: 600; }
.xcard .go { color: var(--lime); }

/* Schutz-Schleier beim Abspielen und Druck-Sperre */
.shield { position: absolute; inset: 0; z-index: 9; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s5); opacity: 0; pointer-events: none; transition: opacity var(--d-fast) ease; cursor: pointer; }
.shield.on { opacity: 1; pointer-events: auto; }
.shield div { display: flex; flex-direction: column; gap: var(--s2); max-width: 30ch; }
.shield span { color: var(--muted); font-size: var(--fs-sm); }
.lb, .playerbox, .poster, .person { -webkit-user-select: none; user-select: none; }
img { -webkit-user-drag: none; }
@media print { body > * { display: none !important; } body::before { content: 'Vertrauliches Material. Drucken ist nicht gestattet.'; color: #000; font: 16px sans-serif; } }

@media (prefers-reduced-motion: reduce) {
  #boot .bar-boot i { width: 100%; opacity: .5; animation: none !important; }
  .topload i { animation: none !important; width: 100%; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
