/* Popcorn oder Nachos — Samt trifft Kiosk. innocent · 1972-10-04 */
:root {
  --samt1: #5a0f17; --samt2: #2a0609; --samt3: #150304;
  --gold: #c9a24a; --goldhell: #f7d67a; --creme: #f5e6c8;
  --karte: #3a0b10; --kartenrand: #7a2a2f; --leiste: #1c0406;
  --senf: #f2b33d; --cola: #c8102e; --popcorn: #fff5e6;
  --gruen: #3ddc84; --blau: #7ab8ff;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100dvh; color: var(--creme);
  font: 15px/1.4 -apple-system, "SF Pro Text", system-ui, sans-serif;
  background: radial-gradient(120% 60% at 50% 0%, var(--samt1) 0%, var(--samt2) 55%, var(--samt3) 100%) fixed;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a { color: var(--goldhell); }
[hidden] { display: none !important; }

/* Kopf */
.kopf { padding: env(safe-area-inset-top) 12px 0; text-align: center; }
.marquee { height: 10px; margin: 6px auto 2px; width: min(100%, 420px);
  background: radial-gradient(circle, var(--goldhell) 0 2px, transparent 3px) 0 0 / 22px 10px repeat-x;
  filter: drop-shadow(0 0 5px #ffcf5a); animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.kopfzeile { display: flex; align-items: center; justify-content: center; position: relative; }
.logo { margin: 2px 0 0; font-family: var(--serif); color: var(--goldhell); letter-spacing: 1.5px;
  font-size: clamp(22px, 6.2vw, 30px); text-shadow: 0 0 14px #ffb52e, 0 0 2px #fff3c4; font-weight: 700; }
.logo i { font-size: .5em; letter-spacing: 1px; margin: 0 .35em; font-weight: 400; opacity: .9; }
.profilKnopf { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%;
  background: var(--senf); color: #2a0609; font-weight: 800; box-shadow: 0 2px 0 #a67a1a; }
.streifen { height: 7px; margin: 8px auto 4px; width: min(100%, 420px); border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--cola) 0 12px, var(--popcorn) 12px 24px); }
.untertitel { margin: 0 0 8px; font-size: 12px; opacity: .75; }

/* Inhalt */
.inhalt { max-width: 640px; margin: 0 auto; padding: 4px 12px 16px; }
.hinweis { text-align: center; opacity: .7; padding: 24px 8px; }
.abschnitt { font-family: var(--serif); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--goldhell);
  margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
.abschnitt small { font-family: var(--mono); letter-spacing: 0; text-transform: none; opacity: .7; font-size: 11px; }

/* Karten */
.karte { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 14px;
  background: var(--karte); border: 1px solid var(--kartenrand); }
.karte.bingen { border-color: var(--senf); box-shadow: 3px 3px 0 var(--senf); }
.karte.klick { cursor: pointer; }
.poster { width: 52px; height: 76px; border-radius: 6px; flex: none; background: #1a0508 center/cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center; font-size: 9px; overflow: hidden; }
.poster.leer::after { content: "🎬"; font-size: 22px; margin-bottom: 22px; }
.meta { flex: 1; min-width: 0; }
.meta b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta small { display: block; font-size: 12px; opacity: .85; }
.meta .next { color: var(--goldhell); }
.chips { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip { font-size: 10px; padding: 2px 7px; border-radius: 999px; color: #fff; font-weight: 600; }
.chip.stern { background: #5a3a0a; color: var(--goldhell); }
.balken { height: 5px; border-radius: 3px; background: var(--samt2); margin-top: 6px; overflow: hidden; }
.balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--goldhell), var(--gold)); }
.knopf { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 1.5px solid var(--gold); }
.knopf.senf { background: var(--senf); border: 0; box-shadow: 0 2px 0 #a67a1a; }
.knopf:active { transform: scale(.92); }
.zahl { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Untere Leiste */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: repeating-linear-gradient(90deg, var(--cola) 0 22px, var(--popcorn) 22px 44px); }
.leiste button { background: var(--leiste); border-radius: 12px; padding: 4px 10px; min-width: 64px; display: flex; flex-direction: column;
  align-items: center; gap: 0; color: var(--creme); border: 1px solid transparent; }
.leiste button b { font-size: 20px; line-height: 1.2; font-weight: 400; }
.leiste button small { font-size: 10px; opacity: .8; }
.leiste button.aktiv { border-color: var(--senf); color: var(--goldhell); }

/* Suche */
.suchfeld { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--kartenrand); background: var(--karte);
  color: var(--creme); font-size: 16px; margin: 6px 0 12px; }
.suchfeld:focus { outline: 2px solid var(--senf); }

/* Blatt (Serienseite / Profil) */
.blatt { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: radial-gradient(120% 60% at 50% 0%, var(--samt1) 0%, var(--samt2) 55%, var(--samt3) 100%) fixed; padding: env(safe-area-inset-top) 0 calc(110px + env(safe-area-inset-bottom)); }
.blattinhalt { max-width: 640px; margin: 0 auto; padding: 12px; }
.blattkopf { display: flex; gap: 12px; align-items: flex-start; }
.blattkopf .poster { width: 90px; height: 132px; }
.blattkopf h2 { margin: 0 0 4px; font-family: var(--serif); color: var(--goldhell); font-size: 22px; line-height: 1.15; }
.zurueck { position: sticky; top: 0; z-index: 2; background: var(--samt2); padding: 8px 0; color: var(--goldhell); font-weight: 600; }
.beschreibung { font-size: 13px; opacity: .85; margin: 10px 0; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.pille { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--gold); font-size: 13px; }
.pille.an { background: var(--senf); color: #2a0609; border-color: var(--senf); font-weight: 700; }
.pille.rot { border-color: var(--cola); color: #ff9a9a; }
.sterne { display: flex; gap: 2px; font-size: 26px; }
.sterne button { opacity: .35; }
.sterne button.an { opacity: 1; filter: drop-shadow(0 0 4px #ffb52e); }
.staffel { margin-top: 10px; border: 1px solid var(--kartenrand); border-radius: 12px; overflow: hidden; }
.staffel > summary { padding: 10px 12px; background: var(--karte); cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; }
.folge { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid #2a0609; }
.folge .nr { font-family: var(--mono); width: 34px; opacity: .8; font-size: 12px; }
.folge .name { flex: 1; min-width: 0; font-size: 13px; }
.folge .name small { display: block; opacity: .65; font-size: 11px; }
.folge.zukunft { opacity: .5; }
.haken { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.haken.an { background: var(--senf); border-color: var(--senf); color: #2a0609; }
.bis { font-size: 11px; opacity: .55; padding: 4px 6px; }
label.feld { display: block; margin: 12px 0 4px; font-size: 12px; opacity: .8; }
select, input[type=text] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--kartenrand); background: var(--karte); color: var(--creme); font-size: 15px; }
.profile { display: flex; gap: 8px; flex-wrap: wrap; }
.profile button { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--kartenrand); background: var(--karte); font-weight: 600; }
.profile button.an { border-color: var(--senf); box-shadow: 0 0 0 2px var(--senf) inset; }
.kalendertag { margin: 14px 0 6px; font-family: var(--mono); font-size: 12px; color: var(--goldhell); }
.vorschlag { border-color: #5a3a0a; background: #2e1a05; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); translate: -50% 0; background: var(--senf); color: #2a0609;
  font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.4); z-index: 30; max-width: 90vw; }
.fuss { text-align: center; font-size: 10px; opacity: .35; margin-top: 30px; font-family: var(--mono); }
