/* Got Popcorn? – Gestaltung angelehnt an Apples Human Interface Guidelines */
:root {
  color-scheme: dark light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #000; --bg2: #0d0c0b; --card: #1c1c1e; --card2: #2c2c2e; --card3: #3a3a3c;
  --label: #fff; --label2: rgba(235,235,245,.62); --label3: rgba(235,235,245,.32);
  --sep: rgba(84,84,88,.6); --fill: rgba(120,120,128,.24); --fill2: rgba(120,120,128,.16);
  --accent: #ffd60a; --accent-ink: #1d1600; --accent-text: #ffd60a; --tint: rgba(255,214,10,.16);
  --red: #ff453a; --green: #30d158; --blue: #0a84ff;
  --bar: rgba(22,22,24,.78);
  --radius: 14px; --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --ease: cubic-bezier(.32,.72,0,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f2f7; --bg2: #f2f2f7; --card: #fff; --card2: #f2f2f7; --card3: #e5e5ea;
    --label: #000; --label2: rgba(60,60,67,.62); --label3: rgba(60,60,67,.32);
    --sep: rgba(60,60,67,.22); --fill: rgba(120,120,128,.16); --fill2: rgba(120,120,128,.1);
    --accent: #ffcc00; --accent-ink: #231a00; --accent-text: #a26c00; --tint: rgba(255,204,0,.2);
    --red: #ff3b30; --green: #34c759; --blue: #007aff;
    --bar: rgba(249,249,249,.8);
    --shadow: 0 10px 30px rgba(0,0,0,.12);
  }
}
/* Personenfarben (System-Palette) */
.pc0 { --pc: #ff6961; } .pc1 { --pc: #64d2ff; } .pc2 { --pc: #30d158; } .pc3 { --pc: #ff9f0a; }
.pc4 { --pc: #bf5af2; } .pc5 { --pc: #5e5ce6; } .pc6 { --pc: #ff375f; } .pc7 { --pc: #66d4cf; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 17px/1.35 var(--font); letter-spacing: -.41px; color: var(--label); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Grundgerüst ---------- */
#app { max-width: 720px; margin: 0 auto; padding: 0 16px calc(96px + var(--safe-b)); }
.navbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(var(--safe-t) + 10px) 16px 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; transition: background .25s, border-color .25s; border-bottom: .5px solid transparent; }
.navbar.solid { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--sep); }
.navbar .small { grid-column: 2; font-weight: 600; font-size: 17px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.navbar.solid .small { opacity: 1; transform: none; }
.navbar .left { grid-column: 1; justify-self: start; }
.navbar .right { grid-column: 3; justify-self: end; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-text); font-size: 17px; background: none; border: 0; padding: 8px 8px 8px 0; min-height: 44px; }
.back svg { width: 13px; height: 21px; }
.large { margin: 2px 0 18px; }
.large h1 { font: 700 34px/41px var(--font-display); letter-spacing: .37px; margin: 0; }
.large p { margin: 2px 0 0; color: var(--label2); font-size: 15px; letter-spacing: -.24px; }
.logo { font-family: var(--font-rounded); font-weight: 800; }
.logo b { color: var(--accent-text); font-weight: 800; }

/* ---------- Tab-Leiste ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); padding-bottom: var(--safe-b); }
.tabbar nav { display: flex; width: 100%; max-width: 720px; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; min-height: 49px; color: var(--label3); font-size: 10px; font-weight: 500; letter-spacing: .1px; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { color: var(--accent-text); }

/* ---------- Abschnitte & Listen ---------- */
.section { margin: 30px 0 8px; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 7px; }
.section-h h2 { margin: 0; font: 700 22px/28px var(--font-display); letter-spacing: .35px; }
.section-h small, .footnote { color: var(--label2); font-size: 13px; letter-spacing: -.08px; }
.footnote { padding: 7px 16px 0; font-size: 13px; line-height: 1.4; color: var(--label2); letter-spacing: -.08px; }
.caption { text-transform: uppercase; font-size: 13px; color: var(--label2); letter-spacing: -.08px; padding: 0 16px 7px; }
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 44px; position: relative; width: 100%; background: none; border: 0; text-align: left; color: inherit; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 16px); border-top: .5px solid var(--sep); }
button.row:active, a.row:active { background: var(--fill2); }
.row .grow { flex: 1; min-width: 0; }
.row .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { display: block; color: var(--label2); font-size: 15px; letter-spacing: -.24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { color: var(--label2); font-size: 17px; display: flex; align-items: center; gap: 6px; flex: none; }
.chev { width: 8px; height: 13px; color: var(--label3); flex: none; }
.row.destructive { color: var(--red); justify-content: center; }
.row.action { color: var(--accent-text); }
.score { font: 600 22px/1 var(--font-rounded); color: var(--accent-text); min-width: 34px; text-align: right; }
.score.none { color: var(--label3); font-size: 17px; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: var(--radius); border: 0; font-weight: 600; font-size: 17px; background: var(--fill); color: var(--label); transition: transform .12s var(--ease), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.tinted { background: var(--tint); color: var(--accent-text); }
.btn.danger { background: rgba(255,69,58,.15); color: var(--red); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btns > .btn { flex: 1; }
.btns > .btn.block { flex: 1 1 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; color: var(--accent-text); font-size: 15px; padding: 10px 4px; min-height: 44px; }

/* ---------- Poster ---------- */
.poster { position: relative; flex: none; width: 40px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--card2); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8%; color: #fff; font: 800 10px/1.05 var(--font-rounded); letter-spacing: -.2px; word-break: break-word; }
.poster.m { width: 64px; border-radius: 8px; } .poster.m .art { font-size: 12px; }
.poster.l { width: 112px; border-radius: 12px; box-shadow: var(--shadow); } .poster.l .art { font-size: 17px; padding: 10px; }
.poster.xl { width: 150px; border-radius: 14px; box-shadow: var(--shadow); } .poster.xl .art { font-size: 21px; padding: 12px; }
.h0 .art { background: linear-gradient(160deg,#ff6b4a,#5a0f1f); } .h1 .art { background: linear-gradient(160deg,#4ac2ff,#0a1f4a); }
.h2 .art { background: linear-gradient(160deg,#5ee08a,#0b3324); } .h3 .art { background: linear-gradient(160deg,#ffc24a,#4a2300); }
.h4 .art { background: linear-gradient(160deg,#c47bff,#250a45); } .h5 .art { background: linear-gradient(160deg,#ff5fa2,#3d0624); }
.h6 .art { background: linear-gradient(160deg,#7d8cff,#10143d); } .h7 .art { background: linear-gradient(160deg,#5fe0d6,#06302d); }
.poster.secret .art { background: radial-gradient(120% 80% at 50% 0%, #3a3a3c, #111); align-items: center; justify-content: center; font-size: 22px; }
.poster.l.secret .art { font-size: 40px; } .poster.xl.secret .art { font-size: 52px; }

/* ---------- Wertungs-Plaketten ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 600; letter-spacing: -.08px; white-space: nowrap; background: var(--fill); color: var(--label); }
.pill.imdb b { color: var(--accent-text); font-weight: 800; letter-spacing: -.3px; }
.pill.rt { color: var(--label); }
.pill.ext { background: none; border: .5px solid var(--sep); color: var(--label2); font-weight: 500; }
.pills.sm { margin-top: 3px; } .pills.sm .pill { height: 18px; font-size: 11px; padding: 0 5px; border-radius: 4px; }
.estimate { font-size: 11px; color: var(--label3); }

/* ---------- Personen ---------- */
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pc, #888); color: #000; font: 700 14px/1 var(--font-rounded); }
.avatar.lg { width: 72px; height: 72px; font-size: 32px; }
.center > .avatar { margin-inline: auto; }
.row .s.wrap { white-space: normal; }
.row .chev { flex: none; width: 8px; height: 13px; color: var(--label3); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; background: var(--fill2); font-size: 14px; font-weight: 500; }
.chip .avatar { width: 20px; height: 20px; font-size: 11px; }
.chip.done { background: color-mix(in srgb, var(--pc) 22%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc, #888); flex: none; }

/* ---------- Startseite ---------- */
.hero { display: block; position: relative; background: var(--card); border-radius: var(--radius-lg); padding: 16px; overflow: hidden; color: inherit; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pc, var(--accent)) 26%, transparent), transparent 60%); pointer-events: none; }
.hero .top { position: relative; display: flex; gap: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-text); }
.hero h2 { font: 700 26px/1.1 var(--font-display); letter-spacing: .2px; margin: 6px 0 4px; }
.hero .when { font: 600 17px/1.3 var(--font); color: var(--label); }
.hero .status { color: var(--label2); font-size: 15px; margin-top: 8px; }
.hero .btns { position: relative; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .2px; background: var(--tint); color: var(--accent-text); }
.badge.live { background: rgba(255,69,58,.16); color: var(--red); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.empty { text-align: center; color: var(--label2); padding: 28px 20px; background: var(--card); border-radius: var(--radius-lg); }
.empty .big { font-size: 40px; margin-bottom: 6px; }
.empty b { display: block; color: var(--label); font-size: 20px; font-weight: 600; letter-spacing: .38px; }
.empty p { margin: 4px 0 0; }
.empty .btns { margin-top: 18px; padding: 0; }

/* ---------- Filmseite ---------- */
.film-head { display: flex; gap: 16px; align-items: flex-end; margin: 4px 0 16px; }
.film-head h1 { font: 700 28px/1.1 var(--font-display); letter-spacing: .3px; margin: 0 0 6px; }
.film-head .meta { color: var(--label2); font-size: 15px; letter-spacing: -.24px; }
.plot { color: var(--label2); font-size: 15px; line-height: 1.45; margin: 0 0 4px; }
.note { background: var(--card); border-radius: var(--radius); padding: 12px 16px; font-size: 15px; margin: 12px 0; }
.award-badge { display: inline-flex; gap: 6px; align-items: center; background: var(--tint); color: var(--accent-text); padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.total { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--radius-lg); padding: 16px; margin-top: 12px; }
.ring { width: 76px; height: 76px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--fill); }
.ring .val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px/1 var(--font-rounded); }
.total .lbl { color: var(--label2); font-size: 15px; }
.total .big { font: 700 20px/1.2 var(--font-display); }
.quote { display: block; font-size: 15px; color: var(--label); font-style: italic; margin-top: 4px; white-space: normal; }
.secret-box { background: var(--card); border-radius: var(--radius-lg); padding: 16px; margin-top: 12px; }
.secret-box h3 { margin: 0 0 4px; font-size: 17px; }

/* ---------- Formulare ---------- */
.field { display: block; margin: 14px 0 0; }
.field > span { display: block; font-size: 13px; color: var(--label2); padding: 0 4px 6px; text-transform: uppercase; letter-spacing: -.08px; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--card); outline: none; font-size: 17px; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.4; }
.input:focus { box-shadow: 0 0 0 2px var(--accent); }
.seg { display: flex; padding: 2px; border-radius: 9px; background: var(--fill2); }
.seg button { flex: 1; min-height: 34px; border: 0; border-radius: 7px; background: none; font-size: 15px; font-weight: 500; color: var(--label); padding: 0 12px; transition: background .2s; }
.seg button[aria-pressed="true"] { background: var(--card3); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
@media (prefers-color-scheme: light) { .seg button[aria-pressed="true"] { background: #fff; } }
.seg button[disabled] { opacity: .35; }
.seg.multi { flex-wrap: wrap; gap: 2px; }
.seg.multi button { flex: 1 0 auto; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.q .seg { width: 150px; flex: none; }
.scorebox { text-align: center; padding: 12px 0 4px; }
.scorebox .n { font: 700 72px/1 var(--font-rounded); color: var(--accent-text); letter-spacing: -1px; }
.scorebox .of { color: var(--label2); font-size: 15px; }
.slider { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.stepper { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); font-size: 24px; line-height: 1; display: grid; place-items: center; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 44px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) 0 var(--p, 50%), var(--fill) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 .5px 4px rgba(0,0,0,.12), 0 6px 13px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--fill); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 13px rgba(0,0,0,.18); }
.calc { text-align: center; color: var(--label2); font-size: 15px; margin-top: 4px; }
.calc b { color: var(--label); }
.form-error { color: var(--red); font-size: 15px; margin-top: 10px; }

/* ---------- Sheets (Dialoge) ---------- */
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 640px; max-height: 92dvh; background: var(--bg2); color: var(--label); border-radius: 14px 14px 0 0; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
dialog.sheet:not([open]) { display: none; }
@media (prefers-color-scheme: light) { dialog.sheet { background: var(--bg); } }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 16px; max-height: 86dvh; } }
dialog.sheet::backdrop { background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheetIn .42s var(--ease); }
dialog.sheet[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@media (min-width: 700px) { @keyframes sheetIn { from { transform: scale(.96); opacity: 0; } } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 8px 8px 16px; min-height: 56px; position: relative; flex: none; }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill); }
.sheet-head h2 { grid-column: 2; margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .close { grid-column: 3; justify-self: end; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--label2); }
.icon-btn span { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.sheet-body { padding: 4px 16px calc(24px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }

/* ---------- Suche im Sheet ---------- */
.searchbar { display: flex; gap: 8px; }
.searchbar .input { flex: 1; }
.results { margin-top: 12px; }
.result { display: flex; gap: 12px; padding: 12px 0; border-top: .5px solid var(--sep); }
.result:first-child { border-top: 0; }
.result .info { flex: 1; min-width: 0; }
.result .info b { display: block; font-size: 17px; }
.result .info .s { color: var(--label2); font-size: 14px; }
.result .info p { margin: 4px 0 0; font-size: 14px; color: var(--label); }
.result .btn { margin-top: 8px; }
.result.chosen { background: var(--tint); margin: 0 -10px; padding: 12px 10px; border-radius: 12px; border-top-color: transparent; }
.loading { padding: 18px 0; color: var(--label2); display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 15px; }
.loading .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Statistik ---------- */
.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.scroller::-webkit-scrollbar { display: none; }
.scroller button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--fill2); font-size: 15px; font-weight: 500; }
.scroller button[aria-pressed="true"] { background: var(--label); color: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 14px; min-width: 0; }
.tile .v { font: 700 30px/1 var(--font-rounded); color: var(--accent-text); }
.tile .k { color: var(--label2); font-size: 13px; margin-top: 6px; }
.tile .x { font-size: 15px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 4px; border-radius: 2px; background: var(--fill2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--pc, var(--accent)); transition: width .8s var(--ease); }
.rank-n { width: 22px; text-align: right; color: var(--label2); font-size: 15px; flex: none; font-variant-numeric: tabular-nums; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { color: var(--label2); font-weight: 500; font-size: 12px; text-align: right; padding: 10px 12px 6px 0; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 16px; }
.tbl td { text-align: right; padding: 10px 12px 10px 0; border-top: .5px solid var(--sep); font-variant-numeric: tabular-nums; }
.tbl td .who { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Saison ---------- */
.season-card { background: var(--card); border-radius: var(--radius-lg); padding: 18px 16px; position: relative; overflow: hidden; }
.season-card h3 { margin: 0; font: 700 22px/1.2 var(--font-display); }
.season-card .sub { color: var(--label2); font-size: 15px; }
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.award { background: var(--card2); border-radius: var(--radius); padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.award .e { font-size: 30px; line-height: 1; }
.award .ti { font-size: 12px; font-weight: 700; color: var(--label2); text-transform: uppercase; letter-spacing: .3px; }
.award .w { font: 700 17px/1.2 var(--font-display); word-break: break-word; }
.award .v { font-size: 13px; color: var(--label2); }
.award.crown { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--card2)), var(--card2) 70%); padding: 18px 16px; }
.award.crown .e { font-size: 44px; }
.award.crown .w { font-size: 26px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.banner { display: flex; gap: 12px; align-items: center; background: var(--tint); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.banner .e { font-size: 28px; }
.banner p { margin: 0; font-size: 15px; }
.banner.js { background: var(--card); margin: 16px 0 0; }
/* Terminumfrage */
.poll-card { margin-bottom: 16px; }
.poll-card .status b { color: var(--label); }
.poll-opt { padding: 12px 16px; border-bottom: .5px solid var(--sep); display: grid; gap: 10px; }
.poll-opt:last-child { border-bottom: 0; }
.poll-opt .head { display: flex; align-items: center; gap: 4px; }
.poll-opt .t { font-weight: 600; }
.poll-opt .s { color: var(--label2); font-size: 15px; }
.poll-opt .icon-btn { width: 36px; height: 36px; }
.seg.three button { padding: 0 4px; font-size: 14px; white-space: nowrap; }
.seg.three button:nth-child(2) { flex: 1.5; }
.chip.maybe { opacity: .75; }
.chip.no { opacity: .4; text-decoration: line-through; }
.input.time { flex: 0 0 110px; }
.input.grow { flex: 1; min-width: 0; }
.row.conv { gap: 10px; }
.input.sel { width: auto; min-height: 36px; padding: 0 8px; flex: none; }
/* Kalender zum Mehrfach-Auswählen */
.cal { background: var(--card); border-radius: var(--radius); padding: 8px 10px 12px; margin-top: 12px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; }
.cal-h b { font-size: 17px; font-weight: 600; }
.cal-h .icon-btn[disabled] { opacity: .3; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-g .w { font-size: 12px; font-weight: 600; color: var(--label3); padding: 4px 0; text-transform: uppercase; }
.cal-g .d { aspect-ratio: 1; max-width: 44px; width: 100%; justify-self: center; border: 0; border-radius: 50%; background: none; font-size: 17px; color: var(--label); font-variant-numeric: tabular-nums; transition: background .15s, transform .12s var(--ease); }
.cal-g .d:active { transform: scale(.9); }
.cal-g .d.today { color: var(--accent-text); font-weight: 700; }
.cal-g .d.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal-g .d.taken { background: var(--fill); color: var(--label2); }
.cal-g .d[disabled]:not(.taken) { color: var(--label3); }
/* Archiv zum Auf- und Zuklappen */
.section-h.fold { width: 100%; background: none; border: 0; color: inherit; text-align: left; align-items: center; gap: 8px; min-height: 44px; padding-bottom: 4px; }
.section-h.fold h2 { flex: 1; }
.section-h.fold .chev { transition: transform .25s var(--ease); }
.section-h.fold[aria-expanded="true"] .chev { transform: rotate(90deg); }
/* Ziehen zum Aktualisieren */
#ptr { position: fixed; left: 50%; top: calc(var(--safe-t) + 8px); z-index: 60; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: var(--card2); box-shadow: var(--shadow); display: grid; place-items: center; transform: translateY(-80px); opacity: 0; pointer-events: none; }
#ptr::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--label3); border-top-color: var(--accent); }
#ptr.ready::after { border-color: var(--accent); }
#ptr.spin::after { animation: spin .8s linear infinite; }
.edit-award { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: .5px solid var(--sep); }
.edit-award:first-child { border-top: 0; }
.edit-award .e { font-size: 26px; width: 34px; text-align: center; }
.edit-award .grow { flex: 1; min-width: 0; }
.edit-award .input { min-height: 40px; padding: 8px 12px; font-size: 16px; }
.edit-award.off { opacity: .4; }
.toggle { position: relative; width: 51px; height: 31px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 16px; background: var(--fill); transition: background .2s; pointer-events: none; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .25s var(--ease); }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(20px); }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; max-width: 400px; margin: 0 auto; }
.auth .brand { text-align: center; margin-bottom: 32px; }
.auth .brand .icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 10px 24px rgba(255,214,10,.3)); }
.auth .brand h1 { font: 800 34px/1.1 var(--font-rounded); margin: 12px 0 6px; }
.auth .brand p { color: var(--label2); margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--label3); font-size: 13px; margin: 22px 0 8px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: .5px solid var(--sep); }

/* ---------- Hinweise ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); z-index: 100; transform: translate(-50%, -150%); background: var(--card3); color: var(--label); padding: 12px 18px; border-radius: 26px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow); transition: transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.on { transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }
.offline { position: fixed; left: 0; right: 0; top: 0; z-index: 90; background: var(--red); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: calc(var(--safe-t) + 4px) 8px 4px; }
.fatal { text-align: center; padding: 80px 20px; }
.fatal .big { font-size: 52px; }
.muted { color: var(--label2); }
.mt { margin-top: 16px; }
.center { text-align: center; }
code.linkbox { display: block; word-break: break-all; background: var(--card2); padding: 12px; border-radius: 10px; font-size: 13px; margin-top: 10px; user-select: all; }

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

.row.i68 { --inset: 68px; } .row.i58 { --inset: 58px; } .row.i50 { --inset: 50px; }
.list.pad { padding: 0 16px; }
.footnote.tight { padding: 4px 0 0; }
.btns.flush { margin-top: 0; }
.input.emoji-in { flex: 0 0 64px; text-align: center; }
.pname { margin: 12px 0 0; } .prole { margin: 2px 0 0; }
.grow { flex: 1; min-width: 0; }
.poster .art.ini { justify-content: center; align-items: center; font-size: 15px; letter-spacing: .5px; padding: 0; }
.tbl td, .tbl th { white-space: nowrap; }
.tbl td .who { white-space: nowrap; }
.film-head { margin-top: 8px; }
.film-head .eyebrow { margin-bottom: 4px; }
.list:has(> table) { overflow-x: auto; }
h1, h2, h3, .t, .w, .x, .info b { overflow-wrap: anywhere; }
#app { overflow-x: clip; }
.toast { width: max-content; }
.btn { white-space: nowrap; }
.btns > .btn { min-width: 0; padding: 0 14px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.auth .brand .icon img { width: 96px; height: 96px; margin: 0 auto; border-radius: 22px; box-shadow: 0 14px 40px rgba(255,180,0,.25); }
.list .input { background: var(--card2); }

/* Profilbild */
.avatar.img { background: var(--fill); overflow: hidden; }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.emoji { background: var(--fill); font-size: .9em; font-family: inherit; }
.avatar.emoji.lg { font-size: 40px; }
.avatar.xl { width: 112px; height: 112px; font-size: 48px; margin: 4px auto 8px; }
.avatar.emoji.xl { font-size: 64px; }
.avatar-btn { background: none; border: 0; padding: 0; display: inline-grid; justify-items: center; gap: 6px; color: inherit; }
.avatar-btn .edit { font-size: 15px; color: var(--accent-text); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; background: var(--card); border-radius: var(--radius); padding: 8px; }
.emoji-grid button { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font-size: 26px; }
.emoji-grid button:active { background: var(--fill); }
.file-btn { cursor: pointer; }
/* Jump-Scare-Zähler */
.js-btn { gap: 10px; background: rgba(255,69,58,.16); color: var(--label); }
.js-btn .e { font-size: 24px; }
.js-btn .n { font: 800 24px/1 var(--font-rounded); color: var(--red); min-width: 1.5ch; }
.js-btn .l { font-weight: 600; }
.js-btn.pop { animation: jspop .35s var(--ease); }
@keyframes jspop { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }
.js-live { margin-top: 16px; display: grid; gap: 4px; justify-items: center; }
.js-live .js-btn { width: 100%; min-height: 64px; font-size: 19px; }
/* Abgebrochen */
.badge.stop { background: rgba(255,69,58,.16); color: var(--red); }
.banner.stop { background: rgba(255,69,58,.12); margin: 16px 0 0; }
.mt-s { margin-top: 6px; }
.section.tight { margin-top: 0; }
/* Kalenderansicht des Archivs */
.cal.hist .cal-g { gap: 3px; }
.cal.hist .hd { min-height: 54px; border-radius: 8px; display: flex; flex-direction: column; align-items: stretch; padding: 3px; text-align: left; color: var(--label); position: relative; overflow: hidden; }
.cal.hist .hd .n { font-size: 13px; font-weight: 600; color: var(--label2); line-height: 1.1; }
.cal.hist .hd.today .n { color: var(--accent-text); }
.cal.hist .hd.has { background: linear-gradient(160deg, var(--g1, #444), var(--g2, #222)); }
.cal.hist .hd.has .n { color: rgba(255,255,255,.85); }
.cal.hist .hd .ttl { font-size: 10px; line-height: 1.15; font-weight: 600; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; overflow-wrap: anywhere; hyphens: none; }
.cal.hist .hd.planned { outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }
.cal.hist .hd .more { position: absolute; right: 3px; bottom: 2px; font-size: 9px; color: #fff; font-weight: 700; }
.cal.hist .cal-h .link { padding: 0 8px; color: var(--label); }
.cal.hist .hd.h0 { --g1: #ff6b4a; --g2: #5a0f1f; }
.cal.hist .hd.h1 { --g1: #4ac2ff; --g2: #0a1f4a; }
.cal.hist .hd.h2 { --g1: #5ee08a; --g2: #0b3324; }
.cal.hist .hd.h3 { --g1: #ffc24a; --g2: #4a2300; }
.cal.hist .hd.h4 { --g1: #c47bff; --g2: #250a45; }
.cal.hist .hd.h5 { --g1: #ff5fa2; --g2: #3d0624; }
.cal.hist .hd.h6 { --g1: #7d8cff; --g2: #10143d; }
.cal.hist .hd.h7 { --g1: #5fe0d6; --g2: #06302d; }
.row > .grow { min-width: 0; }
/* Hinweis: neue App-Version */
.update-bar { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); transform: translateX(-50%); z-index: 70; border: 0; border-radius: 20px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); animation: slidein .4s var(--ease); white-space: nowrap; }
@keyframes slidein { from { transform: translate(-50%, -80px); } }
/* Ihr vs. IMDb */
.cmp-head { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; background: var(--card); border-radius: var(--radius); padding: 16px 12px; margin-bottom: 10px; text-align: center; }
.cmp-n .v { font: 700 34px/1 var(--font-rounded); }
.cmp-n .v.imdb { color: var(--accent-text); }
.cmp-head .k { font-size: 13px; color: var(--label2); margin-top: 4px; }
.cmp-mid .d { font: 700 22px/1 var(--font-rounded); }
.d.up { color: var(--green); } .d.down { color: var(--red); } .d.even { color: var(--label2); }
.cmp-bar { position: relative; height: 6px; border-radius: 3px; background: var(--fill); margin-top: 7px; }
.cmp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--pc, var(--label2)); transition: width .6s var(--ease); }
.cmp-bar .imdb-mark { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.cmp-val { display: grid; justify-items: end; gap: 2px; min-width: 52px; }
.cmp-val b { font: 700 20px/1 var(--font-rounded); }
.cmp-val .d { font-size: 13px; font-weight: 600; }
/* Handlung: höchstens 10 Zeilen */
.plot.clamp { display: -webkit-box; -webkit-line-clamp: 10; line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; padding: 0 16px; color: var(--label); font-size: 16px; }
.result .info p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section.plotsec { margin: 18px 0 4px; }
/* Suchtreffer: mehr Infos zum richtigen Film */
.result .info .facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--label); margin-top: 2px; }
.result .info .facts span + span { color: var(--label2); }
.result .poster.m { flex: none; }
.result .info .pills { margin-top: 6px; }
.result { align-items: flex-start; }
.result .poster.m { align-self: flex-start; }
.result .info .pill b { display: inline; font-size: inherit; }
/* Suchfeld bleibt oben im Fenster stehen, die Treffer scrollen darunter */
.sheet-body .searchbar.sticky { position: sticky; top: -4px; z-index: 4; margin: 0 -16px; padding: 8px 16px 10px; background: var(--bg2); }
.searchbar.sticky { position: relative; }
.searchbar .sb-spin { position: absolute; right: 30px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--label3); border-top-color: var(--accent); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-body .searchbar.sticky .sb-spin { margin-top: -7px; }
.searchbar.busy .sb-spin { opacity: 1; animation: spin .8s linear infinite; }
.results.stale { opacity: .5; transition: opacity .2s; }
/* Steckbrief: Genre, Regie, Schauspieler, Länge */
.facts-list { margin: 14px 0 0; background: var(--card); border-radius: var(--radius); padding: 4px 16px; }
.facts-list > div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 9px 0; border-bottom: .5px solid var(--sep); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--label2); font-size: 15px; }
.facts-list dd { margin: 0; font-size: 15px; }
