/* Serienabend – Gestaltung nach Design/Serienabend.dc.html
   Farben und Größen als Custom Properties; Violett trägt genau eine
   Bedeutung: „von mir ausgewählt". */

:root {
  color-scheme: dark;

  --bg-page: #08060f;
  --bg-shell: #0c0918;
  --bg-grid: #0a0714;
  --bg-modal: #14111f;

  --ink: #ece9f4;
  --ink-soft: #c3bdd4;
  --ink-mute: #9a93ad;
  --ink-dim: #8b849f;
  --ink-faint: #615c78;

  --violet: #7c5cff;
  --violet-bg: rgba(124, 92, 255, .09);
  --violet-ring: rgba(124, 92, 255, .16);
  --whatsapp: #25a35a;

  --line: rgba(255, 255, 255, .07);
  --line-soft: rgba(255, 255, 255, .06);
  --fill: rgba(255, 255, 255, .045);
  --fill-soft: rgba(255, 255, 255, .035);
  --fill-chip: rgba(255, 255, 255, .05);
  --line-chip: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --active-border: rgba(255, 255, 255, .34);
  --active-ring: rgba(255, 255, 255, .07);
  --white-btn: rgba(255, 255, 255, .94);
  --white-btn-ink: #12101c;

  --font: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --rail-open: 264px;
  --rail-closed: 72px;
  --lb-w: 340px;

  --r-panel: 14px;
  --r-poster: 9px;
  --r-btn: 13px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
button { font-family: var(--font); color: var(--ink); }

.noscrollbar { scrollbar-width: none; }
.noscrollbar::-webkit-scrollbar { display: none; }

[hidden] { display: none !important; }

::selection { background: rgba(124, 92, 255, .35); }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Grundbausteine ---------- */

.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.panel {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

.avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: #d5cfe6;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(8, 6, 14, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
}
.badge--oben {
  border-color: rgba(255, 255, 255, .42);
  font-size: 9px;
  letter-spacing: .1em;
  color: #fff;
  padding: 0 9px;
}
.badge--inline {
  height: 18px;
  padding: 0 7px;
  font-size: 8px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.glow {
  position: absolute;
  left: 12%;
  top: -260px;
  width: 900px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(96, 68, 190, .42) 0%, rgba(72, 52, 150, .2) 42%, rgba(12, 9, 24, 0) 72%);
  filter: blur(20px);
  pointer-events: none;
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-poster);
  overflow: hidden;
  background: linear-gradient(165deg, #3d3950 0%, #242032 55%, #141119 100%);
}
.poster .badge--votes { position: absolute; top: 8px; left: 8px; z-index: 1; }
.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cast__face { position: relative; overflow: hidden; }
.cast__face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill-chip);
  border: 1px solid var(--line-chip);
  font-size: 13px;
  color: var(--ink-soft);
}
.chip--proposer {
  padding-left: 6px;
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-strong);
  font-weight: 600;
  color: var(--ink);
}
.chip .avatar { width: 22px; height: 22px; border: none; font-size: 9px; }

.chips--onposter .chip {
  height: 28px;
  padding: 0 12px;
  background: none;
  border-color: rgba(255, 255, 255, .32);
  font-size: 12px;
  color: #fff;
}
.chips--onposter .chip--proposer {
  padding-left: 4px;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .34);
  font-weight: 600;
}
.chips--onposter .chip .avatar { width: 20px; height: 20px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 8px; }

/* Abstimmen-Button: weiß = offen, Violett = ausgewählt */
.votebtn {
  height: 56px;
  min-width: 240px;
  padding: 0 30px;
  border-radius: var(--r-panel);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white-btn);
  color: var(--white-btn-ink);
  border: 1px solid var(--white-btn);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.votebtn[aria-pressed="true"] {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .2);
}

.trailerbtn {
  height: 56px;
  padding: 0 22px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  cursor: pointer;
  background: var(--fill-chip);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trailerbtn__dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.trailerbtn--square { width: 54px; height: 54px; padding: 0; justify-content: center; font-size: 15px; }

/* ---------- App-Gerüst ---------- */

.app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-shell);
  overflow-x: clip;
}

.main { min-width: 0; }

/* ---------- Sidebar ---------- */

.sidebar { position: relative; z-index: 2; }

.sidebar__open,
.sidebar__rail {
  height: 100%;
  background: rgba(255, 255, 255, .022);
  border-right: 1px solid var(--line);
  box-sizing: border-box;
}

.sidebar__open {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 24px 28px;
}

.sidebar__rail {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 0 28px;
}

.railtoggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

.sidebar__brand { display: flex; align-items: center; gap: 12px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: .01em; }

.roundcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.roundcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.roundcard__title { font-size: 19px; font-weight: 600; }
.roundcard__deadline { font-size: 12px; color: var(--ink-dim); }
.roundcard__voted { font-size: 13px; color: #b3adc4; }
.pending { font-size: 12px; line-height: 1.5; color: var(--ink-mute); }

.sidebar__block { display: flex; flex-direction: column; gap: 10px; }

.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  padding: 0 8px 0 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.identity__me { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.identity__change {
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  color: #a49dba;
  background: var(--fill-chip);
}

.trailermodal__langs button {
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-mute);
}
.trailermodal__langs button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .12);
  color: var(--ink);
}
.trailermodal__langs button:disabled { opacity: .4; cursor: default; }

.whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-panel);
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.whatsapp__dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
}
.whatsapp--rail {
  margin-top: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.sidebar__archive { padding-top: 22px; border-top: 1px solid var(--line); gap: 12px; }
.archive { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.archive li { display: flex; align-items: center; gap: 12px; }
.archive__thumb { width: 28px; height: 42px; flex: 0 0 auto; border-radius: 4px; }
.archive__text { display: flex; flex-direction: column; gap: 2px; }
.archive__title { font-size: 13px; font-weight: 500; color: #ddd8e9; }
.archive__round { font-family: var(--mono); font-size: 10px; color: var(--ink-dim); }
.archive__all {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  color: #b3adc4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tmdb {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-faint);
}
.tmdb .label { letter-spacing: .12em; }

.avatar--rail { width: 36px; height: 36px; font-size: 11px; border-color: rgba(255, 255, 255, .16); }

/* ---------- Kopfzeilen ---------- */

.statusbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
}
.statusbar__round { font-size: 14px; font-weight: 600; }
.statusbar__sep { width: 1px; height: 14px; background: var(--line-strong); }
.statusbar__voted { font-size: 13px; color: var(--ink-soft); }
.progress--slim { width: 120px; display: inline-block; }
.statusbar__deadline { margin-left: auto; font-size: 12px; color: var(--ink-mute); }

.mobilebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mobilebar__round { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mobilebar__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.mobilebar__status { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.avatar--bar { cursor: pointer; width: 44px; height: 44px; font-size: 11px; }

/* ---------- Hero ---------- */

.hero { position: relative; }

.hero__inner {
  position: relative;
  padding: 32px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
}

.hero__poster {
  border-radius: var(--r-panel);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}
.hero__poster .badge--votes { top: 14px; left: 14px; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 500; backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .16); }

.hero__body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.hero__pitch {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
}

.hero__meta-mobile { display: none; }
.herodots { display: none; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 2px; }

.morebar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-panel);
  background: var(--fill-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.morebar__hint { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-mute); white-space: nowrap; }

.morepanel {
  margin: -14px 32px 24px;
  max-width: 812px;
  padding: 24px;
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-chip);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.morepanel__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .label { color: var(--ink-dim); }
.stat__value { font-size: 20px; font-weight: 600; }
.morepanel__rule { height: 1px; background: rgba(255, 255, 255, .08); }
.morepanel__castblock { display: flex; flex-direction: column; gap: 14px; }
.cast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cast__person { display: flex; flex-direction: column; gap: 8px; }
.cast__face { aspect-ratio: 1; border-radius: 999px; }
.cast__name { font-size: 12px; font-weight: 600; }
.cast__role { font-size: 11px; color: var(--ink-dim); }

/* ---------- Filter ---------- */

.filters { border-top: 1px solid var(--line); background: var(--bg-grid); }

.filters__desktop {
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { width: 104px; flex: 0 0 104px; color: var(--ink-dim); line-height: 1.4; }
.filters__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.fchip {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-chip);
  background: var(--fill-chip);
  color: var(--ink-soft);
}
.fchip[aria-pressed="true"] {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .92);
  color: var(--white-btn-ink);
}
.fchip--person { padding-left: 5px; }
.fchip .avatar { width: 24px; height: 24px; border: none; font-size: 9px; color: #a49dba; }
.fchip[aria-pressed="true"] .avatar { background: rgba(18, 16, 28, .14); color: var(--white-btn-ink); }

.filters__mobile { display: none; }

/* ---------- Raster ---------- */

.gridsec { background: var(--bg-grid); padding: 26px 32px 34px; display: flex; flex-direction: column; gap: 16px; }
.gridsec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gridsec__head .label { color: var(--ink-dim); }
.gridsec__hint { font-size: 12px; color: var(--ink-dim); }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.grid > .card { width: 100%; max-width: 100%; }
.card__poster { width: 100%; }

.card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-panel);
  background: var(--fill-soft);
  border: 1px solid var(--line);
  opacity: .85;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.card--active {
  border-color: var(--active-border);
  box-shadow: 0 0 0 3px var(--active-ring);
  opacity: 1;
}
.card--selected {
  background: var(--violet-bg);
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-ring);
  opacity: 1;
}

.card__hit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
.card__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .28);
}
.card .badge--oben { position: absolute; top: 8px; right: 8px; }
.card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approve {
  margin-top: auto;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-poster);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-strong);
  transition: background .15s ease, color .15s ease;
}
.approve[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.mobilefooter { display: none; }
.archivebar { display: none; }

/* ---------- Leaderboard ---------- */

.leaderboard {
  position: relative;
  background: rgba(255, 255, 255, .022);
  border-left: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.leaderboard__mobilehead { display: none; }

.lb-top { display: flex; flex-direction: column; gap: 10px; }

.lb-row {
  display: grid;
  grid-template-columns: 20px 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: var(--fill);
  cursor: pointer;
  text-align: left;
}
.lb-row--active { border-color: var(--active-border); }
.lb-row--selected { background: var(--violet-bg); border-color: var(--violet); }
.lb-row__rank { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink-dim); }
.lb-row--first .lb-row__rank { color: var(--ink); }
.lb-row__thumb { aspect-ratio: 2 / 3; border-radius: 3px; background: linear-gradient(160deg, #3a3548, #181523); }
.lb-row__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-row__titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-row__title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__voters { font-size: 11px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__num { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--ink-soft); }
.lb-row--first .lb-row__num { color: var(--ink); }

.lb-rest { display: flex; flex-direction: column; }
.lb-line {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  height: 38px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.lb-line__rank { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.lb-line__title { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-line__num { font-family: var(--mono); font-size: 13px; color: #a49dba; }

.lb-expand {
  margin-top: auto;
  flex: 0 0 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--fill-chip);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.lb-expand__icon { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }

.lb-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 18px;
  border-radius: var(--r-panel);
  border: 1px dashed rgba(255, 255, 255, .16);
  text-align: center;
}
.lb-empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--ink-mute);
}
.lb-empty__title { font-size: 15px; font-weight: 600; }
.lb-empty__text { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

.lb-progress { display: flex; flex-direction: column; gap: 10px; padding: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Bottom-Navigation (Mobile) ---------- */

.bottomnav {
  display: none;
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bottomnav__pill {
  position: relative;
  flex: 0 0 auto;
  height: 62px;
  border-radius: 999px;
  /* ohne Backdrop-Blur (ältere Safari) deckender, damit die Pille lesbar bleibt */
  background: rgba(26, 22, 42, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bottomnav__pill {
    background: rgba(26, 22, 42, .62);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
}
.bottomnav__indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  transition: transform .25s ease;
}
.bottomnav__tab {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #a49dba;
  transition: color .25s ease;
}
.bottomnav__tab[aria-pressed="true"] { color: var(--white-btn-ink); }
.bottomnav__whatsapp {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

/* ---------- Detail-Sheet (Mobile) ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg-shell);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet[hidden] { display: none; }
.sheet__artwork { position: absolute; inset: 0; background: linear-gradient(165deg, #4d4a5e 0%, #2b2837 60%, #17151f 100%); }
/* Ein fester Verlauf für alle Serien — wird nie pro Poster nachjustiert. */
.sheet__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 66%;
  background: linear-gradient(to top, rgba(8, 6, 14, .95) 0%, rgba(8, 6, 14, .82) 26%, rgba(8, 6, 14, .5) 52%, rgba(8, 6, 14, .17) 76%, rgba(8, 6, 14, 0) 100%);
}
.sheet__back {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(8, 6, 14, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}
.sheet__votes {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 18px;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  background: rgba(8, 6, 14, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.sheet__content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}
.sheet__title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.sheet__pitch { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .85); text-wrap: pretty; }
.sheet__actions { display: flex; gap: 10px; }
.sheet__actions .votebtn { flex: 1; height: 54px; min-width: 0; }
.sheet__morebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding: 0 20px env(safe-area-inset-bottom, 0px);
  background: var(--bg-modal);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sheet__morebar span:last-child { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.sheet__morepanel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  max-height: 60%;
  overflow-y: auto;
  padding: 24px 20px;
  background: var(--bg-modal);
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sheet__morepanel .morepanel__stats { grid-template-columns: repeat(2, 1fr); }
.sheet__morepanel .cast { grid-template-columns: repeat(3, 1fr); }

/* ---------- Trailer-Overlay ---------- */

.trailermodal {
  width: min(720px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-modal);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
}
.trailermodal::backdrop {
  background: rgba(6, 4, 12, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.trailermodal__head {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 22px;
  border-bottom: 1px solid var(--line);
}
.trailermodal__titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trailermodal__titles .label { font-size: 9px; }
.trailermodal__name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trailermodal__controls { display: flex; align-items: center; gap: 10px; }
.trailermodal__langs { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.trailermodal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  font-size: 15px;
}
.trailermodal__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-page);
  display: grid;
  place-items: center;
}
.trailermodal__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailermodal__play {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}
.trailermodal__foot { display: flex; align-items: center; justify-content: flex-end; padding: 16px 22px; }
.votebtn--modal { height: 46px; min-width: 0; padding: 0 24px; border-radius: var(--r-btn); font-size: 14px; }

/* ---------- Archiv-Overlay ---------- */

.archivemodal {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-modal);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
}
.archivemodal::backdrop {
  background: rgba(6, 4, 12, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.archivemodal__body {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.archivemodal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--r-panel);
  background: var(--fill);
  border: 1px solid var(--line);
}
.archivemodal__sec { display: flex; flex-direction: column; gap: 12px; }
.archivemodal__sec > .label { color: var(--ink-dim); }
.archivemodal__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.aw-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--fill-soft);
  border: 1px solid var(--line);
}
.aw-row__thumb { width: 44px; height: 66px; border-radius: 6px; }
.aw-row__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aw-row__title { font-size: 14px; font-weight: 600; }
.aw-row__note { font-size: 11px; line-height: 1.45; color: var(--ink-dim); }
.aw-row__chip { align-self: start; }

.fame-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.fame-row .avatar { width: 24px; height: 24px; font-size: 9px; }
.fame-row__name { font-size: 13px; font-weight: 500; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fame-row__track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.fame-row__bar { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.fame-row__count { margin-left: auto; flex: 0 0 auto; font-family: var(--mono); font-size: 13px; color: var(--ink); }

.chron-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.chron-row__thumb { width: 28px; height: 42px; border-radius: 4px; }
.chron-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chron-row__title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chron-row__meta { font-size: 11px; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivemodal__tag {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-chip);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
/* ---------- Namensauswahl ---------- */

.member {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-shell);
}
.member[hidden] { display: none; }
.member__wall {
  position: absolute;
  inset: -6%;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  filter: blur(9px) saturate(.7);
  opacity: .62;
  pointer-events: none;
}
.member__wall .tile { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; }
.member__wall .tile span {
  position: absolute;
  inset: 0;
  transition: opacity 2400ms ease-in-out;
}
.member__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 15, .58) 0%, rgba(8, 6, 15, .5) 100%);
}
.glow--member { left: 20%; top: -240px; }
.member__panel {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 38px;
  border-radius: 20px;
  background: rgba(16, 13, 26, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.member__head { display: flex; flex-direction: column; gap: 8px; }
.member__title { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.member__text { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.member__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.member__btn {
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-panel);
  background: var(--fill-chip);
  border: 1px solid var(--line-chip);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.member__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .92);
  color: var(--white-btn-ink);
}
.avatar--member { width: 34px; height: 34px; border: none; font-size: 11px; color: var(--ink-soft); }
.member__btn[aria-pressed="true"] .avatar--member { background: rgba(18, 16, 28, .12); color: var(--white-btn-ink); }
.member__continue {
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-panel);
  border: 1px solid var(--white-btn);
  background: var(--white-btn);
  color: var(--white-btn-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.member__continue:disabled {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: #6f6987;
  cursor: default;
}

/* ---------- Desktop-Layout ---------- */

@media (min-width: 1100px) {
  .app {
    display: grid;
    grid-template-columns: var(--rail-open) minmax(0, 1fr) var(--lb-w);
    grid-template-rows: auto auto auto 1fr;
  }
  .app[data-rail="closed"] { grid-template-columns: var(--rail-closed) minmax(0, 1fr) var(--lb-w); }

  .main { display: contents; }

  .sidebar { grid-column: 1; grid-row: 1 / 5; }
  .statusbar { grid-column: 2; grid-row: 1; }
  .hero { grid-column: 2; grid-row: 2; }
  .leaderboard { grid-column: 3; grid-row: 1 / 3; }
  .filters { grid-column: 2 / 4; grid-row: 3; }
  .gridsec { grid-column: 2 / 4; grid-row: 4; }

  .app[data-rail="open"] .statusbar { display: none; }
  .app[data-rail="closed"] .statusbar { display: flex; }
  .app[data-rail="closed"] .sidebar__open { display: none; }
  .app[data-rail="closed"] .sidebar__rail { display: flex; }

  .mobilebar, .bottomnav, .sheet, .mobilefooter { display: none !important; }
  .leaderboard__mobilehead { display: none; }
}

/* ---------- Mobile-Layout ---------- */

@media (max-width: 1099px) {
  .sidebar, .statusbar { display: none; }
  .leaderboard { display: none; }

  .app[data-tab="leaderboard"] .hero,
  .app[data-tab="leaderboard"] .filters,
  .app[data-tab="leaderboard"] .gridsec { display: none; }
  .app[data-tab="leaderboard"] .leaderboard {
    display: flex;
    border-left: none;
    background: none;
    padding: 0 0 calc(110px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }
  .leaderboard__title { display: none; }
  .leaderboard__mobilehead {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .leaderboard__votedbig { font-size: 18px; font-weight: 600; }
  .lb-top, .lb-rest { padding: 0 18px; }
  .lb-top { padding-top: 14px; }
  .lb-expand { display: none; }
  .lb-progress { margin: 14px 18px 0; }
  .lb-empty { margin: 14px 18px 0; flex: 0 0 auto; }

  .bottomnav { display: flex; }

  .glow { left: -60px; top: -160px; width: 520px; height: 420px; filter: blur(16px); }

  /* Artwork über die volle Breite (M2-Stil): Verlauf unten, Meta und
     Aktionen liegen auf dem Poster. */
  .hero__inner {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .hero__posterwrap { display: block; padding: 14px 0 0; }
  .hero__poster {
    width: 85%;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
  }
  .hero__poster::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    background: linear-gradient(to top, rgba(8, 6, 14, .95) 0%, rgba(8, 6, 14, .74) 30%, rgba(8, 6, 14, .34) 62%, rgba(8, 6, 14, 0) 100%);
  }
  .hero__poster .badge--votes { top: 14px; left: 14px; height: 26px; padding: 0 10px; font-size: 11px; }

  .hero__body {
    position: absolute;
    left: calc(7.5% + 16px);
    right: calc(7.5% + 16px);
    bottom: 16px;
    z-index: 1;
    gap: 12px;
  }
  .hero__eyebrow, .hero__title, .hero__pitch, .hero__inner .chips, .morebar, .morepanel { display: none; }

  .hero__meta-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 255, 255, .82);
  }
  .hero__proposer-mobile { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
  .hero__proposer-mobile .avatar { background: rgba(255, 255, 255, .18); color: #fff; }
  .hero__proposer-mobile .avatar { width: 18px; height: 18px; border: none; font-size: 8px; }

  .hero__actions { gap: 10px; padding-top: 0; }
  .hero__actions .votebtn { flex: 1; height: 52px; min-width: 0; border-radius: var(--r-btn); font-size: 15px; }
  .hero__actions .trailerbtn { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: var(--r-btn); font-size: 14px; }
  .hero__actions .trailerbtn__dot, .hero__actions .trailerbtn__label { display: none; }
  .hero__actions .trailerbtn::after { content: "▶"; }

  .herodots { display: flex; justify-content: center; gap: 5px; padding: 2px 0 0; }
  .herodots span { width: 5px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
  .herodots span.on { background: #fff; }

  .filters { border-top: none; background: none; }
  .filters__desktop { display: none; }
  .filters__mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--line-soft);
  }
  .filters__mobilerow {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 18px;
  }
  .fchip { flex: 0 0 auto; height: 32px; padding: 0 14px; font-size: 12px; }
  .fchip--person { padding-left: 5px; }
  .fchip .avatar { width: 22px; height: 22px; font-size: 8px; }

  .member__wall { grid-template-columns: repeat(5, 1fr); }
  .archivemodal__two { grid-template-columns: 1fr; }

  .gridsec { background: none; padding: 14px 18px calc(96px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .gridsec__head { display: none; }
  /* minmax(0, …): sonst kann nowrap-Inhalt die Spalten über den
     Viewport hinausdrücken (iOS Safari) */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .card { gap: 8px; padding: 8px; }
  .card__poster { aspect-ratio: 3 / 4; }
  .card__title { font-size: 12px; }
  .card__meta { font-size: 9px; }
  .approve { height: 34px; flex-basis: 34px; font-size: 11px; }

  .archivebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    margin-top: 4px;
    border-radius: var(--r-btn);
    background: var(--fill);
    border: 1px solid var(--line-strong);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .archivebar__hint { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-mute); }

  .mobilefooter {
    display: block;
    padding-top: 8px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--ink-faint);
  }
}

/* ---------- Status-Zeile ---------- */

.status {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(480px, calc(100vw - 36px));
  margin: 0;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--bg-modal);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.votebtn:disabled, .trailerbtn:disabled, .approve:disabled { opacity: .55; cursor: default; }

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .member__wall .tile span { transition: none !important; }
}
