/* 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; }
/* Laufband (Tom, 19.09.): Kino-Ticker unter dem Kopf, nur wenn etwas ausläuft */
.laufband { display: block; width: min(100%, 420px); margin: 0 auto 8px; padding: 5px 0; overflow: hidden; white-space: nowrap; text-align: left;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); background: #1a0305; color: var(--goldhell); font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.laufband .lauftext { display: inline-block; padding-left: 100%; animation: laufen 20s linear infinite; }
.laufband b { color: var(--senf); text-shadow: 0 0 6px #ffb52e; }
.laufband i { font-style: normal; color: var(--cola); margin: 0 14px; }
@keyframes laufen { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .laufband .lauftext { animation: none; padding-left: 8px; } .laufband { white-space: normal; } }
.kassentrenner.link { display: block; width: 100%; color: var(--goldhell); }
.filter.kat { justify-content: center; margin: 4px 0 8px; }

/* 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); }
.chip.genre { background: transparent; border: 1px solid var(--kartenrand); color: var(--creme); font-weight: 500; opacity: .85; }
.filter.genres { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.filter.genres .pille { flex: none; }
.chip.grau { background: #3a2f2f; color: #cbb9b9; font-weight: 500; }
.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)); }
/* Aktionsknopf als Kinoticket: Kerben links und rechts, Perforation in der Mitte */
.knopf { width: 62px; height: 42px; border-radius: 7px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #4a0d13; border: 0; box-shadow: inset 0 0 0 1.5px var(--gold);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px), radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px);
  -webkit-mask-composite: source-in; mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px), radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px); mask-composite: intersect;
  background-image: repeating-linear-gradient(0deg, var(--gold) 0 3px, transparent 3px 6px); background-size: 1px 60%; background-repeat: no-repeat; background-position: 14px 50%; }
.knopf.senf { background-color: var(--senf); box-shadow: inset 0 0 0 1.5px #a67a1a; background-image: repeating-linear-gradient(0deg, #a67a1a 0 3px, transparent 3px 6px); }
.knopf:active { transform: scale(.92); }
.knopf.doppel { font-size: 17px; letter-spacing: -2px; }
.knopf.gross.doppel b { font-size: 17px; letter-spacing: -2px; }
.zahl { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Loge (Favoriten + Rangliste) */
.unterreiter { justify-content: center; margin: 8px 0 4px; }
.filter { justify-content: center; margin: 4px 0 6px; gap: 6px; }
.pille.klein { padding: 5px 10px; font-size: 12px; }
.unterreiter .zahl { font-size: 11px; opacity: .75; margin-left: 2px; }
.poster.klein { width: 40px; height: 58px; }
.rang { font-family: var(--mono); font-variant-numeric: tabular-nums; width: 28px; text-align: right; flex: none; color: var(--goldhell); font-size: 13px; }
.karte.abgesetzt { opacity: .6; }
.karte.update { border-color: var(--senf); background: #2e1a05; opacity: 1; }
.abschnitt .sternreihe { color: var(--senf); letter-spacing: 2px; font-size: 15px; text-shadow: 0 0 6px #ffb52e; }

/* Lobby: Kinokasse */
.kasse { position: relative; margin: 10px 0 14px; padding: 26px 12px 12px; border-radius: 16px; background: linear-gradient(180deg, #4a0d13, #2e0709);
  border: 2px solid var(--gold); box-shadow: 0 0 0 4px #2a0609, 0 0 0 5px var(--kartenrand), 0 10px 30px rgba(0,0,0,.5); overflow: hidden; }
.markise { position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--cola) 0 18px, var(--popcorn) 18px 36px);
  -webkit-mask: radial-gradient(circle at 9px 100%, transparent 0 8px, #000 8.5px) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle at 9px 100%, transparent 0 8px, #000 8.5px) 0 0 / 18px 100% repeat-x;
  mask-composite: exclude; -webkit-mask-composite: xor; }
.kassenschild { margin: 4px auto 2px; width: max-content; padding: 3px 18px; border: 1.5px solid var(--gold); border-radius: 6px; font-family: var(--serif);
  letter-spacing: 6px; color: var(--goldhell); font-size: 14px; text-shadow: 0 0 10px #ffb52e; background: #1c0406; }
.kassengruss { text-align: center; margin: 6px 0 12px; font-size: 13px; opacity: .85; }
.kassentrenner { margin: 16px 0 2px; text-align: center; font-family: var(--serif); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--goldhell); opacity: .9; }
.kassenfach { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #1c0406; border: 1px solid var(--kartenrand); margin-top: 10px; cursor: pointer; }
.kassenfach.leer { opacity: .6; cursor: default; }
.kassenfach .etikett { color: var(--goldhell); letter-spacing: 1.5px; text-transform: uppercase; font-size: 10px; opacity: .8; margin-bottom: 2px; }
.kassenfach .meta b { font-size: 17px; white-space: normal; }
.poster.gross { width: 64px; height: 94px; }
.knopf.gross { width: 68px; height: 52px; flex-direction: column; gap: 0; }
.knopf.gross b { font-size: 20px; line-height: 1; font-weight: 400; }
.knopf.gross small { font-size: 9px; font-family: var(--mono); color: #2a0609; line-height: 1; margin-top: 2px; }
.kassen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 8px; }
.kassenschalter { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--karte); border: 1px solid var(--kartenrand); color: var(--creme); }
.kassenschalter b { font-size: 22px; font-weight: 400; line-height: 1.2; }
.kassenschalter span { font-size: 11px; margin-top: 2px; }
.kassenschalter small { font-size: 11px; color: var(--goldhell); min-height: 14px; }

/* Untere Leiste */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; 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 2px; flex: 1 1 0; min-width: 0; 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; white-space: nowrap; }
.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: 4px; align-items: center; flex-wrap: wrap; }
.sterne button { color: var(--goldhell); opacity: .55; width: 50px; height: 44px; border-radius: 12px; display: grid; place-items: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: opacity .2s, background .2s; }
.sterne button:active { opacity: 1; }
.sterne .di { display: inline-flex; align-items: flex-end; }
.sterne .di svg { width: 22px; height: 22px; display: block; transition: fill .25s, transform .2s; }
.sterne .di.runter svg { transform: rotate(180deg); }
.sterne .di.doppelt svg:first-child { margin-right: -9px; }
.sterne .di.doppelt svg:last-child { transform: translateY(-3px); }
.sterne .di.runter.doppelt svg:last-child { transform: rotate(180deg) translateY(-3px); }
.sterne button.an { opacity: 1; background: rgba(255, 181, 46, .12); }
.sterne button.an svg { fill: var(--senf); stroke: var(--senf); filter: drop-shadow(0 0 5px rgba(255, 181, 46, .7)); }
.sterne .daumenwort { flex-basis: 100%; font-size: 12px; color: var(--goldhell); opacity: .8; margin-top: 2px; min-height: 15px; }
@keyframes daumenPop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-10deg); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes daumenPopRunter { 0% { transform: rotate(180deg) scale(1); } 40% { transform: rotate(170deg) scale(1.45); } 70% { transform: rotate(180deg) scale(.92); } 100% { transform: rotate(180deg) scale(1); } }
.sterne button.pop .di { animation: daumenPop .5s cubic-bezier(.2, .9, .3, 1.3); }
.sterne button.pop .di.runter { animation-name: daumenPopRunter; }
.sterne button.pop .di.doppelt svg:last-child { animation: daumenPop .5s .08s cubic-bezier(.2, .9, .3, 1.3); }
.sterne button.pop .di.runter.doppelt svg:last-child { animation-name: daumenPopRunter; }
.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 als Kinoticket: Abriss links, Perforation mit Kerben, Text rechts */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 30; width: max-content; max-width: min(92vw, 520px);
  display: flex; align-items: stretch; background: var(--senf); color: #2a0609; border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.3;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); cursor: pointer;
  --kerbe: 58px;
  -webkit-mask: radial-gradient(circle at var(--kerbe) 0, transparent 7px, #000 7.5px), radial-gradient(circle at var(--kerbe) 100%, transparent 7px, #000 7.5px); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at var(--kerbe) 0, transparent 7px, #000 7.5px), radial-gradient(circle at var(--kerbe) 100%, transparent 7px, #000 7.5px); mask-composite: intersect; }
.toast .abriss { flex: none; width: 58px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: 9px; letter-spacing: 3px; font-weight: 700; opacity: .8; padding: 10px 0; }
.toast .ticketext { padding: 12px 16px 12px 14px; border-left: 2px dashed rgba(42,6,9,.45); min-height: 48px; display: flex; align-items: center; }
.toast.fehler { background: var(--cola); color: #fff; font-size: 15px; }
.toast.fehler .abriss { color: #ffd6d6; opacity: 1; background: #a80c26; }
.toast.fehler .ticketext { border-left-color: rgba(255,255,255,.55); }
.fuss { text-align: center; font-size: 10px; opacity: .35; margin-top: 30px; font-family: var(--mono); }

/* Abgerissene Karte + leerer Becher (alles gesehen) */
.abgerissen { display: inline-flex; color: var(--goldhell); opacity: .85; flex: none; }
.abgerissen svg { width: 78px; height: auto; display: block; }
.abgerissen.klein svg { width: 62px; }
.abgerissen.lobby { margin-top: 4px; }
.abgerissen.lobby svg { width: 62px; }
.abgerissenBanner { display: flex; gap: 12px; align-items: center; margin: 10px 0 4px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 12px; background: rgba(255, 181, 46, .05); }
.abgerissenBanner b { display: block; color: var(--goldhell); font-family: var(--serif); }
.abgerissenBanner small { font-size: 12px; opacity: .8; }

/* Wischen: links = später mal, rechts = brandheiß */
.wisch { position: relative; margin-bottom: 10px; border-radius: 14px; }
.wisch > .karte { margin-bottom: 0; position: relative; z-index: 1; touch-action: pan-y; transition: transform .28s cubic-bezier(.2,.8,.3,1), opacity .2s; user-select: none; -webkit-user-select: none; }
.wisch.zieht > .karte { transition: none; }
.wischhinter { position: absolute; inset: 0; border-radius: 14px; display: flex; align-items: center; padding: 0 18px; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .15s, transform .15s; }
.wischhinter.links { background: linear-gradient(90deg, #12314a, #0e3a5a); color: #bfe6ff; justify-content: flex-end; }
.wischhinter.rechts { background: linear-gradient(90deg, #7a2a05, #4a1603); color: #ffd08a; justify-content: flex-start; }
.wisch.nachlinks .wischhinter.links, .wisch.nachrechts .wischhinter.rechts { opacity: 1; }
.wisch.bereit .wischhinter { transform: scale(1.02); }
.kasse .wisch { margin: 10px 0 0; border-radius: 12px; }
.wisch > .kassenfach { margin-top: 0; position: relative; z-index: 1; touch-action: pan-y; transition: transform .28s cubic-bezier(.2,.8,.3,1), opacity .2s; user-select: none; -webkit-user-select: none; }
.wisch.zieht > .kassenfach { transition: none; }
.kasse .wischhinter { border-radius: 12px; }
.karte.heiss { border-color: #ff7a1a; box-shadow: 3px 3px 0 #ff7a1a; }
.chip.heiss { background: #7a2a05; color: #ffd08a; }
.chip.eis { background: #12314a; color: #bfe6ff; }
.chip.abschied { background: #5a2d0a; color: #ffc27a; border: 1px solid #a65a1a; }
.chip.abschied.bleibt { background: #3a2a0a; color: #d9b07a; border-color: #7a5a1a; }
.toastknopf { margin-left: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--goldhell); color: var(--goldhell); font-size: 12px; font-weight: 700; }
/* Runterziehen zum Aktualisieren */
.ziehhinweis { position: sticky; top: 0; z-index: 30; height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--goldhell); background: rgba(42, 6, 9, .85); transition: height .1s; }
.ziehhinweis.bereit { color: var(--senf); font-weight: 700; }

.inhalt { overflow-x: clip; }

.karte.hilfe { align-items: flex-start; }
.karte.hilfe .meta small { white-space: normal; line-height: 1.45; display: block; margin-top: 4px; }
.karte.hilfe .meta b { line-height: 1.3; white-space: normal; }
.karte.hilfe .meta small b { display: inline; font-size: inherit; white-space: normal; }

.staffelknopf { margin-left: auto; margin-right: 8px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gold); font-size: 12px; background: transparent; color: var(--goldhell); }
.staffelknopf.an { background: var(--senf); color: #2a0609; border-color: var(--senf); }

.neuknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; flex: none; }
.knopf.klein { width: 40px; height: 34px; font-size: 16px; padding: 0; }
