@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700&family=Inter:wght@400;500;600&display=swap');

/* Mobile-first: alles ist zuerst für ein schmales Handy (ab 320px) gebaut,
   größere Bildschirme (ab 700px) bekommen nur etwas mehr Luft. */

:root {
  --bg: #E7EEFA;
  --ink: #1A2442;
  --ink-soft: #5B6B8C;
  --card: #FFFFFF;
  --highlight: #8DB7FF;
  --primary: #2F6FED;
  --duck: #2F6FED;
  --duck-empty: #9DB4E0;
  --ok: #2E9E7A;
  --danger: #D1667A;
  --brand: #2F6FED;              /* Farbe des Waddle-Logos — bleibt in beiden Modi gleich */
  --link: #2F6FED;               /* Akzentfarbe für Text/Zahlen auf dem Hintergrund */
  --on-ink: #FFFFFF;             /* Schrift auf var(--ink)-Flächen (aktive Chips, Toast) */
  --surface-hover: #DBE6F8;
  --chip-bg: #5B6B8C;
  color-scheme: light;
  --radius-lg: 24px;
  --radius-md: 18px;

  /* Status-Farben */
  --st-started: #E8923C;
  --st-aborted: #D1667A;
  --st-resumed: #7A62D9;

  --gutter: 16px;
}

/* Dunkelmodus: explizit gewählt (data-theme="dark") oder "System" bei dunklem Gerät.
   Die Wahl wird pro Konto gemerkt (siehe theme.js und /api/settings). */
:root[data-theme="dark"] {
  --bg: #0E1424;
  --ink: #E8EDFA;
  --ink-soft: #9AA7C6;
  --card: #172038;
  --highlight: #35508F;
  --primary: #2F6FED;
  --duck: #5C93FF;
  --duck-empty: #3E5385;
  --ok: #34B38A;
  --danger: #E27A8E;
  --link: #7FA8FF;
  --on-ink: #0E1424;
  --surface-hover: #22304F;
  --chip-bg: #4E5F88;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
  --bg: #0E1424;
    --ink: #E8EDFA;
    --ink-soft: #9AA7C6;
    --card: #172038;
    --highlight: #35508F;
    --primary: #2F6FED;
    --duck: #5C93FF;
    --duck-empty: #3E5385;
    --ok: #34B38A;
    --danger: #E27A8E;
    --link: #7FA8FF;
    --on-ink: #0E1424;
    --surface-hover: #22304F;
    --chip-bg: #4E5F88;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%; /* iOS: Schrift nicht eigenmächtig vergrößern */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  /* Safe-Area: Notch / Home-Indicator des iPhones */
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  overscroll-behavior-y: none;
  overflow-wrap: break-word;
  touch-action: manipulation; /* kein Doppeltipp-Zoom-Verzögern */
}

body.sheet-open { overflow: hidden; }

h1, h2, .display { font-family: 'Baloo 2', sans-serif; font-weight: 700; margin: 0; }

.app { max-width: 560px; margin: 0 auto; min-width: 0; }

img { max-width: 100%; }

/* ---------- Top-Bar ---------- */

.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 0 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  transform: translateZ(0);
}

.brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
}

.brand-duck { width: 36px; height: auto; aspect-ratio: 25.4 / 21.6; color: var(--brand); flex-shrink: 0; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 19px;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) { .icon-btn:hover { background: var(--highlight); opacity: 1; } }

/* ---------- Buttons ---------- */

button, a.btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px; /* Mindest-Tippfläche */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

button i, a.btn i { font-size: 16px; line-height: 1; }
button:active:not(:disabled), a.btn:active { transform: scale(0.97); }
@media (hover: hover) { button:hover:not(:disabled), a.btn:hover { opacity: 0.9; } }
button:disabled { opacity: 0.45; cursor: default; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: var(--bg); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding-left: 10px; padding-right: 10px; }
.grow { flex: 1; min-width: 0; }

.section-label {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px 4px;
}

.card .section-label { margin-left: 0; }

.muted-note { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- Suche ---------- */

.search-wrap { position: relative; margin: 8px 0 20px; }

.search-wrap > i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* >= 16px, sonst zoomt iOS beim Fokussieren */
  padding: 16px 18px 16px 48px;
}

.search-input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.search-input:focus { outline: 2px solid var(--highlight); }

/* ---------- Titelzeilen ---------- */

.title-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  min-width: 0;
}

@media (hover: hover) { .title-row:hover { box-shadow: 0 4px 16px rgba(26, 36, 66, 0.08); } }
.title-row:active { transform: scale(0.99); }

.poster {
  width: 56px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
  display: block;
}

.poster-ph { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 22px; opacity: 0.6; }

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

.title-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.title-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.title-role { font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.title-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }

/* ---------- Chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  background: var(--chip-bg);
  white-space: nowrap;
}

.chip.st-started { background: var(--st-started); }
.chip.st-aborted { background: var(--st-aborted); }
.chip.st-resumed { background: var(--st-resumed); }
.chip-soft { background: var(--bg); color: var(--ink-soft); }

.type-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip { background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 8px 14px; flex-shrink: 0; white-space: nowrap; }
.filter-chip.active { background: var(--ink); color: var(--on-ink); }
.filter-chip .count { opacity: 0.6; margin-left: 4px; font-weight: 500; }

/* ---------- Enten (Bewertung) ---------- */

/* Eine Quietscheente als EINE geschlossene Silhouette — ohne Aussparungen.
   Leer: nur die Kontur (outline). Voll: Fläche (fill). Halb: linke Hälfte Fläche,
   rechte Hälfte Kontur. Die Breite kommt aus --w, die Höhe folgt dem Seitenverhältnis. */
.ducks { display: inline-flex; gap: 3px; color: var(--duck); flex-shrink: 0; }

.duck { --w: 18px; position: relative; width: var(--w); aspect-ratio: 25.4 / 21.6; display: block; }
.duck svg { display: block; width: 100%; height: 100%; overflow: visible; }
.duck .duck-bg { color: var(--duck-empty); }
.duck .duck-bg path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.duck .duck-fill { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; }
.duck .duck-fill svg { width: var(--w); height: auto; aspect-ratio: 25.4 / 21.6; }
.duck .duck-fill path { fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.duck.f50 .duck-fill { width: 50%; }
.duck.f100 .duck-fill { width: 100%; }

.ducks.xs { gap: 1px; }
.ducks.xs .duck { --w: 14px; }
.ducks.sm .duck { --w: 19px; }
.ducks.md .duck { --w: 22px; }
.ducks.xl { gap: clamp(3px, 1.2vw, 8px); }
.ducks.xl .duck { --w: clamp(40px, 13vw, 58px); }

.ducks.sm.duck-input { padding: 14px 2px; } /* Tippfläche ~44px hoch, ohne dass die Enten größer werden */
.ducks.xl.duck-input { padding: 6px 0; }
.duck-input { cursor: pointer; touch-action: manipulation; outline-offset: 6px; border-radius: 8px; transition: opacity 0.15s ease; }
.duck-input.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Karten / Hero ---------- */

.card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; min-width: 0; }
.card-tight { padding-top: 6px; padding-bottom: 6px; }

.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 90px; height: 90px;
  background: var(--highlight);
  border-radius: 0 0 90px 0;
  opacity: 0.9;
}

.hero-top { display: flex; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }

.hero .poster {
  width: 104px;
  height: 156px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(26, 36, 66, 0.18);
}

.hero-text { flex: 1; min-width: 0; padding-top: 4px; }
.hero-title { font-size: 24px; line-height: 1.15; padding-right: 70px; } /* Platz für den Watchlist-Button */
.hero-orig { font-size: 13px; color: var(--ink-soft); margin-top: 2px; font-style: italic; padding-right: 70px; }
.hero-facts { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.hero-facts b { color: var(--ink); font-weight: 600; }

.genre-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.genre { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: var(--bg); color: var(--ink-soft); }

/* Schlüsselpersonen gleich beim Titel: Regie/Schöpfer, DOP, Produzent */
.key-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; position: relative; z-index: 1; }

.person-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 14px;
  padding: 8px 10px 8px 8px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: transform 0.1s ease;
}

.person-card:active { transform: scale(0.97); }
@media (hover: hover) { .person-card:hover { background: var(--surface-hover); } }
.person-card-text { min-width: 0; display: flex; flex-direction: column; }
.person-card-text b { font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.person-card-text small { font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--duck-empty);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.person-card .avatar { width: 42px; height: 42px; }

.tagline { font-size: 13px; font-style: italic; color: var(--ink-soft); margin: 0 0 10px; }
.overview { font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- "Mein Log" ---------- */

/* Die Bewertung ist die Hauptsache: ganz oben, groß, über die volle Breite.
   Die Zahl steht neben dem Label, damit die Enten den ganzen Platz bekommen. */
.rating-hero { padding: 0 0 18px; }
.rating-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rating-label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.rating-big { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; }
.rating-main { display: flex; justify-content: center; }

/* Status: kleiner und leiser als die Bewertung */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); padding: 4px; border-radius: 16px; }

.seg-btn {
  flex-direction: column;
  gap: 4px;
  padding: 9px 2px;
  min-height: 56px;
  font-size: 12px;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 12px;
  min-width: 0;
}

.seg-btn i { font-size: 20px; }
.seg-btn span { max-width: 100%; white-space: nowrap; } /* nie mitten im Wort umbrechen */
.seg-btn.active { color: #fff; }
.seg-btn.active[data-status="started"] { background: var(--st-started); }
.seg-btn.active[data-status="aborted"] { background: var(--st-aborted); }
.seg-btn.active[data-status="resumed"] { background: var(--st-resumed); }

.status-hint { font-size: 12px; color: var(--ink-soft); margin: 10px 4px 0; line-height: 1.45; }

/* Fortschritt: "Angefangen bis" / "Weitergeguckt bis" */
.progress-box { background: var(--bg); border-radius: var(--radius-md); padding: 14px; margin-top: 14px; }
.pos + .pos { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(91, 107, 140, 0.18); }
.pos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pos-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.pos-read { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; text-align: right; }
.pos-slider { width: 100%; accent-color: var(--primary); margin: 6px 0 12px; display: block; height: 28px; }
.pos-fields { display: flex; gap: 10px; align-items: flex-end; }
.pos-fields .field { flex: 1; min-width: 0; }
.end-btn { flex-shrink: 0; background: var(--card); color: var(--ink); padding: 10px 12px; }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.field-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }

.field input, .field select {
  border: none;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* verhindert den Auto-Zoom von iOS */
  padding: 11px 12px;
  min-height: 46px;
  width: 100%;
  min-width: 0;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235B6B8C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  cursor: pointer;
}

.field input:focus, .field select:focus { outline: 2px solid var(--highlight); }

.when-row { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }

/* Datums-Pille: Tag links, Bearbeiten + Löschen rechts darin */
.date-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 14px;
  padding: 4px 4px 4px 14px; min-height: 48px; font-size: 15px;
}
.date-pill .ti-calendar-event { color: var(--link); font-size: 19px; }
.date-text { flex: 1; min-width: 0; }
.date-btn, .date-del {
  width: 44px; height: 44px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 12px; font-size: 20px; cursor: pointer; color: var(--ink-soft);
}
.date-btn:hover { background: var(--card); color: var(--link); }
.date-del:hover { background: var(--card); color: var(--danger); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 36, 66, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.18s ease;
}

.sheet {
  width: 100%;
  max-width: 440px;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  animation: slide-up 0.22s ease;
  outline: none;
}

.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--duck-empty); margin: 0 auto 10px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cal-title { font-family: 'Baloo 2', sans-serif; font-size: 18px; }
.cal-nav { width: 44px; padding: 0; background: var(--bg); }

.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week span { text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-soft); padding: 6px 0; }

.cal-day {
  min-height: 0;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  margin: 1px auto;
  width: 42px;
}

.cal-day.out { color: var(--ink-soft); opacity: 0.45; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--highlight); }
.cal-day.sel { background: var(--primary); color: #fff; opacity: 1; font-weight: 600; box-shadow: none; }
.cal-day:disabled { opacity: 0.22; }

.time-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bg); flex-wrap: wrap; }
.time-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; width: 100%; text-align: center; }
.time-colon { font-family: 'Baloo 2', sans-serif; font-size: 24px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; padding: 0; background: var(--bg); }
.stepper input {
  width: 54px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  padding: 0;
}

.stepper input:focus { outline: 2px solid var(--highlight); }

.sheet-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
  /* immer sichtbar, auch wenn das Sheet auf kleinen Bildschirmen scrollt */
  position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom));
  background: var(--card);
  padding: 10px 0 calc(2px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 12px -8px rgba(26, 36, 66, 0.12);
}
.sheet-actions .btn-primary, .sheet-actions .btn-outline { min-width: 0; }

@media (max-height: 700px) {
  .cal-day { height: 36px; width: 36px; }
  .time-row { margin-top: 6px; padding-top: 8px; }
}

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

@media (min-width: 600px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; padding-top: 18px; }
  .sheet-grip { display: none; }
}

/* ---------- Staffeln / Folgen (Logger) ---------- */

.season { border-top: 1px solid var(--bg); }
.season:first-child { border-top: none; }

/* Eine Zeile: aufklappbarer Titel | kleine Bewertung | Abhak-Feld */
.item-row { display: flex; align-items: center; gap: 4px; }

.head-btn {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  background: transparent;
  text-align: left;
  border-radius: 12px;
  padding: 10px 4px;
  gap: 8px;
  font-size: 15px;
}

@media (hover: hover) { .head-btn:hover { background: var(--bg); opacity: 1; } }
.head-btn .chev { color: var(--ink-soft); transition: transform 0.15s ease; flex-shrink: 0; }
.head-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.head-btn .grow b { font-weight: 600; display: block; line-height: 1.25; }
.head-btn small, .ep-row small { color: var(--ink-soft); font-weight: 500; font-size: 12px; display: block; margin-top: 1px; }

.item-body { padding: 0 0 14px; }

.ep-row { display: flex; align-items: center; gap: 8px; padding: 2px 0 2px 6px; border-top: 1px solid var(--bg); font-size: 14px; }
.ep-row:first-child { border-top: none; }
.ep-row .grow { padding: 8px 0; }
.ep-row .grow b { font-weight: 600; display: block; line-height: 1.25; }
.ep-num { color: var(--ink-soft); font-weight: 600; min-width: 22px; font-size: 13px; text-align: center; }

/* Abhak-Feld: sichtbarer Kreis 26px, Tippfläche 44px */
.check { width: 44px; min-height: 44px; padding: 0; background: transparent; flex-shrink: 0; }
.check-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--duck-empty);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.check-box i { display: none; }
.check.on .check-box { background: var(--ok); border-color: var(--ok); }
.check.on .check-box .ti-check { display: block; }
.check.mixed .check-box { background: var(--ok); border-color: var(--ok); opacity: 0.7; }
.check.mixed .check-box .ti-minus { display: block; }

/* ---------- Besetzung & Crew ---------- */

.credit-list { display: flex; flex-direction: column; }

.credit-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 1px 12px;
  padding: 9px 4px;
  margin: 0 -4px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.credit-row[hidden] { display: none; }
@media (hover: hover) { .credit-row:hover { background: var(--bg); } }
.credit-row .avatar { grid-row: span 2; width: 44px; height: 44px; }
.credit-main { display: flex; flex-direction: column; min-width: 0; }
.credit-main b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.credit-role { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.credit-voice { grid-column: 2; font-size: 12px; color: var(--ink-soft); opacity: 0.6; font-style: italic; }
.credit-voice .voice-label::after { content: ': '; }


@media (min-width: 600px) {
  .credit-row { grid-template-columns: 44px 1.3fr 0.8fr; }
  .credit-row .avatar { grid-row: auto; }
  .credit-voice { grid-column: auto; text-align: right; }
  .credit-voice .voice-label { display: none; }
}

.more-btn { width: 100%; margin-top: 12px; background: var(--bg); }
.load-more .more-btn { background: var(--card); margin-top: 0; }
.load-more { margin-bottom: 24px; }

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

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: min(92vw, 420px);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Watchlist-Button (oben rechts im Titel) ---------- */

.watchlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  flex-direction: column;
  gap: 3px;
  width: 66px;
  min-height: 60px;
  padding: 9px 4px;
  font-size: 11px;
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 16px;
}

.watchlist-btn i { font-size: 23px; }
.watchlist-btn.on { background: var(--primary); color: #fff; }
.watchlist-btn.is-locked { opacity: 0.4; }

/* ---------- Mein Log nach Tagen ---------- */

.day { margin-bottom: 6px; }
.day-label { font-family: 'Baloo 2', sans-serif; font-size: 18px; margin: 0 0 8px 4px; color: var(--ink); }
.day .title-list { margin-bottom: 14px; }

/* ---------- Poster-Raster (Profil) ---------- */

/* 3 Spalten ab 320px, mehr auf breiteren Bildschirmen */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 10px; margin-bottom: 24px; }

.pcard { position: relative; min-width: 0; }
.pcard-link { display: block; color: var(--ink); text-decoration: none; }
.pcard-link:active .pcard-poster { transform: scale(0.97); }

.pcard-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(26, 36, 66, 0.12);
  transition: transform 0.1s ease;
}

.pcard-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; color: var(--ink-soft); font-size: 26px; }
.pcard-ph span { font-size: 11px; font-weight: 600; line-height: 1.25; opacity: 0.9; overflow-wrap: anywhere; }

.pcard-dot { position: absolute; top: 7px; left: 7px; display: flex; }
/* Runder Status-Marker (Angefangen/Weitergeguckt/Abgebrochen); weißer Rand, damit er auf dunklen Postern sichtbar bleibt */
.st-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  background: var(--chip-bg);
  box-shadow: 0 0 0 2px #fff;
}

.st-dot.st-started { background: var(--st-started); }
.st-dot.st-aborted { background: var(--st-aborted); }
.st-dot.st-resumed { background: var(--st-resumed); }
.st-dot.st-none { background: var(--chip-bg); }
.pcard-dot .st-dot { width: 22px; height: 22px; font-size: 12px; }

.pcard-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 7px;
}

.pcard-title { font-size: 12px; font-weight: 600; line-height: 1.25; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-meta { font-size: 11px; color: var(--ink-soft); margin-top: 1px; min-height: 14px; }
.pcard-rating { margin-top: 3px; }

/* Bewertung und (bei laufender Sichtung) Status-Punkt auf EINER Höhe unter dem Poster */
.pcard-line { display: flex; align-items: center; gap: 5px; margin-top: 6px; min-height: 18px; }
.pcard-line .ducks.xs { gap: 1px; }
.pcard-line .ducks.xs .duck { --w: 12px; }
.pcard-line .st-dot { width: 18px; height: 18px; font-size: 10px; box-shadow: none; flex-shrink: 0; }

.pcard-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pcard-remove i { font-size: 18px; }

/* ---------- Top 4 Filme (Profil) ---------- */

.top4 { padding-bottom: 14px; }
.top4-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.top4-item { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.top4-item:active .pcard-poster { transform: scale(0.97); }

/* ---------- Filter (Profil) ---------- */

/* Sortierung links, Filter-Knopf (nur Icon) GANZ rechts in derselben Zeile */
.sort-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.sort-bar .filter-row { flex: 1; min-width: 0; margin: 0; padding: 0 0 0 0; }
.filter-toggle.icon-only { width: 44px; min-height: 44px; padding: 0; justify-content: center; flex-shrink: 0; position: relative; border-radius: 999px; }
.filter-toggle.icon-only i { font-size: 20px; }
.filter-toggle.icon-only .filter-badge { position: absolute; top: -3px; right: -3px; }
.result-count { margin: 0 4px 10px; }
.filter-toggle { background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 8px 14px; gap: 8px; }
.filter-toggle.active { background: var(--ink); color: var(--on-ink); }
.filter-badge { background: var(--highlight); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.result-count { font-size: 13px; color: var(--ink-soft); }
.result-count[hidden] { display: none; }

.filter-panel { background: var(--card); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; }
.fgroup .section-label { margin-left: 0; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .filter-chip { background: var(--bg); }
.chip-row .filter-chip.active { background: var(--primary); color: #fff; }
.filter-panel .btn-ghost { align-self: flex-start; }

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

.profile-head { display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; }
.profile-head::before { content: ''; position: absolute; top: 0; left: 0; width: 70px; height: 70px; background: var(--highlight); border-radius: 0 0 70px 0; opacity: 0.9; }
.profile-head .avatar { position: relative; }
.avatar.user.xl { width: 72px; height: 72px; font-size: 32px; border: 4px solid var(--card); }
.profile-text { min-width: 0; position: relative; flex: 1; }
.head-settings { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--bg); }
.profile-name { font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.profile-stats b { color: var(--ink); font-weight: 600; }

.tabs.tabs-3 { grid-template-columns: repeat(3, 1fr); } /* mit .tabs verknüpft, sonst überschreibt .tabs (steht weiter unten) die Spalten */
.tabs-3 .tab { padding-left: 6px; padding-right: 6px; }
.tab-count { font-weight: 500; opacity: 0.7; margin-left: 2px; }

.wl-item { display: flex; align-items: center; gap: 6px; }
.wl-item .title-row { flex: 1; min-width: 0; }
.wl-remove { width: 44px; padding: 0; background: var(--card); color: var(--ink-soft); flex-shrink: 0; border-radius: 14px; min-height: 44px; }

/* ---------- Tabs (Mein Log | Freunde) ---------- */

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); padding: 4px; border-radius: 16px; margin-bottom: 14px; }
.tab { background: transparent; color: var(--ink-soft); border-radius: 12px; font-size: 15px; }
.tab.active { background: var(--primary); color: #fff; }
.tab-note { font-size: 12px; color: var(--ink-soft); margin: 0 4px 10px; }

/* ---------- Freunde ---------- */

.avatar.user { color: #fff; width: 34px; height: 34px; font-size: 15px; }

.friend-feed { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.friend-card { background: var(--card); border-radius: var(--radius-md); padding: 10px 10px 10px; }
.friend-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; }
.friend-head b { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.friend-when { font-size: 12px; color: var(--ink-soft); flex-shrink: 0; }
.friend-card .title-row { background: var(--bg); }

/* Freunde im Titel */
.friends-avg { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; background: var(--bg); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; }
.friends-avg b { font-family: 'Baloo 2', sans-serif; font-size: 20px; line-height: 1; }
.friends-avg > span:not(.ducks) { font-size: 12px; color: var(--ink-soft); } /* nur der Text, nicht die Enten */
.friend-list { display: flex; flex-direction: column; }
.friend-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bg); }
.friend-row:first-child { border-top: none; }
.friend-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.friend-main b { font-size: 14px; font-weight: 600; }
.friend-main small { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.friend-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

/* ---------- Konten-Verzeichnis, Einstellungen ---------- */

.friend-link { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; min-height: 44px; flex: 1; } /* Tippfläche ≥ 44px */
.friend-head .friend-link b { font-size: 14px; font-weight: 600; }
.friend-name { color: var(--ink); text-decoration: none; }
.friend-row .friend-link { flex: 0 0 auto; min-width: 44px; justify-content: center; margin: -5px 0 -5px -5px; }

.page-title { font-size: 28px; margin: 8px 4px 4px; }
.page-note { font-size: 13px; color: var(--ink-soft); margin: 0 4px 16px; line-height: 1.45; }

.user-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.user-card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius-md); padding: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.user-card:active { transform: scale(0.99); }
.avatar.user.lg { width: 48px; height: 48px; font-size: 20px; }
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-info b { font-family: 'Baloo 2', sans-serif; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.user-info small { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.user-posters { display: flex; gap: 4px; flex-shrink: 0; }
.user-posters img { width: 26px; height: 39px; object-fit: cover; border-radius: 5px; }
@media (max-width: 380px) { .user-posters img:nth-child(n+3) { display: none; } }

.seg-theme .seg-btn.active { background: var(--primary); color: #fff; }
.coming-soon { display: flex; flex-wrap: wrap; gap: 8px; }
.coming-soon button { flex: 1; min-width: 150px; }
.account-row { display: flex; align-items: center; gap: 12px; font-size: 16px; }

/* ---------- Sichtungen ---------- */

.watch-count { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--link); background: var(--bg); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: space-between; }
.watch-actions .btn-outline { flex: 1; }

.history { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bg); }
.history .section-label { margin-left: 0; }
.hist-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--bg); }
.hist-row:first-child { border-top: none; }
.hist-date { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-soft); }
.icon-mini { width: 44px; padding: 0; background: transparent; color: var(--ink-soft); }

/* ---------- "Du kennst … vielleicht daraus" (Personenseite) ---------- */

.known-card { position: relative; overflow: hidden; padding-top: 22px; }

.known-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 64px; height: 64px;
  background: var(--highlight);
  border-radius: 0 0 0 64px;
  opacity: 0.9;
}

.known-title { font-size: 20px; line-height: 1.2; padding-right: 48px; position: relative; }
.known-sub { font-size: 13px; color: var(--ink-soft); margin: 4px 0 14px; position: relative; }
.known-list { margin-bottom: 0; gap: 8px; position: relative; }
.known-list .title-row { background: var(--bg); }

/* ---------- Leer / Fehler ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
}

.card .empty-state { padding: 20px 0; background: transparent; }
.empty-state i { font-size: 32px; color: var(--ink-soft); opacity: 0.6; }
.empty-state p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.empty-state.error i { color: var(--danger); opacity: 1; }

/* ---------- Login ---------- */

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding-top: env(safe-area-inset-top); }
.login-page { width: 100%; max-width: 340px; }

.login-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  background: var(--highlight);
  border-radius: 0 0 80px 0;
  opacity: 0.9;
}

.login-duck { display: block; position: relative; margin-bottom: 6px; }
.login-duck .brand-duck { width: 64px; margin: 0 auto; display: block; }
.login-title { font-size: 26px; margin-bottom: 8px; position: relative; }
.login-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.5; position: relative; }

.login-input {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  text-align: center;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.login-code { font-family: 'Baloo 2', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 0.3em; padding: 12px 12px 12px 18px; margin-bottom: 0; }
.login-input:focus { outline: 2px solid var(--highlight); }
.login-error { min-height: 18px; font-size: 13px; color: var(--danger); margin: 10px 0 0; }
.login-submit-btn { width: 100%; margin-top: 14px; padding: 12px 14px; font-size: 15px; }

/* ---------- Kleine Handys (≤ 380px) ---------- */

@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .card { padding: 16px; border-radius: 20px; }
  .hero .poster { width: 88px; height: 132px; }
  .hero-title { font-size: 21px; }
  .brand { font-size: 24px; }
  .ducks.sm .duck { --w: 16px; }
  .seg-btn { font-size: 11px; }
  .item-row { gap: 0; }
  .head-btn { gap: 6px; }
}

/* Sehr schmale Handys (iPhone SE, 320px): Beschriftungen etwas kleiner, damit "Weitergeguckt" in einer Zeile bleibt */
@media (max-width: 340px) {
  .seg { gap: 2px; padding: 3px; }
  .seg-btn { font-size: 10px; letter-spacing: -0.01em; }
  .tabs-3 .tab { font-size: 13px; padding-left: 2px; padding-right: 2px; }
}

/* ---------- Desktop ---------- */

@media (min-width: 700px) {
  .app { max-width: 720px; }
  .hero .poster { width: 120px; height: 180px; }
}

/* Das hidden-Attribut muss immer gewinnen — sonst überschreiben display:flex/grid
   der Klassen (z.B. .when-row, .credit-row) das Verbergen. */
[hidden] { display: none !important; }

/* Aktuelle Folge (angefangene Serie): schnell abhaken */
.now-ep {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 12px;
}
.now-ep-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now-ep-text small { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.now-ep-text b { font-family: 'Baloo 2', sans-serif; font-size: 22px; line-height: 1.1; color: var(--link); }
.now-ep .btn-primary { min-height: 44px; flex: none; }
.ep-chip { font-family: 'Baloo 2', sans-serif; font-weight: 700; }
.check[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.st-dot.st-ep { width: auto !important; min-width: 22px; padding: 0 6px; border-radius: 11px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 11px !important; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.pcard-line .st-dot.st-ep { height: 18px; }

.undo-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 4px 4px 14px; background: var(--bg); border-radius: 14px; font-size: 14px; }
.undo-text { flex: 1; min-width: 0; color: var(--ink-soft); }
.undo-row .btn-ghost { min-height: 44px; flex: none; }

.top4-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.top4-head .section-label { margin-bottom: 0; }
.top4-edit { width: 44px; height: 44px; margin: -8px -8px -8px 0; background: transparent; box-shadow: none; }
.top4 .top4-grid { margin-top: 10px; }
.top4 .muted-note { margin: 8px 0 0; }
.sheet-title { font-family: 'Baloo 2', sans-serif; font-size: 20px; margin: 4px 0 0; }
.top4-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; max-height: 52vh; overflow-y: auto; padding: 4px; }
.pick { display: block; width: 100%; height: auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; min-width: 0; }
.pick .pcard-poster { width: 100%; }
.pick .pcard-poster { position: relative; border-radius: 12px; outline: 3px solid transparent; transition: outline-color .15s, opacity .15s; }
.pick:not(.on) .pcard-poster { opacity: 0.75; }
.pick.on .pcard-poster { outline-color: var(--brand); }
.pick-n { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.top-bar .brand-duck { overflow: visible; }
.top-bar .brand-duck .bd-outline { stroke: var(--duck-empty); }
.top-bar .brand-duck .bd-rect { transition: width 0.5s ease; }

/* Top-4-Auswahl: großes Fenster mit Suche */
.sheet.sheet-big { max-width: 600px; height: 92dvh; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; }
.sheet-big .top4-pick { flex: 1; min-height: 0; max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.sheet-big .sheet-actions { flex: none; }
.top4-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 14px; padding: 0 14px; min-height: 48px; margin-top: 8px; }
.top4-search .ti { color: var(--ink-soft); font-size: 19px; }
.top4-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; outline: none; }
.top4-none { grid-column: 1 / -1; text-align: center; padding: 24px 0; }
@media (min-width: 560px) {
  .sheet.sheet-big { height: 86dvh; }
  .sheet-big .top4-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sheet-big .top4-pick { grid-auto-rows: max-content; overflow-y: auto; }
