/* ==========================================================================
   Filmhuis: een eigen bioscoopzaal, in dezelfde huisstijl als Muziekhuis
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #120e0b;
  --panel: #19140f;
  --card: #201a14;
  --hover: #2a231b;
  --line: #352b22;
  --text: #f6efe4;
  --muted: #ae9f8c;
  --accent: #e3b454;
  --accent-2: #f2cd7a;
  --on-accent: #1b140c;
  --danger: #e2765f;
  --ok: #8fc27a;
  --veil: 18, 14, 11;
  --modal: #211b15;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .4);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 64px;
  color-scheme: dark;
}
html[data-mode="light"] {
  --bg: #f5eee2;
  --panel: #fffaf1;
  --card: #fcf6eb;
  --hover: #efe5d4;
  --line: #e2d4bd;
  --text: #251c12;
  --muted: #76685a;
  --accent: #a8781e;
  --accent-2: #c28f2c;
  --on-accent: #fffaf1;
  --danger: #b4452e;
  --ok: #4d8a3a;
  --veil: 245, 238, 226;
  --modal: #fffaf1;
  --shadow: 0 18px 44px rgba(80, 55, 20, .16);
  --shadow-sm: 0 8px 20px rgba(80, 55, 20, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- topbar */
#topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0; display: flex; align-items: center; gap: 28px;
  background: linear-gradient(rgba(var(--veil), .92), rgba(var(--veil), .55) 70%, rgba(var(--veil), 0));
  transition: background .3s; }
#topbar.solid { background: rgba(var(--veil), .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-icon { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-wm { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-lk { height: 13px; width: auto; margin-top: 3px; opacity: .8; align-self: flex-start; }
html[data-mode="dark"] .lk-light, html[data-mode="light"] .lk-dark { display: none; }
.tabs { display: flex; gap: 4px; }
.tabs a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 6px; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
html[data-mode="light"] .tabs a.active { background: rgba(0, 0, 0, .06); }
.tabs svg { width: 17px; height: 17px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: rgba(127, 127, 127, .14); }
.tb-user { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: var(--on-accent); font-size: 15px; }
#bottomnav { display: none; }

#main { min-height: 100vh; padding-bottom: 60px; }
.page { padding: calc(var(--top-h) + env(safe-area-inset-top) + 24px) var(--gutter) 40px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head .grow { flex: 1; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end;
  padding: calc(var(--top-h) + 40px) var(--gutter) clamp(36px, 7vh, 80px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; transform: scale(1.03);
  animation: heroIn 1.4s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.03); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--veil), .95) 0%, rgba(var(--veil), .7) 35%, rgba(var(--veil), .1) 70%),
              linear-gradient(0deg, rgb(var(--veil)) 0%, rgba(var(--veil), 0) 40%); }
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(36px, 6vw, 72px); line-height: .98; margin-bottom: 14px; text-wrap: balance; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent-2); margin: 0 0 10px; }
.hero p.overview { color: var(--text); opacity: .86; font-size: 16px; line-height: 1.6; margin: 0 0 24px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.meta .rating { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-2); font-weight: 650; }
.meta .rating svg { width: 15px; height: 15px; }
.meta .pill { border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 12px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 650; white-space: nowrap; transition: transform .12s, background .15s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: 0 8px 24px rgba(227, 180, 84, .25); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: rgba(127, 127, 127, .18); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(127, 127, 127, .28); }
.btn.small { height: 36px; padding: 0 15px; font-size: 14px; }
.btn.danger { background: rgba(226, 118, 95, .15); color: var(--danger); }
.btn svg { width: 19px; height: 19px; }
.btn.round { width: 46px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ rows */
.rows { position: relative; z-index: 2; margin-top: -30px; }
.row { margin: 0 0 34px; }
.row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2 { font-size: 22px; }
.row-head a { color: var(--muted); font-size: 14px; }
.row-head a:hover { color: var(--accent); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(130px, 14vw, 186px); gap: 14px;
  overflow-x: auto; padding: 4px var(--gutter) 12px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip.wide { grid-auto-columns: clamp(240px, 26vw, 340px); }
.strip > * { scroll-snap-align: start; }

/* ----------------------------------------------------------------- cards */
.card { position: relative; display: block; border-radius: 10px; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s; }
.card:hover .poster { transform: translateY(-4px); box-shadow: var(--shadow); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  background: radial-gradient(120% 80% at 30% 0%, rgba(227, 180, 84, .22), transparent 60%), linear-gradient(160deg, #2b2219, #15100c); }
html[data-mode="light"] .poster .ph { background: radial-gradient(120% 80% at 30% 0%, rgba(168, 120, 30, .2), transparent 60%), linear-gradient(160deg, #efe3cf, #e1d0b2); }
.poster .ph strong { font-family: var(--serif); font-size: 17px; line-height: 1.15; text-wrap: balance; }
.poster .ph span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.poster .ph::before { content: ""; position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; opacity: .55;
  background: url("icon.svg") center / contain no-repeat; }
.card .badge-done { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .65); color: var(--accent-2); }
.card .badge-done svg { width: 15px; height: 15px; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .55); }
.bar i { display: block; height: 100%; background: var(--accent); }
.card .cap { padding: 8px 2px 0; }
.card .cap strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cap span { color: var(--muted); font-size: 13px; }
.card.landscape .poster { aspect-ratio: 16 / 9; }
.card.landscape .ph strong { font-size: 19px; }
.card.landscape .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 55%); }
.card.landscape .ls-title { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; }
.card.landscape .ls-title strong { font-family: var(--serif); font-size: 18px; display: block; line-height: 1.15; }
.card.landscape .ls-title span { font-size: 13px; opacity: .8; }
.card .playhint { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; z-index: 2; }
.card .playhint i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: var(--shadow); }
.card:hover .playhint { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }

/* ----------------------------------------------------------------- films */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { opacity: .6; font-weight: 500; }
.select { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.count { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- detail */
.detail-bg { position: absolute; top: 0; left: 0; right: 0; height: min(72vh, 680px); background-size: cover; background-position: center 25%; opacity: .55; }
.detail-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 2%, rgba(var(--veil), .55) 55%, rgba(var(--veil), .35)),
              linear-gradient(90deg, rgba(var(--veil), .8), transparent 70%); }
.detail { position: relative; display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(22px, 4vw, 56px);
  align-items: start; padding-top: clamp(30px, 10vh, 120px); }
.detail .poster { box-shadow: var(--shadow); }
.detail h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.02; margin-bottom: 10px; text-wrap: balance; }
.detail .orig { color: var(--muted); font-style: italic; margin: -4px 0 12px; }
.detail .tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent-2); margin: 0 0 14px; }
.detail .overview { font-size: 16px; line-height: 1.7; max-width: 70ch; margin: 18px 0 22px; }
.genre-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.genre-list a { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: rgba(127, 127, 127, .16); }
.genre-list a:hover { background: rgba(227, 180, 84, .22); color: var(--accent-2); }
.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 0 0 22px; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }
.resume-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.resume-bar { height: 4px; border-radius: 2px; background: rgba(127, 127, 127, .25); max-width: 260px; margin-top: 6px; overflow: hidden; }
.resume-bar i { display: block; height: 100%; background: var(--accent); }
.note { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin: 0 0 18px; max-width: 70ch; }
.note svg { margin-top: 1px; }
.note.deels { background: rgba(227, 180, 84, .12); color: var(--accent-2); }
.note.slecht { background: rgba(226, 118, 95, .13); color: var(--danger); }
html[data-mode="light"] .note.deels { color: #7e5810; }
details.file { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 70ch; }
details.file summary { cursor: pointer; font-weight: 600; color: var(--text); }
details.file .kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin-top: 10px; word-break: break-all; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.section-title { font-size: 22px; margin: 44px 0 14px; }
.similar { margin: 0 calc(-1 * var(--gutter)); }

/* ---------------------------------------------------------------- search */
.searchbox { position: relative; max-width: 720px; margin-bottom: 26px; }
.searchbox input { width: 100%; height: 56px; padding: 0 20px 0 52px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); font-size: 18px; outline: none; }
.searchbox input:focus { border-color: var(--accent); }
.searchbox svg { position: absolute; left: 18px; top: 18px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty h2 { color: var(--text); font-size: 24px; margin-bottom: 8px; }

/* -------------------------------------------------------------- settings */
.settings > * { max-width: 860px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 21px; margin-bottom: 4px; }
.panel > p.muted { margin: 0 0 16px; font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); outline: none; width: 100%; }
.input:focus { border-color: var(--accent); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 180px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.warn b { color: var(--accent); }
.stat.bad b { color: var(--danger); }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 6px 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--danger); }
.dot.busy { background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.list-item:hover { background: var(--hover); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none;
  background: rgba(227, 180, 84, .18); color: var(--accent-2); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(227, 180, 84, .18); color: var(--accent-2); text-transform: uppercase; letter-spacing: .04em; }
.tag.bad { background: rgba(226, 118, 95, .16); color: var(--danger); }
.help { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.help a, a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ------------------------------------------------------------------ gate */
#gate { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(800px 500px at 50% -10%, rgba(227, 180, 84, .16), transparent 70%), var(--bg); }
.gate-card { width: 100%; max-width: 380px; text-align: center; }
.gate-card img.logo { width: 84px; height: 84px; margin-bottom: 10px; filter: drop-shadow(0 10px 30px rgba(227, 180, 84, .25)); }
.gate-card h1 { font-size: 40px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-card p { color: var(--muted); margin: 6px 0 24px; }
.gate-card form { display: grid; gap: 12px; text-align: left; }
.gate-card .btn { width: 100%; margin-top: 6px; }
.gate-card .lk { height: 16px; margin-top: 30px; opacity: .6; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; text-align: center; }

/* ---------------------------------------------------------------- player */
#player { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; }
#player video { width: 100%; height: 100%; display: block; background: #000; }
.pl-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 40px; background: linear-gradient(rgba(0, 0, 0, .75), transparent);
  transition: opacity .35s; }
#player.idle .pl-top { opacity: 0; pointer-events: none; }
#player.idle { cursor: none; }
.pl-back, .pl-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.pl-back:hover, .pl-btn:hover { background: rgba(255, 255, 255, .22); }
.pl-btn.on { background: var(--accent); color: #1b140c; }
.pl-title { flex: 1; min-width: 0; }
.pl-title strong { display: block; font-family: var(--serif); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title span { font-size: 13px; opacity: .7; }
.pl-menu { position: absolute; top: calc(70px + env(safe-area-inset-top)); right: 18px; background: rgba(20, 16, 12, .95);
  border-radius: 14px; padding: 6px; min-width: 230px; box-shadow: var(--shadow); }
.pl-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; text-align: left; }
.pl-menu button:hover { background: rgba(255, 255, 255, .1); }
.pl-menu button svg { width: 16px; height: 16px; opacity: 0; color: var(--accent); }
.pl-menu button.on svg { opacity: 1; }
.pl-menu .h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; padding: 8px 12px 4px; }
.pl-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .82); }
.pl-error > div { max-width: 520px; text-align: center; }
.pl-error h2 { font-size: 26px; margin-bottom: 10px; color: var(--accent-2); }
.pl-error p { opacity: .85; line-height: 1.6; }
video::cue { background: rgba(0, 0, 0, .55); font-family: system-ui, sans-serif; font-size: 1.05em; line-height: 1.35; }

/* ----------------------------------------------------------------- modal */
#modal { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px;
  backdrop-filter: blur(4px); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--modal); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal-card h2 { font-size: 22px; margin-bottom: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.match-list { display: grid; gap: 8px; margin-top: 14px; }
.match { display: flex; gap: 12px; padding: 8px; border-radius: 12px; text-align: left; width: 100%; align-items: flex-start; }
.match:hover { background: var(--hover); }
.match img, .match .noimg { width: 54px; height: 81px; border-radius: 6px; object-fit: cover; background: var(--card); flex: none; }
.match strong { display: block; }
.match small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 130;
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(127, 127, 127, .25); border-top-color: var(--accent);
  animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- mobiel */
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .tabs { display: none; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-wm { font-size: 19px; }
  #bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(var(--veil), .94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  #bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 10px; }
  #bottomnav a.active { color: var(--accent); }
  #bottomnav svg { width: 22px; height: 22px; }
  #main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero { min-height: 74vh; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgb(var(--veil)) 8%, rgba(var(--veil), .75) 45%, rgba(var(--veil), .1) 80%); }
  .hero p.overview { -webkit-line-clamp: 2; font-size: 15px; }
  .detail { grid-template-columns: 1fr; padding-top: 20px; }
  .detail .poster-wrap { width: 46%; max-width: 200px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; }
  .card .cap strong { font-size: 13px; }
  .row-head h2 { font-size: 19px; }
  .btn { height: 44px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.help code, .panel code { font-size: 12.5px; background: rgba(127, 127, 127, .16); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
.conv-now { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg); }
.chip.coll { border-color: rgba(227, 180, 84, .45); color: var(--accent-2); }
.chip.coll.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
html[data-mode="light"] .chip.coll { color: var(--accent); }
.genre-list a.coll { background: rgba(227, 180, 84, .2); color: var(--accent-2); font-weight: 600; }
.note code { font-size: 12px; background: rgba(127, 127, 127, .16); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
