/* Entertainment Hub — premium glassmorphism
   Eén groot mat glazen paneel over een warme, wazige achtergrond. */

:root {
  --bg: #1d1814;
  --ink: #fbf6ef;
  --ink-2: rgba(251, 246, 239, .72);
  --ink-3: rgba(251, 246, 239, .5);
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .08);
  --glass: rgba(255, 246, 236, .085);
  --glass-strong: rgba(48, 40, 34, .46);
  --card: rgba(255, 248, 240, .075);
  --card-hover: rgba(255, 248, 240, .12);
  --pill: rgba(255, 248, 240, .1);
  --accent: #ff8a4c;
  --accent-ink: #1d1410;
  --accent-soft: rgba(255, 138, 76, .18);
  --warn: #f2c46d;
  --ok: #9fd3b4;
  --danger: #ff8f86;
  --r-xl: 34px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --blur: blur(38px) saturate(150%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
[data-accent="sage"] { --accent: #a9c7a4; --accent-ink: #142014; --accent-soft: rgba(169, 199, 164, .2); }
[data-accent="teal"] { --accent: #7cc4bd; --accent-ink: #0f1f1e; --accent-soft: rgba(124, 196, 189, .2); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Achtergrond: warme, wazige kamer ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  linear-gradient(180deg, #2b231d 0%, #1f1915 55%, #16120f 100%); }
.backdrop .glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; transition: background 1.2s var(--ease); }
.backdrop .g1 { width: 70vw; height: 55vh; left: 15vw; top: -12vh; background: radial-gradient(closest-side, rgba(214, 186, 152, .55), transparent); }
.backdrop .g2 { width: 16vw; height: 120vh; left: 8vw; top: -10vh; border-radius: 40%; background: rgba(92, 64, 42, .75); filter: blur(46px); }
.backdrop .g3 { width: 14vw; height: 120vh; right: 18vw; top: -10vh; border-radius: 40%; background: rgba(110, 78, 52, .6); filter: blur(50px); }
.backdrop .g4 { width: 60vw; height: 60vh; right: -14vw; bottom: -22vh; background: radial-gradient(closest-side, hsla(var(--mood, 24), 55%, 48%, .45), transparent); }
@media (max-width: 760px) {
  .backdrop .g2 { width: 34vw; left: -8vw; }
  .backdrop .g3 { width: 30vw; right: -6vw; }
}

/* ---------- Glas ---------- */
.glass { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px -30px rgba(0, 0, 0, .55); }
.glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 50px -20px rgba(0, 0, 0, .6); }
.glass-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.glass-pill { background: var(--pill); border: 1px solid var(--line-soft); border-radius: 999px; }

/* ---------- Opbouw ---------- */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 20; width: 60px;
  padding: 10px 0; border-radius: 999px; display: flex; flex-direction: column; align-items: center; gap: 6px; max-height: calc(100vh - 48px); }
.rail-logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--accent); color: var(--accent-ink); font: 600 19px/1 var(--serif); }
.rail-logo--lg { width: 56px; height: 56px; font-size: 26px; margin: 0 auto 14px; }
.rail-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease); }
.rail-btn:hover { background: var(--pill); color: var(--ink); }
.rail-btn.is-active { background: rgba(255, 250, 244, .92); color: #1d1814; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.rail-btn .tip { position: absolute; left: 54px; white-space: nowrap; padding: 6px 10px; border-radius: 10px; font-size: 12.5px;
  background: rgba(30, 24, 20, .86); border: 1px solid var(--line-soft); opacity: 0; transform: translateX(-4px);
  pointer-events: none; transition: .2s var(--ease); }
.rail-btn:hover .tip, .rail-btn:focus-visible .tip { opacity: 1; transform: none; }
.rail-spacer { flex: 1; min-height: 8px; }

.shell { min-width: 0; position: fixed; top: 20px; bottom: 20px; left: 104px; right: 20px; border-radius: var(--r-xl);
  display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 22px 12px; min-width: 0; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08)); border: 1px solid var(--line); }
.who-text { display: flex; flex-direction: column; line-height: 1.2; }
.who-text small { color: var(--ink-3); font-size: 12px; }
.who-text strong { font-weight: 600; font-size: 14px; }
.searchpill { flex: 1; min-width: 0; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 42px; }
.searchpill svg { color: var(--ink-3); width: 18px; height: 18px; }
.searchpill input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.searchpill input::placeholder { color: var(--ink-3); }
.iconbtn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; transition: background .2s; }
.iconbtn:hover { background: var(--card-hover); }

.main { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 34px 60px; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.tabbar, .sheet { display: none; }

/* ---------- Typografie ---------- */
.display { font: 500 clamp(30px, 3.4vw, 44px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0; }
.kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.lede { color: var(--ink-2); max-width: 62ch; margin: 0 0 22px; font-size: 15.5px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; font-weight: 500; }
.prose { color: var(--ink-2); max-width: 65ch; font-size: 16px; line-height: 1.65; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 12px 0 22px; }
.section { margin: 34px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font: 500 22px/1.2 var(--serif); margin: 0; letter-spacing: -.01em; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.more svg { width: 16px; height: 16px; }
.more:hover { color: var(--ink); }
.notice { padding: 12px 16px; font-size: 14px; color: var(--ink-2); margin: 0 0 18px; border-radius: var(--r-md); }
.notice a { color: var(--accent); }
.notice--warn { border-color: rgba(242, 196, 109, .35); }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; background: rgba(255, 250, 244, .94); color: #1d1814;
  font-weight: 600; font-size: 14px; transition: transform .2s var(--ease), background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; opacity: .85; }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: var(--pill); color: var(--ink); border-color: var(--line-soft); }
.btn--small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--danger { background: rgba(255, 143, 134, .14); color: var(--danger); border-color: rgba(255, 143, 134, .3); }
.btn[aria-pressed="false"][data-follow-btn] { background: var(--accent); color: var(--accent-ink); }

.segmented { display: inline-flex; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; font-size: 13.5px;
  color: var(--ink-2); white-space: nowrap; border: 0; background: none; transition: .2s var(--ease); }
.seg:hover { color: var(--ink); }
.seg.is-active, .seg[aria-pressed="true"] { background: rgba(255, 250, 244, .92); color: #1d1814; font-weight: 600; }
.seg-n { font-size: 11.5px; opacity: .6; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chips form { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  background: var(--pill); border: 1px solid var(--line-soft); color: var(--ink-2); white-space: nowrap; transition: .2s var(--ease); }
.chip:hover { color: var(--ink); background: var(--card-hover); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip--small { padding: 3px 10px; font-size: 12.5px; margin: 0 4px 4px 0; }
.chip--check input { accent-color: var(--accent); margin: 0; }
.chip--check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.custom-range { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select { height: 38px; padding: 0 14px; background-color: var(--pill); border: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink); }
select.select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23fbf6ef' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
option, optgroup { background: #2a221c; color: var(--ink); }

/* ---------- Hoezen ---------- */
.art { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  background: hsl(var(--h) 22% 22%); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); }
.art--film, .art--series { aspect-ratio: 2 / 3; }
.art--youtube { aspect-ratio: 16 / 9; }
.art-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) saturate(1.3); opacity: .8; }
.art-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.art-gen { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12%;
  background:
    radial-gradient(120% 90% at 18% 12%, hsl(var(--h) 62% 66% / .95), transparent 55%),
    radial-gradient(90% 80% at 92% 96%, hsl(calc(var(--h) + 38) 48% 42% / .95), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 30% 30%), hsl(calc(var(--h) + 20) 28% 14%)); }
.art-gen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .28)); }
.art-initials { position: relative; z-index: 1; font: 500 clamp(26px, 4vw, 46px)/.9 var(--serif); color: rgba(255, 255, 255, .92); letter-spacing: -.02em; }
.art-cat { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 16, 13, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .9); }
.art-cat svg { width: 15px; height: 15px; }

/* ---------- Kaarten ---------- */
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto;
  padding: 2px 2px 14px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail-scroll > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

.card { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-soft); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--line); }
.card .art { aspect-ratio: 4 / 5; }
.card .art--youtube { aspect-ratio: 4 / 5; }
.card-link { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body { padding: 0 4px 34px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { margin: 1px 0 0; font: 500 17px/1.22 var(--serif); letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-by { margin: 0; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { margin: 6px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.dot::before { content: "·"; margin-right: 6px; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .02em; background: var(--pill); color: var(--ink-2); border: 1px solid var(--line-soft); }
.badge--soon { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.badge--warn { color: var(--warn); border-color: rgba(242, 196, 109, .3); background: rgba(242, 196, 109, .12); }
.badge--ok { color: var(--ok); border-color: rgba(159, 211, 180, .3); background: rgba(159, 211, 180, .12); }
.pstatus:empty { display: none; }
.pstatus { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 250, 244, .9); color: #1d1814; }
[data-status="finished"] .pstatus { background: var(--accent); color: var(--accent-ink); }
.rec-tag { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); }
.rec-tag svg { width: 14px; height: 14px; }
.rec-reason { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); font-style: italic; font-family: var(--serif); }
.rec-inline { color: var(--accent); }
.card--rec { border-style: dashed; border-color: rgba(255, 255, 255, .16); }

.quick { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 6px; }
.quick form { display: contents; }
.qbtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-soft);
  background: var(--pill); color: var(--ink-2); transition: .2s var(--ease); }
.qbtn svg { width: 16px; height: 16px; }
.qbtn:hover { color: var(--ink); background: var(--card-hover); }
.qbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qbtn.is-busy { opacity: .5; }

/* Lijstregels */
.list { padding: 6px; border-radius: var(--r-lg); }
.row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 90px 8px 8px; border-radius: var(--r-md); transition: background .2s; }
.row + .row { margin-top: 2px; }
.row:hover { background: rgba(255, 255, 255, .05); }
.row-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.row .art { width: 56px; flex: none; aspect-ratio: 1; border-radius: 12px; box-shadow: none; }
.row .art--film, .row .art--series { aspect-ratio: 3 / 4; width: 48px; }
.row .art-initials { font-size: 17px; }
.row .art-gen { padding: 10%; }
.row .art-cat { display: none; }
.row-body { min-width: 0; }
.row-title { margin: 0; font: 500 16px/1.3 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .card-meta { margin-top: 3px; }
.row .quick { position: absolute; right: 12px; left: auto; top: 50%; bottom: auto; transform: translateY(-50%); }

/* Lege staat */
.empty { padding: 34px 24px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty p { margin: 0; max-width: 46ch; }
.empty-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pill); color: var(--ink-3); }

/* ---------- Voor jou ---------- */
.hero { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 30px; padding: 20px; align-items: center; overflow: hidden;
  border-radius: var(--r-xl); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 120% at 0% 0%, hsl(var(--h) 60% 55% / .3), transparent 60%); }
.hero .art { aspect-ratio: 1; }
.hero .art--film, .hero .art--series { aspect-ratio: 4 / 5; }
.hero .art--youtube { aspect-ratio: 4 / 5; }
.hero .art-initials { font-size: 64px; }
.hero-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-title { margin: 2px 0 4px; font: 500 clamp(32px, 4.2vw, 56px)/1.02 var(--serif); letter-spacing: -.02em; }
.hero-by { margin: 0; color: var(--ink-2); font-size: 15px; }
.hero-desc { margin: 14px 0 0; color: var(--ink-2); max-width: 52ch; font-size: 15.5px; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.hero-actions .quick { position: static; }
.hero-actions .qbtn { width: 42px; height: 42px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-lg); transition: background .25s; }
.stat:hover { background: var(--card-hover); }
.stat-n { font: 500 34px/1 var(--serif); }
.stat-l { color: var(--ink-2); font-size: 13px; }

/* ---------- Volgend / makers ---------- */
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.maker { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); }
.maker-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.maker-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  font: 500 17px/1 var(--serif); color: #fff; background:
  radial-gradient(100% 100% at 20% 10%, hsl(var(--h) 55% 60%), hsl(calc(var(--h) + 30) 35% 28%)); }
.maker-avatar img { width: 100%; height: 100%; object-fit: cover; }
.maker-avatar--xl { width: 112px; height: 112px; font-size: 40px; }
.maker-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.maker-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maker-text small { color: var(--ink-3); font-size: 12.5px; }
.maker-counts { color: var(--ink-2) !important; }
.creator-head { display: flex; gap: 26px; align-items: center; padding: 24px; margin: 8px 0 14px; border-radius: var(--r-xl); }
.creator-head .lede { margin: 8px 0 14px; }

/* ---------- Kalender ---------- */
.timeline { display: flex; flex-direction: column; gap: 30px; }
.month-title { font: 500 26px/1.1 var(--serif); margin: 0 0 14px; }
.month-title span { color: var(--ink-3); }
.day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; margin-bottom: 12px; align-items: start; }
.day-date { display: flex; flex-direction: column; align-items: center; padding: 10px 0; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line-soft); }
.day-date.is-today { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day-n { font: 500 24px/1 var(--serif); }
.day-w { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-top: 3px; text-align: center; }
.day-date--vague { padding: 10px 4px; }

/* ---------- Detail ---------- */
.backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 14px; margin: 6px 0 14px; }
.backlink:hover { color: var(--ink); }
.detail { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 36px; align-items: start; }
.detail-art { position: sticky; top: 0; }
.detail-art .art-initials { font-size: 72px; }
.detail-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.detail-main > .kicker { margin: 0; }
.detail-main .kicker a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.detail-title { font-size: clamp(34px, 4.4vw, 58px); }
.detail-by { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; color: var(--ink-2); }
.detail-by > a { color: var(--ink); font-weight: 600; }
.detail-by form { display: inline; }
.facts { padding: 6px 18px; border-radius: var(--r-lg); }
.fact { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; font-size: 14.5px; }
.fact + .fact { border-top: 1px solid var(--line-soft); }
.fact-l { color: var(--ink-3); }
.links { display: flex; gap: 10px; flex-wrap: wrap; }
.mystatus { padding: 18px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.mystatus .label { margin: 0; }
.statusbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .16); border: 1px solid var(--line-soft); width: fit-content; max-width: 100%; }
.statusbar form { display: contents; }
.noteform { display: grid; grid-template-columns: 1fr; gap: 6px; max-width: 520px; }
.noteform .select { width: fit-content; }
.noteform .btn { justify-self: start; margin-top: 4px; }
.history { list-style: none; margin: 0; padding: 6px 18px; border-radius: var(--r-lg); }
.history-item { padding: 11px 0; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.history-item + .history-item { border-top: 1px solid var(--line-soft); }
.history-verb { color: var(--ink-3); min-width: 150px; }
.history-item a { font-weight: 600; }
.history-item time { margin-left: auto; }
.danger-zone { margin-top: 40px; }

/* ---------- Formulieren ---------- */
.form { padding: 22px; border-radius: var(--r-xl); }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; align-items: end; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--wide { grid-column: span 2; }
.field--full { grid-column: 1 / -1; }
.input { width: 100%; padding: 11px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .18); border: 1px solid var(--line-soft);
  color: var(--ink); outline: 0; transition: border-color .2s, background .2s; }
.input:focus { border-color: var(--accent); background: rgba(0, 0, 0, .26); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23fbf6ef' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
textarea.input { resize: vertical; min-height: 64px; }
.input::-webkit-calendar-picker-indicator, .select::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); grid-column: 1 / -1; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 5px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
.bigsearch { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; margin-bottom: 24px; }
.bigsearch svg { color: var(--ink-3); }
.bigsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 400 19px/1.4 var(--serif); }
.bigsearch input::placeholder { color: var(--ink-3); }

/* ---------- Instellingen ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.panel { padding: 22px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 20px; }
.panel .muted { margin: 0; font-size: 14px; }
.panel > form { margin: 0; }
.genre-prefs { margin-top: 4px; }
.sources { list-style: none; margin: 0; padding: 0; }
.source { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; align-items: center; }
.source + .source { border-top: 1px solid var(--line-soft); }
.source strong { margin-right: 8px; }
.source p { margin: 4px 0 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--ink-3); font-weight: 500; padding: 6px 8px 6px 0; }
.table td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
.sysinfo { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.sysinfo dt { color: var(--ink-3); }
.sysinfo dd { margin: 0; }

/* ---------- Losse schermen (inloggen, installeren) ---------- */
body.bare { overflow: auto; }
.bare-main { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.bare-card { width: 100%; max-width: 420px; padding: 34px 30px; border-radius: var(--r-xl); text-align: left; }
.bare-card .display { font-size: 32px; text-align: center; }
.bare-card > .muted { text-align: center; margin: 6px 0 22px; }
.bare-card--wide { max-width: 640px; }
.debug { white-space: pre-wrap; font-size: 12px; color: var(--ink-3); }

/* ---------- Melding ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; transition: .35s var(--ease); max-width: calc(100vw - 32px); }
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="error"] { color: var(--danger); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 200px 1fr; gap: 22px; }
  .detail { grid-template-columns: 240px 1fr; gap: 26px; }
}

/* ---------- iPhone ---------- */
@media (max-width: 760px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .rail { display: none; }
  .shell { position: relative; inset: auto; margin: calc(var(--safe-t) + 8px) 8px 0; min-height: calc(100vh - var(--safe-t) - 8px);
    border-radius: 28px 28px 0 0; border-bottom: 0; overflow: visible; }
  .topbar { padding: 12px 14px 6px; gap: 10px; position: sticky; top: 0; z-index: 5; }
  .who-text { display: none; }
  .searchpill { height: 40px; padding: 0 14px; }
  .searchpill input { font-size: 16px; } /* voorkomt inzoomen op iPhone */
  .main { overflow: visible; padding: 6px 16px calc(110px + var(--safe-b)); }
  .display { font-size: 32px; }
  .page-head { margin: 8px 0 16px; }
  .page-head .segmented { width: 100%; }
  .section { margin-top: 28px; }
  .section-title { font-size: 20px; }
  .rail-scroll { grid-auto-columns: 150px; gap: 10px; margin: 0 -16px; padding: 2px 16px 12px; scroll-padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 8px; border-radius: 18px; }
  .card:hover { transform: none; }
  .card-title { font-size: 15.5px; }
  .card-body { padding: 0 2px 34px; }
  .quick { left: 10px; bottom: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 16px; border-radius: 26px; }
  .hero-art { max-width: 100%; }
  .hero .art, .hero .art--film, .hero .art--series, .hero .art--youtube { aspect-ratio: 16 / 9; }
  .hero-title { font-size: 34px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat-n { font-size: 26px; }
  .stat-l { font-size: 12px; line-height: 1.3; }
  .row { padding-right: 84px; }
  .row .art { width: 50px; }
  .row-title { font-size: 15px; }
  .day { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .day-n { font-size: 20px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .detail-art { position: static; width: 62%; max-width: 230px; }
  .statusbar { border-radius: 20px; }
  .fact-v { min-width: 0; overflow-wrap: anywhere; }
  .fact { grid-template-columns: 110px 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .form, .panel { padding: 16px; border-radius: 24px; }
  .input, .select { font-size: 16px; }
  .creator-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .maker-avatar--xl { width: 84px; height: 84px; font-size: 30px; }
  .history-verb { min-width: 0; }
  .history-item time { margin-left: 0; width: 100%; }
  .bigsearch input { font-size: 17px; }

  .tabbar { background: rgba(40, 33, 28, .72); display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
    border-radius: 999px; padding: 6px; justify-content: space-between; }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 999px;
    font-size: 10.5px; color: var(--ink-2); background: none; border: 0; }
  .tab svg { width: 22px; height: 22px; }
  .tab.is-active { background: rgba(255, 250, 244, .92); color: #1d1814; font-weight: 600; }

  .sheet { display: block; position: fixed; inset: 0; z-index: 40; }
  .sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); animation: fade .25s both; }
  .sheet-panel { position: absolute; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); border-radius: 28px; padding: 10px 10px 14px;
    display: flex; flex-direction: column; animation: up .35s var(--ease) both; }
  .sheet-grip { width: 38px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 8px; }
  .sheet-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; font-size: 16px; }
  .sheet-link:active { background: var(--pill); }
  .toast { bottom: calc(96px + var(--safe-b)); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Browsers zonder backdrop-filter: iets dichtere achtergrond */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(44, 37, 31, .92); }
  .glass-strong { background: rgba(36, 30, 25, .96); }
}

/* Podcasts */
.podsearch { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.podsearch .form { display: flex; flex-direction: column; gap: 12px; }
.podsearch .form .btn { align-self: flex-start; }
.podsearch textarea { resize: vertical; min-height: 140px; font: inherit; }
.pod-hit { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-md); }
.pod-hit + .pod-hit { margin-top: 2px; }
.pod-hit:hover { background: rgba(255, 255, 255, .05); }
.pod-hit .maker-text { flex: 1; }
.pod-hit .maker-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-hit form { flex: none; }
.maker-avatar--square { border-radius: 12px; width: 56px; height: 56px; }
.text-danger { color: var(--danger) !important; }
.feedstatus { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-lg); margin: 0 0 18px; }
.feedstatus > div { min-width: 0; }
.feedstatus p { margin: 4px 0 0; }
.feedstatus--error { border-color: rgba(255, 143, 134, .35); }
.feed-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player { padding: 14px; border-radius: var(--r-lg); margin: 0 0 14px; }
.player audio { width: 100%; display: block; }
.player p { margin: 8px 2px 0; }
.btn.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 760px) {
  .podsearch { grid-template-columns: minmax(0, 1fr); }
  .feedstatus { flex-direction: column; align-items: flex-start; }
}
