/* Good Movie Club – Schwarz-Weiß-Design nach dem Vorbild von nimbus
   (Inter für Text, Poppins für Überschriften, Pill-Buttons, weiße Karten mit feiner Linie) */

:root {
  --bg: #ffffff;
  --bg-2: #f2f2f2;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --accent: #111111;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.88);
  --ink-hover: #262626;
  color-scheme: light;
  --radius: 16px;
  --radius-sm: 12px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgba(20, 33, 61, 0.04);
  --shadow-btn: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.25);
}

/* Dark Mode: per Einstellung (data-theme) oder Systemvorgabe; „glass“ baut auf dark auf */
:root[data-theme="dark"],
:root[data-theme="glass"],
:root:not([data-theme="light"]):not([data-theme="dark"]):not([data-theme="glass"]).system-dark {
  --bg: #0f0f10;
  --bg-2: #1c1c1e;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --line: #2a2a2c;
  --accent: #f2f2f2;
  --accent-ink: #111111;
  --card: #151517;
  --glass: rgba(15, 15, 16, 0.88);
  --ink-hover: #d9d9d9;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 6px 20px -8px rgba(0, 0, 0, 0.8);
  --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 700;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
}

/* ---------- Buttons (nimbus: btn-primary / btn-secondary / btn-ghost) ---------- */

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--ink-hover);
}

.btn-secondary {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: var(--card);
  border-color: var(--muted);
}

.btn-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--bg-2);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

/* ---------- Kopfzeile (sticky, wie nimbus Nav) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  min-height: 56px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Schalter exakt mittig */
  align-items: center;
  gap: 12px;
}

.nav-actions {
  justify-self: end;
}

/* Feste Breiten in der Kopfzeile, damit der mittige Schalter nie springt */
#add-btn {
  min-width: 150px;
}

.category-switch {
  justify-self: center;
}

@media (max-width: 720px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    padding-top: 8px;
    padding-bottom: 8px;
    row-gap: 8px;
  }
  .category-switch {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.page-title {
  font-size: 1.6rem;
  line-height: 1.15;
}

.tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.demo-banner {
  margin: 0 0 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.demo-banner a {
  color: var(--ink);
}

/* ---------- Toolbar: Titel + Tabs ---------- */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.tab {
  background: none;
  border: none;
  color: var(--muted);
  padding: 7px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 640px) {
  .nav-actions .btn-ghost {
    display: none;
  }
}

/* ---------- Dialoge ---------- */

dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  width: min(680px, calc(100vw - 24px));
  max-height: min(85dvh, 760px);
  margin: 6vh auto auto;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  box-shadow: var(--shadow-pop);
}

@media (max-width: 640px) {
  dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 16px;
  }
}

dialog::backdrop {
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(2px);
  transition: opacity 0.6s ease;
}

/* Hinzufügen-Animation: Dialog fliegt in den Ziel-Tab, der Screen dahinter blendet ein */
dialog.leaving {
  transform-origin: center center;
  overflow: hidden;
  will-change: transform, opacity;
}
dialog.leaving::backdrop {
  opacity: 0;
}

.dialog-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--bg-2);
}

#dialog-close,
.dialog-close-abs {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

#add-dialog,
#watched-dialog {
  position: fixed;
  padding-top: 56px; /* Luft zwischen Schließen-X und Suchfeld */
}

/* X bleibt beim Scrollen oben rechts stehen (sticky statt absolute): sitzt im oberen
   Innenabstand (56 − 42 = 14 px vom Rand) und nimmt keinen Platz im Inhalt ein */
#add-dialog #dialog-close {
  position: sticky;
  display: block;
  top: -42px;
  margin: -42px -10px 10px auto; /* Box −42…−10 px, +10 px unten → Inhalt startet bei 0 */
  z-index: 2; /* über der fixierten Aktionsleiste */
}

.dialog-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 10px;
}

.confirm-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
/* Filmansicht: Aktionsleiste (+ ideas / + watchlist / + log) fest am unteren Rand mit deckendem Hintergrund */
#confirm-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 100%; /* bei kurzem Inhalt sitzt die Leiste trotzdem unten */
}
#confirm-view .confirm-movie {
  isolation: isolate; /* z-indizes im Player bleiben unter der Aktionsleiste */
  margin-bottom: 18px;
}
#confirm-view .confirm-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  /* volle Dialogbreite, deckender Hintergrund: Inhalt verschwindet hinter der Leiste */
  margin: auto -24px 0;
  padding: 12px 24px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  /* Schatten nach unten deckt den Dialog-Innenabstand ab (kein Inhalt scheint durch);
     anders als ein ::after vergrößert er den Scrollbereich nicht */
  box-shadow: 0 30px 0 var(--card);
}
@media (max-width: 640px) {
  #confirm-view .confirm-actions {
    margin: auto -16px 0;
    padding: 10px 16px 0;
  }
}
/* Bewertungen direkt unter den Genre-Pills (Test): Plattform-Pille, darunter die friends-Pille */
#confirm-ratings.ratings.two {
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0 2px;
}
#confirm-ratings.ratings.two .fp {
  order: 2;
}
@media (max-width: 640px) {
  #confirm-ratings.ratings.two {
    align-items: center;
  }
}
#confirm-view .confirm-adds {
  margin-left: 0;
  flex: 1;
}
#confirm-view .confirm-adds > * {
  flex: 1;
  min-width: 0;
}
.confirm-adds {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.confirm-adds[hidden] {
  display: none !important; /* hidden-Attribut muss gegen display:flex gewinnen */
}

@media (max-width: 640px) {
  .confirm-adds {
    order: 1;
    flex-basis: 100%;
    margin-left: 0;
  }
  .confirm-adds > * {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.small-dialog {
  width: min(440px, calc(100vw - 24px));
}

.small-dialog .settings-note {
  margin: 10px 0 4px;
}

/* ---------- Suche im Dialog ---------- */

.search-wrapper {
  position: relative;
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

#search-input:focus {
  border-color: var(--accent);
}

.suggestions {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  list-style: none;
  max-height: min(52dvh, 480px);
  overflow-y: auto;
}

@media (max-width: 640px) {
  .suggestions {
    max-height: calc(100dvh - 210px);
  }
}

.suggestions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.suggestions li + li {
  border-top: 1px solid var(--line);
}

.suggestions li:hover,
.suggestions li.active {
  background: var(--bg-2);
}

.suggestions img,
.suggestions .poster-placeholder {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.poster-placeholder {
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  filter: grayscale(1);
}

.suggestion-title {
  font-weight: 600;
}

.suggestion-year {
  color: var(--muted);
  font-size: 0.85rem;
}

.suggestions .status-line {
  color: var(--muted);
  cursor: default;
  justify-content: center;
  font-size: 0.9rem;
}

/* ---------- Bestätigungsansicht ---------- */

.confirm-movie {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Angedeuteter Player oben im Dialog */
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
}

/* Ambilight: gestreckte Randspalten des Covers, weichgezeichnet; leicht überzeichnet,
   damit der Blur keine hellen Ränder erzeugt */
.player-ambient {
  position: absolute;
  inset: calc(var(--amb-overscan) * -1%);
  width: calc(100% + var(--amb-overscan) * 2%);
  height: calc(100% + var(--amb-overscan) * 2%);
  filter: blur(var(--amb-blur)) saturate(var(--amb-sat)) brightness(var(--amb-bright));
}

.player-ambient[hidden] {
  display: none;
}

/* Vordergrund: Cover in voller Höhe, mittig, ungeschnitten */
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}

.player-poster[hidden] {
  display: none;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b2f3a, #111);
}

.player-placeholder[hidden] {
  display: none;
}

.player-placeholder .emoji {
  font-size: 3rem;
  filter: grayscale(1);
  opacity: 0.6;
}

/* Eingebetteter Trailer im Player */
.player-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

.player-embed[hidden] {
  display: none;
}

.player.playing .play-overlay,
.player.playing .player-bar,
.player.playing .player-ambient,
.player.playing .player-poster {
  display: none;
}

/* Angedeutete Fortschrittsleiste am unteren Rand */
.player-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.player-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3%;
  min-width: 8px; /* Video steht praktisch am Anfang */
  border-radius: 2px;
  background: var(--card);
}

.confirm-details {
  flex: 1;
  min-width: 0;
}

.poster-button {
  position: relative;
  align-self: stretch;
  width: 140px;
  min-height: 180px;
  overflow: hidden;
  background: none;
  border: 1px solid var(--line);
  padding: 0;
  cursor: zoom-in;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  line-height: 0;
}

.poster-button:disabled {
  cursor: default;
}

.poster-button img.poster,
.poster-button .poster-placeholder.big {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s;
}

.poster-button:not(:disabled):hover img.poster {
  transform: scale(1.03);
}

img.poster.zoomable {
  cursor: zoom-in;
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.movie-plot.loading {
  font-style: italic;
  opacity: 0.7;
}

.credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin-top: 10px;
  font-size: 0.85rem;
}

.credits dt {
  color: var(--muted);
}

.credits dd {
  margin: 0;
}

@media (max-width: 640px) {
  .confirm-movie {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .confirm-details {
    width: 100%;
  }
  .player {
    border-radius: 12px;
  }
  .genre-chips {
    justify-content: center;
  }
  .credits {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .credits dt {
    margin-top: 6px;
  }
  .confirm-details .ratings {
    justify-content: center;
  }
}

/* ---------- Cover-Lightbox ---------- */

.lightbox {
  background: transparent;
  border: none;
  padding: 0;
  width: fit-content;
  height: fit-content;
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto;
  inset: 0;
  overflow: visible;
  cursor: zoom-out;
  box-shadow: none;
}

.lightbox::backdrop {
  background: rgba(17, 17, 17, 0.85);
}

.lightbox img {
  display: block;
  max-width: min(92vw, 720px);
  max-height: 90dvh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 2.2rem;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- Dialog: Gesehen + eigene Bewertung ---------- */

.watched-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.watched-head img.poster,
.watched-head .poster-placeholder.big {
  width: 60px;
  height: 90px;
}

.field-label,
.filter-field > label,
.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
}

.field-label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.my-rating-label {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-left: 6px;
}

.star-picker {
  display: flex;
  gap: 4px;
}

.pick-star {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
}

.pick-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pick-star .star-bg {
  fill: var(--line);
}

.pick-star .star-half,
.pick-star .star-full {
  fill: var(--ink);
  display: none;
}

.pick-star .star-half {
  clip-path: inset(0 50% 0 0);
}

.pick-star.half .star-half,
.pick-star.full .star-full {
  display: block;
}

.pick-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pick-zone.zone-l {
  left: 0;
}

.pick-zone.zone-r {
  right: 0;
}

#review-text {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
}

#review-text:focus {
  border-color: var(--accent);
}

.my-review {
  margin-top: 8px;
}

.my-review .stars {
  margin-top: 0;
  cursor: default;
}

.logo-me {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}

.my-review blockquote {
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Im Log nur der Anfang der Review (zwei Zeilen) */
.review-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* ---------- GMC-Sterne ---------- */

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  cursor: help;
}

.logo-gmc {
  background: var(--ink);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  margin-right: 5px;
}

.stars svg {
  width: 20px;
  height: 20px;
}

.stars.compact svg {
  width: 17px;
  height: 17px;
}

.stars .star-bg {
  fill: var(--line);
}

.stars .star-fg {
  fill: var(--ink);
}

.stars b {
  margin-left: 6px;
  font-size: 0.92rem; /* identisch mit .rating b */
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Bewertungs-Badges (monochrom, verlinkt) ---------- */

.ratings {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 4px 18px 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

a.rating:hover {
  border-color: var(--ink);
}

.rating b {
  font-weight: 700;
  font-size: 0.92rem;
}

/* Plattform-Icons in den Originalfarben (IMDb-Gelb, Tomate, Metacritic-Ampel) –
   der Rest der Oberfläche bleibt schwarz-weiß. */
.logo-imdb {
  background: #f5c518;
  color: #000;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: -0.02em;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.logo-rt {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ink);
}

.logo-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
}

.mc-good {
  background: #66cc33;
  color: #0b2a00;
}

.mc-mixed {
  background: #ffcc33;
  color: #332600;
}

.mc-bad {
  background: #ff0000;
  color: #fff;
}

.mc-label {
  font-size: 0.82rem;
}

.logo-mc-mark {
  width: 18px; /* etwas kleiner, passend zu IMDb-Kästchen und Tomate */
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
}

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

.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 20px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.filters-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-field > label output {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-left: 4px;
  font-weight: 600;
}

.filters input[type="text"],
.filters input[type="number"] {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  height: 40px;
}

.filters input[type="text"]:focus,
.filters input[type="number"]:focus {
  border-color: var(--accent);
}

.genre-field {
  flex: 1 1 200px;
  min-width: 170px;
}

.combobox {
  position: relative;
}

.combobox input {
  width: 100%;
  padding-right: 34px;
}

.combobox-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 8px;
  cursor: pointer;
}

.combobox-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
}

.combobox-options li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

.combobox-options li small {
  color: var(--muted);
}

.combobox-options li:hover,
.combobox-options li.active {
  background: var(--bg-2);
}

.combobox-options li.selected {
  font-weight: 600;
}

.combobox-options .status-line {
  color: var(--muted);
  cursor: default;
  font-size: 0.85rem;
}

.year-range {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.year-range input {
  width: 84px;
  -moz-appearance: textfield;
}

.year-range input::-webkit-outer-spin-button,
.year-range input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.runtime-field {
  flex: 1 1 160px;
  min-width: 150px;
}

.filters input[type="range"] {
  accent-color: var(--ink);
  width: 100%;
  height: 40px;
  margin: 0;
}

/* Zweite Zeile: „Erweitert“ links unter dem Genre, „Zurücksetzen“ rechts unter der Laufzeit */
.filters-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.filters-foot [hidden] {
  display: none;
}

.text-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  font-family: inherit;
}

.text-btn:hover {
  color: var(--ink);
  text-decoration: underline;
}

.text-btn.has-active {
  color: var(--ink);
  font-weight: 600;
}

.advanced-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.advanced-filters[hidden],
.filter-count[hidden],
.combobox-options[hidden] {
  display: none;
}

.filters-hint {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Doppel-Slider */
.range2 {
  --lo: 0%;
  --hi: 100%;
}

.range2 > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.range2 > label output {
  margin-left: auto;
  color: var(--muted);
}

.range2.touched > label output {
  color: var(--ink);
  font-weight: 600;
}

.range2-track {
  position: relative;
  height: 34px;
}

.range2-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--line) var(--lo),
    var(--ink) var(--lo),
    var(--ink) var(--hi),
    var(--line) var(--hi)
  );
}

.range2-track input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 2;
}

.range2-track input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 4px;
}

.range2-track input[type="range"]::-moz-range-track {
  background: transparent;
  height: 4px;
}

.range2-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--ink);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.range2-track input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--ink);
  cursor: grab;
}

/* Sortierung rechts über der Liste */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 34px;
}

.filter-count {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.sort-inline {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sort-dir {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.sort-dir:hover {
  border-color: var(--ink);
}

#sort-select {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
}

@media (max-width: 640px) {
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filters-row .filter-field {
    flex: none; /* sonst wird flex-basis zur Höhe */
  }
  .year-range input {
    flex: 1;
    width: auto;
  }
}

/* ---------- Watchlist ---------- */

.watchlist {
  display: grid;
  gap: 14px;
}

.movie-card {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.movie-card {
  cursor: pointer; /* Karte öffnet die Detailansicht */
}

/* Detailansicht eines Listen-/Log-Eintrags: keine Suche dahinter */
#add-dialog.entry-mode .confirm-adds {
  margin-left: 0;
  width: 100%;
}
#add-dialog.entry-mode .confirm-adds > * {
  flex: 1;
}
/* Weiß gefüllte Pille wirkt neben Outline-Pillen optisch höher (Irradiation):
   1 px weniger Innenabstand oben/unten, Reihe zentriert statt gestreckt */
.confirm-adds,
.idea-actions {
  align-items: center;
}
.confirm-adds .btn-primary,
.idea-actions .btn-primary {
  padding-top: 9px;
  padding-bottom: 9px;
}
@media (max-width: 720px) {
  .idea-full .idea-actions .btn-primary {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
.confirm-adds .is-current {
  opacity: 1; /* disabled, aber als Zustand gemeint – nicht ausgegraut */
  cursor: default;
}

/* Häkchen statt Plus im Kreis: kurzer Strich links unten, langer Strich nach oben rechts */
.plus-circle.is-check::before {
  width: 5px;
  transform: translate(calc(-50% - 2.5px), calc(-50% + 1.5px)) rotate(45deg);
}
.plus-circle.is-check::after {
  height: 9px;
  transform: translate(calc(-50% + 1.5px), calc(-50% - 0.5px)) rotate(45deg);
}

.movie-card:hover {
  border-color: #cfcfcf;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.2);
}

.card-poster {
  position: relative;
  align-self: stretch;
  width: 92px;
  min-height: 138px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.card-poster img.poster,
.card-poster .poster-placeholder.big {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-seen {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

img.poster,
.poster-placeholder.big {
  width: 92px;
  height: 138px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.poster-placeholder.big {
  font-size: 2rem;
}

.movie-info {
  flex: 1;
  min-width: 0;
}

.movie-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.movie-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.movie-plot {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.card-actions button {
  min-width: 190px;
}

.card-actions .danger-outline {
  color: var(--muted);
}

.card-actions .danger-outline:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 1rem;
}

@media (max-width: 560px) {
  .movie-card {
    flex-direction: row;
  }
  .card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .card-actions button {
    min-width: 0;
    flex: 1;
  }
}

/* ---------- Einstellungen (Seite) ---------- */

.settings-page {
  max-width: 720px;
}

.settings-page .page-title {
  margin-top: 4px;
}

.settings-page .tagline {
  margin-bottom: 20px;
}

.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.settings-card h2 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.settings-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.weight-rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.weight-row {
  display: grid;
  grid-template-columns: 20px 130px 1fr 64px 48px;
  align-items: center;
  gap: 10px;
}

.weight-row.disabled label,
.weight-row.disabled .weight-effective {
  color: var(--muted);
  text-decoration: line-through;
}

.weight-row input[type="checkbox"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}

.weight-row input[type="range"] {
  accent-color: var(--ink);
  width: 100%;
}

.weight-row input[type="number"] {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 64px;
}

.weight-effective {
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
}

.settings-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.settings-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .weight-row {
    grid-template-columns: 20px 1fr 64px 48px;
  }
  .weight-row input[type="range"] {
    grid-column: 1 / -1;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  z-index: 100;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  animation: toast-in 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.toast[hidden] {
  display: none;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}
/* Mobil: kleine Pille knapp über der Tab-Bar (Variante D, 2026-09-26) */
@media (max-width: 720px) {
  .toast {
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding: 7px 14px;
    font-size: 0.74rem;
    font-weight: 600;
  }
}

/* Neu hinzugefügte Karte rutscht ein und leuchtet kurz (Variante D) */
.movie-card.is-new {
  animation: card-slidein 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), card-glow 2.4s ease-out;
}
@keyframes card-slidein {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
}
@keyframes card-glow {
  0%,
  25% {
    box-shadow: 0 0 0 2px var(--ink) inset;
  }
  100% {
    box-shadow: 0 0 0 0 transparent inset;
  }
}
@media (prefers-reduced-motion: reduce) {
  .movie-card.is-new,
  .toast {
    animation: none;
  }
}


/* ======================================================================
   Emojis in Kategorie-Schaltern: aktiv farbig, inaktiv grau
   ====================================================================== */

.emoji {
  font-size: 1em;
  line-height: 1;
  filter: grayscale(1) contrast(0.85);
  opacity: 0.5;
  transition: filter 0.15s, opacity 0.15s;
}

.tab .emoji {
  margin-right: 7px;
}

.tab.active .emoji,
.tabbar-item.active .emoji {
  filter: none;
  opacity: 1;
}

/* Emoji als quadratische Box, damit die Lottie-Animation exakt zentriert liegt */
.emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  transform-origin: center;
}

.mobile-only {
  display: none !important;
}

.icon-btn-black {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  align-items: center;
  justify-content: center;
}

.movie-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.movie-title-row .movie-title {
  flex: 1;
  min-width: 0;
}

/* ======================================================================
   Mobil (≤ 720 px): Konzept A – Bottom-Tab-Bar, Chips + Bottom-Sheets,
   kompakte Karten mit „···“-Menü. Desktop bleibt unverändert.
   ====================================================================== */

@media (max-width: 720px) {
  .mobile-only {
    display: initial !important;
  }
  .icon-btn-black.mobile-only,
  .chips.mobile-only,
  .tabbar.mobile-only {
    display: flex !important;
  }
  .kebab.mobile-only {
    display: inline-block !important;
  }

  /* Variante 2: keine Leiste. Burger links, Emoji-Segment mittig, Plus rechts – alle
     schweben (Glas) über dem Inhalt. Der Titel steht groß im Inhalt. */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30; /* über dem angepinnten Block, damit die Schatten der Pillen nicht abgeschnitten werden */
    background: var(--bg); /* deckend, nichts scheint hinter den Pillen durch */
    border-bottom: none;
    backdrop-filter: none;
    pointer-events: none;
    height: calc(68px + env(safe-area-inset-top));
  }
  /* Titel + Chips: sticky direkt an der Unterkante der Kopfzeile (lückenlos), eigener
     Innenabstand oben statt Abstand im Fluss → keine Verschiebung, keine Lücke */
  .mobile-pinned {
    display: block !important;
    position: sticky;
    top: calc(68px + env(safe-area-inset-top));
    z-index: 25;
    background: var(--bg);
    margin: 0 -16px;
    padding: 6px 16px 0; /* Block endet mit dem Chip-Band; die 2 px bis zur Karte sitzen an der Liste */
  }
  .mobile-pinned .chips {
    display: flex !important;
  }
  .nav-inner {
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    min-height: 0;
    /* 16 px = gleiche Kante wie Karten, Titel und Chips (Niklas, 2026-09-26) */
    padding: calc(16px + env(safe-area-inset-top)) 16px 0; /* oben = seitlich = 16 px (Niklas, 2026-09-26) */
    row-gap: 0;
  }
  .nav-inner > * {
    pointer-events: auto;
  }
  .logo,
  .category-switch,
  .nav-actions .btn-ghost,
  #add-btn {
    display: none;
  }
  #avatar-btn,
  .magic-btn,
  #magic-link {
    display: none !important;
  }
  #avatar-btn-mobile {
    display: inline-flex !important;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  }
  .mobile-top {
    display: flex !important;
    justify-content: center;
  }
  /* Pfeil-Button: gleiche Position, Größe und Optik wie der schwebende Burger */
  .drawer-head {
    height: 40px;
    padding: 0;
  }
  .drawer-back {
    position: fixed;
    left: 16px;
    top: calc(16px + env(safe-area-inset-top));
    width: 40px;
    height: 40px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  }
  .drawer-back svg {
    width: 20px;
    height: 20px;
  }
  /* Schalter exakt 40 px hoch, damit Burger und Plus (40 px) auf derselben Oberkante sitzen
     wie der Pfeil-Button der Schublade */
  .category-switch-mobile {
    height: 40px;
    box-sizing: border-box;
    padding: 3px;
    gap: 0;
    background: var(--bg-2);
    backdrop-filter: none;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  }
  .category-switch-mobile .tab {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 11px;
    font-size: 1.3rem;
    line-height: 1;
  }
  .nav-inner {
    align-items: start;
  }
  .category-switch-mobile .tab .emoji {
    margin: 0;
  }
  .nav-actions {
    gap: 0;
  }
  #add-btn-mobile {
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  }
  .mobile-big-title {
    display: block !important;
    font-size: 1.9rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 4px 0 2px; /* + 8 px Band = 10 px bis zu den Pillen */
  }
  .nav-actions {
    gap: 8px;
  }


  /* Titelzeile + Liste/Log-Segment entfallen mobil (Bottom-Bar übernimmt) */
  .toolbar {
    display: none;
  }

  main {
    padding: calc(68px + env(safe-area-inset-top)) 16px calc(64px + env(safe-area-inset-bottom));
  }

  /* Titelzeile: „Watchlist“ + Zähler, darunter Liste/Log in voller Breite */
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }
  .title-block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .title-block .tagline {
    display: none;
  }
  .page-title {
    font-size: 1.4rem;
  }
  .title-count {
    color: var(--muted);
    font-size: 0.8rem;
  }
  .toolbar .tabs {
    display: flex;
    width: 100%;
  }
  .toolbar .tab {
    flex: 1;
    text-align: center;
  }

  /* Chips statt Filterkasten */
  .filters,
  .list-head {
    display: none;
  }
  .chips {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 2px 16px 12px;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 7px 12px;
    font-family: inherit;
  }
  .chip.on {
    background: var(--ink);
    color: var(--accent-ink);
    border-color: var(--ink);
  }
  .chip-reset {
    color: var(--muted);
    border-style: dashed;
  }
  /* Zähler-Chip: ohne Filter passiv (grau), mit Filter schwarz und als Reset tippbar */
  /* Zähler-Chip: fast schwarz mit weißer Schrift; mit aktivem Filter voll schwarz (Reset) */
  .chip-count {
    background: #2a2a2a;
    border-color: #2a2a2a;
    color: #fff;
    font-weight: 600;
  }
  .chip-count:disabled {
    cursor: default;
  }
  .chip-count.on {
    background: var(--ink);
    color: var(--accent-ink);
    border-color: var(--ink);
  }

  /* Karten (Variante A4 „Hero“): Poster als weichgezeichneter Hintergrund,
     kleines Poster links, weißer Text als Overlay, Aktionen im Sheet */
  .watchlist {
    gap: 12px;
    margin-top: 7px; /* Band 8 px + 7 px = 15 px Pillen → erste Karte (Niklas, 2026-09-27) */
  }
  .movie-card {
    position: relative;
    overflow: hidden;
    flex-direction: row;
    align-items: flex-start;
    min-height: 170px;
    padding: 14px;
    gap: 14px;
    border-radius: 18px;
    border-color: rgba(0, 0, 0, 0.15);
    background: #2a2a2c;
    color: #fff;
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  }
  .movie-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  }
  .card-bg {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) brightness(0.5) saturate(1.1);
    transform: scale(1.2);
    z-index: 0;
  }
  .card-poster {
    position: relative;
    z-index: 1;
    width: 92px; /* app.js setzt mobil eine feste Breite (27 % der Karte) – alle Cover gleich breit */
    min-height: 142px;
    align-self: stretch; /* bis zur Unterkante der Badges */
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  .movie-info {
    position: relative;
    z-index: 1;
  }
  /* Nur innerhalb der Hero-Karten weiß – Dialoge/Sheets behalten dunkle Schrift */
  .movie-card .movie-title {
    font-size: 1.05rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
  .movie-card .movie-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
  }
  .movie-card .movie-plot {
    display: none;
  }
  .stars {
    margin-top: 8px;
  }
  .stars.compact svg {
    width: 15px;
    height: 15px;
  }
  .movie-card .stars .star-fg {
    fill: #fff;
  }
  .movie-card .stars .star-bg {
    fill: rgba(255, 255, 255, 0.3);
  }
  .movie-card .stars b {
    color: #fff;
    font-size: 0.78rem; /* identisch mit .movie-card .rating b */
  }
  .movie-card .logo-gmc {
    background: var(--card);
    color: var(--ink);
  }
  .movie-card .logo-me {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff;
  }
  /* Badges kompakt, damit alle drei auf gängigen Handys in eine Reihe passen */
  .movie-card .ratings {
    gap: 5px;
    margin-top: 8px;
    flex-wrap: nowrap;
  }
  .movie-card .rating {
    gap: 5px;
    padding: 2px 8px 2px 6px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
  }
  .movie-card .rating b {
    font-size: 0.78rem;
  }
  .movie-card .logo-imdb {
    font-size: 0.56rem;
    padding: 2px 4px;
  }
  .movie-card .logo-rt {
    width: 16px;
    height: 16px;
  }
  .movie-card .logo-mc-mark {
    width: 14px;
    height: 14px;
  }
  .movie-card .logo-mc-mark {
    width: 20px;
    height: 20px;
  }
  .movie-card .movie-seen {
    color: rgba(255, 255, 255, 0.82);
  }
  .movie-card .my-review blockquote {
    font-size: 0.82rem;
    color: #fff;
    border-left-color: #fff;
  }
  .card-actions {
    display: none;
  }
  .kebab {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0 2px;
    line-height: 1;
    cursor: pointer;
    flex: none;
  }

  /* Bottom-Tab-Bar */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 3px 8px calc(3px + env(safe-area-inset-bottom)); /* flach */
    justify-content: space-around;
  }
  .tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 0;
    cursor: pointer;
  }
  .tabbar-item svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .tabbar-item.active svg {
    stroke-width: 2.2;
  }
  .tabbar-item.active {
    color: var(--ink);
  }
  .site-footer {
    display: none;
  }
}

/* Bottom-Sheets (immer definiert, genutzt nur mobil) */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  max-height: 85dvh;
  height: auto;
  border: none;
  border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
  animation: sheet-up 0.22s ease-out;
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 4px auto 10px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sheet-head h2 {
  font-size: 1.05rem;
}

.sheet-body {
  padding: 6px 0 4px;
}

.sheet-body .filter-field > label {
  margin-top: 4px;
}

.sheet-body .sort-inline {
  display: flex;
  margin: 0;
  gap: 10px;
}

.sheet-body #sort-select {
  flex: 1;
  height: 42px;
  font-size: 0.95rem;
}

.sheet-body .sort-dir {
  width: 42px;
  height: 42px;
}

.sheet-body .advanced-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}

.sheet-body .combobox-options {
  position: static;
  margin-top: 8px;
  box-shadow: none;
  max-height: 40dvh;
}

.sheet-body .year-range input {
  flex: 1;
  width: auto;
  height: 44px;
  font-size: 1rem;
}

.sheet-body input[type="text"],
.sheet-body input[type="number"] {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  height: 44px;
}

.sheet-body .combobox input {
  width: 100%;
}

.sheet-body input[type="range"] {
  accent-color: var(--ink);
  width: 100%;
  height: 40px;
  margin: 0;
}

.sheet-body .filters-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.sheet-foot {
  margin-top: 14px;
}

.sheet-foot .btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
}

.action-list {
  display: grid;
  gap: 8px;
  padding: 4px 0 6px;
}

.action-item {
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.action-item.primary {
  background: var(--ink);
  color: var(--accent-ink);
  border-color: var(--ink);
}

.action-item.danger {
  color: var(--muted);
}


/* Magic-Match-Sheet */
.magic-pick {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 0 8px;
}

.magic-pick img.poster,
.magic-pick .poster-placeholder.big {
  width: 96px;
  height: 144px;
  border-radius: 10px;
  flex-shrink: 0;
}

.magic-pick .movie-plot {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
}

.magic-foot {
  display: flex;
  gap: 10px;
}

.magic-foot .btn-secondary,
.magic-foot .btn-primary {
  flex: 1;
  padding: 13px;
}

.magic-foot [hidden] {
  display: none;
}


/* ---------- Inbox ---------- */

.inbox-link {
  position: relative;
}

.inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 4px;
}

.inbox-badge[hidden] {
  display: none;
}

.inbox-tab {
  position: relative;
}

.inbox-tab .inbox-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 8px);
  margin: 0;
}

.nav-spacer {
  display: block;
}

.inbox-from {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.inbox-card.unread {
  border-color: var(--ink);
}

.inbox-note {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.inbox-list {
  margin-bottom: 18px;
}

.inbox-list .card-poster {
  width: 92px;
  align-self: stretch;
}

@media (max-width: 720px) {
  .inbox-list .movie-card .card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    position: relative;
    z-index: 1;
    width: 100%;
  }
  .inbox-list .movie-card {
    flex-wrap: wrap;
  }
  .inbox-list .card-actions button {
    min-width: 0;
    flex: 1;
  }
  .inbox-list .card-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
  }
  .inbox-list .card-poster {
    width: 84px;
    min-height: 126px;
    align-self: flex-start;
  }
  .inbox-from {
    color: rgba(255, 255, 255, 0.82);
  }
  .inbox-note {
    color: #fff;
    border-left-color: #fff;
  }
  .settings-page .title-block .tagline {
    display: block;
  }
}


/* ---------- Burger-Menü ---------- */

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 20px;
}

.burger i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.icon-btn-outline {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn-outline:hover {
  border-color: var(--ink);
}

.tabbar-item .burger {
  height: 1.35rem;
  width: 22px;
  gap: 4px;
}

/* Burger-Menü: Schublade von links, ohne Icons */
.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: max-content; /* nur so breit wie der längste Menüpunkt */
  min-width: 0;
  max-width: 85vw;
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: calc(16px + env(safe-area-inset-top)) 28px calc(20px + env(safe-area-inset-bottom)) 12px;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
  /* keine Einblend-Animation: der Pfeil soll exakt an der Stelle des Burgers stehen */
}

.menu-drawer::backdrop {
  background: rgba(17, 17, 17, 0.35);
}

.drawer-head {
  display: flex;
  align-items: center;
  padding: 0 0 8px 2px; /* Pfeil-Kreis liegt exakt auf dem Burger-Button (links 14 px, oben 10 px) */
  margin-bottom: 4px;
}

/* Schließen per Pfeil nach links (schiebt die Schublade gedanklich zurück) */
.drawer-back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-back:hover {
  background: var(--bg-2);
}

/* Kein blauer Fokusring: dezent grau, nur bei Tastaturfokus */
.drawer-back:focus {
  outline: none;
}

.drawer-back:focus-visible {
  outline: 2px solid #cfcfcf;
  outline-offset: 2px;
}

/* Pfeil in derselben Farbe und Strichstärke wie die Burger-Striche */
.drawer-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-head .logo {
  font-size: 1.15rem;
}

.menu-list {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 10px;
  white-space: nowrap;
  border-radius: 14px;
  border: none;
  background: none;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.menu-item:hover {
  background: var(--bg-2);
}

.menu-item b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.menu-item small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1px;
}

.menu-static {
  cursor: default;
  opacity: 0.7;
}

.menu-static:hover {
  background: none;
}


/* ---------- Startseite ---------- */

.start-main {
  text-align: center;
  padding-top: 40px;
}

.start-hero {
  margin-bottom: 36px;
}

.start-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.start-icons {
  display: inline-flex;
  gap: 6px;
}

.start-emoji {
  font-size: 3.2rem;
  width: 1.25em;
  height: 1.25em;
  filter: none;
  opacity: 1;
  cursor: pointer;
}

.start-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.start-tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 14px;
}

.start-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
  margin-bottom: 32px;
}

.start-tile {
  flex-direction: column;
  gap: 12px;
}

.start-tile .movie-title {
  font-size: 1.3rem;
}

.start-tile .stars {
  cursor: default;
}

.start-tile .stars b {
  color: var(--muted);
}

.start-poster {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-poster .emoji {
  font-size: 2.6rem;
  width: auto;
  height: auto;
  filter: none;
  opacity: 1;
}

.start-tom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fa320a;
  display: inline-block;
}

.start-mc {
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.start-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.start-cta .btn-primary {
  padding: 13px 22px;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .start-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }
  .start-emoji {
    font-size: 2.4rem;
  }
  .start-word {
    font-size: 3rem;
  }
  .start-tiles {
    grid-template-columns: 1fr;
  }
  .start-page .movie-card {
    background: var(--card);
    color: var(--ink);
    min-height: 0;
    box-shadow: var(--shadow-card);
    border-color: var(--line);
    border-radius: var(--radius);
  }
  .start-page .movie-card .movie-title {
    color: var(--ink);
    text-shadow: none;
  }
  .start-page .movie-card .movie-meta,
  .start-page .movie-card .movie-plot {
    color: var(--muted);
    display: block;
  }
  .start-page .movie-card .logo-gmc {
    background: var(--ink);
    color: #fff;
  }
  .start-page .movie-card .stars .star-bg {
    fill: var(--line);
  }
  .start-page .movie-card .rating {
    background: var(--card);
    border-color: var(--line);
    color: var(--ink);
  }
  .start-page .mc-label {
    display: inline;
  }
  .start-page .nav-actions .btn-ghost {
    display: none;
  }
  .start-page .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .start-page .logo {
    display: block;
  }
  .start-cta {
    flex-direction: column;
  }
}


/* ---------- Profil ---------- */

.profile-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: none;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--bg-2) center / cover no-repeat;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--muted);
}

.avatar.has-image span {
  display: none;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar-upload {
  cursor: pointer;
}

.profile-fields {
  flex: 1;
  min-width: 0;
}

.profile-fields .field-label:first-child {
  margin-top: 0;
}

.profile-fields input[type="text"],
.profile-fields textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
}

.profile-fields input[type="text"]:focus,
.profile-fields textarea:focus {
  border-color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.stat-head .emoji {
  filter: none;
  opacity: 1;
}

.stat-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  margin-top: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  margin-top: 10px;
  font-size: 0.82rem;
}

.stat-rows dt {
  color: var(--muted);
}

.stat-rows dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.stat-total {
  grid-column: 1 / -1;
  margin-top: 2px;
}

@media (max-width: 720px) {
  /* Unterseiten (settings, profile, list score): keine Bedienelemente oben, nur der
     Seitentitel groß an exakt der Stelle von „filmlist“ (gleicher Abstand nach oben) */
  .subpage .site-header {
    position: fixed;
    z-index: 24; /* unter dem Titelblock (25), damit dessen fixer Zurück-Pfeil sichtbar bleibt */
    height: calc(68px + env(safe-area-inset-top));
    background: var(--bg);
    border-bottom: none;
    backdrop-filter: none;
    pointer-events: none;
  }
  .subpage .nav-inner > * {
    display: none !important;
  }
  .subpage main {
    padding-top: calc(68px + env(safe-area-inset-top));
    max-width: none;
  }
  .subpage .title-block {
    position: sticky;
    top: calc(68px + env(safe-area-inset-top));
    z-index: 25;
    background: var(--bg);
    margin: 0 -16px;
    padding: 6px 16px 0;
  }
  .subpage .title-block .page-title {
    font-size: 1.9rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 4px 0 12px;
  }
  .subpage .title-block .tagline {
    display: none;
  }
  .subpage .info-page .page-title .logo-gmc {
    font-size: 0.8rem;
  }
  .profile-head {
    flex-direction: column;
    align-items: center;
  }
  .profile-fields {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


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

.confirm-tools {
  margin-top: 10px;
}

/* Play-Button auf dem Cover */
.poster-stack {
  position: relative;
  display: flex;
  align-self: stretch;
  flex-shrink: 0;
}

.poster-stack .poster-button {
  align-self: stretch;
}

/* Play-Button und Ambient-Licht sind über Variablen abstimmbar (siehe /player-tuning.html) */
:root {
  /* Werte von Niklas aus /player-tuning.html (2026-09-25) */
  --play-size: 56px;
  --play-bg-alpha: 0.41;
  --play-blur: 1px;
  --play-icon-alpha: 0.84;
  --play-border-alpha: 0.32;
  --play-icon-scale: 1;
  --play-shadow-alpha: 0.38;
  --amb-blur: 13px;
  --amb-sat: 1;
  --amb-bright: 0.9;
  --amb-strip: 0.15;
  --amb-overscan: 2;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--play-size);
  height: var(--play-size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, var(--play-border-alpha));
  background: rgba(17, 17, 17, var(--play-bg-alpha));
  color: rgba(255, 255, 255, var(--play-icon-alpha)); /* liegt immer auf dem Cover */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, var(--play-shadow-alpha));
  backdrop-filter: blur(var(--play-blur));
  transition: transform 0.15s, background 0.15s;
}

.play-overlay:hover {
  background: rgba(17, 17, 17, min(1, calc(var(--play-bg-alpha) + 0.2)));
  transform: translate(-50%, -50%) scale(1.06);
}

.play-overlay svg {
  width: calc(26px * var(--play-icon-scale));
  height: calc(26px * var(--play-icon-scale));
  fill: currentColor;
  display: block; /* Dreieck ist im Pfad optisch zentriert */
}

.play-overlay[hidden] {
  display: none;
}

/* Player: Cover weichgezeichnet als Hintergrund hinter dem Video */
.trailer-bg {
  position: fixed;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(40px) brightness(0.45);
  z-index: -1;
  pointer-events: none;
}

.trailer-bg[hidden] {
  display: none;
}

.trailer-lightbox {
  width: min(92vw, 960px);
}

.trailer-frame {
  width: min(92vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.trailer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


.magic-note {
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0 4px;
}


/* ---------- Unterseiten mit Listen-Kopf (inflow, friends) ---------- */

.desktop-only {
  display: block;
}

@media (max-width: 720px) {
  .desktop-only {
    display: none !important;
  }
  .shell-page main {
    max-width: none;
  }
  .shell-page .mobile-pinned {
    margin-bottom: 0;
  }
  .shell-page .inbox-list .movie-card {
    min-height: 0;
  }
}


/* ---------- Avatar-Button + Dropdown ---------- */

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--accent-ink);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar-btn svg,
.profile-menu-avatar svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-ink);
}

.avatar-btn img,
.profile-menu-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-btn img[hidden],
.profile-menu-avatar img[hidden] {
  display: none;
}

.avatar-btn.has-image svg,
.profile-menu-avatar.has-image svg {
  display: none;
}

.profile-menu {
  position: fixed;
  z-index: 60;
  width: max-content; /* nur so breit wie der längste Eintrag plus Luft */
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 6px;
}

.profile-menu[hidden] {
  display: none;
}

/* Aus-/Einrollen */
.profile-menu.rolling {
  overflow: hidden;
  transition: height 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: top;
}

@media (prefers-reduced-motion: reduce) {
  .profile-menu.rolling {
    transition: none;
  }
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.profile-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex: none;
}

.profile-menu-head b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-menu-head small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.profile-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px; /* so breit wie der Text, gleiche Luft links und rechts */
  white-space: nowrap;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: var(--bg-2);
}

.profile-menu-item[hidden] {
  display: none;
}


/* ---------- Infoseite list score ---------- */

a.logo-gmc {
  text-decoration: none;
}

a.logo-gmc:hover {
  background: #333;
}

.info-page .page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-page .page-title .logo-gmc {
  font-size: 0.9rem;
  padding: 4px 10px;
}

.info-link {
  margin-left: auto;
  font-weight: 500;
  text-decoration: underline;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.88rem;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-weights {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.info-weight {
  display: grid;
  grid-template-columns: 130px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.info-weight i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--ink);
}

.info-weight b {
  text-align: right;
}

.settings-note a {
  color: var(--ink);
}


/* ---------- Darstellung (Theme-Schalter) ---------- */

.theme-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-top: 12px;
}

.theme-switch button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
}

.theme-switch button.active {
  background: var(--accent);
  color: var(--accent-ink);
}


/* Plus im Kreis (Button „⊕ filmlist“) */
.plus-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0; /* Glyph ausblenden – das Plus wird aus zwei Balken gezeichnet, exakt zentriert */
  line-height: 1;
  margin-right: 3px;
  position: relative;
  flex: none;
  vertical-align: middle;
}

.plus-circle::before,
.plus-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.6px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.plus-circle::after {
  width: 1.6px;
  height: 10px;
}


/* Drei-Punkte-Ladeanimation in der Suche */
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 14px !important;
}

.loading-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot-bounce 0.9s infinite ease-in-out;
}

.loading-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}


/* ---------- Profil ohne Kasten, Zurück-Pfeil ---------- */

.profile-plain {
  background: none;
  border: none;
  box-shadow: none;
  padding: 4px 0 8px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.profile-plain .avatar-wrap {
  align-items: flex-start;
}

.profile-plain .avatar-actions {
  align-items: flex-start;
}

.profile-plain .settings-actions {
  border-top: none;
  padding-top: 4px;
  justify-content: flex-start;
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 6px -6px;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
}

.back-arrow:hover {
  background: none;
  opacity: 0.7;
}

.back-arrow svg {
  width: 24px;
  height: 24px;
  margin-left: -7px; /* Pfeilspitze (x=8 im 24er-Raster) auf die linke Kante des Icons ziehen */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .profile-plain {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Pfeil sitzt exakt an der Stelle des Avatar-Buttons (links 14 px, oben 10 px, 40 px),
     der Titel bleibt an der Position von „filmlist“ */
  /* Pfeil bündig mit dem linken Content-Rand (16 px): das Icon selbst beginnt bei 16 px */
  .subpage .title-block .back-arrow {
    position: fixed;
    left: 16px;
    top: calc(16px + env(safe-area-inset-top));
    width: 24px;
    height: 40px;
    margin: 0;
    justify-content: flex-start;
    z-index: 31;
    pointer-events: auto;
    background: none;
    border: none;
    border-radius: 0;
  }
  .subpage .title-block .back-arrow:hover {
    background: none;
  }
}


/* ---------- Gleitender Hintergrund im Kategorie-Schalter ---------- */

.category-switch,
.category-switch-mobile {
  position: relative;
  touch-action: pan-y; /* horizontales Ziehen gehört dem Schalter, vertikal darf die Seite scrollen */
  user-select: none;
  -webkit-user-select: none;
}

.seg-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.category-switch .tab,
.category-switch-mobile .tab {
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}

/* Hat der Schalter einen Indikator, übernimmt der den schwarzen Hintergrund */
.category-switch.has-indicator .tab.active,
.category-switch-mobile.has-indicator .tab.active {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .seg-indicator {
    transition: none;
  }
}

/* Unterseiten: Zurück-Pfeil über dem Titel, nicht daneben */
@media (max-width: 720px) {
  .subpage .title-block {
    display: block;
  }
}


/* ---------- Leerzustand: gestrichelter Pfeil zum Plus (mobil) ---------- */

.empty-arrow,
.empty-arrow-top {
  display: none;
}

@media (max-width: 720px) {
  /* Unterer Teil: über der Seite, unter dem angepinnten Block (25) und dem Kopf (30) */
  .empty-arrow {
    display: block !important;
    position: fixed;
    left: 0;
    top: 0;
    /* Breite/Höhe setzt app.js in px (iOS: 100vh ≠ sichtbare Höhe → sonst verzerrt) */
    color: var(--muted);
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
  }
  /* Oberer Teil: in der Kopfzeile, hinter Avatar/Schalter/Plus (DOM-Reihenfolge) */
  .empty-arrow-top {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden; /* SVG-Box endet 14 px unter der Kopfzeile (Höhe setzt app.js) */
    color: var(--muted);
    opacity: 0.45;
    pointer-events: none;
  }
  .empty-arrow[hidden],
  .empty-arrow-top[hidden] {
    display: none !important;
  }
  .empty-state {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 96px 0 0;
    max-width: none;
    line-height: 1.6;
  }
  /* Kopie im angepinnten Block: über dem Block-Hintergrund, unter Titel und Chips –
     so verschwindet die Linie nur hinter den Chip-Pillen selbst */
  .empty-arrow-mid {
    display: block !important;
    position: absolute;
    top: 0;
    color: var(--muted);
    opacity: 0.45;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }
  .empty-arrow-mid[hidden] {
    display: none !important;
  }
  .mobile-pinned .mobile-big-title,
  .mobile-pinned .chips {
    position: relative;
    z-index: 1;
  }
  /* Die ganze Chip-Zeile ist ein deckendes Band (3 px über, 4 px unter den Pillen) –
     darin ist die gestrichelte Linie nicht sichtbar */
  .mobile-pinned .chips {
    background: var(--bg);
    padding: 8px 16px 8px; /* symmetrisches Band: Pfeil verschwindet 8 px über und unter den Pillen */
    margin-bottom: 0;
  }
}


/* ---------- Hinzufügen-Dialog mobil: zweite Top-Bar mit Zurück-Pfeil ---------- */

.dialog-back {
  display: none;
}

@media (max-width: 720px) {
  #add-dialog {
    padding-top: calc(78px + env(safe-area-inset-top)); /* Suchfeld auf Höhe der Überschriften */
  }
  #add-dialog #dialog-close {
    display: none;
  }
  #add-dialog .dialog-back {
    display: inline-flex !important;
    position: fixed;
    left: 16px;
    top: calc(16px + env(safe-area-inset-top));
    width: 24px;
    height: 40px;
    margin: 0;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    justify-content: flex-start;
  }
  #add-dialog .dialog-back:hover {
    background: none;
    opacity: 0.7;
  }
  /* Deckende Kopfzone hinter dem Zurück-Pfeil: Inhalt scrollt darunter durch */
  #add-dialog[open]::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-top));
    background: var(--card);
    z-index: 1;
    pointer-events: none;
  }
}


/* ======================================================================
   Theme „glass“: Apple-Liquid-Glass-Look – Milchglas-Flächen (Blur + Sättigung),
   feine helle Kanten mit Lichtkante oben, darunter weiche Farbverläufe.
   ====================================================================== */

:root[data-theme="glass"] {
  --bg: #0b0b10;
  --card: rgba(255, 255, 255, 0.07);
  --bg-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(20, 20, 28, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

:root[data-theme="glass"] body {
  background: var(--bg);
}

/* Farbige Lichtquellen im Hintergrund (fix, bewegen sich langsam) */
:root[data-theme="glass"] body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 14% 18%, rgba(110, 130, 255, 0.75), transparent 70%),
    radial-gradient(34% 30% at 86% 12%, rgba(255, 100, 170, 0.6), transparent 70%),
    radial-gradient(44% 40% at 72% 88%, rgba(50, 210, 200, 0.55), transparent 70%),
    radial-gradient(30% 30% at 22% 82%, rgba(255, 175, 70, 0.45), transparent 70%);
  filter: blur(30px) saturate(1.3);
  animation: glass-drift 40s ease-in-out infinite alternate;
}

@keyframes glass-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(3%, -2%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="glass"] body::before {
    animation: none;
  }
}

/* Glasflächen */
:root[data-theme="glass"] .movie-card,
:root[data-theme="glass"] .settings-card,
:root[data-theme="glass"] .filters,
:root[data-theme="glass"] .stat-card,
:root[data-theme="glass"] dialog:not(.lightbox),
:root[data-theme="glass"] .profile-menu,
:root[data-theme="glass"] .combobox-options,
:root[data-theme="glass"] .suggestions,
:root[data-theme="glass"] .chip,
:root[data-theme="glass"] .rating,
:root[data-theme="glass"] .tabs,
:root[data-theme="glass"] .btn-secondary,
:root[data-theme="glass"] .icon-btn-outline,
:root[data-theme="glass"] #sort-select,
:root[data-theme="glass"] .sort-dir,
:root[data-theme="glass"] .action-item,
:root[data-theme="glass"] .theme-switch,
:root[data-theme="glass"] .filters input[type="text"],
:root[data-theme="glass"] .filters input[type="number"],
:root[data-theme="glass"] #search-input,
:root[data-theme="glass"] #review-text,
:root[data-theme="glass"] .profile-fields input[type="text"],
:root[data-theme="glass"] .profile-fields textarea {
  background: var(--glass-strong);
  border-color: var(--glass-edge);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--glass-highlight), 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}

:root[data-theme="glass"] .chip,
:root[data-theme="glass"] .rating,
:root[data-theme="glass"] .btn-secondary,
:root[data-theme="glass"] #sort-select,
:root[data-theme="glass"] .sort-dir {
  box-shadow: var(--glass-highlight);
}

/* Hero-Karten mobil: Poster-Unschärfe bleibt, dazu Glaskante */
:root[data-theme="glass"] .movie-card {
  border-color: var(--glass-edge);
}

/* Schwarze Akzente werden zu hellem Glas mit dunkler Schrift */
:root[data-theme="glass"] .btn-primary,
:root[data-theme="glass"] .icon-btn-black,
:root[data-theme="glass"] .avatar-btn,
:root[data-theme="glass"] .tab.active,
:root[data-theme="glass"] .seg-indicator,
:root[data-theme="glass"] .chip.on,
:root[data-theme="glass"] .chip-count,
:root[data-theme="glass"] .toast,
:root[data-theme="glass"] .logo-gmc,
:root[data-theme="glass"] .inbox-badge,
:root[data-theme="glass"] .action-item.primary {
  background: rgba(255, 255, 255, 0.88);
  color: #0b0b10;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

:root[data-theme="glass"] .avatar-btn svg {
  fill: #0b0b10;
}

:root[data-theme="glass"] .btn-primary:hover {
  background: #fff;
}

/* Kopfzeile, angepinnter Block, Bottom-Bar: Glas über dem Inhalt statt deckend */
:root[data-theme="glass"] .site-header,
:root[data-theme="glass"] .tabbar {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: var(--glass-edge);
}

@media (max-width: 720px) {
  :root[data-theme="glass"] .site-header,
  :root[data-theme="glass"] .mobile-pinned,
  :root[data-theme="glass"] .mobile-pinned .chips,
  :root[data-theme="glass"] .subpage .site-header {
    background: var(--glass);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
  }
  /* Titelblock: Glas über ein Pseudo-Element – ein backdrop-filter direkt am Block würde ihn zum
     Bezugsrahmen für den fixierten Zurück-Pfeil machen, der dann unter die H1 rutscht (2026-10-14) */
  :root[data-theme="glass"] .subpage .title-block {
    background: transparent;
  }
  :root[data-theme="glass"] .subpage .title-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--glass);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
  }
  :root[data-theme="glass"] .category-switch-mobile {
    background: var(--glass-strong);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
  }
  :root[data-theme="glass"] .card-bg {
    filter: blur(16px) brightness(0.45) saturate(1.2);
  }
}

:root[data-theme="glass"] .sheet {
  background: rgba(20, 20, 28, 0.7);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-top: 1px solid var(--glass-edge);
  box-shadow: var(--glass-highlight), 0 -20px 60px rgba(0, 0, 0, 0.5);
}

:root[data-theme="glass"] dialog::backdrop {
  background: rgba(5, 5, 10, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

:root[data-theme="glass"] .player {
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-highlight), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

:root[data-theme="glass"] .stars .star-fg,
:root[data-theme="glass"] .pick-star .star-half,
:root[data-theme="glass"] .pick-star .star-full {
  fill: #fff;
}

:root[data-theme="glass"] .site-footer {
  border-color: var(--glass-edge);
}

.tmdb-credit img {
  height: 12px;
  vertical-align: middle;
  margin-right: 4px;
}


/* ---------- Coins ---------- */

.coins-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.coins-row .coin {
  font-size: 1.2rem;
}

.coins-row b {
  font-family: var(--font-display);
  font-size: 1.4rem;
}


/* Einstellung: Rating-Pillen auf Karten ausblenden */
body.hide-ratings .movie-card .ratings .rating {
  display: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
}

.toggle-row input {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
}


/* ---------- Ideen: Karten ohne Buttons, Detail-Overlay ---------- */

.idea-card {
  cursor: pointer;
}

.idea-card .card-actions {
  display: none;
}

.idea-dialog {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #0f0f10;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.idea-dialog[hidden] {
  display: none;
}

body.idea-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.55);
}

.idea-close {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.idea-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idea-scroll {
  overflow-y: auto;
  flex: 1;
}

.idea-dialog .player {
  border-radius: 0;
  box-shadow: none;
}

.idea-body {
  padding: 16px 18px 12px;
}

.idea-body .movie-title {
  color: #fff;
  font-size: 1.3rem;
}

.idea-body .movie-meta,
.idea-body .movie-plot,
.idea-body .inbox-from,
.idea-body .credits dt {
  color: rgba(255, 255, 255, 0.72);
}

.idea-body .credits dd {
  color: #fff;
}

.idea-body .movie-plot {
  display: block;
  margin-top: 10px;
}

.idea-body .chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.idea-body .stars {
  margin-top: 8px;
}

.idea-body .stars .star-fg {
  fill: #fff;
}

.idea-body .stars .star-bg {
  fill: rgba(255, 255, 255, 0.3);
}

.idea-body .stars b {
  color: #fff;
}

.idea-body .logo-gmc {
  background: #fff;
  color: #111;
}

.idea-body .rating {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.idea-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* ⊕ watchlist | Löschen (Icon) | next – gleiche Höhe */
  gap: 10px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f10;
}

.idea-actions .btn-primary {
  padding: 10px 14px;
  background: #fff;
  color: #111;
  border-color: #fff;
}

.idea-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Löschen: rotes, quadratisch-rundes Icon-Feld in Button-Höhe */
.idea-actions .idea-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  aspect-ratio: 1;
  min-width: 40px;
  padding: 0;
  border: 1px solid #e5484d;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  cursor: pointer;
}
.idea-actions .idea-delete:hover {
  background: #d13a40;
  border-color: #d13a40;
}
.idea-actions .idea-delete svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  /* mobil: eigene dunkle Seite – nur Zurück-Pfeil oben, Inhalt beginnt auf Höhe der
     ersten Karte (--idea-top setzt inbox.js), Aktionen unten */
  .idea-dialog {
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    max-height: none;
    border: none;
    border-radius: 0;
    z-index: 50;
  }
  .idea-scroll {
    padding-top: var(--idea-top, 175px);
  }
  body.idea-open::after {
    display: none;
  }
  body.idea-open .site-header,
  body.idea-open .mobile-pinned,
  body.idea-open .tabbar {
    visibility: hidden; /* Seite „wechselt“, Layout bleibt stehen */
  }
  .idea-close {
    position: fixed;
    left: 16px;
    top: calc(16px + env(safe-area-inset-top));
    width: 24px;
    height: 40px;
    background: none;
    backdrop-filter: none;
    justify-content: flex-start;
    color: #fff;
  }
  .idea-close svg {
    margin-left: -7px;
  }
  /* Freunde (ohne Chips): Abstand unter der Überschrift wie bei einer Chip-Reihe */
  .friends-page .mobile-pinned {
    padding-bottom: 48px;
  }
}


/* ---------- Ideen mobil: Vollbild-Karten mit Scroll-Snap ---------- */

@media (max-width: 720px) {
  body.ideas-full .inbox-list {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ideas-top, 180px);
    bottom: var(--ideas-bottom, 60px);
    margin: 0;
    padding: 0 16px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    display: block;
    z-index: 5;
  }
  body.ideas-full .inbox-list::-webkit-scrollbar {
    display: none;
  }
  /* Seite selbst scrollt nicht (die Kartenliste übernimmt); Erklärkarte ausblenden */
  html:has(body.ideas-full),
  body.ideas-full {
    overflow: hidden;
    height: 100%;
  }
  body.ideas-full .settings-card,
  body.ideas-full .site-footer {
    display: none;
  }
  .idea-full {
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    background: #0f0f10;
    color: #f2f2f2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 12px;
  }
  .idea-full-player {
    border-radius: 0;
    box-shadow: none;
    /* Bei wenig Höhe (kleine Handys, Safari-Leisten) darf der Player schrumpfen */
    flex: 0 1 auto;
    min-height: 150px;
  }
  .idea-full-body {
    flex: 1 1 auto;
    min-height: 190px;
    overflow-y: auto; /* Worst Case: Mittelteil scrollt, Buttons bleiben stehen */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 14px 6px;
  }
  .idea-full-body::-webkit-scrollbar {
    display: none;
  }
  .idea-full-body .movie-title {
    color: #fff;
    font-size: 1.2rem;
  }
  .idea-full-body .movie-meta,
  .idea-full-body .inbox-from {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
  }
  .idea-full-body .stars {
    margin-top: 6px;
  }
  .idea-full-body .stars .star-fg {
    fill: #fff;
  }
  .idea-full-body .stars .star-bg {
    fill: rgba(255, 255, 255, 0.3);
  }
  .idea-full-body .stars b {
    color: #fff;
  }
  .idea-full-body .logo-gmc {
    background: #fff;
    color: #111;
  }
  .idea-full-body .genre-chips {
    margin-top: 8px;
  }
  .idea-full-body .chip {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  .idea-full-body .movie-plot {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 8px;
  }
  .idea-full-body .ratings {
    margin-top: 8px;
    flex-wrap: nowrap;
  }
  .idea-full-body .rating {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    padding: 3px 10px 3px 6px;
    font-size: 0.74rem;
  }
  .idea-full .idea-actions {
    padding: 10px 14px 12px;
    flex: none;
  }
  .idea-full .idea-actions .btn-primary,
  .idea-full .idea-actions .btn-secondary {
    padding: 10px 12px;
  }
  .idea-full {
    margin-bottom: 10px; /* Abstand zwischen den Karten = Abstand zur Bottom-Bar */
  }
}


/* Ideen-Vollbildkarte: kompakter, alle Details sichtbar */
@media (max-width: 720px) {
  .idea-full-body {
    display: flex;
    flex-direction: column;
    padding: 10px 14px 4px;
  }
  .idea-full-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  .idea-full-left {
    min-width: 0;
    flex: 1;
  }
  .idea-full-body .movie-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }
  .idea-full-genres {
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: 2px;
  }
  .idea-full-genres .chip {
    font-size: 0.68rem;
    padding: 2px 8px;
  }
  .idea-full-body .movie-plot {
    display: block; /* kein Clamp mehr: ganzer Text, bei Bedarf scrollbar */
    -webkit-line-clamp: unset;
    font-size: 0.85rem;
    margin-top: 8px;
    flex: none;
  }
  .idea-full-body .ratings {
    margin-top: 8px;
    flex: none;
  }
  .idea-full-foot {
    margin-top: auto;
    padding-top: 4px;
    flex: none;
  }
  .idea-full-foot .inbox-from {
    margin-top: 0;
    padding-bottom: 4px;
    font-size: 0.72rem;
  }
  .idea-full .idea-actions {
    padding: 8px 14px 10px;
    gap: 8px;
  }
  .idea-full .idea-actions .btn-primary,
  .idea-full .idea-actions .btn-secondary {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* =====================================================================
   Liquid Glass (iOS-26-Look wie im WhatsApp-Anrufbildschirm), 2026-09-26
   Dunkles Glas mit feinem hellem Rand an der Oberkante, weiches Licht von
   oben, Tiefe durch Schatten; aktiver Zustand = weiße Pille mit Glanzkante.
   Gilt für Chips, Zähler-Chip, Avatar, Plus, Kategorie-Schalter, Outline-
   Buttons und die Tab-Bar. Tokens pro Theme, Regeln einmal.
   ===================================================================== */
:root {
  --lg-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.04));
  --lg-rim: rgba(0, 0, 0, 0.12);
  --lg-hi: rgba(255, 255, 255, 0.75);
  --lg-lo: rgba(0, 0, 0, 0.05);
  --lg-fg: #111111;
  --lg-on: linear-gradient(180deg, #1c1c1c, #0c0c0c);
  --lg-on-rim: #111111;
  --lg-on-hi: rgba(255, 255, 255, 0.16);
  --lg-on-fg: #ffffff;
  --lg-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
  --lg-blur: 18px;
  --lg-bg-strong: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.09));
}
:root[data-theme="dark"],
:root[data-theme="glass"],
:root:not([data-theme="light"]):not([data-theme="dark"]):not([data-theme="glass"]).system-dark {
  --lg-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  --lg-rim: rgba(255, 255, 255, 0.16);
  --lg-hi: rgba(255, 255, 255, 0.3);
  --lg-lo: rgba(255, 255, 255, 0.04);
  --lg-fg: #f2f2f2;
  --lg-on: linear-gradient(180deg, #ffffff, #e8e8e8);
  --lg-on-rim: rgba(255, 255, 255, 0.85);
  --lg-on-hi: #ffffff;
  --lg-on-fg: #111111;
  --lg-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.9);
  --lg-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.13));
}

/* Glas (Ruhezustand) */
.chip,
.chip-count,
.btn-secondary,
.category-switch,
.category-switch-mobile,
.drawer-back {
  background: var(--lg-bg);
  border: 1px solid var(--lg-rim);
  color: var(--lg-fg);
  box-shadow: inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-lo), var(--lg-shadow);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
}
/* Zähler-Chip eine Stufe kräftiger als die anderen Chips (wie vorher „fast schwarz“) */
.chip-count {
  background: var(--lg-bg-strong, var(--lg-bg));
}
.chip-reset {
  border-style: solid;
  color: var(--lg-fg);
  opacity: 0.8;
}
/* Hover ohne filter: filter auf Elementen mit backdrop-filter lässt sie flackern (2026-10-15) –
   stattdessen eine leichte Aufhellung als Hintergrund-Ebene */
.btn-secondary:hover,
.chip:hover {
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
}

/* Glas (aktiv / hell) = Weiß mit Glanzkante – auch Avatar und Plus (Farben wie zuvor) */
.avatar-btn,
#avatar-btn-mobile,
.icon-btn-black,
#add-btn-mobile,
.chip.on,
.chip-count.on,
.seg-indicator,
.category-switch:not(.has-indicator) .tab.active,
.category-switch-mobile:not(.has-indicator) .tab.active,
.btn-primary {
  background: var(--lg-on);
  border-color: var(--lg-on-rim);
  color: var(--lg-on-fg);
  box-shadow: inset 0 1px 0 var(--lg-on-hi), var(--lg-shadow);
}
.seg-indicator {
  border: 1px solid var(--lg-on-rim);
  box-sizing: border-box;
}
.avatar-btn,
#avatar-btn-mobile,
.icon-btn-black,
#add-btn-mobile {
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
}
.avatar-btn svg,
.icon-btn-black {
  color: var(--lg-on-fg);
}
.btn-primary:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
}

/* Schalter: die Pille selbst ist Glas, die Tabs bleiben transparent */
.category-switch .tab,
.category-switch-mobile .tab {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Tab-Bar: Glasfläche mit feiner Lichtkante oben */
@media (max-width: 720px) {
  .tabbar {
    background: var(--glass);
    border-top: 1px solid transparent; /* keine Linie über der Tab-Bar (Niklas, 2026-09-26) */
    box-shadow: none;
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
    backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
  }
  .category-switch-mobile {
    background: var(--lg-bg);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
    backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
  }
}


/* =====================================================================
   Filter-Panel (mobil, 2026-09-26): statt Bottom-Sheet ein Panel exakt
   zwischen Chip-Reihe und Tab-Bar; Inhalt scrollt bei Bedarf, unten immer
   der Sortier-Block mit Richtung ↑/↓ und „done“.
   ===================================================================== */
.sort-dir-seg {
  display: none;
}
.sheet .sort-dir-seg {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}
.sheet .sort-dir-seg button {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--lg-bg);
  border: 1px solid var(--lg-rim);
  color: var(--lg-fg);
  box-shadow: inset 0 1px 0 var(--lg-hi);
}
.sheet .sort-dir-seg button.on {
  background: var(--lg-on);
  border-color: var(--lg-on-rim);
  color: var(--lg-on-fg);
  box-shadow: inset 0 1px 0 var(--lg-on-hi);
}
.sheet .sort-inline .sort-dir {
  display: none; /* im Panel ersetzt das Segment den Umschalter */
}
.sheet-body .sort-inline {
  flex-wrap: wrap;
}
.sheet-sort {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
}
.sheet-sort-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 4px;
}
.sheet-sort .sort-inline > span {
  display: none; /* „sort by“ steht schon als Blocktitel */
}
.chip.open {
  background: var(--lg-on);
  border-color: var(--lg-on-rim);
  color: var(--lg-on-fg);
  box-shadow: inset 0 1px 0 var(--lg-on-hi), var(--lg-shadow);
}

@media (max-width: 720px) {
  .sheet.panel {
    /* oben an der Chip-Reihe, Höhe nach Inhalt – höchstens bis zur Tab-Bar */
    inset: var(--panel-top, 130px) 12px auto 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--panel-top, 130px) - var(--panel-bottom, 72px));
    height: auto;
    margin: 0;
    border: 1px solid var(--lg-rim);
    border-radius: 18px;
    padding: 6px 16px 12px;
    background: var(--card);
    box-shadow: inset 0 1px 0 var(--lg-hi), var(--lg-shadow);
    animation: panel-in 0.22s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 40;
  }
  .sheet.panel:not([open]) {
    display: none;
  }
  .sheet.panel .sheet-handle {
    display: none;
  }
  .sheet.panel .sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sheet.panel .sheet-sort,
  .sheet.panel .sheet-foot {
    flex: none;
  }
  .sheet.panel .sheet-sort .sheet-body {
    flex: none;
    overflow: visible;
  }
  .sheet.panel .sheet-foot {
    padding-top: 10px;
  }
  .sheet.panel .sheet-body .combobox-options {
    max-height: none; /* das Panel selbst scrollt */
  }
  body.sheet-open {
    overflow: hidden;
  }
  @keyframes panel-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
  }
}


/* =====================================================================
   Seitenwechsel über die Tab-Bar (2026-09-26): Cross-Document View
   Transitions. Kopf, fixierte Titelzeile und Tab-Bar bleiben stehen,
   nur der Inhalt blendet kurz über – kein weißer/leerer Zwischenzustand.
   ===================================================================== */
@view-transition {
  navigation: auto;
}
@media (max-width: 720px) {
  .site-header {
    view-transition-name: site-header;
  }
  .mobile-pinned {
    view-transition-name: pinned;
  }
  .tabbar {
    view-transition-name: tabbar;
  }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
}
::view-transition-group(site-header),
::view-transition-group(tabbar) {
  animation-duration: 0s;
}
::view-transition-old(site-header),
::view-transition-old(tabbar) {
  display: none;
}
::view-transition-new(site-header),
::view-transition-new(tabbar) {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}


/* „friends“-Score ohne Bewertung: leere Sterne, gedämpfter Strich */
.stars.empty b {
  opacity: 0.55;
}
.stars.empty .star-bg {
  opacity: 0.7;
}


/* =====================================================================
   friends-Bewertung als Pill in der Bewertungsreihe (2026-09-26): gleiche
   Form wie IMDb/RT/MC, Signet links, kleine Sterne, Zahl rechts. Die Reihe
   rückt näher an Jahr/Laufzeit; auf der Hero-Karte darf sie umbrechen.
   ===================================================================== */
.ratings .stars {
  margin-top: 0;
  gap: 1px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  white-space: nowrap;
}
.ratings .stars svg {
  width: 13px;
  height: 13px;
}
.ratings .stars .logo-gmc {
  margin-right: 5px;
}
.ratings .stars b {
  margin-left: 5px;
  font-size: 0.85em;
}
.ratings {
  margin-top: 6px; /* näher an Jahr · Laufzeit */
}
.confirm-details .ratings {
  margin-top: 8px;
}
@media (max-width: 720px) {
  .movie-card .ratings {
    flex-wrap: wrap; /* friends-Pill + drei Plattformen: zwei Reihen erlaubt */
    margin-top: 5px;
    row-gap: 5px;
  }
  .movie-card .ratings .stars {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    padding: 2px 8px 2px 3px;
    gap: 0;
  }
  .movie-card .ratings .stars svg {
    width: 12px;
    height: 12px;
  }
  .movie-card .ratings .stars b {
    font-size: 0.72rem;
  }
  .idea-full-body .ratings {
    margin-top: 5px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .idea-full-body .ratings .stars {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    padding: 2px 9px 2px 3px;
  }
  .idea-full-body .ratings .stars svg {
    width: 12px;
    height: 12px;
  }
}


/* Alle Pills einer Bewertungsreihe gleich hoch (friends-Pill hat kleinere Inhalte) */
.ratings .stars,
.ratings .rating {
  box-sizing: border-box;
  height: 28px;
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 720px) {
  .movie-card .ratings .stars,
  .movie-card .ratings .rating {
    height: 26px;
  }
  /* Ideas-Vollbildkarte: Reihe steht links unter Jahr · Laufzeit, neben den Genres → kompakter */
  .idea-full-left .ratings {
    margin-top: 6px;
    gap: 5px;
    row-gap: 5px;
    flex-wrap: wrap;
  }
  .idea-full-left .ratings .stars,
  .idea-full-left .ratings .rating {
    height: 26px;
    font-size: 0.7rem;
  }
  .idea-full-left .ratings .rating {
    padding-left: 5px;
    padding-right: 8px;
    gap: 4px;
  }
  .idea-full-left .ratings .stars {
    padding-left: 3px;
    padding-right: 8px;
  }
  .idea-full-left .ratings .stars svg {
    width: 11px;
    height: 11px;
  }
  .idea-full-left .ratings .logo-gmc {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
}

/* friends-Signet immer weiß mit schwarzer Schrift (Niklas, 2026-09-26) – in allen Themes
   und auch auf der Hero-Karte, wo das Signet vorher dunkel war. „you“ im Log bleibt Outline. */
.logo-gmc:not(.logo-me),
.movie-card .logo-gmc:not(.logo-me),
.idea-full-body .logo-gmc:not(.logo-me) {
  background: #ffffff;
  color: #111111;
}


/* Sicherheitsnetz: das hidden-Attribut gewinnt immer, egal welche display-Regel sonst gilt */
[hidden] {
  display: none !important;
}

/* Fokusring nur bei Tastaturbedienung, nicht nach programmatischem Fokus (Zurück-Pfeil im Dialog) */
#add-dialog .dialog-back:focus:not(:focus-visible),
.dialog-close:focus:not(:focus-visible) {
  outline: none;
}


/* friends-Pill ohne Zahl: rechts gleicher Innenabstand wie links vom Signet */
.ratings .stars {
  padding-right: 8px;
}
.ratings .stars svg:last-child {
  margin-right: 1px;
}


/* =====================================================================
   friends-Sterne unter den Plattform-Pills, ohne Pill (Niklas, 2026-09-26)
   ===================================================================== */
.stars {
  margin-top: 8px;
}
.friends-row:empty {
  display: none;
}
.confirm-details .friends-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.confirm-details .friends-row .stars {
  margin-top: 0;
}
@media (max-width: 720px) {
  .movie-card .stars {
    margin-top: 6px;
  }
  .movie-card .stars.compact svg {
    width: 15px;
    height: 15px;
  }
  .idea-full-left .stars {
    margin-top: 6px;
  }
  .idea-full-left .stars.compact svg {
    width: 14px;
    height: 14px;
  }
  .idea-full-left .stars .logo-gmc {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
}


/* Karten: kein Fokusring nach Tipp/Rücksprung aus dem Dialog, nur bei Tastaturfokus */
.movie-card {
  -webkit-tap-highlight-color: transparent;
}
.movie-card:focus {
  outline: none;
}
.movie-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Haken oben rechts auf Watchlist-Karten (mobil) → Log-Dialog */
@media (max-width: 720px) {
  .kebab-check {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .kebab-check svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}


/* =====================================================================
   Wischen nach links → log (Watchlist, mobil; 2026-09-27)
   Rechts hinter der Karte fährt eine weiße Fläche ein; l · o · g erscheinen
   nacheinander, je weiter man zieht. Bei voller Strecke rastet es ein.
   ===================================================================== */
.swipe-wrap {
  position: relative;
}
.swipe-action {
  display: none;
}
@media (max-width: 720px) {
  .swipe-wrap .movie-card {
    touch-action: pan-y; /* vertikal scrollt die Seite, horizontal zieht die Karte */
    will-change: transform;
    position: relative;
    z-index: 1;
  }
  .swipe-action {
    --p: 0;
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 96px;
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--lg-on);
    color: var(--lg-on-fg);
    box-shadow: inset 0 1px 0 var(--lg-on-hi);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    opacity: calc(var(--p) * 1.6);
    transform: scale(calc(0.7 + var(--p) * 0.3));
    pointer-events: none;
    z-index: 0;
  }
  /* nach rechts ziehen → log: weiße Fläche links */
  .swipe-log {
    left: 0;
    transform-origin: left center;
  }
  /* nach links ziehen → remove: rote Fläche rechts */
  .swipe-remove {
    right: 0;
    width: 112px;
    transform-origin: right center;
    background: linear-gradient(180deg, #ef5350, #d7332f);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    gap: 1px;
  }
  .swipe-remove.armed {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 2px var(--bg), 0 0 0 3px #ef5350;
  }
  .swipe-action span {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.8);
    transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .swipe-action span.in {
    opacity: 1;
    transform: none;
  }
  .swipe-action.armed {
    box-shadow: inset 0 1px 0 var(--lg-on-hi), 0 0 0 2px var(--bg), 0 0 0 3px var(--lg-on-rim);
  }
  .swipe-wrap.swiping .movie-card {
    user-select: none;
    -webkit-user-select: none;
  }
}


/* =====================================================================
   Wischen „glow“ (Niklas' Wahl, 2026-09-27): kein Feld neben der Karte.
   Rand-Glow und Icon werden in app.js mit der Zugstrecke gesetzt.
   ===================================================================== */
.swipe-glow-ico {
  display: none;
}
@media (max-width: 720px) {
  .swipe-wrap .movie-card {
    will-change: transform, box-shadow;
  }
  .swipe-glow-ico {
    display: flex;
    position: absolute;
    top: 50%;
    margin-top: -14px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  }
  /* Icons am Bildschirmrand, in dem Raum, der sich beim Ziehen neben der Karte öffnet
     (Karte steht 16 px vom Rand und folgt dem Finger bis 48 px) */
  .swipe-glow-ico.log {
    left: 0; /* = 16 px vom Displayrand, wie die Karten (Niklas, 2026-09-27) */
    color: #fff;
  }
  .swipe-glow-ico.remove {
    right: 0;
    color: #ef5350;
  }
  .swipe-glow-ico svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .swipe-glow-ico.armed svg {
    stroke-width: 3;
  }
}


/* =====================================================================
   Single-Page-Ansichten (2026-09-27): ideas / friends innerhalb der Listenseite
   ===================================================================== */
body.view-friends .mobile-pinned .chips {
  display: none !important;
}
/* Freunde: keine Filter, keine Sortierung, kein list/log-Schalter (gilt nur für Titel-Listen) */
body.view-friends .filters,
body.view-friends .list-head,
body.view-friends .toolbar .tabs,
body.view-friends .toolbar .tagline {
  display: none !important;
}
#ideas-view .ideas-explainer {
  margin-top: 16px;
}
@media (max-width: 720px) {
  body.view-friends .mobile-pinned {
    padding-bottom: 48px; /* Platz einer Chip-Reihe, damit Karten überall gleich hoch beginnen */
  }
  body.view-ideas .site-footer,
  body.view-ideas .settings-card:not(.ideas-explainer) {
    display: none;
  }
}

/* Remove-Rückfrage: mittiges Pop-up statt oben angedockt (Niklas, 2026-09-27) */
#remove-dialog {
  margin: auto;
  width: min(420px, calc(100vw - 32px));
  border-radius: 20px;
  text-align: center;
}
#remove-dialog .confirm-actions {
  justify-content: center;
}
#remove-dialog .confirm-actions > * {
  flex: 1;
}

/* Log-Dialog mobil als Panel im Kartenbereich (zwischen Chip-Reihe und Tab-Bar) */
@media (max-width: 720px) {
  #watched-dialog.panel {
    position: fixed;
    inset: var(--panel-top, 130px) 12px var(--panel-bottom, 72px) 12px;
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    margin: 0;
    border: 1px solid var(--lg-rim);
    border-radius: 18px;
    padding: 16px;
    background: var(--card);
    box-shadow: inset 0 1px 0 var(--lg-hi), var(--lg-shadow);
    animation: panel-in 0.22s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 40;
  }
  #watched-dialog.panel:not([open]) {
    display: none;
  }
  #watched-dialog.panel .confirm-actions {
    margin-top: auto;
    padding-top: 12px;
  }
  #watched-dialog.panel #review-text {
    flex: 1 1 auto;
    min-height: 90px;
  }
}
.watched-toggle {
  margin-top: 12px;
}
.star-picker {
  touch-action: none; /* Wischen über die Sterne gehört dem Picker */
}


/* friends-Sterne unter dem Titel (Test 2026-09-27) */
.movie-card .stars.under-title {
  margin: 3px 0 0;
}
@media (max-width: 720px) {
  .movie-card .stars.under-title {
    margin: 2px 0 1px;
  }
  .movie-card .stars.under-title svg {
    width: 14px;
    height: 14px;
  }
  .movie-card .stars.under-title + .movie-meta {
    margin-top: 3px;
  }
}


/* =====================================================================
   „two pills“ (Niklas' Wahl, 2026-09-27; Größen-Variante 1):
   Pille 1 = IMDb · RT · MC (Badges bleiben Links), Pille 2 = friends-Sterne.
   Alle Maße als Variablen --tp-*, feinjustierbar unter /pill-tuning.
   ===================================================================== */
:root {
  --tp-h: 24px; /* Pillenhöhe */
  --tp-font: 0.72rem; /* Zahlen */
  --tp-pl: 9px; /* Luft links */
  --tp-pr: 10px; /* Luft rechts */
  --tp-gap: 7px; /* Abstand Wert ↔ Trennstrich */
  --tp-lgap: 3px; /* Abstand Logo ↔ Zahl (Fallback) */
  --tp-imdb-gap: 4px; /* je Plattform einzeln – Niklas' Werte vom 2026-09-27 (/pill-tuning) */
  --tp-rt-gap: 1px;
  --tp-mc-gap: 3px;
  --tp-imdb: 0.54rem; /* IMDb-Kästchen */
  --tp-rt: 15px; /* Tomate */
  --tp-mc: 15px; /* Metacritic */
  --tp-star: 12px; /* Sterne */
  --tp-sig: 0.62rem; /* friends-Signet */
  --tp-imdb-y: 0.5px; /* vertikale Feinkorrektur je Logo (+ = tiefer) */
  --tp-rt-y: -0.5px;
  --tp-rt-x: -2px; /* Tomate näher an den Trennstrich: ihr SVG hat links unsichtbare Luft */
  --tp-mc-y: 0px;
  --tp-num-y: 0px; /* vertikale Feinkorrektur der Zahlen */
  --tp-gap2: 5px; /* Abstand zwischen den beiden Pillen */
}
.ratings.two {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tp-gap2);
  margin-top: 6px;
  font-size: var(--tp-font);
}
.ratings.two .one,
.ratings.two .fp {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--tp-h);
  padding: 0 var(--tp-pr) 0 var(--tp-pl);
  border-radius: 999px;
  background: var(--lg-bg);
  border: 1px solid var(--lg-rim);
  box-shadow: inset 0 1px 0 var(--lg-hi);
  color: var(--ink);
  font-size: var(--tp-font);
  font-weight: 600;
  white-space: nowrap;
  gap: var(--tp-gap);
  line-height: 1;
}
.ratings.two .one .sep {
  width: 1px;
  height: calc(var(--tp-h) * 0.5);
  background: var(--line);
  flex: none;
}
/* Badges innerhalb der Pille: keine eigene Pille mehr, Zahl dicht am Logo, alles mittig */
.ratings.two .rating,
.ratings.two .rating:hover {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  gap: var(--tp-lgap);
  font-size: inherit;
  color: inherit;
  line-height: 1;
}
.ratings.two .rating b {
  font-size: inherit;
  line-height: 1;
  transform: translateY(var(--tp-num-y));
}
.ratings.two .rating-imdb {
  gap: var(--tp-imdb-gap);
}
.ratings.two .rating-rottenTomatoes,
.ratings.two .rating-rt {
  gap: var(--tp-rt-gap);
}
.ratings.two .rating-metacritic,
.ratings.two .rating-mc {
  gap: var(--tp-mc-gap);
}
.ratings.two .logo-imdb {
  font-size: var(--tp-imdb);
  padding: 1px 3px;
  line-height: 1.2;
  transform: translateY(var(--tp-imdb-y));
}
.ratings.two .logo-rt {
  width: var(--tp-rt);
  height: var(--tp-rt);
  margin-left: var(--tp-rt-x);
  transform: translateY(var(--tp-rt-y));
}
.ratings.two .logo-mc-mark {
  width: var(--tp-mc);
  height: var(--tp-mc);
  transform: translateY(var(--tp-mc-y));
}
.ratings.two .fp .stars {
  height: auto;
  margin: 0;
  padding: 0;
  gap: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.ratings.two .fp .stars svg {
  width: var(--tp-star);
  height: var(--tp-star);
}
.ratings.two .fp .logo-gmc {
  font-size: var(--tp-sig);
  padding: 1px 4px;
  margin-right: 4px;
  line-height: 1.2;
}
/* Ohne friends-Bewertung: Signet bleibt weiß/schwarz – die ganze Pille wird nur über die
   Deckkraft gedimmt (Niklas, 2026-09-27, nach Test mit grauem Signet) */
/* Einstellung „rating pills ausblenden“: nur die Plattform-Pille */
body.hide-ratings .movie-card .ratings.two .one {
  display: none;
}
@media (max-width: 720px) {
  .movie-card .ratings.two {
    margin-top: 6px;
  }
  .movie-card .ratings.two .one,
  .movie-card .ratings.two .fp {
    height: var(--tp-h);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    padding: 0 var(--tp-pr) 0 var(--tp-pl);
  }
  .movie-card .ratings.two .one .sep {
    background: rgba(255, 255, 255, 0.35);
  }
  .movie-card .ratings.two .rating,
  .movie-card .ratings.two .rating b {
    font-size: var(--tp-font);
    color: #fff;
  }
  .movie-card .ratings.two .logo-rt {
    width: var(--tp-rt);
    height: var(--tp-rt);
  }
  .movie-card .ratings.two .logo-mc-mark {
    width: var(--tp-mc);
    height: var(--tp-mc);
  }
  .movie-card .ratings.two .logo-imdb {
    font-size: var(--tp-imdb);
    padding: 1px 3px;
  }
  .idea-full-left .ratings.two .one,
  .idea-full-left .ratings.two .fp {
    height: var(--tp-h);
    font-size: var(--tp-font);
    padding: 0 var(--tp-pr) 0 var(--tp-pl);
  }
  .idea-full-left .ratings.two .rating {
    padding: 0;
  }
  .idea-full-left .ratings.two .logo-rt,
  .idea-full-left .ratings.two .logo-mc-mark {
    width: var(--tp-rt);
    height: var(--tp-rt);
  }
  .idea-full-left .ratings.two .logo-mc-mark {
    width: var(--tp-mc);
    height: var(--tp-mc);
  }
  .idea-full-left .ratings.two .fp .stars svg {
    width: var(--tp-star);
    height: var(--tp-star);
  }
  .idea-full-left .ratings.two .logo-gmc {
    font-size: var(--tp-sig);
    padding: 1px 4px;
  }
}


/* RT-Publikumswert („Popcornmeter“) hinter dem Tomatometer */
.rt-aud {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  font-weight: 600;
}
.rt-aud i {
  font-style: normal;
  font-size: 0.85em;
  line-height: 1;
}
.ratings.two .rt-aud b {
  font-size: inherit;
}

/* friends-Pille ohne Bewertung: deutlich „deaktiviert“ (Niklas, 2026-09-27) */
.ratings.two .fp:has(.stars.empty) {
  opacity: 0.5;
  box-shadow: none;
  border-style: dashed;
}


/* Hero-Karte (mobil): Titel und Meta oben, die beiden Pillen unten an der Kartenkante
   (Niklas, 2026-09-27) */
@media (max-width: 720px) {
  .movie-card .movie-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: stretch; /* die Karte richtet Kinder oben aus – die Info-Spalte soll bis unten reichen */
  }
  .movie-card .ratings.two {
    margin-top: auto;
    padding-top: 8px;
  }
  .movie-card .my-review {
    margin-top: 6px;
  }
}


/* Vergleich: Pillen nur mit Textabstand unter der Meta-Zeile (gleicher Abstand wie
   Titel → Meta, 3 px) statt unten an der Kartenkante – html.pills-text via ?pills=text */
@media (max-width: 720px) {
  html.pills-text .movie-card .ratings.two {
    margin-top: 3px;
    padding-top: 0;
  }
}

#pills-compare {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 60;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--lg-on-rim);
  background: var(--lg-on);
  color: var(--lg-on-fg);
  font: 600 0.78rem/1 var(--font-sans);
  box-shadow: var(--lg-shadow);
}


/* =====================================================================
   Schwebende Tab-Bar im iOS-26-Stil (Liquid Glass, 2026-09-28)
   Glas-Kapsel mit Abstand zu den Rändern, aktiver Tab als hellere Pille.
   Umschaltbar: ?tabbar=float (Standard) / ?tabbar=classic
   ===================================================================== */
@media (max-width: 720px) {
  /* 2026-09-28: Glas-Optik bleibt, aber als volle Leiste über die ganze Breite (Niklas) */
  html.tabbar-float .tabbar {
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(40, 40, 44, 0.72), rgba(22, 22, 25, 0.78));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04),
      0 12px 32px -8px rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    backdrop-filter: blur(22px) saturate(1.8);
    align-items: stretch;
    gap: 2px;
  }
  html.tabbar-float .tabbar-item {
    border-radius: 999px;
    justify-content: center;
    gap: 3px;
    font-size: 0.66rem;
    transition: background 0.2s, color 0.2s;
    position: relative;
  }
  html.tabbar-float .tabbar-item svg {
    width: 23px;
    height: 23px;
  }
  html.tabbar-float .tabbar-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #fff;
  }
  html.tabbar-float .tabbar .inbox-badge {
    top: 3px;
  }
  /* Inhalt endet über der Kapsel */
  html.tabbar-float main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }
  html.tabbar-float[data-theme="light"] .tabbar,
  html.tabbar-float:not(.system-dark):not([data-theme="dark"]):not([data-theme="glass"]) .tabbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 245, 247, 0.82));
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 32px -10px rgba(0, 0, 0, 0.25);
  }
  html.tabbar-float[data-theme="light"] .tabbar-item.active,
  html.tabbar-float:not(.system-dark):not([data-theme="dark"]):not([data-theme="glass"]) .tabbar-item.active {
    background: rgba(0, 0, 0, 0.07);
    color: #111;
  }
}


/* =====================================================================
   Kategorie-Icons statt Emojis (Niklas' Wahl, 2026-09-28, /icon-varianten):
   film = Filmstreifen, series = Röhrenfernseher, other = gestapelte Episoden
   ===================================================================== */
.cat-ico {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-switch .tab .cat-ico {
  margin-right: 7px;
  width: 18px;
  height: 18px;
}
.category-switch-mobile .tab {
  color: rgba(255, 255, 255, 0.62);
}
.category-switch-mobile .tab.active,
.category-switch .tab.active {
  color: var(--lg-on-fg);
}
:root[data-theme="light"] .category-switch-mobile .tab:not(.active) {
  color: rgba(0, 0, 0, 0.55);
}
@media (max-width: 720px) {
  .category-switch-mobile .tab {
    padding: 0 14px;
  }
}
/* große Platzhalter (Player ohne Cover, Startseiten-Kacheln) nutzen dieselben Icons */
.player-placeholder .cat-ico,
.start-poster .cat-ico {
  width: 34%;
  height: auto;
  max-width: 64px;
  stroke-width: 1.4;
  opacity: 0.55;
}


/* Tab-Bar-Indikator (gleitende Pille, ziehbar) */
@media (max-width: 720px) {
  .tabbar.has-ind {
    touch-action: none;
  }
  .tabbar-ind {
    position: absolute;
    top: 5px;
    left: 0;
    height: 54px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 0;
  }
  .tabbar.has-ind .tabbar-item {
    position: relative;
    z-index: 1;
  }
  html.tabbar-float .tabbar.has-ind .tabbar-item.active {
    background: none;
    box-shadow: none;
  }
  .tabbar.has-ind .tabbar-item.drag-over {
    color: var(--ink);
  }
  html:not(.tabbar-float) .tabbar-ind {
    top: 3px;
    height: calc(100% - 6px - env(safe-area-inset-bottom));
  }
  :root[data-theme="light"] .tabbar-ind {
    background: rgba(0, 0, 0, 0.07);
    box-shadow: none;
  }
}


/* ======================================================================
   Login / Registrierung (2026-10-12)
   ====================================================================== */
.login-main {
  max-width: 420px;
  margin: 0 auto;
  padding: calc(48px + env(safe-area-inset-top)) 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-logo {
  display: block !important;
  color: var(--ink);
  align-self: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.login-invite {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  background: var(--bg-2);
}
.login-tabs {
  display: flex;
  margin-bottom: 14px;
}
.login-tabs .tab {
  flex: 1;
}
.login-claim-title {
  margin-bottom: 4px;
}
.login-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}
.login-form input:focus {
  border-color: var(--accent);
}
.login-form .field-label {
  display: block;
  margin-top: 14px;
}
.login-hint {
  margin: 6px 0 0;
}
.login-error {
  color: #e5484d;
  font-size: 0.9rem;
  margin: 14px 0 0;
}
.login-submit {
  width: 100%;
  margin-top: 18px;
}

/* ======================================================================
   Freunde (2026-10-12)
   ====================================================================== */
.invite-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.invite-row input,
.friend-search {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.invite-row input {
  color: var(--muted);
}
.friend-search:focus {
  border-color: var(--accent);
}
.people-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.people-list:empty {
  display: none;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.person:first-child {
  border-top: none;
}
.person-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-who {
  flex: 1;
  min-width: 0;
}
.person-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-handle,
.person-meta,
.person-status {
  color: var(--muted);
  font-size: 0.8rem;
}
.person-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-small {
  padding: 6px 12px;
  font-size: 0.82rem;
}
.ideas-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.ideas-switch input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  margin: 0;
}
.friends-private-note {
  margin-top: 4px;
}
@media (max-width: 640px) {
  .person {
    flex-wrap: wrap;
  }
  .person-actions {
    width: 100%;
    padding-left: 52px;
    justify-content: flex-start;
  }
}

/* Magic Match (2026-10-12) */
.magic-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 12px;
}
.magic-people .chip {
  cursor: pointer;
}
.magic-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.magic-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.magic-item:first-child {
  border-top: none;
}
.magic-poster {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-2);
  flex: none;
}
.magic-info {
  min-width: 0;
}
.magic-title {
  font-weight: 600;
}
.magic-who {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.login-title {
  margin-bottom: 4px;
}
.login-form .login-input:first-child {
  margin-top: 12px;
}
.login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 18px 0 14px;
}
.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.login-switch {
  display: block;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ======================================================================
   Onboarding-Tour (2026-10-12): Spotlight + Sprechblase
   ====================================================================== */
.tour-shade {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.tour-spot {
  position: fixed;
  z-index: 1001;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.68), 0 0 0 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.tour-tip {
  position: fixed;
  z-index: 1002;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-pop);
  box-sizing: border-box;
  transition: top 0.25s ease, left 0.25s ease;
}
.tour-tip::before {
  content: "";
  position: absolute;
  left: calc(var(--arrow-x, 50%) - 7px);
  width: 12px;
  height: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  transform: rotate(45deg);
}
.tour-tip[data-side="below"]::before {
  top: -7px;
  border-right: none;
  border-bottom: none;
}
.tour-tip[data-side="above"]::before {
  bottom: -7px;
  border-left: none;
  border-top: none;
}
.tour-count {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.tour-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.tour-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 12px;
  line-height: 1.45;
}
.tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tour-nav-right {
  display: flex;
  gap: 8px;
}

.login-method {
  display: flex;
  align-self: stretch;
}
.login-method .tab {
  flex: 1;
}

/* Ideen-Aktionen: alle drei exakt gleich hoch – Höhe des next-Buttons (2026-10-14) */
.idea-actions {
  --idea-btn-h: 34px;
}
.idea-actions .btn-primary,
.idea-actions .btn-secondary,
.idea-actions .idea-delete {
  height: var(--idea-btn-h) !important;
  min-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.idea-actions .idea-delete {
  width: var(--idea-btn-h);
  min-width: 0;
  aspect-ratio: auto;
  align-self: center;
}
.idea-actions .idea-delete svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 721px) {
  .idea-actions {
    --idea-btn-h: 40px;
  }
}

/* Profil- und Plus-Button oben: dunkles Glas wie der next-Button (2026-10-14) */
.avatar-btn,
#avatar-btn-mobile,
.icon-btn-black,
#add-btn-mobile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-lo), var(--lg-shadow);
}
.avatar-btn svg,
.icon-btn-black,
#add-btn-mobile {
  color: #fff;
}
.avatar-btn svg {
  fill: currentColor;
}

/* ======================================================================
   H1-Stil-Varianten (Test, /h1-varianten, 2026-10-14) – nur mit ?h1=<name> aktiv
   ====================================================================== */


/* H1: Poppins 600 + Verläufe (Test, 2026-10-14) */
@keyframes h1-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -150% 0; }
}


/* H1: Poppins 600 + Verläufe von oben nach unten (Test, Runde 3, 2026-10-14) */


/* H1-Standard seit 2026-10-14 (Variante „weiß → hellgrau, sehr dezent“, /h1-varianten):
   Poppins 600 mit Verlauf von oben nach unten */
.mobile-big-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  width: fit-content;
  background-image: linear-gradient(180deg, #fff 40%, #b5b5b5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 720px) {
  .mobile-big-title {
    font-size: 1.7rem;
    line-height: 1.15;
    /* optisch mittig zwischen Kopfzeile und Chips (je ~21 px bis zur Schrift); Summe wie vorher,
       damit Chips und Liste an derselben Stelle bleiben */
    margin: -1px 0 7px !important;
  }
}
/* Helles Theme: gleicher Verlauf dunkel → grau */
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .mobile-big-title,
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .page-title {
  background-image: linear-gradient(180deg, #111 40%, #6b6b6b);
}

.login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.login-links .text-btn {
  font-size: 0.85rem;
}

/* Rückfrage-Dialog (remove / delete idea): auch mobil kompaktes, mittiges Pop-up statt Vollbild;
   bestätigender Button rot (zerstörende Aktion), 2026-10-14 */
@media (max-width: 640px) {
  #remove-dialog {
    height: fit-content; /* „auto“ würde bei inset 0 im Top-Layer die volle Höhe einnehmen */
    max-height: calc(100dvh - 48px);
    width: calc(100vw - 32px);
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 18px 18px;
  }
}
#remove-dialog #remove-confirm {
  background: #e5484d;
  border-color: #e5484d;
  color: #fff;
  box-shadow: none;
}
#remove-dialog #remove-confirm:hover {
  background: #d13a40;
  border-color: #d13a40;
  filter: none;
}

/* Profil: Ansicht vs. Bearbeiten (2026-10-14) */
.profile-head:not(.editing) .edit-only,
.profile-head.editing .view-only {
  display: none !important;
}
.profile-view {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.profile-view-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}
.profile-view-handle {
  color: var(--muted);
  font-size: 0.9rem;
}
.profile-view-bio {
  margin: 8px 0 0;
  font-size: 0.95rem;
  white-space: pre-line;
}
.profile-view .btn-small {
  margin-top: 12px;
}

/* Profilbild: Kamera-Icon am Kreisrand, Optionen-Dialog, Zuschneiden (2026-10-14) */
.avatar-wrap {
  position: relative;
}
button.avatar {
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}
.avatar-badge {
  position: absolute;
  left: 80px;
  top: 80px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  background: rgba(30, 30, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.avatar-badge svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.photo-sheet,
.crop-dialog {
  text-align: center;
}
.photo-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.photo-options .photo-remove {
  color: #e5484d;
}
.photo-options [hidden] {
  display: none !important;
}
.crop-dialog {
  width: min(360px, calc(100vw - 32px));
}
.crop-stage {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  margin: 14px auto 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.crop-stage:active {
  cursor: grabbing;
}
.crop-stage img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
}
.crop-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55);
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
  pointer-events: none;
}
.crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px auto 4px;
  max-width: 300px;
  color: var(--muted);
}
.crop-zoom input {
  flex: 1;
  accent-color: var(--ink);
}
.crop-dialog .confirm-actions {
  justify-content: center;
}
.crop-dialog .confirm-actions > * {
  flex: 1;
}
@media (max-width: 640px) {
  .photo-sheet,
  .crop-dialog {
    height: fit-content;
    max-height: calc(100dvh - 32px);
    width: calc(100vw - 32px);
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
  }
}

/* Profil-Statistik als Tabelle (2026-10-14) */
#stats.stats-grid {
  display: block;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.stats-table th,
.stats-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.stats-table thead th {
  font-weight: 600;
  white-space: nowrap;
}
.stats-table tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
}
.stats-table tbody tr:last-child th,
.stats-table tbody tr:last-child td {
  border-bottom: none;
}
.stats-table td {
  font-weight: 600;
}
@media (max-width: 640px) {
  .stats-table {
    font-size: 0.85rem;
  }
  .stats-table th,
  .stats-table td {
    padding: 8px 4px;
  }
}
.stats-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stats-head .cat-ico {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sichtbare Bewertungen (Einstellungen, 2026-10-14): RT-Teilwerte einzeln ausblenden */
html.hide-v-rt .rating-rottenTomatoes > :not(.rt-aud),
html.hide-v-rt .rating-rt > :not(.rt-aud) {
  display: none !important;
}
html.hide-v-rta .rt-aud {
  display: none !important;
}
html.hide-v-friends .friends-row {
  display: none !important;
}

/* Helles Theme: Profil-Button hell wie die Pills, Plus dunkel (2026-10-14) */
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .avatar-btn,
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) #avatar-btn-mobile {
  background: var(--lg-bg);
  border: 1px solid var(--lg-rim);
  color: var(--lg-fg);
  box-shadow: inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-lo), var(--lg-shadow);
}
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .avatar-btn svg {
  color: var(--ink);
}
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .icon-btn-black,
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) #add-btn-mobile {
  background: var(--lg-bg);
  border: 1px solid var(--lg-rim);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-lo), var(--lg-shadow);
}

/* Genre: deutlicher Pfeil + Mehrfachauswahl mit Häkchen (2026-10-14) */
.combobox-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  padding: 6px 10px;
}
.combobox-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.combobox:has(#genre-input[aria-expanded="true"]) .combobox-toggle svg {
  transform: rotate(180deg);
}
#genre-input.has-value::placeholder {
  color: var(--ink);
  opacity: 1;
}
.combobox-options li[role="option"] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.combobox-options li[role="option"] > span {
  flex: 1;
}
.genre-check {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--muted);
  border-radius: 5px;
  position: relative;
}
.combobox-options li.selected .genre-check {
  background: var(--ink);
  border-color: var(--ink);
}
.combobox-options li.selected .genre-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.combobox-options li.genre-all {
  color: var(--muted);
  padding-left: 40px;
}
/* Jahr: etwas Luft um den Strich */
.year-range {
  gap: 10px;
}
/* Pfeil am Eingabefeld ausrichten, nicht an Feld + (im Panel eingebetteter) Liste */
.combobox-toggle {
  top: 0;
  bottom: auto;
  transform: none;
  height: 100%;
  max-height: var(--cb-input-h, 44px);
}

.lang-select {
  margin-top: 6px;
  min-width: 200px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
}

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Abfrage Film-/Serientitel (2026-10-14) */
.titles-dialog {
  width: min(400px, calc(100vw - 32px));
  text-align: center;
}
.titles-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 6px;
}
.titles-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.titles-option b {
  font-weight: 600;
}
.titles-option span {
  font-size: 0.82rem;
  color: var(--muted);
}
.titles-option:hover,
.titles-option.suggested {
  border-color: var(--ink);
}
.titles-foot {
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .titles-dialog {
    height: fit-content;
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
  }
}


/* ======================================================================
   Desktop wie mobil (Schritt 2, 2026-10-14): eine ruhige Spalte statt Filterkasten + Raster.
   Filter-Chips wie mobil, Hero-Karten wie mobil (etwas größer), Aktionen als Icon-Knöpfe
   (Trailer, Log/Bewerten, „···“) oben rechts in der Karte
   ====================================================================== */
/* Icon-Knöpfe: mobil nur „···“ */
.card-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.card-icon {
  display: none;
}
@media (min-width: 721px) {
  main {
    max-width: 760px;
  }
  .filters,
  .list-head,
  .toolbar .tagline {
    display: none !important;
  }
  .mobile-pinned {
    display: block !important;
    position: sticky;
    top: 57px;
    z-index: 20;
    background: var(--bg);
    margin: 0 -16px;
    padding: 4px 16px 0;
  }
  .mobile-pinned .mobile-big-title {
    display: none !important;
  }
  .mobile-pinned .chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 14px;
  }
  .mobile-pinned .chip {
    cursor: pointer;
    font-size: 0.82rem;
    padding: 7px 13px;
  }
  .watchlist {
    gap: 14px;
  }
  .movie-card {
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
    gap: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #2a2a2c;
    color: #fff;
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
  }
  .movie-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.7);
  }
  .movie-card .card-bg {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.45) saturate(1.1);
    transform: scale(1.2);
    z-index: 0;
  }
  .movie-card .card-poster {
    z-index: 1;
    width: 112px;
    min-height: 168px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  }
  .movie-card .movie-info {
    position: relative;
    z-index: 1;
  }
  .movie-card .movie-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .movie-card .movie-title {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
  .movie-card .movie-meta,
  .movie-card .movie-seen {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
  }
  .movie-card .movie-plot {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .movie-card .my-review blockquote {
    color: #fff;
    border-left-color: #fff;
  }
  .movie-card .ratings.two .one,
  .movie-card .ratings.two .fp {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
  }
  .movie-card .ratings.two .rating,
  .movie-card .ratings.two .rating b {
    color: #fff;
  }
  .movie-card .card-actions {
    display: none !important;
  }
  .card-icon,
  .movie-card .kebab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    transition: background 0.15s;
  }
  .card-icon:hover,
  .movie-card .kebab:hover {
    background: rgba(255, 255, 255, 0.24);
  }
  .card-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .card-icon svg .fill {
    fill: currentColor;
    stroke: none;
  }
}
@media (min-width: 721px) {
  /* Filter-/Aktions-Sheets am Desktop als schmales Fenster in der Mitte statt Bodenleiste */
  dialog.sheet:not(.panel) {
    width: min(460px, calc(100vw - 48px));
    height: fit-content;
    max-height: min(80dvh, 720px);
    margin: auto;
    inset: 0;
    border-radius: 22px;
    border: 1px solid var(--line);
  }
  dialog.sheet:not(.panel) .sheet-handle {
    display: none;
  }
}

/* ======================================================================
   Desktop-Navigation (2026-10-14): eine zentrale Leiste wie die mobile Tab-Bar
   (Liste · Log · Ideen · Freunde · Magic) oben in der Kopfzeile; darunter Titel + Kategorie-
   Schalter + Filter-Chips wie mobil. Statt drei verstreuter Bedienorte (Kategorien oben, Links
   rechts, Liste/Log im Inhalt).
   ====================================================================== */
@media (min-width: 721px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .site-header .nav-inner {
    min-height: 64px;
  }
  .nav-actions .btn-ghost,
  #magic-btn,
  .toolbar {
    display: none !important;
  }
  .tabbar.mobile-only {
    display: flex !important;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--lg-bg);
    border: 1px solid var(--lg-rim);
    box-shadow: inset 0 1px 0 var(--lg-hi), var(--lg-shadow);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
    backdrop-filter: blur(var(--lg-blur)) saturate(1.4);
  }
  .tabbar-item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
  }
  .tabbar-item:hover {
    color: var(--ink);
  }
  .tabbar-item.active {
    color: var(--ink);
  }
  .tabbar-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .tabbar-item .inbox-badge {
    position: static;
    margin-left: -2px;
  }
  .tabbar-ind {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    width: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 0;
  }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .tabbar-ind {
    background: rgba(0, 0, 0, 0.07);
    box-shadow: none;
  }
  /* Titel links, Kategorie-Schalter rechts, Chips darunter */
  .mobile-pinned {
    top: 65px;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    padding-top: 22px;
  }
  .mobile-pinned .mobile-big-title {
    display: block !important;
    margin: 0;
    font-size: 1.9rem;
  }
  .mobile-pinned .category-switch {
    display: inline-flex !important;
    justify-self: end;
  }
  .mobile-pinned .chips {
    grid-column: 1 / -1;
    padding-top: 14px !important;
  }
  .mobile-pinned > svg {
    display: none;
  }
}
@media (min-width: 721px) {
  /* Kopfzeile: Logo links, Hinzufügen + Profil rechts (Mitte gehört der Navigationsleiste) */
  .site-header .nav-actions {
    grid-column: 3;
    justify-self: end;
  }
  /* Freunde: kein Kategorie-Schalter */
  body.view-friends .mobile-pinned .category-switch {
    display: none !important;
  }
}
@media (min-width: 721px) {
  /* Kategorie-Schalter mittig direkt unter der Navigationsleiste, Titel darunter links (2026-10-14) */
  .mobile-pinned {
    grid-template-columns: 1fr;
    grid-template-areas: "switch" "title" "chips";
    padding-top: 14px;
  }
  .mobile-pinned .category-switch {
    grid-area: switch;
    justify-self: center !important;
    margin-bottom: 18px;
  }
  .mobile-pinned .mobile-big-title {
    grid-area: title;
  }
  .mobile-pinned .chips {
    grid-area: chips;
  }
  body.view-friends .mobile-pinned {
    padding-top: 22px;
  }
}

/* Logo „screenjar“ (vorläufig Variante 11 „Glas mit Glanz“, 2026-10-14) */
.logo {
  align-items: center;
}
@media (min-width: 721px) {
  .logo {
    display: inline-flex;
  }
}
.login-logo {
  display: inline-flex !important;
}
.logo .logo-mark {
  margin-right: 7px;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  color: var(--ink);
}

/* ======================================================================
   Navigations-Varianten (Test 2026-10-14, /nav-varianten, ?nav=…) – nur Desktop
   0 = Kategorien mittig unter der Leiste (bisher)   a = Kategorien als 2. Zeile im Kopf
   b = Kategorien oben, Bereiche als 2. Zeile        c = eine kombinierte Leiste
   d = Seitenleiste links                             e = alles in einer Zeile
   ====================================================================== */
@media (min-width: 721px) {
  /* Schalter: Icon und Text auf einer Mittellinie */
  .category-switch .tab {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  .category-switch .tab .cat-ico {
    display: block;
  }
  

  /* a: Kategorien als zweite Zeile im Kopf */
  
  

  /* b: Kategorien oben mittig, Bereiche als zweite Zeile */
  
  
  
  

  /* c: eine Leiste – Kategorien als Icons links, Trennstrich, dann die Bereiche */
  
  
  
  

  /* d: Seitenleiste links */
  html[data-nav^="d"] body {
    padding-left: 248px;
  }
  html[data-nav^="d"] .site-header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 248px;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  html[data-nav^="d"] .site-header .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-width: none;
    height: 100%;
    padding: 22px 18px;
  }
  html[data-nav^="d"] .nav-inner .logo { order: 1; font-size: 1.4rem; }
  html[data-nav^="d"] .nav-inner .nav-actions { order: 2; justify-self: auto; display: flex; gap: 8px; }
  html[data-nav^="d"] .nav-inner .nav-actions #add-btn { flex: 1; }
  html[data-nav^="d"] .nav-inner .side-cats { order: 3; }
  html[data-nav^="d"] .nav-inner .tabbar { order: 4; }
  html[data-nav^="d"] .side-cats .category-switch {
    display: flex;
    width: 100%;
  }
  html[data-nav^="d"] .side-cats .category-switch .tab {
    flex: 1;
    justify-content: center;
    font-size: 0;
    padding: 9px 0;
  }
  html[data-nav^="d"] .side-cats .category-switch .tab .cat-ico { margin: 0; }
  html[data-nav^="d"] .tabbar.mobile-only {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 6px;
  }
  html[data-nav^="d"] .tabbar-item {
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: 0.95rem;
  }
  html[data-nav^="d"] .tabbar-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  }
  html[data-nav^="d"] .tabbar-ind { display: none; }
  html[data-nav^="d"] .mobile-pinned { top: 0; }
  html[data-nav^="d"] .site-footer { margin-left: 0; }

  /* e: alles in einer Zeile – Logo, Kategorien (Icons), Bereiche, Aktionen */
  
  
  
  
  
}
@media (min-width: 721px) {
  /* c: kompakter – „Hinzufügen“ als rundes Plus, Kategorie dezent hervorgehoben */
  
  
  
  
  
}

/* ======================================================================
   Seitenleiste (Basis „1“, Runde 2, 2026-10-14): Kategorie-Schalter mit Text, Profil unten links,
   „Hinzufügen“ rechts oben über der Liste. d1–d6 unterscheiden sich nur in Schatten/Ebenen.
   ====================================================================== */
@media (min-width: 721px) {
  html[data-nav^="d"] .side-cats .category-switch .tab {
    font-size: 0.8rem;
    padding: 9px 4px;
    gap: 5px;
  }
  html[data-nav^="d"] .side-cats .category-switch .tab .cat-ico {
    width: 16px;
    height: 16px;
    margin: 0;
  }
  html[data-nav^="d"] .nav-inner .nav-actions { display: none !important; }
  html[data-nav^="d"] .side-foot {
    order: 9;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
  }
  html[data-nav^="d"] .side-foot #avatar-btn { display: inline-flex !important; }
  /* Hinzufügen rechts oben neben dem Titel */
  html[data-nav^="d"] .mobile-pinned {
    grid-template-columns: 1fr auto;
    grid-template-areas: "title add" "chips chips";
  }
  html[data-nav^="d"] .mobile-pinned #add-btn {
    grid-area: add;
    display: inline-flex !important;
    align-items: center;
    justify-self: end;
  }

  /* d1 – wie gehabt: feine Linie, kein Schatten */

  /* d2 – weicher Schatten nach rechts, keine Linie */
  

  /* d3 – hellere Fläche + Schatten: Leiste liegt als eigene Ebene über dem Inhalt */
  
  

  /* d4 – schwebende Karte mit tiefem Schatten */
  
  

  /* d5 – Lichtkante: feiner heller Rand rechts + Verlauf, wie Glas */
  html[data-nav="d5"] .site-header {
    border-right: none;
    background: linear-gradient(90deg, #121214 0%, #171719 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.10), 18px 0 36px -24px rgba(0, 0, 0, 0.9);
  }

  /* d6 – nur das Menü schwebt: Bereichs-Kasten und Kategorie-Schalter mit deutlichem Schatten */
  
  
  
}
@media (min-width: 721px) {
  html[data-nav^="d"] .side-cats .category-switch .tab {
    flex-direction: column;
    gap: 3px;
    padding: 8px 2px 7px;
    font-size: 0.74rem;
    line-height: 1.1;
  }
  html[data-nav^="d"] .side-cats .category-switch .tab .cat-ico {
    width: 18px;
    height: 18px;
  }
  html[data-nav^="d"] .side-cats .category-switch { border-radius: 18px; }
  html[data-nav^="d"] .side-cats .category-switch .seg-indicator { border-radius: 14px; }
  html[data-nav^="d"] .side-foot .side-name {
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Seitenleiste d1 als Standard (2026-10-14): keine Trennlinie über dem Konto, kein Footer –
   Rechtliches als kleine Textlinks über dem Konto */
@media (min-width: 721px) {
  html[data-nav^="d"] .side-foot {
    border-top: none;
    padding-top: 10px;
  }
  html[data-nav^="d"] .site-footer {
    display: none;
  }
  html[data-nav^="d"] .side-legal {
    order: 8;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 0 4px;
  }
  html[data-nav^="d"] .side-legal a {
    color: var(--muted);
    font-size: 0.75rem;
    text-decoration: none;
  }
  html[data-nav^="d"] .side-legal a:hover {
    color: var(--ink);
  }
  html[data-nav^="d"] .side-foot {
    margin-top: 0;
  }
}
@media (min-width: 721px) {
  /* Konto direkt unter dem Bereichs-Menü, Rechtliches untereinander ganz unten (2026-10-14) */
  html[data-nav^="d"] .side-foot {
    order: 5;
    margin-top: 0;
    padding: 4px 6px 0;
  }
  html[data-nav^="d"] .side-legal {
    order: 9;
    margin-top: auto;
    flex-direction: column;
    gap: 6px;
    padding: 0 6px;
  }
}
@media (min-width: 721px) {
  /* Desktop: H1 wieder Poppins 800 (2026-10-14), Verlauf bleibt */
  .mobile-big-title,
  .page-title {
    font-weight: 800;
    letter-spacing: -0.03em;
  }
}

@media (min-width: 721px) {
  /* Profil-Dropdown aus der Seitenleiste: klappt nach rechts auf */
  html[data-nav^="d"] .profile-menu { min-width: 200px; }
  /* Variante: Konto-Links fest ausgeklappt */
  html.acct-open .side-foot #avatar-btn { pointer-events: none; }
  html[data-nav^="d"] .side-acct {
    order: 6;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 6px 0 52px;
  }
  html[data-nav^="d"] .side-acct a,
  html[data-nav^="d"] .side-acct button {
    background: none;
    border: none;
    padding: 5px 0;
    text-align: left;
    font: inherit;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
  }
  html[data-nav^="d"] .side-acct a:hover,
  html[data-nav^="d"] .side-acct button:hover { color: var(--ink); }
}
@media (min-width: 721px) {
  html[data-nav^="d"] .side-foot .side-name { cursor: pointer; }
  html.acct-open .side-foot .side-name { cursor: default; pointer-events: none; }
}

/* ======================================================================
   Konto-Block in der Seitenleiste (2026-10-14): Links immer sichtbar, 6 Darstellungen (?acct=1…6)
   ====================================================================== */
@media (min-width: 721px) {
  html[data-nav^="d"] .side-acct-box { order: 5; display: flex; flex-direction: column; }
  html[data-nav^="d"] .side-acct-box .side-foot {
    order: 0; margin: 0; padding: 0; border: none;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--ink);
  }
  html[data-nav^="d"] .side-foot #avatar-btn { pointer-events: none; flex: none; }
  html[data-nav^="d"] .side-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  html[data-nav^="d"] .side-who .side-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-nav^="d"] .side-who .side-handle { font-size: 0.75rem; color: var(--muted); }
  html[data-nav^="d"] .side-acct { display: flex; flex-direction: column; padding: 0; gap: 0; }
  html[data-nav^="d"] .side-acct a,
  html[data-nav^="d"] .side-acct button {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; padding: 8px 10px; border-radius: 10px;
    font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--muted);
    text-decoration: none; cursor: pointer; text-align: left;
  }
  html[data-nav^="d"] .side-acct a:hover,
  html[data-nav^="d"] .side-acct button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
  html[data-nav^="d"] .side-acct svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

  /* 1 – Kasten wie das Menü: Kopf mit Profil, Trennlinie, Links mit Icons */
  html[data-acct="1"] .side-acct-box {
    border: 1px solid var(--lg-rim); border-radius: 18px; padding: 10px 6px 6px;
    background: var(--lg-bg); box-shadow: inset 0 1px 0 var(--lg-hi), var(--lg-shadow);
  }
  html[data-acct="1"] .side-foot { padding: 2px 8px 10px !important; border-bottom: 1px solid var(--line) !important; margin-bottom: 4px !important; }

  /* 2 – Profilkarte: großes Bild mittig, Name, darunter drei Icon-Knöpfe nebeneinander */
  
  
  
  
  
  
  

  /* 3 – Kopf als Zeile, Links als kleine Pillen darunter */
  
  
  
  

  /* 4 – ohne Kasten: Links eingerückt, mit senkrechter Linie zum Profilbild verbunden */
  
  
  

  /* 5 – Kasten, Links wie die Menüeinträge oben; Abmelden rot */
  
  
  
  
  

  /* 6 – kompakt: eine Zeile im Kasten, Einstellungen + Abmelden als Icons rechts, Name führt zum Profil */
  
  
  
  
  
}

@media (min-width: 721px) {
  /* Filter-Panel am Desktop: direkt unter den Chips, Breite der Kartenliste (2026-10-14) */
  dialog.sheet.panel-desk {
    position: fixed;
    inset: auto;
    top: var(--pd-top, 140px);
    left: var(--pd-left, 280px);
    width: var(--pd-width, 728px);
    max-width: none;
    height: auto;
    max-height: calc(100dvh - var(--pd-top, 140px) - 24px);
    margin: 0;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
    z-index: 35;
    overflow: auto;
    animation: panel-in 0.18s ease-out;
  }
  dialog.sheet.panel-desk .sheet-handle {
    display: none;
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Seitenleiste im hellen Theme (2026-10-14): helle Fläche, dunkle Lichtkante statt heller */
@media (min-width: 721px) {
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .site-header {
    background: linear-gradient(90deg, #f6f6f4 0%, #fbfbfa 100%);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.08), 18px 0 36px -24px rgba(0, 0, 0, 0.18);
    border-right: none;
    color: var(--ink);
  }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .site-header .logo { color: var(--ink); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .tabbar-item.active { color: var(--ink); background: rgba(0, 0, 0, 0.07) !important; }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .tabbar-item { color: rgba(0, 0, 0, 0.55); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .tabbar-item:hover { color: var(--ink); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .side-acct a:hover,
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .side-acct button:hover { background: rgba(0, 0, 0, 0.05); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-nav^="d"] .side-foot #avatar-btn { color: var(--ink); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark)[data-acct="1"] .side-foot { border-bottom-color: var(--line) !important; }
}

/* Impressum/Datenschutz */
.settings-card.legal h3 { font-size: 0.92rem; margin: 16px 0 4px; }
.settings-card.legal p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); margin: 0 0 6px; }
.settings-card.legal a { color: var(--ink); }
@media (min-width: 721px) {
  /* Seitenleiste: Markierung der Bereiche mit demselben Radius wie der Konto-Kasten (2026-10-14) */
  html[data-nav^="d"] .tabbar-item { border-radius: 12px; }
  html[data-nav^="d"] .tabbar-ind { border-radius: 12px; }
  html[data-nav^="d"] .side-cats .category-switch .seg-indicator { border-radius: 12px; }
}

/* Logo WatchNext (2026-10-14): violettes Play vor dem Schriftzug */
.logo .logo-mark { width: 0.72em; height: 0.84em; margin-right: 8px; }
@media (min-width: 721px) {
  /* H1 bündig mit dem Logo-Schriftzug (Oberkante der Buchstaben), 2026-10-15 */
  html[data-nav^="d"] .mobile-pinned { padding-top: 0 !important; margin-top: -4.6px; }
}
/* Bewertungs-Pills: Lichtkante oben nur dezent – Rand wie unten, oben max. 1 px heller (2026-10-15) */
.movie-card .ratings.two .one,
.movie-card .ratings.two .fp,
.ratings.two .one,
.ratings.two .fp {
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
}
@media (min-width: 721px) {
  /* Cover am Desktop: einheitlich 150 px breit, 2:3, ungeschnitten (2026-10-15) */
  .movie-card .card-poster {
    width: 150px !important;
    min-height: 225px;
    aspect-ratio: 2 / 3;
    align-self: flex-start;
  }
}
@media (min-width: 721px) {
  .movie-card .kebab { display: none !important; }
  .card-icon.card-trash:hover { background: rgba(229, 72, 77, 0.85); border-color: transparent; }
}
/* Laufzeit-Filter: Wert so groß wie die anderen Filterwerte (2026-10-15) */
.runtime-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
#runtime-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

/* Laufzeit-Doppelregler nutzt die range2-Spur (2026-10-15) */
.runtime-field .range2-track { position: relative; }
/* Filter-Panels: Feldbeschriftung ausblenden, wenn sie nur die Panel-Überschrift wiederholt (2026-10-15) */
#sheet-body > .genre-field > label,
#sheet-body > .year-field > label,
#sheet-body > .sort-inline > span:first-child {
  display: none;
}
#sheet-body > .runtime-field > label {
  font-size: 0;
  margin-bottom: 6px;
}
#sheet-body > .runtime-field > label #runtime-label {
  font-size: 1rem;
}
@media (min-width: 721px) {
  /* Kopfbereich (Überschrift + Filter-Pills) bleibt beim Scrollen oben stehen (2026-10-15) */
  html[data-nav^="d"] .mobile-pinned {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    padding-top: 19.4px !important;
    margin-top: -24px;
  }
  html[data-nav^="d"] main { padding-top: 24px; }
}

/* Logo-Augen (A1): Buchstabe unsichtbar, Ring + Pupille in Schriftfarbe darüber */
.logo-eye { position: relative; display: inline-block; -webkit-text-fill-color: transparent; }
.logo-eye b { position: absolute; display: block; border-radius: 50%; box-sizing: border-box; pointer-events: none; }
.logo-eye .bl { position: static; display: inline-block; width: 0; height: 0; }
.logo-eye .ring { border: solid currentColor; }
.logo-eye .p { background: currentColor; }
@media (min-width: 721px) {
  html[data-nav^="d"] .site-header .logo { white-space: nowrap; line-height: 1; align-self: flex-start; }
}

/* Gastmodus (2026-10-15): Begrüßung + Anmelde-Knöpfe statt Konto-Kasten */
.guest-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--lg-rim);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(124, 92, 246, 0.08));
}
.guest-hero h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.15rem; }
.guest-hero p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 460px; line-height: 1.45; }
.guest-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.guest-cta a { text-decoration: none; }
html.guest .side-acct-box { display: none !important; }
html.guest .guest-side { order: 5; display: flex; flex-direction: column; gap: 8px; }
html.guest .guest-side a { text-align: center; text-decoration: none; }
@media (max-width: 720px) {
  .guest-hero { margin: 4px 0 12px; padding: 16px; }
  .guest-cta { width: 100%; }
  .guest-cta a { flex: 1; }
}

/* ======================================================================
   Mobile-Varianten der Gast-Startseite (Test, ?mv=1…20)
   ====================================================================== */
@media (max-width: 720px) {
  html.mv .mv-hero { padding: 6px 0 14px; }
  html.mv .mv-hero .logo { display: inline-flex !important; color: var(--ink); font-size: 2.4rem; letter-spacing: -0.04em; text-decoration: none; }
  html.mv .mv-claim { margin: 8px 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
  html.mv .mv-sub { margin: 6px 0 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
  html.mv .mv-cta { display: flex; gap: 8px; }
  html.mv .mv-cta a { flex: 1; text-align: center; text-decoration: none; }
  html.mv .mv-link { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
  html.mv .mv-link.center { display: block; text-align: center; margin-top: 12px; }
  html.mv .mv-row { display: flex; align-items: center; justify-content: space-between; }
  html.mv .mv-center { text-align: center; }

  /* 1 – zentriert */
  html.mv-1 .mv-hero { text-align: center; }
  html.mv-1 .mv-hero .logo { font-size: 3rem; }
  /* 2 – CTA als Leiste über der Tab-Bar */
  html.mv-2 .mv-dock { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 29; padding: 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--lg-rim); backdrop-filter: blur(20px); }
  html.mv-2 .mv-dock .mv-cta a { border-radius: 999px; }
  /* 3 – Vollbild-Intro */
  html.mv-3 .mv-full { min-height: calc(100svh - 160px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
  html.mv-3 .mv-full .logo { font-size: 3.4rem; justify-content: center; }
  html.mv-3 .mv-down { margin-top: 26px; color: var(--muted); font-size: 0.85rem; animation: mvbob 1.6s ease-in-out infinite; }
  @keyframes mvbob { 50% { transform: translateY(5px); } }
  /* 4 – violetter Glow */
  html.mv-4 .mv-glow { position: relative; text-align: center; padding: 26px 8px 8px; }
  html.mv-4 .mv-glow::before { content: ""; position: absolute; inset: -40px -16px 0; background: radial-gradient(60% 55% at 50% 30%, rgba(124, 92, 246, 0.45), transparent 70%); z-index: -1; }
  html.mv-4 .mv-glow .logo { font-size: 3rem; }
  /* 5 – Poster-Collage */
  html.mv-5 .mv-collage { position: relative; margin: 0 -16px; height: 300px; overflow: hidden; }
  html.mv-5 .mv-posters { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; transform: rotate(-8deg) scale(1.15); filter: blur(1px) brightness(0.45); }
  html.mv-5 .mv-posters img { width: 100%; border-radius: 8px; }
  html.mv-5 .mv-over { position: absolute; inset: auto 16px 16px; }
  html.mv-5 .mv-over .logo { font-size: 2.8rem; }
  /* 6 – Logo über die ganze Breite */
  html.mv-6 .mv-huge .logo { font-size: 16.4vw; line-height: 0.9; }
  /* 7 – minimal */
  html.mv-7 .mv-hero .logo { font-size: 2rem; }
  /* 8 – So geht's */
  html.mv-8 .mv-steps { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 8px; }
  html.mv-8 .mv-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 0.92rem; }
  html.mv-8 .mv-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #6366f1; color: #fff; flex: none; }
  /* 9 – Suchfeld-Attrappe */
  html.mv-9 .mv-search { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--lg-rim); background: var(--lg-bg); color: var(--muted); text-decoration: none; font-size: 0.95rem; }
  /* 10 – Augen schauen umher */
  html.mv-10 .mv-blink .logo { font-size: 3.2rem; }
  html.mv-10 .mv-blink .logo-eye .p { animation: mvlook 3.2s ease-in-out infinite; }
  @keyframes mvlook { 0%, 30% { transform: translateX(0); } 40%, 60% { transform: translateX(-140%); } 70%, 100% { transform: translateX(0); } }
  /* 11 – Chat */
  html.mv-11 .mv-chat { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
  html.mv-11 .mv-chat div { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 0.92rem; }
  html.mv-11 .mv-chat .b1 { background: var(--bg-2); border-bottom-left-radius: 4px; }
  html.mv-11 .mv-chat .b2 { align-self: flex-end; background: #6366f1; color: #fff; border-bottom-right-radius: 4px; }
  /* 12 – Login oben rechts, Box */
  html.mv-12 .mv-small { padding: 7px 14px; font-size: 0.85rem; text-decoration: none; }
  html.mv-12 .mv-box { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
  html.mv-12 .mv-box .btn-primary { display: block; text-align: center; text-decoration: none; }
  /* 13 – heller Block */
  html.mv-13 .mv-light { padding: 20px 18px; border-radius: 22px; background: #f4f4f2; color: #141414; }
  html.mv-13 .mv-light .logo { color: #141414; }
  html.mv-13 .mv-light .btn-secondary { color: #141414; border-color: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.04); }
  html.mv-13 .mv-light .btn-primary { background: #141414; color: #fff; border-color: #141414; }
  /* 14 – Kinoticket */
  html.mv-14 .mv-ticket { position: relative; margin-top: 14px; display: flex; align-items: stretch; border-radius: 14px; overflow: hidden; background: linear-gradient(90deg, #6366f1, #7c5cf6); color: #fff; }
  html.mv-14 .mv-ticket > div { flex: 1; padding: 14px 16px; border-right: 2px dashed rgba(255, 255, 255, 0.5); }
  html.mv-14 .mv-ticket small { display: block; letter-spacing: 0.2em; font-size: 0.65rem; opacity: 0.8; }
  html.mv-14 .mv-ticket b { font-family: var(--font-display); font-size: 1rem; }
  html.mv-14 .mv-ticket a { display: grid; place-items: center; padding: 0 14px; color: #fff; font-weight: 700; text-decoration: none; font-size: 0.85rem; writing-mode: vertical-rl; transform: rotate(180deg); }
  html.mv-14 .mv-ticket::before, html.mv-14 .mv-ticket::after { content: ""; position: absolute; right: 52px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
  html.mv-14 .mv-ticket::before { top: -8px; } html.mv-14 .mv-ticket::after { bottom: -8px; }
  /* 15 – schwebender Start-Knopf */
  html.mv-15 .mv-center .logo { font-size: 2.6rem; }
  html.mv-15 .mv-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 29; padding: 14px 26px; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #7c5cf6); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.8); }
  /* 16 – Social Proof */
  html.mv-16 .mv-proof { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 0.92rem; color: var(--muted); }
  html.mv-16 .avs { display: flex; }
  html.mv-16 .avs i { width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.8rem; color: #fff; border: 2px solid var(--bg); }
  html.mv-16 .avs i:nth-child(1) { margin-left: 0; background: #6d78f4; } html.mv-16 .avs i:nth-child(2) { background: #6366f1; } html.mv-16 .avs i:nth-child(3) { background: #7c5cf6; } html.mv-16 .avs i:nth-child(4) { background: #6d28d9; }
  /* 17 – gestapelt, editorial */
  html.mv-17 .mv-stack { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 4.2rem; line-height: 0.85; letter-spacing: -0.05em; }
  html.mv-17 .mv-stack .logo { font-size: 1em !important; }
  /* 18 – Glas */
  html.mv-18 .mv-glass { padding: 18px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(135deg, rgba(109, 120, 244, 0.25), rgba(109, 40, 217, 0.15)); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
  html.mv-18 .mv-glass .btn-primary, html.mv-18 .mv-glass .btn-secondary { border-radius: 999px; }
  /* 19 – Karussell */
  html.mv-19 .mv-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px; padding: 0 16px; scrollbar-width: none; }
  html.mv-19 .mv-carousel div { flex: 0 0 78%; scroll-snap-align: start; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
  html.mv-19 .mv-carousel b { font-family: var(--font-display); font-size: 1.2rem; color: #7c5cf6; }
  html.mv-19 .mv-carousel span { color: var(--muted); font-size: 0.9rem; }
  /* 20 – Anmelde-Karte zwischen den Beispielen */
  html.mv-20 .mv-inline { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 1px dashed rgba(124, 92, 246, 0.6); background: rgba(124, 92, 246, 0.08); }
  html.mv-20 .mv-inline b { font-family: var(--font-display); font-size: 1.1rem; }
  html.mv-20 .mv-inline span { color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
}

/* Eingeloggte Mobile-Kopf-Varianten (?mh=…) – nutzen die mv-Stile, dazu: */
@media (max-width: 720px) {
  html.mh .mh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
  html.mh .mh-stats div { padding: 10px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
  html.mh .mh-stats b { display: block; font-family: var(--font-display); font-size: 1.35rem; background: linear-gradient(90deg, #6d78f4, #7c5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
  html.mh .mh-stats span { font-size: 0.72rem; color: var(--muted); }
  html.mh .mh-pill { display: inline-flex; margin-top: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(99, 102, 241, 0.18); border: 1px solid rgba(124, 92, 246, 0.45); color: var(--ink); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
  html.mh .mv-row .mh-pill { margin-top: 0; }
  html.mh .mh-next { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(109, 40, 217, 0.1)); border: 1px solid rgba(124, 92, 246, 0.35); }
  html.mh .mh-next img { width: 56px; height: 84px; object-fit: cover; border-radius: 8px; }
  html.mh .mh-next small { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a5a8ff; }
  html.mh .mh-next b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
  html.mh .mh-next span { font-size: 0.82rem; color: var(--muted); }
  html.mh .mh-full { min-height: calc(100svh - 180px); }
  html.mh .mv-ticket a { writing-mode: horizontal-tb; transform: none; padding: 0 16px; }
  html.mh .mv-ticket::before, html.mh .mv-ticket::after { right: 82px; }
}
@media (max-width: 720px) {
  html.mh .mh-pill, html.mv .mv-fab { white-space: nowrap; }
  html.mh.mv-12 .mh-pill { padding: 6px 10px; font-size: 0.78rem; }
  html.mh.mv-13 .mh-stats div { background: #fff; border-color: rgba(0,0,0,.08); }
  html.mh.mv-13 .mh-stats span { color: #6b6b6b; }
}

/* Gastansicht: leere Platzhalter-Karte (2026-10-15) */
.ph-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-radius: 20px;
  border: 2px dashed rgba(124, 92, 246, 0.45);
  background: rgba(124, 92, 246, 0.05);
  text-decoration: none;
  color: var(--muted);
  min-height: 0 !important;
  box-shadow: none !important;
}
.ph-card:hover { background: rgba(124, 92, 246, 0.1); }
.ph-poster {
  flex: none;
  width: 150px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(124, 92, 246, 0.8);
}
.ph-info { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.ph-line { display: block; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.ph-line.thin { height: 10px; }
.ph-line.w40 { width: 40%; } .ph-line.w60 { width: 60%; } .ph-line.w70 { width: 70%; } .ph-line.w80 { width: 80%; }
.ph-pills { display: flex; gap: 8px; margin-top: 4px; }
.ph-pills i { display: block; height: 22px; width: 90px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.ph-pills i + i { width: 150px; }
.ph-label { margin-top: auto; font-weight: 600; font-size: 0.85rem; color: rgba(165, 168, 255, 0.9); }
@media (max-width: 720px) {
  .ph-card { padding: 14px; gap: 14px; border-radius: 18px; }
  .ph-poster { width: 92px; }
  .ph-pills i + i { width: 110px; }
}
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .ph-line,
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .ph-pills i,
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .ph-poster { background: rgba(0, 0, 0, 0.06); }

/* Platzhalter-Varianten Gastansicht (?ph=1…12) */
html.guest #empty-state { display: none !important; }
.ph-big { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.ph-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.ph-btn { align-self: flex-start; margin-top: auto; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(124, 92, 246, 0.6); color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.ph-btn.primary { background: linear-gradient(90deg, #6366f1, #7c5cf6); border-color: transparent; color: #fff; }
/* 2 – Shimmer */
.ph-shimmer .ph-line, .ph-shimmer .ph-pills i, .ph-shimmer .ph-poster { background: linear-gradient(90deg, rgba(255,255,255,.05) 20%, rgba(255,255,255,.14) 40%, rgba(255,255,255,.05) 60%); background-size: 300% 100%; animation: phsh 1.6s linear infinite; }
@keyframes phsh { from { background-position: 100% 0; } to { background-position: -50% 0; } }
/* 3 – drei verblassende */
.ph-fade-1 { opacity: 0.8; } .ph-fade-2 { opacity: 0.6; } .ph-fade-3 { opacity: 0.42; } .ph-fade-4 { opacity: 0.27; } .ph-fade-5 { opacity: 0.15; }
html.ph-3 #watchlist { gap: 12px; }
/* 5 – Geister-Karte mit Glow */
.ph-ghost { border-style: solid; border-color: rgba(124, 92, 246, 0.25); background: radial-gradient(80% 120% at 0% 0%, rgba(124, 92, 246, 0.22), transparent 60%), rgba(255,255,255,.02); }
.ph-ghost .ph-poster { position: relative; overflow: hidden; background: linear-gradient(160deg, #3a2f7a, #1b1636); }
/* 6 – solide Karte */
.ph-solid { border-style: solid; border-color: rgba(124, 92, 246, 0.35); background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(109, 40, 217, 0.06)); }
/* 7 – Augen */
.ph-eyes { display: flex; gap: 10px; }
.ph-eyes i { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 8px solid #6366f1; }
.ph-eyes i + i { border-color: #7c5cf6; }
.ph-eyes i::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: currentColor; top: 50%; left: 50%; transform: translate(-30%, -50%); color: #6366f1; animation: phlook 3s ease-in-out infinite; }
.ph-eyes i + i::after { color: #7c5cf6; }
@keyframes phlook { 0%, 35% { transform: translate(-30%, -50%); } 45%, 70% { transform: translate(-70%, -60%); } 80%, 100% { transform: translate(-30%, -50%); } }
/* 8 – minimal */
.ph-minimal { border-width: 2px; align-items: center; justify-content: center; min-height: 160px !important; }
.ph-minimal .ph-poster { display: none; }
.ph-minimal .ph-info { align-items: center; justify-content: center; }
.ph-plus { font-size: 3rem; color: rgba(124, 92, 246, 0.85); line-height: 1; }
/* 9 – Beispiel-Tippen */
.ph-type { font-size: 0.9rem; color: var(--muted); }
.ph-type b { color: #a5a8ff; font-weight: 600; }
/* 10 – Raster */
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ph-tile { aspect-ratio: 2 / 3; border-radius: 14px; border: 2px dashed rgba(124, 92, 246, 0.45); background: rgba(124, 92, 246, 0.05); display: grid; place-items: center; color: rgba(124, 92, 246, 0.85); font-size: 1.8rem; text-decoration: none; }
.ph-tile:nth-child(n+2) { opacity: 0.6; } .ph-tile:nth-child(n+3) { opacity: 0.35; }
@media (max-width: 720px) { .ph-grid { grid-template-columns: repeat(3, 1fr); } .ph-tile:nth-child(4) { display: none; } }
/* 11 – Poster-Stapel */
.ph-stack { position: relative; width: 70%; height: 70%; }
.ph-stack i { position: absolute; inset: 0; border-radius: 10px; border: 2px dashed rgba(124, 92, 246, 0.5); background: rgba(124, 92, 246, 0.06); }
.ph-stack i:nth-child(1) { transform: rotate(-10deg) translateX(-10%); } .ph-stack i:nth-child(2) { transform: rotate(6deg) translateX(8%); } .ph-stack i:nth-child(3) { background: rgba(124, 92, 246, 0.14); }
/* 12 – Schritte */
.ph-steps { list-style: none; margin: auto 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ph-steps li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.ph-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #7c5cf6); color: #fff; font-size: 0.85rem; }

/* Platzhalter Runde 2: drei gestrichelte, verblassende Karten (immer) */
html.guest #watchlist { gap: 12px; }
.ph-card .ph-poster { flex: none; }
.ph-label.top { margin: 0 0 2px; }
.ph-compact { padding: 12px !important; }
.ph-compact .ph-poster { width: 64px !important; }
.ph-num { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: rgba(124, 92, 246, 0.85); }
.ph-outline .ph-poster { background: none; border: 2px dashed rgba(124, 92, 246, 0.4); }
.ph-ghosttitle { font-family: var(--font-display); font-size: 1.05rem; color: rgba(255, 255, 255, 0.28); }
.ph-rated { flex-wrap: nowrap; overflow: hidden; }
.ph-rated .f { width: 70px; flex: none; }
.ph-rated .r { display: flex !important; align-items: center; gap: 8px; padding: 0 10px; width: auto; flex: none; }
.ph-rated .r b { display: block; width: 22px; height: 10px; border-radius: 4px; opacity: 0.45; }
.ph-rated .y { background: #f5c518; } .ph-rated .t { background: #fa320a; } .ph-rated .g { background: #66cc33; }
.ph-ico { width: 34px; height: 34px; fill: none; stroke: rgba(124, 92, 246, 0.85); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .ph-ghosttitle { color: rgba(0, 0, 0, 0.25); }

/* ======================================================================
   Logo mobil (Test 2026-10-15, ?ml=1…8, /logo-scroll): Logo oben zwischen Profil und ＋,
   variiert wird der Kategorie-Schalter; Überschrift immer einzeilig
   ====================================================================== */
@media (max-width: 720px) {
  html.ml .mobile-top { position: relative; height: 40px; align-self: center; display: flex; align-items: center; justify-content: center; }
  html.ml .ml-logo { display: inline-flex !important; color: var(--ink); font-size: 1.8rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
  html.ml .mobile-top .category-switch-mobile { display: none !important; }
  html.ml .mobile-pinned { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  html.ml .mobile-pinned > :not(#mobile-view):not(.category-switch-mobile):not(.ml-dd) { grid-column: 1 / -1; }
  html.ml #mobile-view, html.ml .ml-dd-cur { white-space: nowrap; overflow: hidden; min-width: 0; }
  html.ml .ml-seg button { font: inherit; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  html.ml .ml-seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  html.ml .ml-seg button.on { color: var(--ink); }

  /* 1 – Icon-Schalter (wie bisher) kompakt rechts neben dem Titel */
  html.ml-1 .mobile-pinned .category-switch-mobile, html.ml-7 .mobile-pinned .category-switch-mobile { display: inline-flex !important; grid-column: 2; grid-row: 1; justify-self: end; transform: scale(0.85); transform-origin: right center; }

  /* 2 – Text-Reiter mit Unterstrich unter dem Titel */
  html.ml-2 .ml-tabs { display: flex; gap: 22px; margin-top: 8px; border-bottom: 1px solid var(--line); }
  html.ml-2 .ml-tabs button { padding: 6px 0 9px; font-weight: 600; font-size: 0.95rem; position: relative; }
  html.ml-2 .ml-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: #7c5cf6; }

  /* 3 – Segment über die volle Breite, Icon + Text */
  html.ml-3 .ml-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 10px; border-radius: 999px; background: var(--chip, rgba(255, 255, 255, 0.06)); border: 1px solid var(--line); }
  html.ml-3 .ml-full button { padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: 0.88rem; }
  html.ml-3 .ml-full button.on { background: var(--ink); color: var(--bg); }

  /* 4 – Titel ist die Auswahl (▾ öffnet Menü) */
  html.ml-4 #mobile-view { display: none !important; }
  html.ml-4 .ml-dd { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; justify-self: start; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
  html.ml-4 .ml-dd svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: #7c5cf6; transition: transform 0.2s; }
  html.ml-4 .ml-dd.open svg { transform: rotate(180deg); }
  html.ml-4 .ml-menu { position: absolute; left: 16px; top: 72px; z-index: 40; padding: 6px; border-radius: 16px; background: var(--card, #1b1b1e); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
  html.ml-4 .ml-list { display: flex; flex-direction: column; }
  html.ml-4 .ml-list button { justify-content: flex-start; padding: 10px 14px; border-radius: 10px; font-weight: 600; min-width: 170px; }
  html.ml-4 .ml-list button.on { background: rgba(124, 92, 246, 0.16); }

  /* 5 – drei Wörter als Titel: aktives hell, die anderen gedämpft */
  html.ml-5 #mobile-view { display: none !important; }
  html.ml-5 .ml-words { display: flex; gap: 16px; white-space: nowrap; overflow: hidden; }
  html.ml-5 .ml-words button { font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.02em; background: none; border: 0; padding: 0; color: var(--muted); opacity: 0.55; cursor: pointer; }
  html.ml-5 .ml-words button.on { color: var(--ink); opacity: 1; }

  /* 6 – schwebender Schalter über der Tab-Leiste */
  html.ml-6 .ml-float { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 31; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
  html.ml-6 .ml-float button { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; }
  html.ml-6 .ml-float button.on { background: var(--ink); color: var(--bg); }

  /* 7 – Icons ohne Rahmen neben dem Titel, aktives mit Punkt */
  html.ml-7 .mobile-pinned .category-switch-mobile { background: none !important; border: 0 !important; box-shadow: none !important; transform: none; gap: 2px; }
  html.ml-7 .mobile-pinned .category-switch-mobile .seg-indicator { display: none !important; }
  html.ml-7 .mobile-pinned .category-switch-mobile .tab { background: none !important; box-shadow: none !important; position: relative; opacity: 0.45; padding: 6px 7px; }
  html.ml-7 .mobile-pinned .category-switch-mobile .tab.active { opacity: 1; color: var(--ink); }
  html.ml-7 .mobile-pinned .category-switch-mobile .tab.active::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #7c5cf6; }

  /* 8 – Icons als erstes Element in der Filter-Reihe */
  html.ml-8 .ml-chipseg { flex: none; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip, rgba(255, 255, 255, 0.06)); }
  html.ml-8 .ml-chipseg button { width: 34px; height: 28px; border-radius: 999px; }
  html.ml-8 .ml-chipseg button.on { background: var(--ink); color: var(--bg); }
}

/* ======================================================================
   Mobile Navigation – 40 Varianten (Test 2026-10-15, ?mn=a1…d10, /nav-varianten)
   Überschrift entfällt, Logo oben mittig; a/b/c: beide Navigationen oben, d: Filmstreifen oben + Kategorien unten
   ====================================================================== */
@media (max-width: 720px) {
  html.mn { --mn-fill: color-mix(in srgb, var(--ink) 7%, transparent); --mn-fill2: color-mix(in srgb, var(--ink) 11%, transparent); --mn-acc: #7c5cf6; }
  html.mn #mobile-view, html.mn .tabbar, html.mn .mobile-top .category-switch-mobile { display: none !important; }
  html.mn .mobile-top { position: relative; height: 40px; align-self: center; display: flex; align-items: center; justify-content: center; }
  html.mn .mn-logo { display: inline-flex !important; color: var(--ink); font-size: 1.8rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
  html.mn .mobile-pinned { padding-top: 10px; }
  html.mn .mn-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .mn-b { font: inherit; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 0.88rem; padding: 0; -webkit-tap-highlight-color: transparent; }
  .mn-b svg, .mn-cur-cat svg, .mn-dd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .mn-b.on { color: var(--ink); }
  .mn-b small { font-weight: 400; font-size: 0.72rem; color: var(--muted); }
  .mn-cats, .mn-views { display: flex; gap: 6px; min-width: 0; }
  .mn-top .scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .mn-top .scroll::-webkit-scrollbar, .mn-strip .mn-views::-webkit-scrollbar { display: none; }
  .mn-top .mcenter { justify-content: center; align-self: center; }
  .mn-top .even > .mn-b { flex: 1; justify-content: center; }
  .pills > .mn-b { padding: 8px 14px; border-radius: 999px; background: var(--mn-fill); border: 1px solid var(--line); }
  .pills > .mn-b.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .seg { padding: 4px; gap: 2px; border-radius: 999px; background: var(--mn-fill); border: 1px solid var(--line); }
  .seg > .mn-b { padding: 7px 14px; border-radius: 999px; }
  .seg > .mn-b.on { background: var(--ink); color: var(--bg); }
  .seg.mfull { display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg.mfull > .mn-b { justify-content: center; }

  /* ---------- a: getrennt, Pills ---------- */
  html.mn-a2 .pills.small { align-self: flex-start; }
  .pills.small > .mn-b { padding: 7px 11px; }
  .pills.even > .mn-b { padding: 9px 0; }
  .pills.stacked > .mn-b { flex-direction: column; gap: 3px; padding: 8px 0; border-radius: 14px; font-size: 0.68rem; }
  .pills.outline > .mn-b { background: none; }
  .pills.outline > .mn-b.on { background: var(--mn-acc); border-color: var(--mn-acc); color: #fff; }
  .pills.mbig > .mn-b { padding: 11px 16px; font-size: 0.98rem; }
  .pills.mbig svg { width: 20px; height: 20px; }
  .pills.muted > .mn-b { background: none; border-color: transparent; padding: 6px 11px; }
  .pills.muted > .mn-b.on { background: var(--mn-fill2); color: var(--ink); border-color: transparent; }
  .pills.glass > .mn-b { background: color-mix(in srgb, var(--ink) 9%, transparent); backdrop-filter: blur(12px); border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
  .pills.glass > .mn-b.on { background: color-mix(in srgb, var(--ink) 92%, transparent); }
  .pills.dots > .mn-b { background: none; border: 0; flex-direction: column; gap: 5px; padding: 6px 8px; }
  .pills.dots > .mn-b::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
  .pills.dots > .mn-b.on { background: none; color: var(--ink); }
  .pills.dots > .mn-b.on::after { background: var(--mn-acc); }
  html.mn-a9 .mn-cats.dots > .mn-b { font-family: var(--font-display); font-size: 1.15rem; gap: 4px; }
  .pills.expand > .mn-b { padding: 9px 12px; }
  .pills.expand > .mn-b span { display: none; }
  .pills.expand > .mn-b.on span { display: inline; }
  html.mn-a10 .mn-cats, html.mn-a10 .mn-views { justify-content: center; }

  /* ---------- b: verschmolzen, untereinander ---------- */
  .mn-box { border-radius: 20px; background: var(--mn-fill); border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
  .mn-box hr { border: 0; border-top: 1px solid var(--line); margin: 2px 8px; }
  .seg.flat { background: none; border: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg.flat > .mn-b { justify-content: center; }
  .mtabs > .mn-b { padding: 9px 4px; justify-content: center; position: relative; }
  .mtabs > .mn-b.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 1px; height: 2.5px; border-radius: 2px; background: var(--mn-acc); }
  .mn-folder .folder { gap: 2px; }
  .folder > .mn-b { padding: 9px 16px; border-radius: 14px 14px 0 0; }
  .folder > .mn-b.on { background: var(--mn-fill2); }
  .mn-panel { background: var(--mn-fill2); border-radius: 0 16px 16px 16px; padding: 2px 4px; }
  .mn-stack { display: flex; flex-direction: column; }
  .seg.tier1 { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px 18px 0 0; border-bottom: 0; }
  .seg.tier1 > .mn-b { justify-content: center; border-radius: 14px; }
  .seg.tier2 { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 0 0 18px 18px; border-top: 1px dashed var(--line); }
  .seg.tier2 > .mn-b { padding: 7px 0; font-size: 0.76rem; justify-content: center; border-radius: 12px; }
  .seg.tier2 > .mn-b.on { background: var(--mn-acc); color: #fff; }
  .mn-box.dark { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); padding: 10px 6px 4px; }
  .words { justify-content: center; gap: 14px; }
  .words > .mn-b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; opacity: 0.4; }
  .words > .mn-b.on { opacity: 1; }
  .icons > .mn-b { padding: 9px 9px; border-radius: 999px; justify-content: center; }
  .icons.glow > .mn-b.on { color: #a78bfa; filter: drop-shadow(0 0 6px var(--mn-acc)); }
  .icons.pillon > .mn-b.on { background: var(--mn-acc); color: #fff; }
  .mn-box.glass { background: color-mix(in srgb, var(--ink) 9%, transparent); backdrop-filter: blur(16px); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7); }
  .mn-band { margin: 0 -16px; padding: 10px 16px 0; background: color-mix(in srgb, var(--ink) 4%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
  .mn-ticket { background: var(--mn-fill2); border-radius: 16px; padding: 6px; overflow: hidden; }
  .mn-ticket .perf { position: relative; border-top: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); margin: 6px 10px; }
  .mn-ticket .perf::before, .mn-ticket .perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
  .mn-ticket .perf::before { left: -24px; }
  .mn-ticket .perf::after { right: -24px; }
  .mn-box.outline { background: none; }
  .mtabs.ink > .mn-b { flex: 1; border-radius: 12px; }
  .mtabs.ink > .mn-b.on { background: var(--ink); color: var(--bg); }
  .mtabs.ink > .mn-b.on::after { display: none; }
  .caps { gap: 4px; }
  .caps > .mn-b { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; }
  .caps > .mn-b.on { color: #a78bfa; }

  /* ---------- c: frei verschmolzen ---------- */
  .mn-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mn-row > .scroll { margin: 0 -16px 0 0; padding: 0 16px 0 0; flex: 1; }
  .mn-dd-wrap { position: relative; flex: none; }
  .mn-dd { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 0.88rem; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; }
  .mn-dd .mn-chev { width: 15px; height: 15px; stroke-width: 2.4; transition: transform 0.2s; }
  .mn-dd.open .mn-chev { transform: rotate(180deg); }
  .mn-cur-cat, .mn-cur-view { display: inline-flex; align-items: center; gap: 6px; }
  .mn-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; padding: 6px; border-radius: 16px; background: var(--card, #1b1b1e); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
  .mn-menu .list { flex-direction: column; gap: 0; }
  .mn-menu .list > .mn-b { padding: 10px 14px; border-radius: 10px; min-width: 170px; }
  .mn-menu .list > .mn-b.on { background: rgba(124, 92, 246, 0.16); }
  .mn-capsule { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--mn-fill); border: 1px solid var(--line); }
  .mn-capsule .msep { width: 1px; align-self: stretch; background: var(--line); margin: 5px 3px; flex: none; }
  .mn-cycle { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .mn-cycle.catbtn { flex: none; padding: 8px 11px; border-radius: 999px; background: var(--mn-acc); color: #fff; }
  .mn-cycle.catbtn .mn-cur-cat span { display: none; }
  .seg.flex { background: none; border: 0; padding: 0; flex: 1; display: flex; }
  .seg.flex > .mn-b { flex: 1; justify-content: center; padding: 8px 0; font-size: 0.76rem; }
  .mn-cats.inpill { display: inline-flex; gap: 6px; margin-left: 4px; padding-left: 9px; border-left: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); }
  .mn-cats.inpill > .mn-b { color: inherit; opacity: 0.4; }
  .mn-cats.inpill > .mn-b.on { opacity: 1; color: inherit; }
  .mn-cats.inpill svg { width: 17px; height: 17px; }
  .mn-top > .mn-cats.inpill { display: none; }
  .mn-crumb { display: flex; align-items: center; gap: 4px; }
  .mn-crumb .mn-dd { background: none; color: var(--ink); font-family: var(--font-display); font-size: 1.45rem; padding: 2px 0; }
  .mn-crumb .mn-dd svg { width: 20px; height: 20px; }
  .mn-crumb .mn-dd .mn-chev { color: var(--mn-acc); }
  .mn-crumb > b { color: var(--muted); font-size: 1.4rem; margin: 0 4px; }
  .mn-crumb .mn-dd-wrap:last-child .mn-menu { left: auto; right: auto; }
  .label-on > .mn-b span { display: none; }
  .label-on > .mn-b.on span { display: inline; }
  .mn-capsule .icons > .mn-b.on, .mn-capsule .label-on > .mn-b.on { background: var(--ink); color: var(--bg); }
  .mn-capsule .icons > .mn-b { padding: 8px 9px; }
  .label-on.flex { flex: 1; justify-content: space-between; }
  .mn-views.mtabs.scroll { flex: 1; }
  .mn-views.mtabs > .mn-b { padding: 9px 9px; }
  .mn-cats.cdots { flex: none; gap: 2px; }
  .mn-cats.cdots > .mn-b { width: 22px; height: 30px; justify-content: center; }
  .mn-cats.cdots > .mn-b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0.3; }
  .mn-cats.cdots > .mn-b.on::before { opacity: 1; background: var(--mn-acc); box-shadow: 0 0 0 3px rgba(124, 92, 246, 0.25); }
  .mn-capsule:has(.vert) { border-radius: 22px; }
  .mn-cats.vert { flex-direction: column; gap: 0; padding: 0 4px 0 2px; border-right: 1px solid var(--line); margin-right: 4px; }
  .mn-cats.vert > .mn-b { padding: 1px 6px; border-radius: 8px; }
  .mn-cats.vert svg { width: 15px; height: 15px; }
  .mn-cats.vert > .mn-b.on { color: var(--mn-acc); }
  .mn-arrows { display: flex; align-items: center; flex: none; padding: 3px; border-radius: 999px; background: var(--ink); color: var(--bg); }
  .mn-arrows .mn-cycle { font-size: 1.25rem; padding: 0 7px; line-height: 1.4; }
  .mn-arrows .mn-cur-cat { font-weight: 700; font-size: 0.88rem; min-width: 52px; justify-content: center; }
  .mn-arrows .mn-cur-cat svg { display: none; }
  .mn-tiles { display: grid; gap: 6px; }
  .tiles { display: grid; gap: 6px; }
  .tiles.three { grid-template-columns: repeat(3, 1fr); }
  .tiles.five { grid-template-columns: repeat(5, 1fr); }
  .tiles > .mn-b { flex-direction: column; gap: 4px; padding: 10px 0; border-radius: 16px; background: var(--mn-fill); justify-content: center; font-size: 0.68rem; }
  .tiles.three > .mn-b { flex-direction: row; font-size: 0.85rem; }
  .tiles.three > .mn-b.on { background: var(--ink); color: var(--bg); }
  .tiles.five > .mn-b.on { background: var(--mn-acc); color: #fff; }
  .mn-topbar { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; padding: 4px; border-radius: 22px; background: var(--mn-fill); border: 1px solid var(--line); }
  .mn-topbar .bar { display: contents; }
  .mn-topbar .bar > .mn-b { flex-direction: column; gap: 2px; font-size: 0.6rem; padding: 6px 0; justify-content: center; border-radius: 16px; }
  .mn-topbar .bar > .mn-b.on { background: var(--mn-fill2); }
  .mn-topbar .bar > .mn-b:nth-child(n + 3) { order: 4; }
  .mn-cycle.mcenter { order: 3; justify-self: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mn-acc); color: #fff; box-shadow: 0 6px 18px -6px var(--mn-acc); }
  .mn-cycle.mcenter span span { display: none; }
  .mn-cycle.mcenter svg { width: 22px; height: 22px; }

  /* ---------- d: Filmstreifen oben, Kategorien unten ---------- */
  html.mn-gd .mobile-pinned { padding-top: 0; }
  .mn-strip { margin: 0 -16px; padding: 12px 16px; background: color-mix(in srgb, var(--ink) 4%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mn-strip .mn-views { overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .mn-strip.cine .mn-b { flex: 1 0 auto; min-width: 62px; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #1b1b1e); color: var(--ink); font-size: 0.78rem; justify-content: center; }
  .mn-strip.cine .mn-b.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .mn-strip.cine .mn-b.on small { color: inherit; opacity: 0.75; }
  .mn-strip.mtwo .mn-b { font-size: 0.9rem; gap: 1px; padding: 7px 10px; }
  .mn-strip.wide .mn-b { min-width: 92px; }
  .mn-strip.glow .mn-b.on { background: var(--mn-acc); border-color: var(--mn-acc); color: #fff; box-shadow: 0 0 18px -3px var(--mn-acc); }
  html.mn-d10 .site-header, html.mn-d10 .mn-strip.merged { background: color-mix(in srgb, var(--ink) 5%, var(--bg)); }
  .mn-strip.merged { border-top: 0; padding-top: 6px; }
  .mn-strip.film { position: relative; background: #0b0b0c; padding: 17px 12px; border: 0; }
  .mn-strip.film::before, .mn-strip.film::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.24) 7px 15px); }
  .mn-strip.film::before { top: 5px; }
  .mn-strip.film::after { bottom: 5px; }
  .mn-strip.film.top-only { padding-bottom: 12px; }
  .mn-strip.film.top-only::after { display: none; }
  .mn-strip.film .mn-b { flex: 1 0 auto; min-width: 60px; flex-direction: column; gap: 3px; padding: 10px 6px; border-radius: 3px; background: #1c1c1f; color: #9a9aa0; font-size: 0.7rem; justify-content: center; }
  .mn-strip.film .mn-b.on { background: #f2f2f2; color: #111; }
  .mn-strip.numbered .mn-views { counter-reset: f; }
  .mn-strip.numbered .mn-b::before { counter-increment: f; content: counter(f, decimal-leading-zero) "A"; font-size: 0.56rem; opacity: 0.55; letter-spacing: 0.12em; }
  .mn-strip.numbered .mn-b { font-size: 0.78rem; }
  .mn-strip.amber { background: #24170a; }
  .mn-strip.amber::before, .mn-strip.amber::after { background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 190, 110, 0.35) 7px 15px); }
  .mn-strip.amber .mn-b { background: rgba(255, 170, 60, 0.1); color: #d9b98f; }
  .mn-strip.amber .mn-b.on { background: #ffb347; color: #1a1205; }
  .mn-strip.iconsonly .mn-b span { display: none; }
  .mn-strip.iconsonly .mn-b.on span { display: inline; }
  .mn-strip.iconsonly .mn-b { min-height: 52px; }
  .mn-strip.iconsonly .mn-b svg { width: 22px; height: 22px; }
  .mn-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
  .mn-bottom .bottombar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--glass); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .bottombar > .mn-b { flex-direction: column; gap: 2px; font-size: 0.66rem; padding: 6px 0; justify-content: center; border-radius: 16px; }
  .bottombar > .mn-b svg { width: 22px; height: 22px; }
  .bottombar > .mn-b.on { background: var(--mn-fill2); }
  .bottombar.mbig > .mn-b { padding: 12px 0; }
  .bottombar.mbig > .mn-b svg { width: 26px; height: 26px; }
  .bottombar.words > .mn-b { font-family: var(--font-display); font-size: 1.05rem; padding: 13px 0; }
  .mn-bottom .float { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
  .float > .mn-b { padding: 9px 14px; border-radius: 999px; }
  .float > .mn-b.on { background: var(--ink); color: var(--bg); }
}
@media (max-width: 720px) {
  /* Feinschliff nach Screenshots */
  .mn-row > .scroll { margin: 0; padding: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .seg.flex > .mn-b { padding: 7px 2px; }
  .mn-capsule .icons > .mn-b { padding: 8px 6px; }
  html.mn-c5 .mn-capsule .label-on > .mn-b:not(.on) { padding: 8px 6px; }
  html.mn-c5 .mn-capsule .label-on > .mn-b.on { padding: 8px 10px; }
  html.mn-c5 .mn-capsule .label-on { flex: 1; justify-content: space-between; }
  html.mn-b10 .pills.even > .mn-b { font-size: 0.8rem; }
}

/* ---------- e: Runde 2 auf Basis B1/B6 – Unterstrich = Textbreite (ul-text) oder ganze Reiterbreite (ul-full) ---------- */
@media (max-width: 720px) {
  .mn-box.flush { padding-bottom: 0; overflow: hidden; }
  .mn-box.nohr .utabs { margin-top: 2px; }
  .utabs { position: relative; }
  .utabs > .mn-b { padding: 10px 2px 12px; justify-content: center; position: relative; }
  .utabs > .mn-b span { position: relative; }
  .ul-text > .mn-b.on span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2.5px; border-radius: 2px; background: var(--mn-acc); }
  .ul-full > .mn-b.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--mn-acc); }
  .mn-box.flush .ul-full > .mn-b.on::after { border-radius: 0; height: 3px; }
  .ul-slide > .mn-b::after, .ul-slide > .mn-b span::after { display: none !important; }
  .mn-ind { position: absolute; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--mn-acc); transition: left 0.28s cubic-bezier(.3, .7, .3, 1), width 0.28s cubic-bezier(.3, .7, .3, 1); }
  .ul-slide.ul-text .mn-ind { bottom: 6px; }
  .mn-box.flush .ul-slide.ul-full .mn-ind { height: 3px; border-radius: 0; }
  .ul-text.thick > .mn-b.on span::after { height: 4px; bottom: -7px; box-shadow: 0 0 10px 1px var(--mn-acc); }
  .ul-full.grad > .mn-b.on::after { background: linear-gradient(90deg, #6d78f4, #7c5cf6, #6d28d9); height: 3px; }
  .mn-box.lilaseg .seg > .mn-b.on { background: var(--mn-acc); color: #fff; }
  .ul-text.dim > .mn-b { opacity: 0.55; }
  .ul-text.dim > .mn-b.on { opacity: 1; font-weight: 700; }
  .mn-cats.utabs > .mn-b { gap: 6px; }
  .mn-cats.utabs > .mn-b.on span::after { bottom: -7px; }
  .stackico > .mn-b { flex-direction: column; gap: 3px; font-size: 0.68rem; padding: 8px 0 12px; }
  .stackico > .mn-b svg { width: 20px; height: 20px; }
  .ul-text.stackico > .mn-b.on span::after { bottom: -5px; }
  .seg.flat.icononly { grid-template-columns: repeat(3, 1fr); }
  .seg.flat.icononly > .mn-b { padding: 8px 0; }
  .seg.flat.icononly svg { width: 20px; height: 20px; }
  .utabs.track { background: color-mix(in srgb, var(--bg) 55%, transparent); margin: 4px -6px 0; padding: 0 6px; }
  .mn-box.glass.strong { backdrop-filter: blur(24px) saturate(1.4); background: color-mix(in srgb, var(--ink) 12%, transparent); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
  .mn-box.compact { padding: 4px; gap: 2px; border-radius: 16px; }
  .mn-box.compact .seg > .mn-b { padding: 5px 10px; font-size: 0.8rem; }
  .mn-box.compact .utabs > .mn-b { padding: 7px 2px 9px; font-size: 0.8rem; }
  .mn-box.compact .ul-text > .mn-b.on span::after { bottom: -4px; height: 2px; }
  .mn-box.lila { background: rgba(124, 92, 246, 0.1); border-color: rgba(124, 92, 246, 0.35); }
  .mn-box.lila hr { border-color: rgba(124, 92, 246, 0.25); }
  .ul-text.white > .mn-b.on span::after { background: var(--ink); }
  .ul-full.rail > .mn-b::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
  .ul-full.rail > .mn-b.on::after { height: 2px; }
  .ul-full.rail > .mn-b.on { color: #a78bfa; }
}

/* ---------- f: Varianten von C10 (Ansichten-Leiste oben, Kategorie-Knopf in der Mitte) ---------- */
@media (max-width: 720px) {
  .mcenter-wrap { order: 3; justify-self: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .mcenter-wrap > .mn-cycle.mcenter { order: 0; }
  .mcenter-btn { font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mn-acc); color: #fff; box-shadow: 0 6px 18px -6px var(--mn-acc); }
  .mcenter-btn .mn-cur-cat span { display: none; }
  .mcenter-btn svg { width: 22px; height: 22px; }
  .mcenter-wrap .mn-menu { left: 50%; transform: translateX(-50%); top: calc(100% + 8px); }
  .mn-menu.fan { padding: 6px; border-radius: 999px; }
  .fanrow { display: flex; gap: 6px; }
  .fanrow > .mn-b { width: 42px; height: 42px; border-radius: 50%; justify-content: center; background: var(--mn-fill); }
  .fanrow > .mn-b.on { background: var(--mn-acc); color: #fff; }
  .fanrow svg { width: 20px; height: 20px; }
  .mn-cur-name { font-size: 0.6rem; font-weight: 700; color: #a78bfa; line-height: 1; }
  .withname .mn-cycle.mcenter { width: 40px; height: 40px; }
  .mn-cycle.mcenter.squircle { border-radius: 14px; }
  .mn-cycle.mcenter.inkbtn { background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }
  .mn-cycle.mcenter.big { width: 56px; height: 56px; }
  .mn-cycle.mcenter.big svg { width: 26px; height: 26px; }
  .mn-topbar.notch { margin: 6px 0 2px; overflow: visible; }
  .mn-topbar.notch .mn-cycle.mcenter { margin: -12px 0; border: 4px solid var(--bg); box-sizing: content-box; width: 50px; height: 50px; }
  .mn-topbar.glassbar { background: color-mix(in srgb, var(--ink) 10%, transparent); backdrop-filter: blur(16px); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7); }
  .mn-topbar.ulbar .bar > .mn-b { position: relative; padding-bottom: 9px; }
  .mn-topbar.ulbar .bar > .mn-b.on { background: none; color: var(--ink); }
  .mn-topbar.ulbar .bar > .mn-b.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--mn-acc); }
  .mn-cats.minidots { gap: 4px; }
  .mn-cats.minidots > .mn-b { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.4; padding: 0; }
  .mn-cats.minidots > .mn-b.on { background: var(--mn-acc); opacity: 1; }
  .withdots .mn-cycle.mcenter { width: 40px; height: 40px; }
  .iconsbar .bar > .mn-b { padding: 12px 0; }
  .iconsbar .bar > .mn-b svg { width: 22px; height: 22px; }
  .mn-topbar.boxbar { border-radius: 20px; padding: 6px 6px 0; overflow: hidden; }
}

/* ---------- g: Runde 3 aus E13 / E15 / E17 ---------- */
@media (max-width: 720px) {
  .stackico.big > .mn-b { font-size: 0.72rem; gap: 4px; padding: 9px 0 12px; }
  .stackico.big > .mn-b svg { width: 22px; height: 22px; }
  /* Spur mit eigenem Radius und Innenabstand – der Unterstrich liegt innerhalb, nichts wird an der Rundung abgeschnitten */
  .utabs.track2 { background: color-mix(in srgb, var(--bg) 55%, transparent); border-radius: 14px; margin-top: 4px; padding: 0 6px 4px; }
  .utabs.track2.ul-text > .mn-b.on span::after { bottom: -5px; }
  .utabs.track2.stackico > .mn-b { padding-top: 9px; }
  .inlineico > .mn-b { gap: 4px; font-size: 0.8rem; padding: 9px 0 11px; }
  .inlineico > .mn-b svg { width: 16px; height: 16px; }
  .mn-box.compact .inlineico > .mn-b { padding: 8px 0 10px; font-size: 0.76rem; gap: 3px; }
  .mn-box.compact .inlineico { gap: 2px; padding: 0 4px; }
  .mn-box.compact .stackico > .mn-b { padding: 7px 0 10px; font-size: 0.66rem; }
  .mn-box.compact .stackico > .mn-b svg { width: 18px; height: 18px; }
  .mn-box.compact .ul-slide.ul-full .mn-ind { bottom: 0; }
}

/* ---------- h: F2 mit exakt mittigem Knopf ---------- */
@media (max-width: 720px) {
  .mn-topbar.hbar { grid-template-columns: 1fr 1fr 56px 1fr 1fr; }
  .mn-topbar.hbar.uneven { grid-template-columns: 1.5fr 1.5fr 56px 1fr 1fr 1fr; }
  .mn-topbar.hbar .bar:first-child > .mn-b { order: 1; }
  .mn-topbar.hbar .bar:last-child > .mn-b { order: 4; }
  .mn-topbar.hbar.iconsonly .bar > .mn-b span { display: none; }
  .mn-topbar.hbar.iconsonly .bar > .mn-b.on span { display: inline; }
  .mn-topbar.hbar.iconsonly .bar > .mn-b { min-height: 44px; }
  .mn-menu-hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
  html.mn-h1 .site-header .nav-inner { position: relative; }
  .mn-hdr-magic { position: absolute; right: 62px; top: calc(19px + env(safe-area-inset-top)); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--mn-fill); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; }
  .mn-hdr-magic svg, .mn-fab-magic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mn-chip-magic { display: inline-flex !important; align-items: center; gap: 5px; }
  .mn-chip-magic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mn-fab-magic { position: fixed; right: 18px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 31; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--mn-acc); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -8px var(--mn-acc); cursor: pointer; }
}
/* Hinweis in der Varianten-Vorschau statt Weiterleitung zur Anmeldung */
.ws-preview-toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); z-index: 9999; padding: 12px 18px; border-radius: 14px; background: rgba(20, 20, 22, 0.94); color: #f2f2f2; font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); }
.ws-preview-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 720px) {
  .mn-topbar.hbar.three { grid-template-columns: 1fr 1fr 1fr 56px 1fr 1fr 1fr; }
  .mn-topbar.hbar.three .bar > .mn-b { font-size: 0.56rem; }
  html.mn-noavatar #avatar-btn-mobile { visibility: hidden; }
  .mn-av-dot { position: relative; }
  .mn-av-dot::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--bg); background: var(--mn-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.5 3-5.5 6.5-5.5s6.5 2 6.5 5.5'/%3E%3C/svg%3E") center / 9px no-repeat; }
  .mn-avmenu { position: fixed; left: 16px; top: calc(64px + env(safe-area-inset-top)); z-index: 60; padding: 6px; border-radius: 16px; background: var(--card, #1b1b1e); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
  .mn-avmenu .list { display: flex; flex-direction: column; }
  .mn-avmenu .list > .mn-b { padding: 10px 14px; border-radius: 10px; min-width: 170px; color: var(--ink); }
  .mn-avmenu .list > .mn-b.on { background: rgba(124, 92, 246, 0.16); }
}

/* Platzhalter-Karten ohne Lila (Niklas 2026-10-15): gestrichelter Rand in Grau, Inhalt in hellerem Grau */
.ph-card { border-color: color-mix(in srgb, var(--ink) 24%, transparent); background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.ph-card:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ph-poster { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.ph-poster, .ph-line, .ph-pills i { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ph-shimmer .ph-line, .ph-shimmer .ph-pills i, .ph-shimmer .ph-poster { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 20%, color-mix(in srgb, var(--ink) 13%, transparent) 40%, color-mix(in srgb, var(--ink) 6%, transparent) 60%); background-size: 300% 100%; }
/* Platzhalter-Karten wie im Hover-Zustand: ohne gestrichelten Rand, nur leicht getönte Fläche (Niklas 2026-10-15) */
.ph-card, .ph-card:hover { border-color: transparent !important; background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* ---------- i: Runde 3 verfeinert – aktive Kategorie lila hinterlegt ---------- */
@media (max-width: 720px) {
  .mn-box.pill-lila .seg > .mn-b.on { background: var(--mn-acc); color: #fff; }
  .mn-box.pill-grad .seg > .mn-b.on { background: linear-gradient(90deg, #6d78f4, #7c5cf6 55%, #6d28d9); color: #fff; }
  .mn-box.pill-soft .seg > .mn-b.on { background: rgba(124, 92, 246, 0.2); color: #8b6cf8; }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .mn-box.pill-soft .seg > .mn-b.on { color: #6d28d9; background: rgba(124, 92, 246, 0.14); }
  .mn-box.pill-glow .seg > .mn-b.on { background: var(--mn-acc); color: #fff; box-shadow: 0 6px 18px -6px var(--mn-acc); }
  .lila-on > .mn-b.on { color: #8b6cf8; }
  .utabs.track2.ul-slide.ul-text .mn-ind { bottom: 9px; }
  .utabs.track2.ul-full > .mn-b.on::after { left: 8%; right: 8%; }
}
/* Schatten der Navigation (z. B. H12-Glas) nicht an der Chip-Reihe abschneiden: Navigation liegt über den Chips */
@media (max-width: 720px) {
  html.mn .mn-top { position: relative; z-index: 3; }
  html.mn .mobile-pinned .chips { position: relative; z-index: 1; }
}
@media (max-width: 720px) {
  .mn-box.shadow { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark) .mn-box.shadow { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.28); }
}
/* Navigationsvarianten nur mobil; am Desktop bleibt die Seitenleiste */
@media (min-width: 721px) {
  .mn-top, .mn-avmenu, .mn-bottom, .mn-hdr-magic, .mn-fab-magic, .mn-pm-friends { display: none !important; }
}

/* Knöpfe (Profil, ＋) und Filter-Pills im Glas-Design der Menüleiste (H12/I3, Niklas 2026-10-15) */
@media (max-width: 720px) {
  html.mn-h12 .site-header .avatar-btn, html.mn-h12 #add-btn-mobile, html.mn-h12 .mobile-pinned .chip,
  html.mn-i3 .site-header .avatar-btn, html.mn-i3 #add-btn-mobile, html.mn-i3 .mobile-pinned .chip {
    background: color-mix(in srgb, var(--ink) 10%, transparent) !important;
    background-image: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent) !important;
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.7) !important;
    color: var(--ink) !important;
  }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).mn-h12 .site-header .avatar-btn,
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).mn-h12 #add-btn-mobile,
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).mn-h12 .mobile-pinned .chip,
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).mn-i3 .site-header .avatar-btn,
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).mn-i3 #add-btn-mobile,
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).mn-i3 .mobile-pinned .chip { box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.3) !important; }
  html.mn-h12 .mobile-pinned .chip.active, html.mn-h12 .mobile-pinned .chip-count.filtered,
  html.mn-i3 .mobile-pinned .chip.active, html.mn-i3 .mobile-pinned .chip-count.filtered { background: color-mix(in srgb, var(--ink) 22%, transparent) !important; }
  /* Pills liegen über den Karten, Schatten nicht abschneiden */
  html.mn-h12 .mobile-pinned .chips, html.mn-i3 .mobile-pinned .chips { overflow-y: visible; padding-bottom: 10px !important; margin-bottom: -8px; }
  .ws-av { width: 22px; height: 22px; fill: currentColor; }
}
/* Gleiche Abstände Navigation → Pills und Pills → erste Karte: je 14,5 px (Mitte aus 20 und 9; Niklas 2026-10-15) */
@media (max-width: 720px) {
  html.mn .mn-top { margin-bottom: 6.5px; }
  html.mn-h12 .mobile-pinned .chips, html.mn-i3 .mobile-pinned .chips { margin-bottom: -2.5px; }
}
.guest-inbox-hint .btn-primary { display: inline-flex; margin-top: 12px; text-decoration: none; }
/* Kopfzeile → Navigation → Pills → erste Karte: überall 18,25 px (Mitte aus 22 und 14,5; Niklas 2026-10-15) */
@media (max-width: 720px) {
  html.mn .mobile-pinned { padding-top: 6.25px; }
  html.mn .mn-top { margin-bottom: 10.25px; }
  html.mn-h12 .mobile-pinned .chips, html.mn-i3 .mobile-pinned .chips { margin-bottom: 2.5px; padding-bottom: 11.25px !important; }
}

/* Gast: erste Karte = kurze Info zur Ansicht (gleiche Höhe wie die Platzhalter, Niklas 2026-10-15) */
.ph-infocard { background: color-mix(in srgb, var(--ink) 8%, transparent) !important; color: var(--ink); }
.ph-infocard .ph-poster { display: grid; place-items: center; background: rgba(124, 92, 246, 0.16) !important; color: #8b6cf8; animation: none !important; }
.ph-infocard .ph-poster svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-infocard .ph-info { gap: 6px; min-height: 0; overflow: hidden; }
.phi-title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.phi-text { color: var(--muted); font-size: 0.85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.phi-cta { align-self: flex-start; margin-top: auto; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
html.guest #inbox-empty, html.guest #ideas-view .ideas-explainer { display: none !important; }

/* ======================================================================
   Desktop-Navigation – Varianten (Test 2026-10-15, ?dv=n1…n5 / s1…s3, /desktop-varianten)
   ====================================================================== */
@media (min-width: 721px) {
  html.dv { --dv-acc: #7c5cf6; --dv-glass: color-mix(in srgb, var(--ink) 9%, transparent); --dv-line: color-mix(in srgb, var(--ink) 11%, transparent); --dv-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.75); }
  :root:not([data-theme="dark"]):not([data-theme="glass"]):not(.system-dark).dv { --dv-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.3); }
  .dv-b { font: inherit; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 0.86rem; }
  .dv-b svg, .dv-cbtn svg, .dv-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .dv-btn .ws-av, .dv-btn svg.ws-av { fill: currentColor; stroke: none; width: 22px; height: 22px; }
  .dv-b.on { color: var(--ink); }
  /* Glas für Knöpfe und Pills */
  .dv-btn, html.dv .mobile-pinned .chip { background: var(--dv-glass) !important; background-image: none !important; backdrop-filter: blur(16px); border: 1px solid var(--dv-line) !important; box-shadow: var(--dv-shadow) !important; color: var(--ink) !important; }
  html.dv .mobile-pinned .chip.active { background: color-mix(in srgb, var(--ink) 20%, transparent) !important; }
  .dv-btn { height: 44px; min-width: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font: inherit; font-weight: 700; cursor: pointer; }
  .dv-av { padding: 0; width: 44px; }
  .dv-plus span { font-size: 0.9rem; }

  /* ---------- n: neu auf mobiler Basis ---------- */
  html.dvg-new body { padding-left: 0 !important; }
  html.dvg-new .site-header, html.dvg-new #mobile-view, html.dvg-new .mobile-pinned #add-btn { display: none !important; }
  html.dvg-new main { padding-top: 0 !important; }
  .dv-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 760px; margin: 22px auto 18px; padding: 0 16px; }
  .dv-head > :first-child { justify-self: start; } .dv-head > :last-child { justify-self: end; }
  .dv-logo { display: inline-flex !important; color: var(--ink); font-size: 2.3rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
  html.dvg-new .mobile-pinned { padding-top: 10px !important; margin-top: 0 !important; }
  /* Glas-Leiste mit mittigem Kategorie-Knopf */
  .dv-bar { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; width: min(520px, 100%); margin: 0 auto 18px; padding: 5px; border-radius: 24px; }
  .dv-bar.glass { background: var(--dv-glass); backdrop-filter: blur(16px); border: 1px solid var(--dv-line); box-shadow: var(--dv-shadow); }
  .dv-side { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .dv-bar .dv-b { flex-direction: column; gap: 3px; justify-content: center; padding: 8px 0; border-radius: 18px; font-size: 0.72rem; }
  .dv-bar .dv-b.on { background: color-mix(in srgb, var(--ink) 12%, transparent); }
  .dv-bar.wide { width: min(720px, 100%); grid-template-columns: 1fr 72px 1fr; }
  .dv-bar.wide .dv-b { flex-direction: row; gap: 8px; font-size: 0.88rem; padding: 12px 0; }
  .dv-center { position: relative; display: flex; justify-content: center; }
  .dv-cbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--dv-acc); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px -8px var(--dv-acc); }
  .dv-cbtn svg { width: 24px; height: 24px; }
  .dv-cur { display: grid; place-items: center; }
  .dv-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--card, #1b1b1e); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
  .dv-menu .dv-b { padding: 10px 14px; border-radius: 10px; min-width: 170px; color: var(--ink); }
  .dv-menu .dv-b.on { background: rgba(124, 92, 246, 0.16); }
  /* n3: Box wie mobil I3 */
  .dv-box { width: min(600px, 100%); margin: 0 auto 18px; padding: 6px; border-radius: 22px; background: var(--dv-glass); backdrop-filter: blur(16px); border: 1px solid var(--dv-line); box-shadow: var(--dv-shadow); display: flex; flex-direction: column; gap: 6px; }
  .dv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .dv-seg .dv-b { justify-content: center; padding: 10px 0; border-radius: 999px; font-size: 0.92rem; }
  .dv-seg .dv-b.on { background: var(--dv-acc); color: #fff; }
  .dv-track { display: grid; grid-template-columns: repeat(5, 1fr); padding: 2px 6px 6px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
  .dv-track .dv-b { flex-direction: column; gap: 4px; justify-content: center; padding: 10px 0 12px; font-size: 0.76rem; position: relative; }
  .dv-track .dv-b svg { width: 22px; height: 22px; }
  .dv-track .dv-b.on span { position: relative; }
  .dv-track .dv-b.on span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2.5px; border-radius: 2px; background: var(--dv-acc); }
  /* n4: eine Zeile – Logo links, Leiste mittig, Profil + Hinzufügen rechts */
  .dv-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 4px 0 18px; }
  .dv-row .dv-logo { font-size: 1.8rem; justify-self: start; }
  .dv-row .dv-bar { margin: 0; width: 460px; }
  .dv-acts { justify-self: end; display: flex; gap: 10px; }
  html.dv-n4 .mobile-pinned { max-width: none; }
  /* n5: Leiste als schwebendes Dock unten */
  .dv-bar.dock { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; margin: 0; }

  /* ---------- s: Seitenleiste im neuen Design ---------- */
  html.dvg-side .site-header { background: color-mix(in srgb, var(--ink) 3%, var(--bg)) !important; }
  html.dvg-side .side-cats .category-switch, html.dvg-side .tabbar.mobile-only, html.dvg-side .side-acct-box { background: var(--dv-glass) !important; border: 1px solid var(--dv-line) !important; box-shadow: var(--dv-shadow) !important; border-radius: 20px !important; backdrop-filter: blur(16px); }
  html.dvg-side .side-cats .seg-indicator { background: var(--dv-acc) !important; box-shadow: 0 6px 16px -6px var(--dv-acc) !important; }
  html.dvg-side .side-cats .category-switch .tab.active { color: #fff !important; }
  html.dvg-side .tabbar-item { border-radius: 14px !important; }
  html.dvg-side .tabbar-ind { display: none !important; }
  html.dvg-side .tabbar-item.active { background: color-mix(in srgb, var(--ink) 11%, transparent) !important; color: var(--ink) !important; position: relative; }
  html.dvg-side .tabbar-item.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--dv-acc); }
  html.dvg-side #add-btn { background: var(--dv-glass) !important; background-image: none !important; color: var(--ink) !important; border: 1px solid var(--dv-line) !important; box-shadow: var(--dv-shadow) !important; }
  html.dvg-side .avatar-btn svg.ws-av { fill: currentColor; stroke: none; width: 22px; height: 22px; }
  /* s2: schwebende Glas-Karte mit lila Pill */
  html.dv-s2 .site-header { top: 16px !important; bottom: 16px !important; left: 16px !important; border-radius: 26px; border: 1px solid var(--dv-line) !important; box-shadow: var(--dv-shadow); background: var(--dv-glass) !important; backdrop-filter: blur(20px); }
  html.dv-s2 body { padding-left: 280px !important; }
  html.dv-s2 .tabbar-item.active { background: var(--dv-acc) !important; color: #fff !important; }
  html.dv-s2 .tabbar-item.active::before { display: none; }
  /* s3: schmale Icon-Leiste, Logo über dem Inhalt */
  html.dv-rail body { padding-left: 112px !important; }
  html.dv-rail .site-header { width: 112px !important; }
  html.dv-rail .site-header .logo:not(.dv-logo), html.dv-rail .side-legal, html.dv-rail .side-who, html.dv-rail .side-acct { display: none !important; }
  html.dv-rail .site-header .nav-inner { padding: 22px 12px !important; align-items: center; }
  html.dv-rail .side-cats .category-switch { flex-direction: column !important; }
  html.dv-rail .side-cats .category-switch .seg-indicator { display: none; }
  html.dv-rail .side-cats .category-switch .tab { padding: 10px 0 !important; border-radius: 14px; }
  html.dv-rail .side-cats .category-switch .tab.active { background: var(--dv-acc) !important; }
  html.dv-rail .tabbar-item { flex-direction: column !important; gap: 4px !important; font-size: 0.68rem !important; padding: 10px 4px !important; justify-content: center !important; }
  html.dv-rail .tabbar-item.active::before { display: none; }
  html.dv-rail .side-acct-box { padding: 8px !important; }
  html.dv-rail #mobile-view { display: none !important; }
  html.dv-rail .dv-head { margin-top: 18px; }
}

/* ---------- Desktop Runde 2: Varianten zu N1 (n6–n13) und S3 (s4–s11) ---------- */
@media (min-width: 721px) {
  /* n6: Unterstrich statt Fläche */
  html.dv-n6 .dv-bar .dv-b.on { background: none; color: var(--ink); }
  html.dv-n6 .dv-bar .dv-b.on span { position: relative; }
  html.dv-n6 .dv-bar .dv-b.on span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2.5px; border-radius: 2px; background: var(--dv-acc); }
  /* n7: aktive Ansicht als lila Pill */
  html.dv-n7 .dv-bar .dv-b.on { background: var(--dv-acc); color: #fff; }
  /* n8: größere Leiste */
  html.dv-n8 .dv-bar { width: min(640px, 100%); grid-template-columns: 1fr 76px 1fr; padding: 7px; border-radius: 28px; }
  html.dv-n8 .dv-bar .dv-b { padding: 11px 0; font-size: 0.8rem; gap: 5px; border-radius: 22px; }
  html.dv-n8 .dv-bar .dv-b svg { width: 24px; height: 24px; }
  html.dv-n8 .dv-cbtn { width: 60px; height: 60px; }
  /* n9: Kopfzeile bleibt beim Scrollen stehen */
  html.dv-n9 .dv-head { position: sticky; top: 0; z-index: 35; margin: 0 auto; padding: 16px; max-width: none; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); }
  html.dv-n9 .mobile-pinned { top: 76px !important; }
  /* n10: Suche statt „Hinzufügen“ */
  .dv-search { min-width: 230px; justify-content: flex-start; padding: 0 16px; color: var(--muted) !important; }
  .dv-search span { font-weight: 500; font-size: 0.88rem; }
  .dv-search svg { width: 18px; height: 18px; }
  /* n11: Karten zweispaltig */
  html.dv-n11 main { max-width: 1240px !important; }
  html.dv-n11 .mobile-pinned { max-width: 1180px; margin-left: auto; margin-right: auto; }
  html.dv-n11 #watchlist { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1180px; margin: 0 auto; }
  html.dv-n11 .dv-head { max-width: 1180px; }
  /* n12: „Hinzufügen“ als lila Knopf */
  html.dv-n12 .dv-plus { background: var(--dv-acc) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 8px 22px -8px var(--dv-acc) !important; }
  /* n13: kompakte Leiste, Beschriftung nur beim aktiven Reiter */
  html.dv-n13 .dv-bar { width: min(440px, 100%); }
  html.dv-n13 .dv-bar .dv-b span { display: none; }
  html.dv-n13 .dv-bar .dv-b.on span { display: inline; }
  html.dv-n13 .dv-bar .dv-b { min-height: 48px; }

  /* s4: Icon-Leiste als schwebende Glas-Karte */
  html.dv-s4 .site-header { top: 16px !important; bottom: 16px !important; left: 16px !important; border-radius: 26px; border: 1px solid var(--dv-line) !important; box-shadow: var(--dv-shadow); background: var(--dv-glass) !important; backdrop-filter: blur(20px); }
  html.dv-s4 body { padding-left: 144px !important; }
  /* s5: aktiver Eintrag als lila Pill */
  html.dv-s5 .tabbar-item.active { background: var(--dv-acc) !important; color: #fff !important; }
  /* s6: Kategorie als runder lila Knopf oben in der Leiste (Menü) */
  html.dv-s6 .side-cats { display: none !important; }
  html.dv-s6 .site-header .dv-center { order: 3; margin: 4px 0 6px; }
  html.dv-s6 .dv-menu { left: 0; transform: none; top: calc(100% + 8px); }
  /* s7: breitere Leiste, größere Icons */
  html.dv-s7 body { padding-left: 140px !important; }
  html.dv-s7 .site-header { width: 140px !important; }
  html.dv-s7 .tabbar-item { font-size: 0.76rem !important; padding: 13px 4px !important; }
  html.dv-s7 .tabbar-item svg { width: 24px !important; height: 24px !important; }
  /* s8: nur Icons */
  html.dv-s8 body { padding-left: 88px !important; }
  html.dv-s8 .site-header { width: 88px !important; }
  html.dv-s8 .tabbar-item > span:not(.inbox-badge) { display: none !important; }
  html.dv-s8 .tabbar-item { padding: 14px 0 !important; }
  /* s9 / s11: Logo links in der Kopfzeile; s9 mit ＋ rechts, s11 mit Profil rechts */
  html.dv-s9 .dv-head, html.dv-s11 .dv-head { max-width: 760px; }
  html.dv-s9 .mobile-pinned #add-btn { display: none !important; }
  html.dv-s11 .side-acct-box { display: none !important; }
  /* s10: Leiste ohne Flächen, aktiver Eintrag mit lila Kante */
  html.dv-s10 .site-header { background: transparent !important; border-right: 1px solid var(--dv-line) !important; }
  html.dv-s10 .side-cats .category-switch, html.dv-s10 .tabbar.mobile-only, html.dv-s10 .side-acct-box { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  html.dv-s10 .tabbar-item.active { background: none !important; color: var(--ink) !important; }
  html.dv-s10 .tabbar-item.active::before { display: block !important; left: -12px; }
}
/* Desktop-Konto-Knopf: Community-Icon statt Foto (Niklas 2026-10-15) */
.avatar-btn.ws-comm img { display: none !important; }
.avatar-btn.ws-comm svg.ws-av { display: block !important; width: 22px; height: 22px; fill: currentColor; stroke: none; }
/* Mobil: Kopf + Navigation scrollen weg, nur die Filter-Pills bleiben oben (Niklas 2026-10-15) */
@media (max-width: 720px) {
  html.mn-scrollaway .site-header { position: absolute !important; }
  html.mn-scrollaway .mobile-pinned.mn-static { position: relative !important; top: auto !important; }
  html.mn-scrollaway .mn-chipbar { position: sticky !important; top: 0 !important; z-index: 26; padding-top: 0 !important; margin-top: 0 !important; }
}
/* Desktop: Pills in den Karten untereinander – Freunde zuerst, IMDb & Co. zuletzt (unten) */
@media (min-width: 721px) {
  .movie-card .ratings.two { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 721px) {
  /* Kopfzeile + Leiste im fixierten Block über die ganze Breite; Profil/＋ bündig mit den Kartenkanten */
  html.dvg-new .mobile-pinned > .dv-head, html.dvg-new .mobile-pinned > .dv-bar, html.dvg-new .mobile-pinned > .dv-box, html.dvg-new .mobile-pinned > .dv-row { grid-column: 1 / -1; }
  html.dvg-new .mobile-pinned > .dv-head { max-width: none; width: 100%; margin: 0 0 18px; padding: 22px 0 0; }
  html.dvg-new .mobile-pinned { background: var(--bg); }
}
@media (min-width: 721px) {
  html.dvg-new .mobile-pinned { display: block !important; }
  html.dvg-new .mobile-pinned .chips { padding-top: 0 !important; }
}
/* Hinterlegung bleibt bis zum Rand der Leiste; dafür mehr Abstand der inneren Reiter zum Mittelknopf (Niklas 2026-10-15) */
@media (min-width: 721px) {
  .dv-bar { grid-template-columns: 1fr 78px 1fr; }
  .dv-b:focus:not(:focus-visible), .dv-cbtn:focus:not(:focus-visible) { outline: none; }
}
@media (max-width: 720px) {
  .mn-topbar.hbar { grid-template-columns: 1fr 1fr 62px 1fr 1fr; }
  .mn-b:focus:not(:focus-visible) { outline: none; }
}
/* Fusion-Dialog: gleichmäßige Abstände, eigenes Icon statt Emoji (Niklas 2026-10-15) */
#magic-title { display: inline-flex; align-items: center; gap: 9px; }
.magic-title-ico { width: 22px; height: 22px; fill: none; stroke: #8b6cf8; stroke-width: 1.8; flex: none; }
#magic-empty:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
#magic-empty .magic-note { margin: 0; }
/* Abstand Titel → Text = Text → Knopf */
#magic-sheet .sheet-head { margin-bottom: 3px; }
#magic-sheet .magic-body { padding-top: 0; }
#magic-sheet .dialog-close:focus:not(:focus-visible) { outline: none; }
@media (min-width: 721px) {
  #magic-sheet .sheet-head { padding-top: 9px; }
}

/* ---------- Desktop: N1-Leiste in verschiedenen Größen (?dz=…, gleiches Design, nur skaliert) ---------- */
@media (min-width: 721px) {
  html.dvz .dv-bar { width: min(calc(520px * var(--dz)), 100%); grid-template-columns: 1fr calc(78px * var(--dz)) 1fr; padding: calc(5px * var(--dz)); border-radius: calc(24px * var(--dz)); }
  html.dvz .dv-side { gap: calc(4px * var(--dz)); }
  html.dvz .dv-bar .dv-b { padding: calc(8px * var(--dz)) 0; gap: calc(3px * var(--dz)); font-size: calc(0.72rem * var(--dz)); border-radius: calc(18px * var(--dz)); }
  html.dvz .dv-bar .dv-b svg { width: calc(20px * var(--dz)); height: calc(20px * var(--dz)); }
  html.dvz .dv-cbtn { width: calc(52px * var(--dz)); height: calc(52px * var(--dz)); }
  html.dvz .dv-cbtn svg { width: calc(24px * var(--dz)); height: calc(24px * var(--dz)); }
  /* Kategorie-Menü liegt über Pills und Karten (die Glas-Leiste bildet eine eigene Ebene, 2026-10-16) */
  .dv-bar { position: relative; z-index: 30; }
  /* Abstand Leiste → Pills = sichtbarer Abstand Logo → Leiste (27px, Niklas 2026-10-15; gilt auch Tablet) */
  html.dv-n1 .dv-bar.glass { margin-bottom: 27px; }
}

/* ---------- Zähler-Chip „5 Filme“: Übersicht der gesetzten Filter (2026-10-16) ---------- */
#chip-count { display: inline-flex; align-items: center; gap: 6px; }
#chip-count .cp-k { font-style: normal; font-size: 0.68rem; font-weight: 700; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: #7c5cf6; color: #fff; line-height: 1; }
.af-pop { position: fixed; z-index: 80; width: min(330px, calc(100vw - 24px)); padding: 14px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7); color: var(--ink); }
.af-head { font-weight: 700; font-size: 0.82rem; margin: 0 2px 10px; color: var(--muted); }
.af-list { display: flex; flex-wrap: wrap; gap: 7px; }
.af-chip { font: inherit; font-size: 0.84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; border-radius: 999px; cursor: pointer; color: var(--ink); background: color-mix(in srgb, #8b6cf8 18%, transparent); border: 1px solid color-mix(in srgb, #8b6cf8 38%, transparent); }
.af-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: 0.7; }
.af-chip:hover { background: color-mix(in srgb, #8b6cf8 30%, transparent); }
.af-chip:hover svg { opacity: 1; }
.af-reset { font: inherit; font-size: 0.82rem; font-weight: 600; margin-top: 12px; padding: 6px 2px; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.af-reset:hover { color: var(--ink); }
.af-none { margin: 0 2px; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

/* Farb-Varianten des Zähler-Chips (?cp=1…8, Vergleich /pill-varianten) */
html.cp #chip-count { background-image: none !important; font-weight: 600; }
html.cp-1 #chip-count { background: color-mix(in srgb, #8b6cf8 20%, transparent) !important; border-color: color-mix(in srgb, #8b6cf8 45%, transparent) !important; color: color-mix(in srgb, #8b6cf8 55%, var(--ink)) !important; }
html.cp-2 #chip-count { background: #7c5cf6 !important; border-color: #7c5cf6 !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(124, 92, 246, 0.9) !important; }
html.cp-2 #chip-count .cp-k { background: #fff; color: #5b3fd6; }
html.cp-3 #chip-count { background: color-mix(in srgb, var(--ink) 20%, transparent) !important; font-weight: 700; }
html.cp-4 #chip-count { background: transparent !important; border: 1.5px solid #8b6cf8 !important; }
html.cp-5 #chip-count { background: linear-gradient(120deg, #5d8bff, #8b6cf8 55%, #a64cf0) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(124, 92, 246, 0.9) !important; }
html.cp-5 #chip-count .cp-k { background: rgba(255, 255, 255, 0.95); color: #5b3fd6; }
html.cp-6 #chip-count { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--bg) !important; }
html.cp-7 #chip-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8b6cf8; box-shadow: 0 0 8px #8b6cf8; }
html.cp-8 #chip-count { padding-left: 5px !important; }
html.cp-8 #chip-count .cp-num { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: #7c5cf6; color: #fff; font-size: 0.8rem; }

/* ---------- Import-Dialog (Link / Text / Datei → KI, 2026-10-16) ---------- */
#imp-title { display: inline-flex; align-items: center; gap: 9px; }
.imp-ico { width: 22px; height: 22px; fill: none; stroke: #8b6cf8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.imp .sheet-head { margin-bottom: 3px; }
.imp .imp-body { padding-top: 0; }
.imp .dialog-close:focus:not(:focus-visible) { outline: none; }
@media (min-width: 721px) { dialog.imp:not(.panel) { width: min(560px, calc(100vw - 48px)); } .imp .sheet-head { padding-top: 9px; } }
.imp-step:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.imp-lead { margin: 0; }
.imp-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.imp-seg button { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 9px 0; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.imp-seg button.on { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.imp-pane:not([hidden]) { display: flex; flex-direction: column; gap: 7px; }
.imp-url, .imp-text { font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); box-sizing: border-box; resize: vertical; }
.imp-url:focus, .imp-text:focus { outline: none; border-color: #8b6cf8; }
.imp-hint { font-size: 0.8rem; color: var(--muted); }
.imp-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 14px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); text-align: center; cursor: pointer; }
.imp-drop:hover { border-color: #8b6cf8; }
.imp-fname { font-weight: 600; word-break: break-all; }
.imp-err { margin: 0; color: #ff6b6b; font-size: 0.86rem; }
.imp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.imp-actions .text-btn { color: var(--muted); }
.imp-spin { width: 34px; height: 34px; margin: 18px auto 0; border-radius: 50%; border: 3px solid color-mix(in srgb, #8b6cf8 25%, transparent); border-top-color: #8b6cf8; animation: imp-spin 0.9s linear infinite; }
@keyframes imp-spin { to { transform: rotate(360deg); } }
.imp-wait-text { text-align: center; margin: 0 0 14px; }
.imp-pick-head { display: flex; align-items: center; justify-content: space-between; }
.imp-list { list-style: none; margin: 0 -6px; padding: 0; max-height: min(52dvh, 460px); overflow-y: auto; }
.imp-row label { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 12px; cursor: pointer; }
.imp-row label:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.imp-row.off { opacity: 0.45; }
.imp-row.off label { cursor: default; }
.imp-row input { width: 18px; height: 18px; accent-color: #7c5cf6; flex: none; }
.imp-poster { width: 34px; height: 50px; border-radius: 6px; overflow: hidden; flex: none; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.imp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imp-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.imp-t b { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-t small { font-size: 0.78rem; color: var(--muted); }
.imp-card { font: inherit; text-align: left; width: 100%; cursor: pointer; }

/* Sortier-Pill: Varianten (?sp=1…8, Vergleich /pill-varianten, 2026-10-16) */
html.sp .chip[data-sheet="sort"] { background-image: none !important; display: inline-flex; align-items: center; gap: 6px; }
html.sp-1 .chip[data-sheet="sort"]::before, html.sp-2 .chip[data-sheet="sort"]::before, html.sp-3 .chip[data-sheet="sort"]::before,
html.sp-4 .chip[data-sheet="sort"]::before, html.sp-5 .chip[data-sheet="sort"]::before, html.sp-6 .chip[data-sheet="sort"]::before,
html.sp-7 .chip[data-sheet="sort"]::before, html.sp-8 .chip[data-sheet="sort"]::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 16.5L7 20l3.5-3.5M17 20V4M13.5 7.5L17 4l3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 16.5L7 20l3.5-3.5M17 20V4M13.5 7.5L17 4l3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.sp-2 .chip[data-sheet="sort"] { color: color-mix(in srgb, #8b6cf8 70%, var(--ink)) !important; font-weight: 700; }
html.sp-3 .chip[data-sheet="sort"] { position: relative; margin-right: 13px; }
html.sp-3 .chip[data-sheet="sort"]::after { content: ""; position: absolute; right: -11px; top: 22%; bottom: 22%; width: 1.5px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
html.sp-4 .chip[data-sheet="sort"] { background: transparent !important; border-color: transparent !important; box-shadow: none !important; padding-left: 6px !important; padding-right: 6px !important; font-weight: 700; }
html.sp-5 .chip[data-sheet="sort"] { background: color-mix(in srgb, var(--ink) 22%, transparent) !important; font-weight: 700; }
html.sp-6 .chip[data-sheet="sort"] { background: color-mix(in srgb, #8b6cf8 20%, transparent) !important; border-color: color-mix(in srgb, #8b6cf8 45%, transparent) !important; }
html.sp-7 .chip[data-sheet="sort"] { border-radius: 10px !important; background: color-mix(in srgb, var(--ink) 16%, transparent) !important; }
html.sp-8 .chip[data-sheet="sort"] { border: 1.5px solid transparent !important; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(120deg, #5d8bff, #8b6cf8 55%, #a64cf0) border-box !important; }
/* Sortier-Pill: nur der Pfeil lila (Standard, 2026-10-16) */
.chip[data-sheet="sort"] .sort-arrow { color: #8b6cf8; font-weight: 700; margin-left: 0.3em; }

/* Import-Vorschau: Filter (2026-10-16) */
.imp-count-wrap { display: flex; flex-direction: column; gap: 2px; }
.imp-left { color: #8b6cf8; font-weight: 600; font-size: 0.82rem; }
.imp-pick-head { gap: 10px; }
.imp-ftoggle.on { border-color: #8b6cf8 !important; }
.imp-filters:not([hidden]) { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.imp-f:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
.imp-f2:not([hidden]) { flex-direction: row; flex-wrap: wrap; gap: 14px; }
.imp-f2 label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 140px; }
.imp-fl { font-size: 0.78rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.imp-fl output { color: var(--ink); }
.imp-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-genres .chip { font-size: 0.8rem; padding: 5px 11px; }
.imp-genres .chip.on { border-color: #8b6cf8 !important; background: color-mix(in srgb, #8b6cf8 20%, transparent) !important; color: var(--ink) !important; }
.imp-pair { display: flex; align-items: center; gap: 6px; }
.imp-pair i { font-style: normal; color: var(--muted); }
.imp-pair input { font: inherit; font-size: 16px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.imp-range { display: flex; flex-direction: column; gap: 4px; }
.imp-range input { width: 100%; accent-color: #7c5cf6; }
.imp-freset { align-self: flex-start; color: var(--muted); }
.imp-sel { display: flex; justify-content: flex-end; margin: -6px 0 -8px; }
.imp-row[hidden] { display: none; }
.imp-list { max-height: min(42dvh, 420px); }
.imp-pair input::-webkit-outer-spin-button, .imp-pair input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.imp-pair input { -moz-appearance: textfield; text-align: center; }
@media (max-width: 480px) { .imp-f2 label { flex-basis: 100%; } }

/* ---------- Unterseiten-Kopf: Varianten (?sv=1…10, Vergleich /seiten-varianten, 2026-10-16) ---------- */
html.sv .site-header, html.sv body.subpage > .tabbar, html.sv .title-block .back-arrow { display: none !important; }
html.sv:not(.sv-1):not(.sv-8) .title-block { display: none; }
html.sv .title-block { margin-top: 6px; }
html.sv body.subpage { padding-bottom: 40px; }
.sv-head { --sv-glass: color-mix(in srgb, var(--ink) 9%, transparent); --sv-rim: color-mix(in srgb, var(--ink) 10%, transparent); max-width: 728px; margin: 0 auto; padding: 16px 16px 0; box-sizing: content-box; }
.sv-head svg, .sv-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sv-head .ws-av, .sv-menu .ws-av { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.sv-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; }
.sv-top > :last-child { justify-self: end; }
.sv-logo { font-size: 1.9rem; justify-self: center; }
.sv-ib { font: inherit; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--sv-rim); background: var(--sv-glass); color: var(--ink); cursor: pointer; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.7); }
.sv-av { justify-self: start; }
.sv-bar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin: 18px auto 0; width: min(468px, 100%); box-sizing: border-box; padding: 5px; min-height: 56px; border-radius: 22px; background: var(--sv-glass); border: 1px solid var(--sv-rim); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.75); }
.sv-bar .sv-ib { width: 44px; height: 44px; border: 0; background: none; box-shadow: none; backdrop-filter: none; border-radius: 16px; }
.sv-bar .sv-ib:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.sv-h1 { margin: 0; font-family: var(--font-display, Poppins, sans-serif); font-weight: 700; font-size: 1.15rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-tbar.sv-left { grid-template-columns: 44px 1fr 44px; }
.sv-tbar.sv-left .sv-h1 { text-align: left; }
.sv-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: rgba(124, 92, 246, 0.16); color: #8b6cf8; }
/* 3: Zurück mit Ziel */
.sv-tbar:has(.sv-wide) { grid-template-columns: 1fr auto 1fr; }
.sv-back.sv-wide { width: auto; padding: 0 12px 0 8px; gap: 4px; display: inline-flex; justify-self: start; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
/* 5 / 6: Navigationsleiste (2 | ● | 2) */
.sv-nav { grid-template-columns: 1fr 62px 1fr; gap: 0; }
.sv-side { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sv-b { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: 17px; color: var(--muted); font-size: 0.66rem; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.sv-b:hover { color: var(--ink); }
.sv-b.on { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.sv-center { justify-self: center; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #7c5cf6; color: #fff; box-shadow: 0 8px 22px -6px rgba(124, 92, 246, 0.8); cursor: pointer; }
.sv-center svg { width: 24px; height: 24px; }
.sv-6 .sv-top .sv-av { visibility: hidden; }
/* 7: großer Titel mit Icon und Brotkrumen */
.sv-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; }
.sv-crumb { font-size: 0.8rem; color: var(--muted); }
.sv-crumb a { color: var(--muted); text-decoration: none; font-weight: 700; }
.sv-hico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: rgba(124, 92, 246, 0.16); color: #8b6cf8; margin-top: 6px; }
.sv-hico svg { width: 26px; height: 26px; }
.sv-hero .sv-h1, .sv-big .sv-h1 { font-size: 2rem; text-align: left; white-space: normal; }
.sv-tag { margin: 0; color: var(--muted); }
/* 8: Seite als Sheet über der App */
html.sv-8 body.subpage { background: radial-gradient(120% 60% at 50% 0%, rgba(124, 92, 246, 0.22), transparent 60%), var(--bg); }
html.sv-8 .settings-page { margin-top: 18px; border-radius: 26px; padding: 0 18px 30px; background: color-mix(in srgb, var(--ink) 4%, var(--bg)); border: 1px solid var(--sv-rim, color-mix(in srgb, var(--ink) 10%, transparent)); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.6); }
html.sv-8 .title-block { display: none; }
html.sv-8 .sv-head { padding: 0; max-width: none; }
.sv-sheethead { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 10px; padding: 10px 0 14px; position: relative; }
.sv-sheethead .sv-h1 { text-align: left; font-size: 1.3rem; }
.sv-handle { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.sv-sheethead .sv-x { margin-top: 8px; }
.sv-sheethead .sv-ico { margin-top: 8px; }
/* 9: großer Titel, der beim Scrollen in die Topbar wandert */
html.sv-9 .sv-head { position: sticky; top: 0; z-index: 20; padding-bottom: 10px; background: linear-gradient(var(--bg) 70%, transparent); }
.sv-top { position: relative; }
.sv-mini { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); opacity: 0; font-family: var(--font-display, Poppins, sans-serif); font-weight: 700; font-size: 1.1rem; transition: opacity 0.2s, transform 0.2s; pointer-events: none; white-space: nowrap; }
html.sv-scrolled .sv-mini { opacity: 1; transform: translate(-50%, -50%); }
html.sv-9 .sv-logo { transition: opacity 0.2s, transform 0.2s; }
html.sv-scrolled .sv-logo { opacity: 0; transform: translateY(-8px); }
.sv-big { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; transition: opacity 0.2s; }
html.sv-scrolled .sv-big { opacity: 0; }
/* 10: Abschnitts-Pills */
html.sv-10 .sv-head { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 85%, transparent); padding-bottom: 12px; }
.sv-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 0 16px; }
.sv-pills .chip { white-space: nowrap; text-decoration: none; }
.sv-pills .chip.on { border-color: #8b6cf8 !important; }
/* Comm-Menü */
.sv-menu { position: fixed; z-index: 90; min-width: 200px; padding: 6px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; }
.sv-menu a, .sv-menu button { font: inherit; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.sv-menu a:hover, .sv-menu button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (min-width: 721px) {
  .sv-head { padding-top: 32px; }
  .sv-top { min-height: 44px; }
  .sv-ib { width: 44px; height: 44px; }
  .sv-logo { font-size: 2.3rem; }
  html.sv .settings-page { max-width: 728px; }
}
/* Unterseiten-Kopf: volle Breite (body ist Flex-Spalte) und Logo auch mobil zeigen */
.sv-head { width: 100%; max-width: 760px; box-sizing: border-box; align-self: center; }
html.sv .sv-logo { display: inline-block !important; }
html.sv-8 main .sv-head { max-width: none; }
html.sv main.settings-page { padding-top: 18px; }
html.sv-8 main.settings-page { padding-top: 0; }
html.sv-9 .sv-big.sv-head { position: static; background: none; padding-top: 0; }
html.sv-9 .sv-head:first-child { padding-bottom: 8px; }
html.sv main.settings-page { width: 100%; max-width: 760px; box-sizing: border-box; padding-left: 16px; padding-right: 16px; align-self: center; }
html.sv-8 main.settings-page { max-width: 760px; width: calc(100% - 32px); padding-left: 18px; padding-right: 18px; }
