/* BingeSquad – dunkler Kino-Look. Poster und Titelbilder bringen die Farbe, die Oberfläche hält sich zurück. */
:root {
  --bg: #0a0b10;
  --surface: #14161d;
  --surface-2: #1d2029;
  --surface-3: #272b37;
  --line: #2a2e3b;
  --line-2: #414759;
  --text: #f1f2f7;
  --muted: #9ea4b6;
  --accent: #f6b93b;      /* Kino-Gelb: aktive Reiter, Sterne, Hauptknöpfe */
  --accent-2: #ff8a4c;    /* warmes Orange für Verläufe */
  --accent-ink: #1b1403;
  --grad: linear-gradient(135deg, #ffd166 0%, #f6b03b 50%, #ff8a4c 100%);
  --seen: #4cc38a;        /* "gesehen" */
  --want: #6ea8ff;        /* "Watchlist" */
  --danger: #ff6b6b;
  --radius: 14px;
  --nav-h: 68px;
  --rail-w: 178px;        /* Breite eines Posters in den waagerechten Reihen */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Segoe UI Variable Display", "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
/* Bewusst kein scroll-padding-top: iOS schiebt die Seite damit dauerhaft um diesen Betrag nach oben. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
/* Sanftes Licht hinter der Seite: links warm, rechts kühl – wie ein Kinosaal kurz vor dem Film */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(246, 185, 59, 0.13), transparent 62%),
    radial-gradient(1000px 560px at 95% -6%, rgba(110, 168, 255, 0.11), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(255, 138, 76, 0.06), transparent 60%);
}
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ico { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.ico svg { width: 100%; height: 100%; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1.02); } }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.btn:hover { border-color: var(--line-2); background: var(--surface-3); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--accent-ink); font-weight: 700; box-shadow: 0 8px 22px -8px rgba(246, 176, 59, 0.65); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 28px -8px rgba(246, 176, 59, 0.85); }
.btn.glass { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn.on-seen { background: color-mix(in srgb, var(--seen) 22%, var(--surface)); border-color: var(--seen); color: #d5f5e5; }
.btn.on-want { background: color-mix(in srgb, var(--want) 22%, var(--surface)); border-color: var(--want); color: #dbe8ff; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { color: var(--danger); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; min-height: 50px; padding: 0 26px; font-size: 17px; box-shadow: 0 10px 28px -10px rgba(88, 101, 242, 0.9); }
.btn.discord:hover { background: #6c78ff; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

select, input[type="number"], input[type="date"], input[type="text"], input:not([type]), textarea {
  min-height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s;
}
select { cursor: pointer; }
select:hover, input:hover, textarea:hover { border-color: var(--line-2); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { padding: 10px 14px; width: 100%; resize: vertical; min-height: 72px; }

.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); }
.seg button { min-height: 32px; padding: 0 16px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 600; color: var(--muted); transition: color 0.15s, background 0.15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 8px rgba(0, 0, 0, 0.3); }

/* Aufklapp-Auswahl mit Häkchen (Streaming-Anbieter) */
.dropdown { position: relative; }
.dropdown summary {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-radius: 12px; cursor: pointer; list-style: none;
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap; user-select: none;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.dropdown summary:hover, .dropdown[open] summary { border-color: var(--line-2); }
.dropdown .menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 250px; padding: 8px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); display: grid;
  animation: rise 0.18s var(--ease);
}
.dropdown .menu label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 0 8px; border-radius: 8px; color: var(--text); min-height: 38px; }
.dropdown .menu label.check:hover { background: rgba(255, 255, 255, 0.06); }
.menu-foot { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.menu-foot .btn { flex: 1; }
.dropdown .menu input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.chip.plain { padding: 8px 16px; }

.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.notice.error { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.notice.wrap { margin-top: 20px; }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 18px; background: rgba(255, 255, 255, 0.02); text-wrap: balance; }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.92em; }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #4a5170, #2f3447); color: #fff; font-weight: 700; font-size: 14px; object-fit: cover;
}
.avatar.s { width: 22px; height: 22px; font-size: 11px; }
.avatar.l { width: 68px; height: 68px; font-size: 28px; }
.avatar.xl { width: 112px; height: 112px; font-size: 44px; }

/* Abschnitte auf "Mein Profil" */
.panel { max-width: 720px; padding: 22px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 120px), var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 19px; margin-bottom: 8px; }
.panel p { margin: 0 0 14px; }
.panel .chips { margin-bottom: 0; }
.panel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.panel-row .actions { margin-top: 0; }
.panel-row input[type="text"] { flex: 1 1 220px; min-width: 0; background: var(--bg); }
/* Am PC stehen die Abschnitte in zwei Spalten */
#page-konto { max-width: 1240px; columns: 2; column-gap: 18px; }
#page-konto > .page-head { column-span: all; }
#page-konto .panel { max-width: none; break-inside: avoid; }

/* ---------- Anmeldung ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(460px, 100%); padding: 40px 34px; text-align: center; display: grid; gap: 16px; justify-items: center;
  border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(20, 22, 29, 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); animation: pop 0.5s var(--ease);
}
.login-card img { width: 76px; height: 76px; filter: drop-shadow(0 12px 28px rgba(246, 185, 59, 0.45)); }
.login-card h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.login-card p { margin: 0; color: var(--muted); }
.login-card .notice { color: var(--text); text-align: left; }
.hint { font-size: 14px; }
.dev-login { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); width: 100%; }
.dev-login .row { display: flex; gap: 8px; }
.dev-login input { flex: 1; min-width: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: rgba(10, 11, 16, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-inner { max-width: 1480px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; flex: none; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(246, 185, 59, 0.35)); transition: transform 0.3s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; padding: 9px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.tabs a.active { color: var(--text); }
/* Strich unter dem aktiven Reiter */
.tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.tabs a.active::after { transform: scaleX(1); }
.tabbar { display: none; }
.search { margin-left: auto; flex: 0 1 360px; min-width: 0; }
.search input {
  width: 100%; min-height: 42px; border-radius: 999px; padding: 0 18px 0 44px; background-color: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ea4b6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center; background-size: 18px;
}
.search input:focus { background-color: rgba(255, 255, 255, 0.1); }
.me { display: flex; align-items: center; gap: 12px; flex: none; }
.me > a { display: flex; align-items: center; }
.me a { color: var(--muted); font-size: 14px; }
.me a:hover { color: var(--text); }
.me .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); transition: box-shadow 0.15s; }
.me a:hover .avatar { box-shadow: 0 0 0 2px var(--accent); }
/* Glocke für Hinweise, mit Zähler für Ungelesenes */
.me .bell { position: relative; width: 38px; height: 38px; justify-content: center; border-radius: 50%; font-size: 20px; text-decoration: none; }
.bell:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.bell-dot { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--grad); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Seiten ---------- */
.page { padding-top: 30px; padding-bottom: 56px; min-height: 60dvh; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; animation: rise 0.4s var(--ease) backwards; }
.page-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.has-spot > .page-head { display: none; } /* über dem großen Titelbild braucht es keine Überschrift */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.toolbar label.check { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; color: var(--muted); user-select: none; }
.toolbar label.check:hover { color: var(--text); }
.toolbar input[type="number"] { width: 100px; }
/* Schalter statt Kästchen ("Gesehene ausblenden", "Mich auch zeigen" …) */
.toolbar > label.check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--line-2); transition: background 0.2s, border-color 0.2s;
}
.toolbar > label.check input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform 0.2s var(--ease), background 0.2s; }
.toolbar > label.check input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.toolbar > label.check input[type="checkbox"]:checked::after { transform: translateX(16px); background: var(--accent-ink); }
.section { margin-top: 38px; animation: rise 0.45s var(--ease) backwards; }
.section > h2 { font-size: 22px; font-weight: 750; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.section > h2::before { content: ""; align-self: center; width: 4px; height: 0.95em; border-radius: 3px; background: var(--grad); }
.section > h2 small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.more { display: grid; place-items: center; margin-top: 28px; }
.row-loading { margin: 0; min-height: 300px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* KI-Suche auf der Stöbern-Seite */
.ai-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 14px 40px -24px rgba(246, 185, 59, 0.7); }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ai-box input { flex: 1 1 260px; min-width: 0; background: var(--bg); }
.ai-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.ai-head h2 { font-size: 22px; overflow-wrap: anywhere; }

/* Name einer Reihe = Link auf die Seite mit allen Titeln */
.row-link { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; transition: color 0.15s; }
.row-arrow { color: var(--muted); font-size: 1.15em; transition: transform 0.2s var(--ease), color 0.15s; }
.row-link:hover { color: var(--accent); }
.row-link:hover .row-arrow { color: var(--accent); transform: translateX(5px); }
.crumb { margin: 0 0 12px; }
.crumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--text); }

/* ---------- Großes Titelbild auf "Entdecken" ---------- */
.spot { touch-action: pan-y; position: relative; isolation: isolate; height: clamp(400px, 56vh, 600px); margin-bottom: 26px; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px #000; animation: fade 0.6s both; }
.spot-bg { position: absolute; inset: 0; z-index: -2; background: center 18% / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.spot-bg.on { opacity: 1; animation: drift 10s ease-out both; }
.spot-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.78) 30%, rgba(10, 11, 16, 0.12) 68%, transparent), linear-gradient(0deg, rgba(10, 11, 16, 0.92) 0%, transparent 46%); }
.spot-body { position: absolute; left: 48px; bottom: 52px; width: min(600px, calc(100% - 96px)); }
.spot-body.in > * { animation: rise 0.55s var(--ease) backwards; }
.spot-body.in > :nth-child(2) { animation-delay: 0.06s; }
.spot-body.in > :nth-child(3) { animation-delay: 0.12s; }
.spot-body.in > :nth-child(4) { animation-delay: 0.18s; }
.spot-body.in > :nth-child(5) { animation-delay: 0.24s; }
.spot h2 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.spot .facts { margin-top: 14px; font-size: 16px; color: #d0d4e0; }
.spot-text { margin: 12px 0 0; color: #d0d4e0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.spot .actions { margin-top: 22px; }
.spot .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.seen-tag { color: var(--seen); font-weight: 600; }
.spot-soon { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #ffb066; background: rgba(13, 14, 18, 0.72); box-shadow: 0 0 0 1px rgba(255, 176, 102, 0.45); }
.spot-soon .ico { width: 16px; height: 16px; }
.spot-dots { position: absolute; right: 32px; bottom: 30px; display: flex; gap: 8px; }
.spot-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.35s var(--ease), background 0.2s; }
.spot-dots button:hover { background: rgba(255, 255, 255, 0.7); }
.spot-dots button[aria-current="true"] { width: 30px; background: var(--accent); }

/* ---------- Poster-Raster und waagerechte Reihen ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-w); gap: 16px; overflow-x: auto; padding: 10px 6px 14px; margin: -10px -6px 0;
  scroll-snap-type: x proximity; scroll-padding: 0 6px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 56px), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
/* Am Anfang bzw. Ende der Reihe keinen weichen Rand */
.rail-wrap.at-start .rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.rail-wrap.at-end .rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.rail-wrap.at-start.at-end .rail { -webkit-mask-image: none; mask-image: none; }
.rail-btn {
  position: absolute; z-index: 2; top: calc(10px + var(--rail-w) * 0.75); width: 46px; height: 46px; padding: 0 0 4px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(20, 22, 29, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 28px; line-height: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(-50%) scale(0.9); transition: opacity 0.2s, transform 0.2s var(--ease), background 0.15s;
}
.rail-btn.prev { left: -14px; }
.rail-btn.next { right: -14px; }
.rail-wrap:hover .rail-btn, .rail-btn:focus-visible { opacity: 1; transform: translateY(-50%); }
.rail-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rail-wrap.at-start .rail-btn.prev, .rail-wrap.at-end .rail-btn.next { opacity: 0; pointer-events: none; }
@media (hover: none) { .rail-btn { display: none; } }

.card { min-width: 0; cursor: pointer; border-radius: var(--radius); display: flex; flex-direction: column; animation: rise 0.45s var(--ease) backwards; }
/* Poster erscheinen kurz nacheinander */
.card:nth-child(2) { animation-delay: 0.03s; } .card:nth-child(3) { animation-delay: 0.06s; } .card:nth-child(4) { animation-delay: 0.09s; }
.card:nth-child(5) { animation-delay: 0.12s; } .card:nth-child(6) { animation-delay: 0.15s; } .card:nth-child(7) { animation-delay: 0.18s; }
.card:nth-child(8) { animation-delay: 0.21s; } .card:nth-child(9) { animation-delay: 0.24s; } .card:nth-child(10) { animation-delay: 0.27s; }
/* Knopf unter einer Karte (z. B. Stimmen auf der Gruppen-Watchlist): so breit wie das Poster, in einer Zeile unten bündig */
.card > .btn { margin-top: auto; width: 100%; min-width: 0; padding: 0 8px; overflow: hidden; }
.card-sub:has(+ .btn) { margin-bottom: 8px; }
.poster {
  flex: none; position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-3), var(--surface)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 24px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}
.poster > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease), filter 0.3s; }
/* dunkler Verlauf unten, damit die Schnellknöpfe lesbar sind */
.poster::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 9, 13, 0.85)); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
@media (hover: hover) {
  .card:hover .poster { transform: translateY(-6px); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 75%, transparent), 0 24px 44px -14px rgba(0, 0, 0, 0.95), 0 0 40px -12px rgba(246, 185, 59, 0.45); }
  .card:hover .poster > img { transform: scale(1.05); }
  .card:hover .poster::after, .card:focus-within .poster::after { opacity: 1; }
  .card:hover .card-title { color: var(--accent); }
}
.noposter { height: 100%; display: grid; place-items: center; padding: 12px; text-align: center; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.card.is-seen .poster > img { filter: saturate(0.5) brightness(0.68); }
.card-title { margin-top: 10px; font-weight: 650; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s; }
.card-sub { margin-top: 3px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-variant-numeric: tabular-nums; }
.card-sub .star { color: var(--accent); }

.badges { position: absolute; z-index: 1; inset: 8px 8px auto 8px; display: flex; justify-content: space-between; align-items: start; gap: 6px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(10, 11, 16, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.badge.seen { color: var(--seen); }
.badge.want { color: var(--want); }
.badge.votes { color: var(--accent); }
.badge.prog { color: var(--accent); }
.friends-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: auto; }
.friends-on { display: flex; }
.friends-on .avatar { box-shadow: 0 0 0 2px var(--seen), 0 0 0 3.5px rgba(13, 14, 18, 0.9); margin-left: -4px; }
.friends-on.want .avatar { box-shadow: 0 0 0 2px var(--want), 0 0 0 3.5px rgba(13, 14, 18, 0.9); }
.friends-on .avatar:first-child { margin-left: 0; }

/* "Noch nicht verfügbar": Uhr-Symbol unten links auf dem Poster */
.soon { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffb066; background: rgba(13, 14, 18, 0.9); box-shadow: 0 0 0 1px rgba(255, 176, 102, 0.45); transition: opacity 0.15s; }
.soon .ico { width: 16px; height: 16px; }
.soon span:last-child { display: none; } /* nur das Symbol – der Text passt nicht auf schmale Poster; er steht im Tooltip */
@media (hover: hover) { .card:hover .soon, .card:focus-within .soon { opacity: 0; } } /* macht den Schnellknöpfen Platz */

.quick { position: absolute; z-index: 1; inset: auto 8px 8px 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.25s var(--ease); }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
.quick button { flex: 1; min-height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(13, 14, 18, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center; transition: background 0.15s, transform 0.15s; }
.quick button:hover { background: var(--surface-3); transform: scale(1.05); }
.quick button[aria-pressed="true"].q-seen { background: var(--seen); border-color: var(--seen); color: #06281a; }
.quick button[aria-pressed="true"].q-want { background: var(--want); border-color: var(--want); color: #06183a; }
@media (hover: none) { .quick { display: none; } }

/* ---------- Detailfenster ---------- */
.detail {
  width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px;
  background: var(--surface); color: var(--text); overflow: auto; overscroll-behavior: contain; box-shadow: 0 50px 120px -20px #000;
}
.detail[open] { animation: pop 0.3s var(--ease); }
.detail::backdrop { background: rgba(5, 6, 9, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.25s; }
.detail-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(13, 14, 18, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; font-size: 18px; line-height: 1; transition: background 0.15s, transform 0.2s var(--ease); }
.detail-close:hover { background: var(--surface-3); transform: rotate(90deg); }
.hero { height: 360px; background: var(--surface-2) center 22% / cover no-repeat; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.detail-body { position: relative; margin-top: -150px; padding: 0 36px 36px; }
.detail-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 0 28px; align-items: end; }
.detail-top > .poster { grid-row: 1 / span 2; }
.detail-top > .actions { grid-column: 2; }
.detail-top .poster { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px -10px rgba(0, 0, 0, 0.9); }
.detail-top h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.facts { margin: 10px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.facts .star { color: var(--accent); font-weight: 700; }
/* Bewertungen im Detailfenster: TMDB, IMDb, Rotten Tomatoes, Metacritic */
.scores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.scores:empty { display: none; }
.score { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; font-variant-numeric: tabular-nums; animation: fade 0.4s; transition: border-color 0.15s, transform 0.15s var(--ease); }
.score { white-space: nowrap; }
.score small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.score b { font-size: 17px; }
.score.tmdb small { color: #5bc6e8; }
.score.imdb small { color: #f5c518; }
.score.rt.fresh small { color: #ff6a4d; }
.score.rt.rotten small { color: #9bc53d; }
.score.meta small { color: #c9a0ff; }
a.score:hover { border-color: var(--accent); transform: translateY(-1px); }
.tagline { margin: 8px 0 0; font-style: italic; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.my { margin-top: 26px; padding: 18px; border-radius: 16px; background: rgba(10, 11, 16, 0.6); border: 1px solid var(--line); display: grid; gap: 14px; }
.my-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.my-row > span:first-child { min-width: 118px; color: var(--muted); font-size: 14px; }
.stars { display: inline-flex; }
.stars button { width: 32px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; color: #454a5c; transition: color 0.1s, transform 0.15s var(--ease); }
.stars button .ico { width: 26px; height: 26px; }
.stars button.on { color: var(--accent); }
.stars:hover button { color: var(--accent); }
.stars button:hover { transform: scale(1.2); }
.stars button:hover ~ button { color: #454a5c; }
.stars-value { min-width: 3.5ch; font-weight: 700; font-variant-numeric: tabular-nums; }
.overview { margin: 24px 0 0; max-width: 72ch; font-size: 17px; line-height: 1.6; color: #dcdfe8; }
.detail h3 { font-size: 19px; margin: 32px 0 12px; }
.detail h3 small { font-size: 14px; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.person b { font-weight: 600; }
.person .seen { color: var(--seen); }
.person .want { color: var(--want); }
.person .star { color: var(--accent); font-weight: 700; }
.cast { display: grid; grid-auto-flow: column; grid-auto-columns: 116px; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; }
.cast a { text-decoration: none; border-radius: 12px; }
.cast img, .cast .nophoto { width: 116px; height: 156px; object-fit: cover; border-radius: 12px; background: var(--surface-2); display: block; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.cast a:hover img, .cast a:hover .nophoto { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 14px 24px -10px #000; }
.cast a:hover figcaption { color: var(--accent); }
.cast figure { margin: 0; font-size: 13px; }
.cast figcaption { margin-top: 8px; line-height: 1.3; font-weight: 600; }
.cast figcaption span { display: block; color: var(--muted); font-weight: 400; }
.coll { margin: 8px 0 0; }
.coll a, .facts a { text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.coll a:hover, .facts a:hover { color: var(--accent); }
.providers { display: grid; gap: 10px; }
.providers div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.providers div > span { min-width: 76px; color: var(--muted); font-size: 14px; }
.providers img { width: 46px; height: 46px; border-radius: 11px; display: block; }
.prov { display: block; border-radius: 12px; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.15s; }
.prov:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 2px var(--accent), 0 10px 20px -8px #000; }
.prov-hint { margin: 10px 0 0; font-size: 13px; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); animation: fade 0.4s both; }

/* Folgen einer Serie */
.ep-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; max-width: 420px; }
.ep-bar span { display: block; height: 100%; background: var(--seen); border-radius: 3px; }
.detail .toolbar { margin-bottom: 10px; }
.ep-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 11, 16, 0.6); max-height: 380px; overflow-y: auto; }
.ep-list li + li { border-top: 1px solid var(--line); }
.ep { display: grid; grid-template-columns: auto 2.5ch minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.ep:hover { background: rgba(255, 255, 255, 0.04); }
.ep input { width: 18px; height: 18px; accent-color: var(--seen); }
.ep-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ep-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep.future { cursor: default; }
.ep.future .ep-name { color: var(--muted); }

/* Trakt-Abschnitt */
.panel .notice { margin-bottom: 14px; background: var(--bg); }
.panel .toolbar { margin-bottom: 14px; }
.panel label.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-right: 8px; }
.panel input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Profil, Freunde, Aktivitäten ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--accent) 70%, transparent); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; max-width: 1040px; }
.stat { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%), var(--surface); border: 1px solid var(--line); transition: transform 0.2s var(--ease), border-color 0.15s; animation: rise 0.45s var(--ease) backwards; }
.stat:nth-child(2) { animation-delay: 0.04s; } .stat:nth-child(3) { animation-delay: 0.08s; } .stat:nth-child(4) { animation-delay: 0.12s; } .stat:nth-child(5) { animation-delay: 0.16s; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); opacity: 0.85; }
.stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.stat b { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.friends-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.friends-cols > .section { margin-top: 0; }
.friends-cols .members { grid-template-columns: 1fr; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.member { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s var(--ease), border-color 0.15s, background 0.15s; }
.member:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--surface-2); transform: translateY(-2px); }
.member .avatar.l { width: 56px; height: 56px; font-size: 22px; }
.member b { display: block; }
.member span { color: var(--muted); font-size: 14px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.feed li:hover { background: var(--surface); }
.feed button { all: unset; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.feed button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feed time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed .star { color: var(--accent); font-weight: 700; }

/* Feed auf der Freunde-Seite und Hinweise */
.feed-section { margin-top: 0; max-width: 860px; }
.feed-day { margin: 26px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.feed-day:first-child { margin-top: 0; }
.feed-item { position: relative; overflow: hidden; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 14px 12px 16px; margin-bottom: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.2s var(--ease), border-color 0.15s, background 0.15s; animation: rise 0.4s var(--ease) backwards; }
.feed-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--seen); }
.feed-item.want::before { background: var(--want); }
.feed-item:hover { transform: translateX(3px); border-color: var(--line-2); background: var(--surface-2); }
.feed-item.unread { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.feed-poster { all: unset; cursor: pointer; display: block; width: 64px; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; background: var(--surface-2); box-shadow: 0 6px 14px -6px #000; }
.feed-poster:focus-visible, .feed-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feed-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-poster .noposter { font-size: 10px; padding: 4px; }
.feed-who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.feed-who a { font-weight: 700; text-decoration: none; }
.feed-who a:hover { text-decoration: underline; }
.feed-who time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed-body p { margin: 4px 0; overflow-wrap: anywhere; font-size: 17px; }
.feed-title { all: unset; cursor: pointer; font-weight: 700; }
/* Titel mitten im Satz ("hat … gesehen"): als Fließtext, damit lange Titel umbrechen statt eine eigene Zeile zu erzwingen */
span.feed-title { display: inline; overflow-wrap: anywhere; }
.feed-title:hover { color: var(--accent); }
.feed-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.feed-meta .star { color: var(--accent); font-weight: 700; }
.new-tag { padding: 1px 8px; border-radius: 999px; background: var(--grad); color: var(--accent-ink); font-size: 11px; font-weight: 800; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Person und Filmreihe ---------- */
.person-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 28px; animation: rise 0.4s var(--ease) backwards; }
.person-head img, .person-head .nophoto { width: 190px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; background: var(--surface-2); display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -20px #000; }
.person-head h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.person-head p { margin: 12px 0 0; }
.person-head p:last-child { color: var(--muted); }
.bio { max-width: 75ch; white-space: pre-line; color: #dcdfe8; }
.bio.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
button.link { all: unset; cursor: pointer; margin-top: 4px; color: var(--accent); font-weight: 600; }
button.link:hover { text-decoration: underline; }
button.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.progress { height: 10px; max-width: 560px; margin-bottom: 20px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2fa775, var(--seen)); transition: width 0.5s var(--ease); }
.coll-text { margin: 0 0 26px; color: var(--muted); }

/* ---------- Jahresrückblick ---------- */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; max-width: 860px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.bar { display: grid; grid-template-rows: 18px 150px auto; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.bar-n { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.bar-track { display: flex; align-items: flex-end; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar-fill { width: 100%; background: linear-gradient(0deg, var(--accent-2), #ffd166); border-radius: 8px 8px 0 0; transform-origin: bottom; animation: grow 0.7s var(--ease) backwards; }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes growx { from { transform: scaleX(0); } to { transform: none; } }
.hbars { display: grid; gap: 10px; max-width: 860px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-user { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.hbar-user:hover { color: var(--accent); }
.hbar-track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, #ffd166, var(--accent-2)); transform-origin: left; animation: growx 0.7s var(--ease) backwards; }
.hbar-n { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 0; max-width: none; }
button.fact { font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.fact:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
button.fact:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fact b { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin: 6px 0; overflow-wrap: anywhere; }
.review-note { margin: 28px 0 0; font-size: 14px; max-width: 80ch; }

/* ---------- Filmabend ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--muted); transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-1px); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: 0 6px 18px -10px rgba(246, 185, 59, 0.8); }
.pick { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; margin-bottom: 8px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); box-shadow: 0 24px 60px -30px rgba(246, 185, 59, 0.7); animation: pop 0.45s var(--ease); }
.pick h2 { font-size: 30px; font-weight: 800; margin: 4px 0 6px; }

/* ---------- Begrüßung beim ersten Besuch ---------- */
.welcome { width: min(580px, calc(100vw - 24px)); padding: 32px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 50px 120px -20px #000; }
.welcome[open] { animation: pop 0.3s var(--ease); }
.welcome::backdrop { background: rgba(5, 6, 9, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.welcome h2 { font-size: 28px; font-weight: 800; }
.welcome p { margin: 10px 0 18px; }
.welcome .chips { margin-bottom: 4px; }
.welcome .actions { margin-top: 4px; }

.foot { margin-top: 20px; padding-top: 24px; padding-bottom: 36px; color: var(--muted); font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.foot p { margin: 0; max-width: 80ch; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 14px; background: rgba(39, 43, 55, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); font-weight: 600; animation: toast-in 0.3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }
.toast.error { border-color: var(--danger); }

/* ---------- Lade-Platzhalter ---------- */
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }
.skel { pointer-events: none; }
.skel .card { animation: none; }
.skel .poster, .sk-line { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%) 0 0 / 250% 100%; animation: shimmer 1.4s linear infinite; box-shadow: none; }
.sk-line { height: 12px; margin-top: 12px; border-radius: 6px; width: 85%; }
.sk-line.short { width: 45%; margin-top: 8px; }
.rail.skel { overflow: hidden; }

/* ---------- Kleines Fenster (Zusammen gesehen, Listen) ---------- */
.panel .panel-row + .actions { margin-top: 12px; }
.panel > .actions { margin-top: 0; }
.sheet .my-row { margin-bottom: 14px; }
.sheet-form { display: grid; gap: 14px; }
.sheet-form input[type="text"] { width: 100%; background: var(--bg); }
.sheet label.check, .comment-form label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.sheet input[type="checkbox"], .comment-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.chip small { font-weight: 400; color: var(--muted); }

/* ---------- Filmabend: Vorschlag und Protokoll ---------- */
.pick-spot { height: clamp(360px, 46vh, 480px); margin: 4px 0 8px; animation: pop 0.5s var(--ease); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 40px 80px -40px rgba(246, 185, 59, 0.5); }
.pick-spot .spot-bg { animation: none; }
.nights { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.nights > .more { grid-column: 1 / -1; }
.night { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.2s var(--ease); }
.night:hover { border-color: var(--line-2); transform: translateY(-2px); }
.night .feed-poster { width: 72px; }
.night-body { display: grid; gap: 4px; min-width: 0; }
.night-body time { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.night-body .feed-title { font-size: 18px; overflow-wrap: anywhere; }
.night-who { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 14px; color: var(--muted); }
.night-who .avatar { margin-right: -5px; box-shadow: 0 0 0 2px var(--surface); }
.night-who span:last-child { margin-left: 12px; }
.night .link { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Eigene Listen ---------- */
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.list-card { display: block; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.15s, box-shadow 0.25s; animation: rise 0.45s var(--ease) backwards; }
.list-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 24px 44px -20px #000; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 8 / 3; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage.n1 { grid-template-columns: 1fr; } .collage.n2 { grid-template-columns: repeat(2, 1fr); } .collage.n3 { grid-template-columns: repeat(3, 1fr); }
.list-info { padding: 14px 16px 16px; display: grid; gap: 6px; }
.list-info b { font-size: 18px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.list-info span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

/* ---------- "Meine Liste": Suche und kompakte Ansicht ---------- */
.list-search { flex: 0 1 240px; min-width: 150px; }
.list-count { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.rows { display: grid; gap: 6px; max-width: 980px; }
.row-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.row-item:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateX(3px); }
.row-item img, .row-noposter { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--surface-3); display: block; }
.row-title { display: grid; min-width: 0; }
.row-title b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-rating { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.row-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }

/* ---------- Reaktionen und Kommentare im Feed ---------- */
.react-bar { display: flex; gap: 6px; margin-top: 8px; }
.react { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s var(--ease); }
.react:hover { color: var(--text); border-color: var(--line-2); }
.react:active { transform: scale(0.94); }
.react.on { color: #ff6b8b; border-color: color-mix(in srgb, #ff6b8b 55%, var(--line)); background: color-mix(in srgb, #ff6b8b 12%, transparent); }
.react.open { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.thread { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.comment .avatar { margin-top: 2px; }
.comment-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
.comment-head time { color: var(--muted); }
.comment-head .link { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.comment span { overflow-wrap: anywhere; }
.spoiler { filter: blur(5px); cursor: pointer; user-select: none; transition: filter 0.2s; }
.spoiler.shown { filter: none; cursor: auto; user-select: auto; }
.spoiler-tag { padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 700; }
.comment-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.comment-form input[type="text"] { flex: 1 1 200px; min-width: 0; min-height: 36px; background: var(--bg); font-size: 15px; }
.comment-form label.check { font-size: 13px; }
.feed-item:has(.thread):hover { transform: none; }
.people-row { margin-top: 0; }

/* ---------- Hintergrund der Anmeldeseite ---------- */
.login { position: relative; overflow: hidden; }
.login-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; animation: fade 1.2s 0.2s forwards; -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 18%, #000 75%); mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 18%, #000 75%); }
.login-wall-grid { position: absolute; left: 50%; top: 50%; width: 170vmax; display: grid; grid-template-columns: repeat(14, 1fr); gap: 12px; transform: translate(-50%, -50%) rotate(-10deg); filter: saturate(0.85) brightness(0.42); }
.login-wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; display: block; }
.login-card { position: relative; z-index: 1; }

/* ---------- Trailer-Seite ---------- */
/* Jeder Trailer füllt den Bereich unter der Leiste; das Raster rastet beim Scrollen auf dem nächsten ein. */
body.on-trailer { overflow: hidden; }
body.on-trailer .foot { display: none; }
#page-trailer { position: relative; height: calc(100dvh - var(--nav-h)); }
/* overflow-anchor: none – sonst hält der Browser beim Nachladen den Lade-Hinweis im Bild statt des ersten Trailers */
.sh-feed { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; overflow-anchor: none; }
.sh-feed::-webkit-scrollbar { display: none; }
.sh { position: relative; isolation: isolate; overflow: hidden; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px 76px; gap: 30px; align-items: center; padding: 84px max(32px, calc((100vw - 1700px) / 2)) 30px; }
/* unscharfes Standbild als Stimmungslicht hinter dem Trailer */
.sh-bg { position: absolute; inset: -60px; z-index: -1; background: center / cover no-repeat; filter: blur(60px) brightness(0.4) saturate(1.4); opacity: 0.75; }
.sh-stage { display: grid; place-items: center; height: 100%; min-width: 0; min-height: 0; }
.sh-video { position: relative; width: min(100%, calc((100dvh - var(--nav-h) - 114px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px -30px #000; }
.sh-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Der eine Player für alle Trailer: liegt über dem Standbild der aktuellen Karte, nimmt keine Klicks an
   und ist nur sichtbar, solange er spielt und nicht gerade gescrollt wird */
.sh-player { position: absolute; z-index: 3; overflow: hidden; border-radius: 22px; background: #000; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
/* Kurz verzögert einblenden: so ist das Abspiel-Symbol, das YouTube beim Start in der Mitte zeigt, schon wieder weg */
.sh-player.on:not(.away) { opacity: 1; transition: opacity 0.3s 0.7s; }
.sh-player.away { transition: none; }
/* Der Player ist dreimal so hoch wie sein Fenster und nach oben verschoben: Das Video bleibt in der Mitte gleich groß,
   aber die Einblendungen von YouTube am oberen und unteren Rand (Titel, "Weitere Videos", Logo) liegen außerhalb und sind abgeschnitten */
.sh-player iframe { position: absolute; left: 0; top: -100%; width: 100%; height: 300%; border: 0; display: block; }
/* Ladebalken am unteren Rand des Standbilds, bis der Trailer eingeblendet wird */
@keyframes sh-load { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.sh.starting:not(.paused):not(.broken) .sh-video::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30%; height: 3px; border-radius: 3px; background: var(--grad); animation: sh-load 1.1s linear infinite; }
.sh-tap { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sh-pause { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 38px; background: rgba(10, 11, 16, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.2s var(--ease); }
.sh.paused .sh-pause { opacity: 1; transform: none; }
.sh-broken { display: none; position: absolute; inset: 0; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; background: rgba(10, 11, 16, 0.86); }
.sh-broken p { margin: 0; }
.sh.broken .sh-broken { display: grid; }
.sh-info { min-width: 0; animation: rise 0.5s var(--ease) backwards; }
.sh-info h2 { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; overflow-wrap: anywhere; }
.sh-info .facts { margin-top: 12px; }
.sh-text { margin: 14px 0 0; color: #d5d8e2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.sh-actions { display: grid; gap: 16px; justify-items: center; }
.sh-act { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); font-size: 12.5px; font-weight: 600; }
.sh-act .ico { width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.2s var(--ease), background 0.15s, color 0.15s, border-color 0.15s; }
.sh-act:hover .ico { transform: scale(1.1); background: rgba(255, 255, 255, 0.2); }
.sh-act:active .ico { transform: scale(0.92); }
.sh-act.want.on .ico { background: var(--want); border-color: var(--want); color: #06183a; }
.sh-act.seen.on .ico { background: var(--seen); border-color: var(--seen); color: #06281a; }
/* Filter schweben oben über dem Trailer */
.sh-bar { position: absolute; z-index: 5; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(10, 11, 16, 0.66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; }
.sh-bar .seg, .sh-bar select { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.sh-bar select { max-width: 190px; }
.sh-nav { position: absolute; z-index: 5; right: 26px; bottom: 26px; display: grid; gap: 10px; }
.sh-nav button { width: 48px; height: 48px; padding: 12px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: rgba(20, 22, 29, 0.8); border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.15s, color 0.15s; }
.sh-nav button:hover { background: var(--accent); color: var(--accent-ink); }
.sh-nav .ico { width: 100%; height: 100%; }
.sh-up .ico { transform: rotate(180deg); }
.sh-wait { display: grid; grid-template-columns: 1fr; place-items: center; }
.sh-end { display: grid; gap: 12px; justify-items: center; text-align: center; }
.sh-end p { margin: 0; }

/* ---------- Große Bildschirme ---------- */
@media (min-width: 1700px) {
  :root { --rail-w: 196px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
}

/* ---------- Schmaler PC / Tablet ---------- */
@media (max-width: 1100px) {
  .nav-inner { gap: 16px; padding: 0 20px; }
  .wrap { padding: 0 20px; }
  .tabs a { padding: 9px 10px; }
  .tabs a::after { left: 10px; right: 10px; }
  .friends-cols { grid-template-columns: 1fr; gap: 0; }
  .friends-cols > .section + .section { margin-top: 34px; }
  .friends-cols .members { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  #page-konto { columns: 1; }
  .sh { grid-template-columns: minmax(0, 1fr) 260px 68px; gap: 20px; padding-left: 20px; padding-right: 20px; }
  .sh-info h2 { font-size: 27px; }
  .sh-text { -webkit-line-clamp: 6; line-clamp: 6; }
  .spot-body { left: 30px; bottom: 44px; width: min(560px, calc(100% - 60px)); }
}

/* ---------- Handy ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 60px; --rail-w: 132px; }
  .nav-inner { gap: 12px; padding: 0 14px; }
  .brand span { display: none; }
  .me { gap: 8px; }
  .me a:last-child { display: none; } /* "Abmelden" steht auf dem Handy in der Fußzeile; das Profilbild bleibt */
  /* Auf dem Handy stehen die Reiter als eigene Leiste am unteren Rand (nicht in der oberen Leiste) */
  .tabs { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 11, 16, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 12px; font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color 0.15s; }
  .tabbar svg { width: 23px; height: 23px; display: block; transition: transform 0.25s var(--ease); }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active svg { transform: translateY(-1px) scale(1.12); }
  .search { flex: 1; }
  .search input { min-height: 40px; }
  /* Platz unter dem Inhalt, damit die Leiste unten nichts verdeckt */
  #app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wrap { padding-left: 14px; padding-right: 14px; } /* nur die Seitenränder – der Abstand nach oben und unten bleibt */
  .page { padding-top: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
  .rail { gap: 10px; -webkit-mask-image: none !important; mask-image: none !important; }
  .card-title { font-size: 14px; margin-top: 8px; }
  .page-head h1 { font-size: 27px; }
  .section { margin-top: 30px; }
  .section > h2 { font-size: 19px; }
  .row-loading { min-height: 220px; }
  .spot { height: 430px; border-radius: 20px; margin-bottom: 20px; }
  .spot-bg { background-position: center top; }
  .spot-shade { background: linear-gradient(0deg, rgba(10, 11, 16, 0.97) 8%, rgba(10, 11, 16, 0.75) 42%, transparent 78%); }
  .spot-body { left: 18px; bottom: 40px; width: calc(100% - 36px); }
  .spot h2 { font-size: 30px; }
  .spot .facts { font-size: 14px; margin-top: 10px; }
  .spot-text { -webkit-line-clamp: 2; line-clamp: 2; font-size: 15px; }
  .spot .actions { margin-top: 16px; }
  .spot .btn { min-height: 44px; padding: 0 16px; font-size: 15px; flex: 1; }
  .spot-dots { right: auto; left: 18px; bottom: 16px; }
  .hero { height: 220px; }
  .detail { border-radius: 18px; }
  .detail-body { margin-top: -80px; padding: 0 16px 22px; }
  .detail-top { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; gap: 0 14px; }
  .detail-top > .poster { grid-row: 1; }
  .detail-top > .actions { grid-column: 1 / -1; margin-top: 16px; }
  .detail-top > .actions .btn { flex: 1 1 calc(50% - 4px); padding: 0 10px; }
  .detail-top h2 { font-size: 23px; }
  .overview { font-size: 16px; }
  .my-row > span:first-child { min-width: 100%; }
  .stars button { width: 27px; }
  .stars button .ico { width: 23px; height: 23px; }
  .cast { grid-auto-columns: 100px; gap: 10px; }
  .cast img, .cast .nophoto { width: 100px; height: 134px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat b { font-size: 26px; }
  .pick { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .pick h2 { font-size: 21px; }
  .person-head { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .person-head img, .person-head .nophoto { width: 104px; border-radius: 14px; }
  .person-head h1 { font-size: 25px; }
  .bars { gap: 3px; padding: 12px 8px; }
  .bar { font-size: 10px; grid-template-rows: 16px 100px auto; }
  .hbar { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; gap: 8px; }
  .feed-item { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 10px 12px 10px 14px; }
  .feed-poster { width: 54px; }
  .feed-body p { font-size: 16px; }
  .login-card { padding: 32px 22px; }

  /* --- Maße fürs Handy: aufgeräumte Raster statt ausgefranster Zeilen --- */
  /* Filterleisten: zwei gleich breite Spalten; Umschalter mit drei Feldern, Suchfeld und Schalter über die ganze Breite */
  .page .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 20px; }
  .page .toolbar > * { min-width: 0; width: 100%; }
  .page .toolbar > .seg { display: flex; }
  .page .toolbar > .seg button { flex: 1; padding: 0 6px; }
  .page .toolbar > .seg:has(button:nth-child(3)), .page .toolbar > label.check, .page .toolbar > .list-search, .page .toolbar > :only-child { grid-column: 1 / -1; }
  .page .toolbar > label.check { min-height: 32px; }
  .page .toolbar .dropdown summary { width: 100%; }
  .page .toolbar > .dropdown:nth-child(even) .menu { left: auto; right: 0; }
  .page .toolbar input[type="number"] { width: 100%; }
  .page .toolbar > .list-count { text-align: right; }
  select, input[type="number"], input[type="date"], input[type="text"], input:not([type]), .dropdown summary, .btn { min-height: 40px; }
  /* Statistik: fünf schmale Kacheln in einer Zeile statt zwei Spalten mit Lücke */
  .stats:not(.facts-grid) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
  .stats:not(.facts-grid) .stat { padding: 13px 3px 10px; border-radius: 12px; text-align: center; }
  .stats:not(.facts-grid) .stat::before { inset: 0 0 auto; width: auto; height: 3px; }
  .stats:not(.facts-grid) .stat b { font-size: 21px; }
  .stats:not(.facts-grid) .stat span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 16px; }
  /* Kopfbereich: Knöpfe über die ganze Breite, auf "Meine Liste" drei nebeneinander */
  .page-head { gap: 12px; margin-bottom: 18px; }
  .page-head > .btn, .page-head > button { width: 100%; }
  .page-head > .head-actions { width: 100%; }
  .profile-head ~ .head-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .profile-head ~ .head-actions .btn { padding: 0 4px; font-size: 13px; gap: 5px; }
  .profile-head { gap: 14px; }
  .profile-head .avatar.l { width: 60px; height: 60px; font-size: 24px; }
  /* Titelbild auf "Entdecken": etwas niedriger, damit darunter schon die erste Reihe anfängt; Knöpfe nebeneinander */
  .spot { height: 392px; }
  .spot .actions { flex-wrap: nowrap; }
  .spot .btn { min-width: 0; padding: 0 10px; }
  .pick-spot .actions { flex-wrap: wrap; }
  /* Detailfenster: Knöpfe als Raster (Hauptknopf breit, die übrigen paarweise), Sterne in einer Zeile mit dem Wert */
  .detail-top > .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-top > .actions .btn { min-width: 0; padding: 0 6px; font-size: 14px; gap: 6px; }
  .detail-top > .actions .btn:first-child { grid-column: 1 / -1; font-size: 16px; min-height: 44px; }
  .detail-top > .actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
  .my { padding: 14px; margin-top: 20px; }
  .my-row { gap: 6px 8px; }
  /* Die Sterne teilen sich den Platz neben dem Wert – so bleibt beides auch auf schmalen Handys in einer Zeile */
  .my-row .stars { flex: 1 1 0; min-width: 0; }
  .stars button { flex: 1 1 0; min-width: 0; width: auto; max-width: 26px; }
  .stars button .ico { width: 100%; max-width: 22px; height: 22px; }
  .stars-value { flex: none; }
  .scores { gap: 6px; }
  .score { padding: 5px 9px; gap: 6px; }
  .score b { font-size: 16px; }
  .detail h3 { margin-top: 26px; }
  /* Folgenliste: Datum unter dem Titel, damit der Titel Platz hat */
  .ep { grid-template-columns: auto 2.2ch minmax(0, 1fr); gap: 2px 10px; padding: 9px 12px; }
  .ep-date { grid-column: 3; font-size: 12px; }
  .providers img { width: 42px; height: 42px; }
  /* Profil-Abschnitte */
  .panel { padding: 18px 16px; border-radius: 16px; margin-bottom: 14px; }
  .avatar.xl { width: 88px; height: 88px; font-size: 34px; }
  .panel .actions .btn { flex: 1 1 auto; }
  /* Feed und Filmabende */
  .feed-day { margin-top: 20px; }
  .react { min-height: 34px; padding: 0 12px; }
  .night { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .night .feed-poster { width: 60px; }
  .night-body .feed-title { font-size: 16.5px; }
  .chips { gap: 6px; }
  .chip.plain { padding: 8px 13px; }
  .empty { padding: 30px 18px; }
  .foot { font-size: 12.5px; }
  .login-wall-grid { grid-template-columns: repeat(12, 1fr); width: 190vmax; gap: 8px; }
  /* Trailer-Seite wie bei TikTok: Trailer in der Mitte, Titel unten links, runde Knöpfe rechts */
  body.on-trailer #app { padding-bottom: 0; }
  #page-trailer { height: calc(100dvh - var(--nav-h) - 66px - env(safe-area-inset-bottom)); }
  .sh { display: block; padding: 0; }
  .sh::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 0; pointer-events: none; background: linear-gradient(transparent, rgba(8, 9, 13, 0.92)); }
  .sh-bg { opacity: 1; filter: blur(40px) brightness(0.45) saturate(1.4); }
  .sh-stage { position: absolute; inset: 0; padding-bottom: 140px; } /* Trailer etwas über der Mitte: darunter ist Platz für vier Knöpfe */
  .sh-video { width: 100%; border-radius: 0; box-shadow: none; }
  .sh-player { border-radius: 0; }
  .sh-info { position: absolute; z-index: 1; left: 14px; right: 84px; bottom: 16px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
  .sh-info .eyebrow { font-size: 11.5px; }
  .sh-info h2 { margin-top: 6px; font-size: 23px; }
  .sh-info .facts { margin-top: 6px; font-size: 14px; color: #d5d8e2; }
  .sh-text { margin-top: 8px; font-size: 14.5px; -webkit-line-clamp: 2; line-clamp: 2; }
  .sh-actions { position: absolute; z-index: 1; right: 10px; bottom: 16px; gap: 9px; }
  .sh-act { gap: 4px; font-size: 10.5px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
  .sh-act .ico { width: 44px; height: 44px; padding: 11px; background: rgba(20, 22, 29, 0.6); }
  .sh-bar { top: 10px; left: 10px; right: 10px; transform: none; justify-content: space-between; padding: 6px; border-radius: 16px; }
  .sh-bar .seg button { padding: 0 12px; }
  .sh-bar select { flex: 1; min-width: 0; max-width: none; padding: 0 8px; }
  .sh-sound { padding: 0 12px; min-height: 40px; }
  .sh-sound span:last-child { display: none; }
  .sh-nav { display: none; }
  .tabbar a { font-size: 11px; }
  .pick-spot { height: 400px; }
  .pick-spot .btn { flex: 1 1 calc(50% - 4px); }
  .pick-spot .btn.primary { flex-basis: 100%; }
  .nights { grid-template-columns: 1fr; }
  .list-cards { grid-template-columns: 1fr; }
  .list-search { flex: 1 1 100%; }
  .list-count { margin-left: 0; }
  .row-item { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .row-item img, .row-noposter { width: 40px; }
  .row-date { display: none; }
}
/* Ohne Animationen: wenn das Gerät "Bewegung reduzieren" meldet oder in "Mein Profil" ausgeschaltet (prefs.js setzt die Klasse) */
.motion-off *, .motion-off *::before, .motion-off *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
