/* FILMREGAL · gleicher Baukasten wie das Spielregal, im Ton eines Kinosaals */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wdth,wght@62..125,300..800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0d0a0c;
  --shelf: #141013;
  --panel: #1b161a;
  --panel-hi: #241d22;
  --line: #33292f;
  --line-soft: #211a1f;
  --paper: #ebe5dc;
  --paper-dim: #a59ba0;
  --paper-faint: #6f656a;
  --akzent: #e2574c;
  --akzent-dim: #8c3530;
  --auf-akzent: #1c0907;
  --gold: #e0b44c;
  --jade: #4fae8f;
  --steel: #7c93b0;
  --ash: #6e646b;

  --font-poster: 'Anton', 'Haettenschweiler', Impact, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --rail: 244px;
  --pad: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-variation-settings: 'wdth' 100;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.mono { font-family: var(--font-mono); }

.lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.cap {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 79;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Ein Plakat, das nicht laedt, soll keinen kaputten Rahmen zeigen. */
img.kaputt { visibility: hidden; }

/* =================== SCROLLBALKEN =================== */

* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--shelf); border-left: 1px solid var(--line-soft); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--shelf); }
::-webkit-scrollbar-thumb:hover { background: var(--akzent-dim); }
::-webkit-scrollbar-thumb:active { background: var(--akzent); }
::-webkit-scrollbar-corner { background: var(--shelf); }
.drawer::-webkit-scrollbar-track, .modal-box::-webkit-scrollbar-track { background: var(--panel); }
.drawer::-webkit-scrollbar-thumb, .modal-box::-webkit-scrollbar-thumb { border-color: var(--panel); }

/* =================== EINGANG =================== */

.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .gate { grid-template-columns: 1fr; } }

.gate-left {
  padding: clamp(28px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
}

.brandmark { display: flex; align-items: baseline; gap: 14px; }
.brandmark .name {
  font-family: var(--font-poster);
  font-size: 22px; letter-spacing: .32em; text-transform: uppercase;
}
.brandmark .sig { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--akzent); text-transform: uppercase; }

.gate-headline {
  font-family: var(--font-poster);
  font-weight: 400; text-transform: uppercase; line-height: .88;
  font-size: clamp(2.7rem, 8.6vw, 6.6rem);
  margin: clamp(30px, 6vh, 70px) 0 0; max-width: 100%;
}
.gate-headline em { font-style: normal; color: var(--akzent); display: block; margin-left: clamp(12px, 5vw, 84px); }
.gate-headline .thin { color: var(--paper-dim); display: block; }

.gate-lede { max-width: 46ch; margin-top: var(--s6); color: var(--paper-dim); font-size: 16px; }
.gate-lede strong { color: var(--paper); font-weight: 600; }
.gate-foot { margin-top: var(--s7); font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); letter-spacing: .1em; text-transform: uppercase; }

.gate-right { background: var(--shelf); padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; gap: 30px; }

.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.ledger-row .num { font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); }
.ledger-row .what { font-family: var(--font-display); font-variation-settings: 'wdth' 79; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.ledger-row .how { color: var(--paper-dim); font-size: 13px; text-align: right; max-width: 32ch; }

.gate-form { display: flex; flex-direction: column; gap: var(--s3); }
.gate-form .seg { align-self: flex-start; }
.gate-form .seg button { padding: 9px 14px; font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.gate-form label { display: grid; gap: 6px; }
.gate-form input.field { padding: 13px 12px; font-size: 15px; }
.gate-fehler { color: #ffb4a8; font-size: 13px; border-left: 3px solid var(--akzent); padding: 6px 12px; background: var(--panel); }

.gate-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 26px; background: var(--akzent); color: var(--auf-akzent);
  font-family: var(--font-display); font-variation-settings: 'wdth' 79;
  font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--akzent); align-self: flex-start;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.gate-btn:hover { background: #ee6b60; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--akzent-dim); }
.gate-btn:active { transform: none; box-shadow: none; }
.gate-btn[disabled] { opacity: .6; cursor: progress; }
.gate-note { font-size: 13px; color: var(--paper-faint); max-width: 44ch; line-height: 1.6; }

.gate-weiter { border: 1px solid var(--line); background: var(--panel); padding: var(--s4); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.gate-weiter .txt { flex: 1; min-width: 180px; font-size: 14px; color: var(--paper-dim); }
.gate-weiter .txt strong { color: var(--paper); }

/* =================== GERUEST =================== */

.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.rail {
  border-right: 1px solid var(--line);
  background: var(--shelf);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.rail-head { padding: 20px var(--s4) var(--s4); }
.rail-head .name { font-family: var(--font-poster); letter-spacing: .3em; text-transform: uppercase; font-size: 17px; }
.rail-head .sig { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--akzent); text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rail-scroll { flex: 1; overflow-y: auto; padding-bottom: var(--s4); }
.rail-group { padding: 0 var(--s2); margin-bottom: var(--s5); }
.rail-group > .lbl { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s2) var(--s2); }

.nav {
  display: grid; grid-template-columns: 14px 1fr auto;
  align-items: center; gap: 10px; width: 100%;
  padding: 9px var(--s2); text-align: left;
  color: var(--paper-dim);
  font-family: var(--font-display); font-variation-settings: 'wdth' 79;
  font-weight: 500; font-size: 14px; letter-spacing: .07em; text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: background .1s, color .1s;
}
a.nav { text-decoration: none; }
.nav:hover { background: var(--panel); color: var(--paper); }
.nav[aria-current="true"] { background: var(--panel-hi); color: var(--paper); border-left-color: var(--akzent); }
.nav .count { font-family: var(--font-mono); font-size: 12px; color: var(--paper-faint); font-weight: 400; }
.nav .ico { display: grid; place-items: center; color: currentColor; opacity: .8; }
.nav span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dot { width: 9px; height: 9px; display: block; margin: 0 2px; flex: 0 0 auto; }
.dot.all { background: var(--paper-dim); }
.dot.wanted { background: var(--steel); }
.dot.seen { background: var(--jade); }
.dot.dropped { background: var(--ash); }
.dot.unrated { background: var(--gold); }

/* Profilkarte */
.profile { border-top: 1px solid var(--line); padding: var(--s3); position: relative; }
.profile-card {
  display: grid; grid-template-columns: 40px 1fr 16px;
  gap: var(--s3); align-items: center; width: 100%;
  padding: var(--s2); text-align: left;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .12s, background .12s;
}
.profile-card:hover { border-color: var(--akzent-dim); background: var(--panel-hi); }
.profile-card .n { display: block; font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card .s { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--paper-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card .chev { color: var(--paper-faint); transition: transform .15s; }
.profile.open .chev { transform: rotate(180deg); }

/* Namenskachel statt Profilbild: Anfangsbuchstabe in der Farbe der Person */
.kachel {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border: 1px solid var(--line);
  font-family: var(--font-poster); font-size: 19px; color: var(--kf, var(--paper)); background: var(--ink);
  text-transform: uppercase;
}
.kachel.klein { width: 22px; height: 22px; font-size: 12px; }

.profile-menu {
  display: none;
  position: absolute; bottom: calc(100% - 6px); left: var(--s3); right: var(--s3);
  background: var(--panel-hi); border: 1px solid var(--line);
  z-index: 60; padding: var(--s1) 0;
}
.profile.open .profile-menu { display: block; }
.profile-menu a, .profile-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px var(--s3); font-size: 13px; color: var(--paper-dim);
  text-decoration: none; text-align: left;
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--panel); color: var(--paper); }
.profile-menu .sep { height: 1px; background: var(--line); margin: var(--s1) 0; }
.profile-menu .out:hover { color: var(--akzent); }
.profile-stats { display: flex; gap: var(--s4); padding: var(--s3) var(--s3) var(--s1); }
.profile-stats div { flex: 1; }
.profile-stats .v { font-family: var(--font-poster); font-size: 18px; }
.profile-stats .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); }

/* =================== HAUPTBEREICH =================== */

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 10, 12, .94);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}

.viewtitle { font-family: var(--font-poster); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; margin-right: var(--s2); }
.viewtitle small { font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); letter-spacing: .1em; margin-left: var(--s2); text-transform: none; }

.searchwrap { position: relative; flex: 1 1 220px; min-width: 180px; }
.searchwrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--paper-faint); }
.searchwrap input { width: 100%; background: var(--panel); border: 1px solid var(--line); padding: 10px 12px 10px 34px; font-size: 14px; outline: none; }
.searchwrap input:focus { border-color: var(--akzent); }
.searchwrap input::placeholder { color: var(--paper-faint); }

select.pick { background: var(--panel); border: 1px solid var(--line); padding: 10px; font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; outline: none; }

.seg { display: flex; border: 1px solid var(--line); }
.seg button { padding: 9px 11px; color: var(--paper-faint); display: grid; place-items: center; }
.seg button[aria-pressed="true"] { background: var(--panel-hi); color: var(--akzent); }

.btn {
  display: inline-flex; align-items: center; gap: var(--s2); justify-content: center;
  border: 1px solid var(--line); padding: 9px var(--s3);
  font-family: var(--font-display); font-variation-settings: 'wdth' 79;
  font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-dim); text-decoration: none; white-space: nowrap;
  transition: border-color .12s, color .12s, background .12s;
}
.btn:hover { border-color: var(--akzent); color: var(--akzent); }
.btn[disabled] { opacity: .45; cursor: progress; }
.btn.primary { border-color: var(--akzent); color: var(--akzent); }
.btn.primary:hover { background: var(--akzent); color: var(--auf-akzent); }
.btn.danger:hover { border-color: #ff9d8f; color: #ff9d8f; border-style: dashed; }
.btn.sm { font-size: 11px; padding: 6px 10px; }

/* Warnstreifen */
.notice { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--pad); border-bottom: 1px solid var(--akzent-dim);
  background: repeating-linear-gradient(135deg, var(--panel) 0 8px, var(--shelf) 8px 16px); font-size: 13px; color: var(--paper); flex-wrap: wrap; }
.notice .lead { font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent); font-size: 11px; }
.notice .txt { flex: 1; min-width: 200px; }

/* Kennzahlenband */
.stats { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.stat { padding: var(--s4) var(--s4) var(--s4) var(--pad); border-right: 1px solid var(--line-soft); min-width: 118px; flex: 1 1 0; }
.stat:last-child { border-right: 0; }
.stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); white-space: nowrap; }
.stat .v { font-family: var(--font-poster); font-size: 28px; line-height: 1.15; letter-spacing: .02em; white-space: nowrap; }
.stat .v small { font-size: 13px; color: var(--paper-dim); font-family: var(--font-body); }
.stat.accent .v { color: var(--akzent); }
.stat.gold .v { color: var(--gold); }
.bar { height: 5px; background: var(--panel); display: flex; margin-top: 7px; min-width: 92px; }
.bar i { display: block; height: 100%; }

/* =================== KATALOG =================== */

.catalog { padding-bottom: 96px; }

.row {
  display: grid;
  grid-template-columns: 74px 36px minmax(0, 1fr) 112px 104px 64px 64px 86px;
  align-items: center; gap: var(--s3);
  padding: 7px var(--pad);
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer; position: relative;
  transition: background .1s;
}
.row:hover { background: var(--panel); }
.row:hover .title { color: var(--akzent); }
.row.faded { opacity: .42; }
.row.faded:hover { opacity: .85; }

.row .sig { font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); }
.thumb { width: 36px; height: 53px; object-fit: cover; background: var(--panel-hi); border: 1px solid var(--line); display: block; }
.thumb.leer { display: grid; place-items: center; color: var(--paper-faint); }
.row .title { display: block; font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 500; font-size: 15px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color .1s; }
.row .sub { display: block; font-size: 11px; color: var(--paper-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.status-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 500; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--paper-dim); white-space: nowrap; }

.wann { font-family: var(--font-mono); font-size: 12px; color: var(--paper-dim); text-align: right; white-space: nowrap; }
.wann.leer { color: var(--paper-faint); }

/* Wertungszelle: kleine Herkunft, grosse Zahl */
.wz { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.wz small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); }
.wz b { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--paper); }
.wz.imdb b { color: var(--gold); }
.wz.leer b { color: var(--paper-faint); }
.stars { text-align: right; }

/* Sterne mit halben Schritten: gefuellter Stern liegt beschnitten ueber dem leeren */
.sterne { display: inline-flex; gap: 2px; vertical-align: middle; }
.st { position: relative; display: inline-block; line-height: 0; }
.st svg { display: block; }
.st .voll { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; }

@media (max-width: 1460px) { .row { grid-template-columns: 36px minmax(0, 1fr) 112px 104px 64px 64px 86px; } .row .sig { display: none; } }
@media (max-width: 1180px) { .row { grid-template-columns: 36px minmax(0, 1fr) 112px 64px 64px 86px; } .row .wann { display: none; } }
@media (max-width: 900px)  { .row { grid-template-columns: 36px minmax(0, 1fr) 64px 64px; padding: 7px var(--s4); } .row .stars, .row .status-chip { display: none; } }
@media (max-width: 520px)  { .row { grid-template-columns: 36px minmax(0, 1fr) 56px; } .row .wz.imdb { display: none; } }

/* Kacheln: Plakate im Hochformat */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); }
.card { background: var(--ink); cursor: pointer; display: flex; flex-direction: column; position: relative; transition: background .12s; min-width: 0; }
.card:hover { background: var(--panel); }
.card.faded { opacity: .4; }
.card.faded:hover { opacity: .9; }
.card .plakat { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--panel-hi); filter: saturate(.8); transition: filter .18s; display: block; }
.card .plakat.leer { display: grid; place-items: center; padding: var(--s3); text-align: center; font-family: var(--font-poster); font-size: 20px; text-transform: uppercase; color: var(--paper-faint); line-height: 1.1; }
.card:hover .plakat { filter: saturate(1); }
.card .body { padding: var(--s3) var(--s3) var(--s4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 600; font-size: 14px; letter-spacing: .02em; line-height: 1.2; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); }
.card .meta .g { color: var(--gold); }

/* =================== STATISTIK =================== */

.statpage { padding: var(--s5) var(--pad) 90px; display: flex; flex-direction: column; gap: var(--s5); }

.bigrow { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.big { background: var(--shelf); padding: var(--s4) var(--s4) var(--s5); flex: 1 1 168px; min-width: 168px; }
.big .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); }
.big .v { font-family: var(--font-poster); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin-top: var(--s2); }
.big .v small { font-family: var(--font-body); font-size: 13px; color: var(--paper-dim); }
.big .note { font-size: 12px; color: var(--paper-faint); margin-top: var(--s1); }
.big.akzent .v { color: var(--akzent); }
.big.gold .v { color: var(--gold); }
.big.jade .v { color: var(--jade); }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s4); }
.panel {
  border: 1px solid var(--line); background: var(--shelf);
  padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); min-width: 0;
}
.panel > h3 { font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.panel > h3 span { font-family: var(--font-mono); font-size: 10px; color: var(--paper-faint); letter-spacing: .1em; text-transform: none; text-align: right; }
.panel.wide { grid-column: 1 / -1; }
.panel .leer { color: var(--paper-faint); font-size: 13px; }

.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: var(--s3); align-items: center; font-size: 13px; }
.hbar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--paper-dim); }
.hbar .track { display: block; background: var(--panel); height: 14px; position: relative; }
.hbar .fill { display: block; height: 100%; background: var(--akzent); min-width: 2px; }
.hbar .val { font-family: var(--font-mono); font-size: 12px; color: var(--paper-dim); min-width: 56px; text-align: right; }

.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 12px; color: var(--paper-dim); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

.cols { display: flex; align-items: flex-end; justify-content: center; gap: var(--s2); height: 140px; }
.col { flex: 1 1 0; max-width: 108px; min-width: 22px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.col .stack { width: 100%; background: var(--panel); position: relative; display: flex; align-items: flex-end; flex: 1; }
.col .fill { width: 100%; background: var(--akzent); transition: height .3s; }
.col .k { font-family: var(--font-mono); font-size: 10px; color: var(--paper-faint); }
.col .n { font-family: var(--font-mono); font-size: 11px; color: var(--paper-dim); }

.tablet { width: 100%; border-collapse: collapse; font-size: 13px; }
.tablet th { text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); font-weight: 400; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.tablet th.r { text-align: right; }
.tablet td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--paper-dim); }
.tablet td.r { text-align: right; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; padding-left: var(--s3); }
.tablet tr[data-jump] { cursor: pointer; }
.tablet tr:hover td { color: var(--paper); }

/* =================== SCHUBLADE =================== */

.scrim { position: fixed; inset: 0; background: rgba(6,4,5,.72); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .18s; }
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(560px, 100vw);
  background: var(--shelf); border-left: 1px solid var(--line); z-index: 90;
  transform: translateX(101%); transition: transform .22s cubic-bezier(.3,.7,.3,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: none; }

/* Kopf der Schublade: Plakat links, Titel und Eckdaten rechts */
.drawer-hero { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--s4); padding: 20px 60px 20px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.drawer-hero .plakat { width: 132px; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--line); background: var(--panel-hi); display: block; }
.drawer-hero .plakat.leer { display: grid; place-items: center; color: var(--paper-faint); }
.drawer-kopf { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; align-self: end; }
.drawer-title { font-family: var(--font-poster); font-size: clamp(22px, 4vw, 30px); letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.drawer-orig { font-size: 13px; color: var(--paper-dim); }
.drawer-eck { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-faint); }
.drawer-close { position: absolute; top: var(--s3); right: var(--s3); z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line); }
.drawer-close:hover { border-color: var(--akzent); color: var(--akzent); }
@media (max-width: 480px) { .drawer-hero { grid-template-columns: 92px minmax(0, 1fr); } .drawer-hero .plakat { width: 92px; } }

.drawer-body { padding: var(--s5) 20px; display: flex; flex-direction: column; gap: var(--s5); }
.block { display: flex; flex-direction: column; gap: var(--s3); }
.block > h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-faint); font-weight: 400; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.block .klein { font-size: 12px; color: var(--paper-faint); }

.statusgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.statusgrid button { padding: 10px 4px; border: 1px solid var(--line); font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); display: flex; flex-direction: column; align-items: center; gap: 7px; transition: background .1s, color .1s, border-color .1s; }
.statusgrid button:hover { background: var(--panel); color: var(--paper); }
.statusgrid button[aria-pressed="true"] { background: var(--panel-hi); color: var(--paper); }
.statusgrid button[aria-pressed="true"][data-s="wanted"] { border-color: var(--steel); }
.statusgrid button[aria-pressed="true"][data-s="seen"] { border-color: var(--jade); }
.statusgrid button[aria-pressed="true"][data-s="dropped"] { border-color: var(--ash); }

.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.fact { background: var(--shelf); padding: var(--s3) var(--s3); }
.fact .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); }
.fact .v { font-family: var(--font-poster); font-size: 19px; letter-spacing: .02em; margin-top: 2px; }
.fact .v small { font-family: var(--font-body); font-size: 12px; color: var(--paper-dim); }
.fact.gold .v { color: var(--gold); }

/* Wertungen der Leute im Regal */
.wliste { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.wperson { background: var(--shelf); display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 44px; gap: var(--s3); align-items: center; padding: 9px var(--s3); }
.wperson .nm { font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wperson .nm small { font-family: var(--font-mono); font-weight: 400; font-size: 10px; color: var(--paper-faint); letter-spacing: .1em; margin-left: 6px; }
.wperson .zahlw { font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--paper); }
.wperson .zahlw.leer { color: var(--paper-faint); }

.stars-input { display: inline-flex; gap: 3px; }
.stars-input button { padding: 2px; line-height: 0; transition: transform .1s; }
.stars-input button:hover { transform: scale(1.14); }

textarea.note, input.field {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  padding: 10px 11px; font-size: 13px; outline: none; font-family: var(--font-body);
}
textarea.note { min-height: 88px; resize: vertical; font-size: 14px; }
textarea.note:focus, input.field:focus { border-color: var(--akzent); }
input.field::placeholder, textarea.note::placeholder { color: var(--paper-faint); }
input[type="date"].field { font-family: var(--font-mono); color-scheme: dark; max-width: 190px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); padding: 5px 9px;
  font-family: var(--font-display); font-variation-settings: 'wdth' 79;
  font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim);
  transition: border-color .1s, color .1s, background .1s;
}
button.chip:hover { border-color: var(--akzent-dim); color: var(--paper); }
.chip[aria-pressed="true"] { border-color: var(--akzent); color: var(--paper); background: rgba(226,87,76,.1); }
.chip[aria-pressed="false"] { opacity: .6; }

.linkrow { display: flex; align-items: center; gap: var(--s3); padding: 9px 11px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.linkrow .lbl2 { font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; display: block; }
.linkrow .url { font-family: var(--font-mono); font-size: 10px; color: var(--paper-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.linkrow span.t { flex: 1; min-width: 0; }
.linkrow:hover .lbl2 { color: var(--akzent); }
.linkrow svg { color: var(--paper-faint); flex: 0 0 auto; }

/* =================== FENSTER =================== */

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 8vh var(--s4) var(--s4); background: rgba(6,4,5,.78); }
.modal.open { display: flex; }
.modal-box { background: var(--shelf); border: 1px solid var(--line); width: min(680px, 100%); max-height: 84vh; overflow-y: auto; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.modal-box h2 { font-family: var(--font-poster); font-size: 24px; letter-spacing: .1em; text-transform: uppercase; }
.modal-box p { color: var(--paper-dim); font-size: 14px; }
.modal-actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
.modal-box .searchwrap { flex: 0 0 auto; }

.shopres { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.shopres:empty { display: none; }
.shopitem { background: var(--shelf); display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: var(--s3); align-items: center; padding: 9px var(--s3); }
.shopitem img, .shopitem .thumb { width: 40px; height: 59px; }
.shopitem .nm { font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 600; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopitem .pr { font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopitem .pr b { color: var(--gold); font-weight: 500; }
.shopitem .tun { display: flex; gap: 5px; align-items: center; }
@media (max-width: 560px) { .shopitem { grid-template-columns: 40px minmax(0,1fr); } .shopitem .tun { grid-column: 1 / -1; justify-content: flex-end; } }

.vonhand { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 5px; }

/* Liste der Leute im Fenster „Leute im Regal“ */
.leute { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.leute .p { background: var(--shelf); display: flex; align-items: center; gap: var(--s3); padding: 9px var(--s3); font-size: 14px; }
.leute .p small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-faint); margin-left: auto; }
.kopierzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.kopierzeile input { font-family: var(--font-mono); font-size: 12px; }

/* =================== KLEINKRAM =================== */

.empty { padding: 72px var(--pad); text-align: center; color: var(--paper-faint); }
.empty h2 { font-family: var(--font-poster); font-size: 24px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: var(--s2); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--panel-hi); border: 1px solid var(--line); padding: 12px 18px; font-size: 14px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; max-width: min(560px, 92vw); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--akzent); color: #ffcdc6; }
.toast.good { border-color: var(--jade); }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Am Handy wird die Seitenleiste zur schmalen Kopfleiste mit wischbaren Reitern.
   Untereinander gestapelt muesste man sonst erst an allen Faechern vorbeiscrollen. */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-head { flex: 1; min-width: 0; padding: 10px var(--s4) 6px; }
  .profile { order: 2; border-top: 0; padding: 6px var(--s3) 0; }
  .profile-card { grid-template-columns: 30px; padding: 3px; }
  .profile-card > span:not(.kachel) { display: none; }
  .profile-card .kachel { width: 30px; height: 30px; font-size: 15px; }
  .profile-menu { top: calc(100% + 4px); bottom: auto; left: auto; right: var(--s3); width: min(280px, 88vw); }
  .rail-scroll { order: 3; flex: 0 0 100%; display: flex; overflow-x: auto; padding: 0 var(--s2); scrollbar-width: none; }
  .rail-scroll::-webkit-scrollbar { display: none; }
  .rail-group { display: flex; flex: 0 0 auto; margin: 0; padding: 0; }
  .rail-group + .rail-group { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 6px; }
  .rail-group > .lbl, #genreGroup { display: none; }
  .nav { width: auto; flex: 0 0 auto; grid-template-columns: auto auto auto; gap: 7px; padding: 9px 10px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13px; }
  .nav[aria-current="true"] { border-left-color: transparent; border-bottom-color: var(--akzent); }
  .topbar { position: static; padding: var(--s3) var(--s4); }
  .drawer { width: 100vw; }
  .stat { padding: var(--s3) var(--s4); min-width: 104px; }
  .statpage, #deck, .finder-kopf { padding-left: var(--s4); padding-right: var(--s4); }
}

/* =================== BEWEGUNG =================== */

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.965) translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes flyRight { to { opacity: 0; transform: translateX(120%) rotate(18deg); } }
@keyframes flyLeft  { to { opacity: 0; transform: translateX(-120%) rotate(-18deg); } }
@keyframes flyDown  { to { opacity: 0; transform: translateY(60%) scale(.92); } }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.6) rotate(-14deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-14deg); } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(320%); } }

.row, .card { animation: fadeUp .26s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: calc(var(--i, 0) * 14ms); }
.card { transition: background .12s, transform .16s cubic-bezier(.2,.7,.3,1); }
.card:hover { transform: translateY(-3px); z-index: 2; }

#viewStats:not([hidden]), #viewFinder:not([hidden]), #viewLibrary:not([hidden]) { animation: fadeIn .2s ease; }
.panel, .big { animation: fadeUp .3s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: calc(var(--i, 0) * 40ms); }

.hbar .fill { transition: width .7s cubic-bezier(.16,.84,.34,1); }
.col .fill { transition: height .7s cubic-bezier(.16,.84,.34,1); }

.drawer.open .block, .drawer.open .factgrid { animation: fadeUp .3s cubic-bezier(.2,.7,.3,1) backwards; }
.drawer.open .drawer-body > *:nth-child(1) { animation-delay: .04s; }
.drawer.open .drawer-body > *:nth-child(2) { animation-delay: .08s; }
.drawer.open .drawer-body > *:nth-child(3) { animation-delay: .12s; }
.drawer.open .drawer-body > *:nth-child(4) { animation-delay: .16s; }
.drawer.open .drawer-body > *:nth-child(5) { animation-delay: .2s; }

/* =================== KARTENSTAPEL =================== */

.finder-kopf { padding: var(--s5) var(--pad) 0; display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.finder-kopf .seg button { padding: 9px var(--s3); font-family: var(--font-display); font-variation-settings: 'wdth' 79; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.finder-kopf .hint { color: var(--paper-faint); font-size: 13px; }
.finder-kopf .sp { flex: 1; }
#deck { padding: var(--s5) var(--pad) 90px; }

.deckcol { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s4); }
.deckwrap { position: relative; }
.deckhint { text-align: center; color: var(--paper-faint); font-size: 12px; font-family: var(--font-mono); }
.ghost-card {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  border: 1px solid var(--line); background: var(--panel);
  z-index: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.ghost-card.g1 { transform: translateY(16px) scale(.965); opacity: .85; }
.ghost-card.g2 { transform: translateY(32px) scale(.93); opacity: .5; }

.finder-card {
  position: relative; z-index: 2;
  border: 1px solid var(--line); background: var(--shelf);
  user-select: none; touch-action: pan-y; cursor: grab;
  animation: popIn .28s cubic-bezier(.2,.75,.3,1);
  will-change: transform;
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
}
.finder-card:active { cursor: grabbing; }
.finder-card.gone-yes { animation: flyRight .34s cubic-bezier(.4,.1,.7,.4) forwards; }
.finder-card.gone-no { animation: flyLeft .34s cubic-bezier(.4,.1,.7,.4) forwards; }
.finder-card.gone-skip { animation: flyDown .3s ease-in forwards; }
@media (max-width: 620px) { .finder-card { grid-template-columns: 124px minmax(0, 1fr); } }

.finder-card .shot { position: relative; overflow: hidden; background: var(--panel-hi); border-right: 1px solid var(--line); }
.finder-card .shot img { width: 100%; height: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; pointer-events: none; }
.finder-card .shot::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(235,229,220,.16), transparent);
  animation: sheen 1.1s .25s ease-out;
}
.finder-card .text { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.finder-card h2 { font-family: var(--font-poster); font-size: clamp(22px, 3.6vw, 32px); text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
.finder-card .wer { color: var(--paper-dim); font-size: 13px; }
.gruende { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: var(--s2); animation: fadeUp .3s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: .1s; }
.gruende li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.gruende svg { margin-top: 3px; flex: 0 0 auto; }

#fstamp {
  position: absolute; top: 18px; left: 18px; z-index: 4; opacity: 0;
  font-family: var(--font-poster); font-size: 28px; letter-spacing: .1em;
  padding: 5px 16px; border: 3px solid; text-transform: uppercase;
  transform: rotate(-14deg); pointer-events: none; background: rgba(13,10,12,.7);
}
#fstamp.locked { animation: stampIn .2s ease forwards; }

.finder-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s2); }
.finder-btns .btn { padding: 14px 8px; white-space: normal; transition: transform .12s, border-color .12s, color .12s, background .12s; }
.finder-btns .btn:hover { transform: translateY(-2px); }
.finder-btns .btn:active { transform: translateY(0) scale(.98); }

/* =================== EINGABEFELDER =================== */

.feld-kopf {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-faint);
}

select.field {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  padding: 10px 34px 10px 11px; font-size: 13px; outline: none;
  font-family: var(--font-body); color: var(--paper);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-dim) 50%),
                    linear-gradient(135deg, var(--paper-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select.field:focus { border-color: var(--akzent); }
select.field:disabled { opacity: .5; cursor: not-allowed; }

.zahl { display: inline-flex; border: 1px solid var(--line); background: var(--panel); }
.zahl:focus-within { border-color: var(--akzent); }
.zahl input {
  width: 74px; background: transparent; border: 0; outline: none; color: var(--paper);
  font-family: var(--font-mono); font-size: 13px; padding: 9px 10px; text-align: right;
  -moz-appearance: textfield; appearance: textfield;
}
.zahl input::-webkit-outer-spin-button,
.zahl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zahl .pfeile { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.zahl .pfeile button {
  width: 26px; height: 50%; min-height: 18px; background: none; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--paper-dim); padding: 0;
}
.zahl .pfeile button:hover:not(:disabled) { background: var(--panel-hi); color: var(--akzent); }
.zahl .pfeile button:first-child { border-bottom: 1px solid var(--line); }
.zahl .pfeile button:disabled { opacity: .35; cursor: not-allowed; }
.zahl .pfeile svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2.6; fill: none; }
.zahl .einheit {
  display: grid; place-items: center; padding: 0 10px; border-left: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint);
}

/* =================== RUNDE =================== */

.rd { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--s5) 80px; }
@media (max-width: 560px) { .rd { padding: var(--s5) var(--s4) 60px; } }
.rd-kopf { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.rd-marke { font-family: var(--font-poster); font-size: 26px; letter-spacing: .04em; text-decoration: none; }
.rd-code { font-family: var(--font-mono); font-size: 13px; color: var(--akzent); letter-spacing: .18em; text-transform: uppercase; }
.rd-karte { border: 1px solid var(--line); background: var(--panel); padding: var(--s5); margin-top: var(--s4); }
.rd-karte:empty { display: none; }
.rd-titel { font-family: var(--font-poster); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 var(--s3); }
.rd-leute { display: flex; gap: var(--s2); flex-wrap: wrap; }
.rd-person { display: flex; align-items: center; gap: var(--s2); border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; }
.rd-person .z { font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint); }
.rd-film { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--s5); align-items: start; animation: popIn .28s cubic-bezier(.2,.75,.3,1); }
.rd-film img, .rd-film .plakat { width: 168px; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--line); background: var(--panel-hi); display: block; }
.rd-film h3 { font-family: var(--font-poster); font-size: clamp(22px, 5vw, 30px); letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
.rd-film .t { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
@media (max-width: 560px) {
  .rd-karte { padding: var(--s4); }
  .rd-film { grid-template-columns: 104px minmax(0, 1fr); gap: var(--s4); }
  .rd-film img, .rd-film .plakat { width: 104px; }
  .rd-film .rd-knoepfe { gap: var(--s2); flex-wrap: nowrap; }
  .rd-film .rd-knoepfe .btn { flex: 1 1 0; min-width: 0; padding: 13px 4px; white-space: normal; }
}
.rd-zeit { font-family: var(--font-mono); font-size: 11.5px; color: var(--paper-faint); letter-spacing: .08em; text-transform: uppercase; }
.rd-zeit b { color: var(--gold); font-weight: 500; }
.rd-knoepfe { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.rd-knoepfe .btn { min-width: 132px; padding: 13px var(--s4); }
.rd-treffer { display: grid; gap: var(--s2); }
.rd-treffer .t { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); border-left: 3px solid var(--jade); padding: 8px 12px; background: var(--panel-hi); }
.rd-treffer .t.fast { border-left-color: var(--gold); }
.rd-treffer .t img, .rd-treffer .t .thumb { width: 34px; height: 50px; }
.rd-treffer .t strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-fort { height: 3px; background: var(--line); margin-top: var(--s5); }
.rd-fort i { display: block; height: 100%; background: var(--akzent); transition: width .3s ease; }
.rd-hinweis { color: var(--paper-faint); font-size: 13px; line-height: 1.6; }
.rd-hinweis strong { color: var(--paper-dim); }
.rd-vorgaben { display: flex; gap: var(--s5); flex-wrap: wrap; align-items: flex-end; }
.rd-vorgaben label, .rd-vorgaben .feld { display: grid; gap: 6px; }
