/* ==========================================================================
   SiratulMustaqim — Pusat Belajar
   Sistem desain: token warna, tipografi, komponen, tata letak responsif.
   ========================================================================== */

/* ── Token ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #FAF6EC;
  --bg-soft: #F3ECDA;
  --surface: #FFFDF8;
  --surface-2: #F6F0E2;
  --surface-3: #ECE3CE;
  --ink: #13221D;
  --ink-2: #39483F;
  --muted: #58645B;
  --line: #E8DEC6;
  --line-2: #D8CBAE;
  --primary: #0B5D4B;
  --primary-2: #084A3C;
  --primary-ink: #FFFFFF;
  --primary-soft: #E0EEE6;
  --primary-text: #0A5444;
  --accent: #B4872B;
  --accent-soft: #F7EDD3;
  --accent-text: #7F5B12;
  --gold: #C9A24A;
  --gold-2: #E2C06E;
  --emerald-deep: #062F27;
  --font-display: 'Playfair Display', 'Literata', Georgia, serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  /* Bintang delapan (khatam) & segi delapan */
  --star8: polygon(50% 0, 64.64% 14.64%, 85.36% 14.64%, 85.36% 35.36%, 100% 50%, 85.36% 64.64%, 85.36% 85.36%, 64.64% 85.36%, 50% 100%, 35.36% 85.36%, 14.64% 85.36%, 14.64% 64.64%, 0 50%, 14.64% 35.36%, 14.64% 14.64%, 35.36% 14.64%);
  --octagon: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  /* Pola geometris "bintang & salib" */
  --pat-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cdefs%3E%3Cg id='s'%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4'/%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4' transform='rotate(45)'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%230B5D4B' stroke-opacity='.09'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' y='60'/%3E%3Cuse href='%23s' x='60' y='60'/%3E%3Cg transform='translate(30 30) scale(.41)' stroke-width='2.4'%3E%3Cuse href='%23s'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pat-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cdefs%3E%3Cg id='s'%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4'/%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4' transform='rotate(45)'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.12'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' y='60'/%3E%3Cuse href='%23s' x='60' y='60'/%3E%3Cg transform='translate(30 30) scale(.41)' stroke-width='2.4'%3E%3Cuse href='%23s'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pat-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cdefs%3E%3Cg id='s'%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4'/%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4' transform='rotate(45)'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%23E2C06E' stroke-opacity='.14'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' y='60'/%3E%3Cuse href='%23s' x='60' y='60'/%3E%3Cg transform='translate(30 30) scale(.41)' stroke-width='2.4'%3E%3Cuse href='%23s'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pat-gold-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cdefs%3E%3Cg id='s'%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4'/%3E%3Crect x='-21.2' y='-21.2' width='42.4' height='42.4' transform='rotate(45)'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%23E2C06E' stroke-opacity='.055'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='60'/%3E%3Cuse href='%23s' y='60'/%3E%3Cuse href='%23s' x='60' y='60'/%3E%3Cg transform='translate(30 30) scale(.41)' stroke-width='2.4'%3E%3Cuse href='%23s'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pat-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M7 .5 9.5 3 7 5.5 4.5 3z' fill='%23E2C06E'/%3E%3C/svg%3E");
  --danger: #B4423A;
  --ok: #1E8A5A;
  --focus: #2F7DD1;
  --shadow-xs: 0 1px 2px rgba(21, 32, 28, .06);
  --shadow-sm: 0 1px 3px rgba(21, 32, 28, .07), 0 1px 2px rgba(21, 32, 28, .04);
  --shadow: 0 10px 30px -12px rgba(21, 32, 28, .18), 0 2px 6px rgba(21, 32, 28, .05);
  --shadow-lg: 0 30px 60px -20px rgba(21, 32, 28, .32);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Literata', Georgia, 'Times New Roman', serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --prose-size: 1.125rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08130F; --bg-soft: #0B1A15; --surface: #0E1D18; --surface-2: #13261F; --surface-3: #1A3129;
    --ink: #EEF2EC; --ink-2: #C3CDC4; --muted: #A5B4AB; --line: #1E352D; --line-2: #2A463C;
    --primary: #3FBF97; --primary-2: #5FD1AE; --primary-ink: #04201A; --primary-soft: #12332A; --primary-text: #74D8B8;
    --accent: #D9B25E; --accent-soft: #2A2312; --accent-text: #E9C981; --gold: #D9B25E; --gold-2: #F0D48E; --emerald-deep: #04150F;
    --pat-green: var(--pat-gold-soft);
    --danger: #E07068; --ok: #4CC48C;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08130F; --bg-soft: #0B1A15; --surface: #0E1D18; --surface-2: #13261F; --surface-3: #1A3129;
  --ink: #EEF2EC; --ink-2: #C3CDC4; --muted: #A5B4AB; --line: #1E352D; --line-2: #2A463C;
  --primary: #3FBF97; --primary-2: #5FD1AE; --primary-ink: #04201A; --primary-soft: #12332A; --primary-text: #74D8B8;
  --accent: #D9B25E; --accent-soft: #2A2312; --accent-text: #E9C981; --gold: #D9B25E; --gold-2: #F0D48E; --emerald-deep: #04150F;
    --pat-green: var(--pat-gold-soft);
  --danger: #E07068; --ok: #4CC48C;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* Warna tema per koleksi */
/* Satu palet saja: semua koleksi memakai hijau zamrud + emas (tidak warna-warni) */
.tone-emerald, .tone-teal, .tone-sky, .tone-indigo, .tone-violet, .tone-rose, .tone-amber, .tone-slate {
  --ta: #0F6E58; --tb: #073B30; --tsoft: #E0EEE6; --tink: #0A5444;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [class*="tone-"] { --tsoft: color-mix(in srgb, var(--ta) 20%, transparent); --tink: color-mix(in srgb, var(--ta) 45%, white); }
}
:root[data-theme="dark"] [class*="tone-"] { --tsoft: color-mix(in srgb, var(--ta) 20%, transparent); --tink: color-mix(in srgb, var(--ta) 45%, white); }

/* ── Dasar ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
body.has-player { padding-bottom: 84px; }
img, video, iframe { max-width: 100%; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { color: var(--primary); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--muted); line-height: 1.4;
}
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
#main:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }

.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.page-pad { padding-block: 32px 72px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--primary-ink); }

.boot { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 60vh; color: var(--muted); }
.boot-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.noscript { padding: 24px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* "backwards", bukan "both": transform yang menetap akan mengurung elemen position:fixed (laci, overlay). */
#app.page-enter > * { animation: enter .25s ease-out backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ── Tombol & chip ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 650; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  max-width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-2); color: var(--primary-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost.danger { color: var(--danger); }
.btn-soft { background: var(--primary-soft); color: var(--primary-text); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 12%); color: var(--primary-text); }
.btn-light { background: #fff; color: #10201B; }
.btn-light:hover { background: #F1F5F3; color: #10201B; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-tone { background: var(--tsoft); color: var(--tink); width: 100%; }
.btn-tone:hover { background: var(--ta); color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  color: var(--ink-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn.is-on { color: var(--accent); }
.icon-btn.is-on .i { fill: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary-text); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip small { opacity: .7; font-weight: 500; }
.chip .i { width: 14px; height: 14px; }
.chip-ghost { background: transparent; }

.done-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.done-pill .i { width: 13px; height: 13px; }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .6s var(--ease); }
.progress-sm { height: 4px; }

.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: rgba(255, 255, 255, .2); }
.ring-bar { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }

.sk { display: block; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
.sk-line { height: .9em; margin: .55em 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta); flex: none; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled, body.mega-open .site-header { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.nav-link.active { color: var(--primary-text); background: var(--primary-soft); }
.nav-caret { width: 16px; height: 16px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; width: 240px; padding: 0 8px 0 12px;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font-size: .9rem; transition: border-color .2s, box-shadow .2s;
}
.search-trigger:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-trigger .i { width: 18px; height: 18px; }
.search-trigger kbd { margin-left: auto; }
.menu-btn { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: drop .22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 28px 32px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.mega-head { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); margin-bottom: 10px; font-size: .95rem; }
.mega-head .i { color: var(--primary); }
.mega-col ul { display: grid; gap: 1px; }
.mega-col li a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-inline: -10px; border-radius: 9px;
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
}
.mega-col li a:hover { background: var(--surface-2); color: var(--ink); }
.mega-col li small { margin-left: auto; color: var(--muted); font-size: .75rem; font-weight: 600; }
.mega-feature { background: var(--surface-2); margin: -12px 0 -16px; padding: 12px 18px 16px; border-radius: var(--r); }
.mega-feature li a:hover { background: var(--surface); }
.mega-all { margin-top: 14px; }

/* ── Laci seluler ──────────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 10, .5); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg);
  overflow-y: auto; padding: 14px 18px 32px; transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 14px;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--ink); font-weight: 600; }
.drawer-nav a .i { color: var(--muted); }
.drawer-nav a.active { background: var(--primary-soft); color: var(--primary-text); }
.drawer-nav a.active .i { color: var(--primary-text); }
.drawer-group { border-top: 1px solid var(--line); }
.drawer-group summary { display: flex; align-items: center; gap: 12px; padding: 14px 12px; font-weight: 700; cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary .i:first-child { color: var(--primary); }
.drawer-group .caret { margin-left: auto; transition: transform .2s; color: var(--muted); }
.drawer-group[open] .caret { transform: rotate(180deg); }
.drawer-group ul { padding: 0 6px 12px; display: grid; gap: 1px; }
.drawer-group li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-size: .93rem; }
.drawer-group li a:hover { background: var(--surface-2); }
.drawer-foot { margin-top: auto; padding-top: 10px; }

/* ── Palet pencarian ───────────────────────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 10, .55); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.palette-panel {
  position: relative; width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden; animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-input > .i { color: var(--muted); }
.palette-input input { flex: 1; height: 58px; border: 0; background: none; outline: none; font-size: 1.05rem; min-width: 0; }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-input kbd { cursor: pointer; }
.palette-body { overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.palette-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 10px; }
.palette-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); }
.palette-row.active, .palette-row:hover { background: var(--surface-2); color: var(--ink); }
.palette-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tsoft, var(--primary-soft)); color: var(--tink, var(--primary-text)); flex: none; }
.palette-ic .i { width: 19px; height: 19px; }
.palette-text { display: grid; min-width: 0; }
.palette-text strong { font-weight: 650; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-text small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-type { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 99px; flex: none; }
.palette-full { margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; }
.palette-go { margin-left: auto; color: var(--muted); }
.palette-empty { padding: 18px 12px; color: var(--muted); font-size: .92rem; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--surface-2); }
.palette-foot kbd { margin-right: 4px; }

/* ── Bagian umum ───────────────────────────────────────────────────────── */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: 32px 8px; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.section-sub { margin-top: 10px; color: var(--muted); max-width: 640px; font-size: 1.02rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow .i { width: 16px; height: 16px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .93rem; white-space: nowrap; }
.link-more .i { width: 17px; height: 17px; transition: transform .2s; }
.link-more:hover .i { transform: translateX(3px); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(800px 520px at -10% 10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%230E6B57' stroke-opacity='.09'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.hero h1 em { font-family: var(--font-read); font-weight: 600; font-style: italic; color: var(--primary-text); letter-spacing: -.02em; }
.hero-lead { margin-top: 20px; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 600px; text-wrap: pretty; }
.hero-search {
  margin-top: 28px; display: flex; align-items: center; gap: 10px; max-width: 600px;
  padding: 6px 6px 6px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: var(--shadow), 0 0 0 4px var(--primary-soft); }
.hero-search > .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; background: none; font-size: 1rem; }
.hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-tags > span { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 2px; }

.hero-panel { display: grid; gap: 14px; }
.verse-wrap { filter: drop-shadow(0 28px 36px rgba(6, 47, 39, .32)); }
.verse-card {
  position: relative; margin: 0; padding: 54px 30px 30px; text-align: center; color: #fff; overflow: hidden;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 160px 160px var(--r-lg) var(--r-lg);
  background: radial-gradient(70% 45% at 50% 0%, rgba(242, 196, 109, .28), transparent 70%), var(--pat-white), linear-gradient(165deg, #0F6E58, #073B30 70%);
}
.verse-card::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(242, 196, 109, .55); border-radius: 50% 50% 14px 14px / 152px 152px 14px 14px; pointer-events: none; }
.verse-star { display: inline-grid; color: #F2C46D; }
.verse-star .i { width: 30px; height: 30px; fill: rgba(242, 196, 109, .15); }
.verse-ar { margin-top: 4px; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: #F6D892; line-height: 1.8; }
.verse-card blockquote { margin: 0 0 8px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.35; }
.verse-card figcaption { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-xs); }
.stat strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.hero-start { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .2s; }
.hero-start:hover { color: var(--accent-text); transform: translateY(-2px); }
.hero-start-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.hero-start-ic .i { width: 16px; height: 16px; margin-left: 2px; }
.hero-start strong { display: block; font-size: .95rem; }
.hero-start small { font-size: .85rem; opacity: .85; }
.hero-start > .i:last-child { margin-left: auto; }

/* ── Lanjutkan ─────────────────────────────────────────────────────────── */
.continue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.continue-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s; }
.continue-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.continue-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.continue-body small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-body strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.continue-go .i { width: 14px; height: 14px; margin-left: 2px; }

/* ── Sampul koleksi ────────────────────────────────────────────────────── */
.cover {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: none; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-opacity='.13'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3Cpath d='M0 0l14 14M48 0 34 14M0 48l14-14M48 48 34 34'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--ta) 60%, white 20%), transparent 60%),
    linear-gradient(150deg, var(--ta), var(--tb));
}
.cover-icon { display: grid; place-items: center; border-radius: 30%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(2px); }
.cover-label { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .22); padding: 3px 8px; border-radius: 99px; }
.cover-xs { width: 40px; height: 40px; border-radius: 10px; }
.cover-xs .cover-icon { border: 0; background: none; }
.cover-xs .i { width: 18px; height: 18px; }
.cover-sm { width: 52px; height: 52px; border-radius: 13px; }
.cover-sm .cover-icon { background: none; border: 0; }
.cover-sm .i { width: 22px; height: 22px; }
.cover-md { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r) var(--r) 0 0; }
.cover-md .cover-icon { width: 60px; height: 60px; }
.cover-md .i { width: 28px; height: 28px; }
.cover-lg { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); }
.cover-lg .cover-icon { width: 72px; height: 72px; }
.cover-lg .i { width: 34px; height: 34px; }

/* ── Kartu koleksi ─────────────────────────────────────────────────────── */
.col-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.col-card {
  display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; height: 100%;
}
.col-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.col-card:hover .cover-icon { transform: scale(1.06); }
.col-card .cover-icon { transition: transform .35s var(--ease); }
.col-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.col-card-body h3 { font-size: 1.05rem; font-weight: 750; }
.col-card-body p { color: var(--muted); font-size: .9rem; line-height: 1.45; flex: 1; }
.col-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.col-card-meta > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.col-card-meta .i { width: 15px; height: 15px; }
.col-card .progress { margin-top: 4px; }
.col-card-more { align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; background: var(--surface-2); border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.col-card-more span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }
.col-card-more strong { font-size: 1.02rem; }
.col-card-more small { color: var(--muted); }
.col-wrap { position: relative; }
.match-note { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; box-shadow: var(--shadow-sm); }

/* ── Jalur belajar ─────────────────────────────────────────────────────── */
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); overflow: hidden;
}
.path-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ta), var(--tb)); }
.path-top { display: flex; align-items: center; justify-content: space-between; }
.path-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tsoft); color: var(--tink); }
.path-count { font-size: .8rem; font-weight: 700; color: var(--muted); }
.path-card h3 { font-size: 1.25rem; font-weight: 800; }
.path-card > p { color: var(--muted); font-size: .93rem; }
.path-steps { display: grid; gap: 2px; margin: 4px 0; position: relative; }
.path-steps::before { content: ''; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.path-steps a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 0; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.path-steps a:hover { color: var(--tink); }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tsoft); color: var(--tink); font-size: .78rem; font-weight: 800; flex: none; }
.path-steps a:hover .step-n { background: var(--ta); border-color: var(--ta); color: #fff; }
.step-t { flex: 1; min-width: 0; }
.path-steps small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.path-card .btn { margin-top: auto; }

/* ── Kebutuhan ─────────────────────────────────────────────────────────── */
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.need-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.need-card:hover { color: var(--ink); border-color: var(--ta); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.need-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tsoft); color: var(--tink); flex: none; }
.need-text { display: grid; min-width: 0; }
.need-text strong { font-size: .97rem; font-weight: 700; }
.need-text small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need-go { margin-left: auto; color: var(--muted); width: 18px; height: 18px; transition: transform .2s; }
.need-card:hover .need-go { transform: translateX(3px); color: var(--ink); }

/* ── Seksi gelap & media ───────────────────────────────────────────────── */
.section-dark { background: #0D1B17; color: #E8EFEB; position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 0%, rgba(226, 179, 92, .16), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(59, 183, 146, .14), transparent 70%); }
.section-dark .container { position: relative; }
.section-dark .eyebrow { color: #EBC57E; }
.section-dark .section-sub { color: #A9B8B1; }
.section-dark .link-more { color: #8EE0C4; }
.media-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.media-tile { position: relative; display: block; color: #fff; border-radius: var(--r-lg); overflow: hidden; }
.media-tile:hover { color: #fff; }
.media-tile .cover-lg { border-radius: 0; aspect-ratio: 3 / 4; transition: transform .5s var(--ease); }
.media-tile:hover .cover-lg { transform: scale(1.04); }
.media-tile .cover-icon { margin-bottom: 30%; }
.media-tile-body { position: absolute; inset: auto 0 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: grid; gap: 2px; }
.media-tile-body small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.media-tile-body strong { font-size: 1.15rem; font-weight: 750; }
.media-tile-body span { font-size: .85rem; opacity: .85; }
.media-tile-play { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0D1B17; box-shadow: var(--shadow); transition: transform .2s; }
.media-tile-play .i { width: 16px; height: 16px; margin-left: 2px; }
.media-tile:hover .media-tile-play { transform: scale(1.1); }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--primary-soft) 80%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.cta-copy { display: flex; gap: 18px; align-items: flex-start; flex: 1 1 420px; }
.cta-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); color: var(--danger); box-shadow: var(--shadow-sm); flex: none; }
.cta-ic .i { width: 26px; height: 26px; fill: color-mix(in srgb, var(--danger) 18%, transparent); }
.cta-card h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; }
.cta-card p { margin-top: 8px; color: var(--ink-2); max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Kepala halaman ────────────────────────────────────────────────────── */
.page-head { padding-block: clamp(28px, 4vw, 48px) 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.page-lead { margin-top: 12px; color: var(--ink-2); max-width: 720px; font-size: 1.05rem; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-text); }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs span { color: var(--ink-2); }
.crumbs-light, .crumbs-light a, .crumbs-light span { color: rgba(255, 255, 255, .75); }
.crumbs-light a:hover { color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.toolbar .tabs { margin-top: 0; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 11px; font-weight: 650; font-size: .9rem; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); transition: all .2s; }
.tab:hover { border-color: var(--ink-2); }
.tab.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab .i { width: 16px; height: 16px; }
.tab small { font-size: .75rem; opacity: .65; }
.filter-input { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); min-width: 260px; color: var(--muted); }
.filter-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.filter-input input { flex: 1; border: 0; outline: none; background: none; color: var(--ink); min-width: 0; }

.lib-body { padding-block: 36px 80px; display: grid; gap: 52px; }
.lib-section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.lib-section-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.lib-section-head h2 { font-size: 1.45rem; font-weight: 800; }
.lib-section-head p { color: var(--muted); margin-top: 4px; max-width: 720px; }

.empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--surface-2); color: var(--muted); margin-bottom: 6px; }
.empty-icon .i { width: 28px; height: 28px; }
.empty h3 { font-size: 1.2rem; font-weight: 750; }
.empty p { color: var(--muted); max-width: 440px; }
.empty .btn, .empty .btn-row { margin-top: 10px; }

/* ── Halaman koleksi ───────────────────────────────────────────────────── */
.col-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--ta), var(--tb) 75%); }
.col-hero-pattern {
  position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-opacity='.08'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3Cpath d='M0 0l14 14M48 0 34 14M0 48l14-14M48 48 34 34'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.col-hero-inner { position: relative; padding-block: clamp(28px, 4vw, 44px) clamp(36px, 5vw, 56px); }
.col-hero-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.col-hero-ic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); align-self: start; }
.col-hero-ic .i { width: 44px; height: 44px; }
.col-hero-kind { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.col-hero h1 { margin-top: 8px; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.col-hero-desc { margin-top: 12px; max-width: 640px; font-size: 1.05rem; opacity: .92; }
.col-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.col-hero-actions .btn-light { max-width: min(100%, 440px); }
.col-hero-progress { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-lg); background: rgba(0, 0, 0, .14); border: 1px solid rgba(255, 255, 255, .14); }
.col-hero-progress strong { display: block; font-size: 1.5rem; font-weight: 800; }
.col-hero-progress small { opacity: .8; font-size: .85rem; white-space: nowrap; }

.col-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-block: 36px 80px; align-items: start; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h2 { font-size: 1.3rem; font-weight: 800; }
.list-head span { color: var(--muted); font-size: .88rem; }
.lesson-list { display: grid; gap: 10px; counter-reset: l; }
.lesson { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.lesson:hover { color: var(--ink); border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.lesson-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; flex: none; }
.lesson-done .lesson-n { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.lesson-started .lesson-n { background: var(--primary-soft); color: var(--primary-text); }
.lesson-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.lesson-body strong { font-size: 1.02rem; font-weight: 700; }
.lesson-excerpt { color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-excerpt .sk-line { margin: .35em 0 .1em; }
.lesson-state { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lesson-done .lesson-state { color: var(--ok); }
.lesson-started .lesson-state { color: var(--primary-text); }
.lesson-go { color: var(--muted); width: 18px; height: 18px; }

.col-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 750; margin-bottom: 6px; }
.side-card h3 .i { width: 18px; height: 18px; color: var(--primary); }
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 8px; margin-inline: -8px; border-radius: 11px; color: var(--ink); }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link span { display: grid; min-width: 0; }
.side-link strong { font-size: .92rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link small { color: var(--muted); font-size: .8rem; }

/* ── Pembaca artikel ───────────────────────────────────────────────────── */
body.reader-mode .site-header { position: relative; }
.reader-bar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-block: 1px solid var(--line); }
.reader-bar-inner { height: 56px; display: flex; align-items: center; gap: 10px; }
.outline-toggle { display: none; }
.reader-bar-title { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.reader-bar-title small { font-size: .74rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-bar-title strong { font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-bar-actions { display: flex; align-items: center; gap: 2px; }
.reader-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.reader-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 0 3px 3px 0; transition: width .1s linear; }

.popover-wrap { position: relative; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 5; animation: pop .18s var(--ease); }
.popover-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.popover-label:not(:first-child) { margin-top: 14px; }
.size-ctrl { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 11px; padding: 3px; }
.size-ctrl span { font-weight: 650; font-size: .9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 11px; }
.seg button { height: 36px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ff-serif { font-family: var(--font-read); font-weight: 600; }
.ff-sans { font-family: var(--font-ui); font-weight: 700; }

.reader-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-block: 36px 80px; align-items: start; }
.outline { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; display: grid; gap: 14px; padding-right: 6px; scrollbar-width: thin; }
.outline-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.outline-col { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.outline-col:hover { color: var(--primary-text); }
.outline-col > span:last-child { display: grid; min-width: 0; }
.outline-col small { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.outline-col strong { font-size: .95rem; font-weight: 750; line-height: 1.25; }
.outline-close { display: none; }
.outline-progress { display: grid; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.outline-list { display: grid; gap: 1px; border-top: 1px solid var(--line); padding-top: 10px; }
.outline-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: .9rem; line-height: 1.35; }
.outline-item:hover { background: var(--surface-2); color: var(--ink); }
.outline-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: .72rem; font-weight: 800; flex: none; color: var(--muted); margin-top: -1px; }
.outline-n .i { width: 13px; height: 13px; }
.outline-item.done .outline-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.outline-list li.current > .outline-item { background: var(--primary-soft); color: var(--primary-text); font-weight: 700; }
.outline-list li.current > .outline-item .outline-n { border-color: var(--primary); color: var(--primary-text); }
.outline-list li.current > .outline-item.done .outline-n { color: #fff; }
.toc { margin: 6px 0 8px 21px; padding-left: 12px; border-left: 2px solid var(--line); display: grid; gap: 1px; }
.toc:empty { display: none; }
.toc button { display: block; width: 100%; text-align: left; padding: 5px 10px; border-radius: 8px; font-size: .84rem; color: var(--muted); line-height: 1.35; position: relative; }
.toc button:hover { color: var(--ink); background: var(--surface-2); }
.toc button.active { color: var(--primary-text); font-weight: 650; }
.toc button.active::before { content: ''; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 2px; background: var(--primary); border-radius: 2px; }
.toc li.sub button { padding-left: 22px; font-size: .8rem; }

.reader { min-width: 0; max-width: 740px; }
.reader-head { margin-bottom: 28px; }
.reader-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase; }
.tone-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--ta); }
.reader-head h1 { margin-top: 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: .9rem; font-weight: 500; min-height: 24px; }
.reader-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.reader-meta .i { width: 16px; height: 16px; }
.meta-done { color: var(--ok); font-weight: 650; }
.resume { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font-weight: 650; font-size: .9rem; }
.resume .i { width: 18px; height: 18px; }
.audio-callout { margin-top: 20px; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.audio-callout > div { flex: 1; min-width: 0; display: grid; }
.audio-callout strong { font-size: .95rem; }
.audio-callout small { color: var(--muted); font-size: .85rem; }
.audio-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); flex: none; transition: transform .2s; }
.audio-play:hover { transform: scale(1.06); }
.audio-play .i { width: 18px; height: 18px; }
.audio-ic { color: var(--muted); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; width: 16px; }
.eq i { flex: 1; background: var(--primary); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* Tipografi artikel */
.prose {
  font-family: var(--font-read); font-size: var(--prose-size); line-height: var(--prose-lh, 1.8); color: var(--ink);
  font-optical-sizing: auto; overflow-wrap: break-word; hyphens: auto;
}
:root[data-read-font="sans"] .prose { font-family: var(--font-ui); line-height: calc(var(--prose-lh, 1.8) - .05); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-ui); color: var(--ink); scroll-margin-top: 90px; text-wrap: balance; }
.prose h2 { font-size: 1.55em; font-weight: 800; margin-top: 2em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.22em; font-weight: 750; margin-top: 1.9em; }
.prose h4 { font-size: 1.05em; font-weight: 750; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose blockquote, .prose .scripture {
  margin-inline: 0; padding: 1em 1.2em; border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--r) var(--r) 0; color: var(--ink);
}
.prose blockquote > * + * { margin-top: .8em; }
.prose .scripture em { font-style: italic; }
.prose figure { margin-inline: 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--surface-2); }
.prose figure.is-small { max-width: 360px; margin-inline: auto; }
.prose figcaption { margin-top: .6em; font-family: var(--font-ui); font-size: .8em; color: var(--muted); text-align: center; }
.prose p img { max-height: 1.6em; vertical-align: middle; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin-block: 2.2em; }
.prose details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose summary { padding: .8em 1.1em; cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: .95em; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '+'; font-size: 1.3em; color: var(--muted); transition: transform .2s; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose .details-body { padding: 0 1.1em 1em; }
.prose .details-body > * + * { margin-top: .8em; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; }
.prose td, .prose th { padding: .6em .9em; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:last-child td { border-bottom: 0; }
.prose audio { width: 100%; }
.prose-skeleton { padding-top: 6px; }

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-video video { object-fit: contain; background: #000; }

.video-block { margin-top: 44px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.video-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.video-block h2 .i { color: var(--primary); }
.clip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-chips .chip { height: auto; padding: 7px 12px; text-align: left; }
.video-caption { color: var(--muted); font-size: .9rem; }

.reader-foot { margin-top: 48px; display: grid; gap: 20px; }
.done-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.done-card > div { flex: 1; display: grid; }
.done-card strong { font-size: 1rem; }
.done-card small { color: var(--muted); }
.done-ic { color: var(--line-2); }
.done-ic .i { width: 32px; height: 32px; }
.done-ic.ok { color: var(--ok); }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads:empty { display: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager-link { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pager-link:hover { color: var(--ink); border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pager-link small { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 650; }
.pager-link small .i { width: 15px; height: 15px; }
.pager-link strong { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.pager-link.next { text-align: right; }
.pager-link.next small { justify-content: flex-end; }
.source-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.source-note .i { width: 16px; height: 16px; margin-top: 2px; }
.source-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.outline-backdrop { display: none; }

/* ── Media ─────────────────────────────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.media-card { position: relative; display: grid; gap: 12px; color: var(--ink); }
.media-card:hover { color: var(--ink); }
.media-card .cover-lg { transition: transform .4s var(--ease), box-shadow .3s; box-shadow: var(--shadow-sm); }
.media-card:hover .cover-lg { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-card-body { display: grid; gap: 2px; }
.media-card-body small { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.media-card-body strong { font-size: 1.05rem; font-weight: 750; }
.media-card-body span { font-size: .88rem; color: var(--muted); }
.media-card-play { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #10201B; box-shadow: var(--shadow); opacity: 0; transform: scale(.9); transition: all .25s; }
.media-card-play .i { width: 15px; height: 15px; margin-left: 2px; }
.media-card:hover .media-card-play, .media-card:focus-visible .media-card-play { opacity: 1; transform: none; }

.track-list { display: grid; gap: 6px; }
.track { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.track:hover { border-color: var(--line-2); }
.track.current { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.track-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); flex: none; }
.track-n { font-weight: 800; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.track-play { position: absolute; width: 16px; height: 16px; opacity: 0; color: var(--primary-text); }
.track:hover .track-n, .track.current .track-n { opacity: 0; }
.track:hover .track-play, .track.current .track-play { opacity: 1; }
.track.current .track-btn { background: var(--primary); }
.track.current .track-play { color: var(--primary-ink); }
.track-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.track-body strong { font-weight: 650; font-size: .97rem; }
.track-rel { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; }
.track-rel .i { width: 14px; height: 14px; }
.track .eq { display: none; }
.track.playing .eq { display: inline-flex; }
.track-d { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

.film-stage { background: #0B1512; color: #E8EFEB; padding-block: 24px 40px; }
.film-layout { display: grid; gap: 24px; }
.film-layout.has-list { grid-template-columns: minmax(0, 1fr) 340px; }
.film-embed { border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.film-info { margin-top: 20px; display: grid; gap: 10px; }
.film-now { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #EBC57E; }
.film-info h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; }
.film-info p { color: #A9B8B1; max-width: 680px; }
.film-info .btn-row { justify-content: flex-start; margin-top: 6px; }
.clip-list { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 640px; }
.clip-list-head { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.clip-list-head span { color: #8B9993; }
.clip-list ol { overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.clip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; color: #C9D5D0; font-size: .9rem; }
.clip:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.clip.active { background: rgba(59, 183, 146, .16); color: #fff; }
.clip-n { display: grid; place-items: center; min-width: 34px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .08); font-size: .75rem; font-weight: 800; }
.clip.active .clip-n { background: #3BB792; color: #04201A; }
.clip-t { flex: 1; line-height: 1.3; }
.clip-d { font-size: .78rem; color: #8B9993; font-variant-numeric: tabular-nums; }

/* ── Pencarian ─────────────────────────────────────────────────────────── */
.search-page-form { margin-top: 20px; max-width: none; }
.results + .results { margin-top: 40px; }
.results-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.results-title small { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 9px; border-radius: 99px; }
.result-list { display: grid; gap: 8px; }
.result { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.result:hover { color: var(--ink); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.result-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.result-body strong { font-weight: 700; }
.result-body small { color: var(--muted); font-size: .82rem; }
.result-excerpt { margin-top: 6px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.result-skeleton { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }

/* ── Belajar saya ──────────────────────────────────────────────────────── */
.learn-stats { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.learn-stat { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.learn-stat > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.learn-stat strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.learn-stat small { color: var(--muted); font-size: .82rem; }
.learn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.learn-cols { display: grid; gap: 10px; }
.learn-col { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.learn-col-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.learn-col-body a { color: var(--ink); }
.learn-col-body small { color: var(--muted); }
.learn-side { display: grid; gap: 16px; }
.learn-row { display: flex; align-items: center; gap: 12px; padding: 8px; margin-inline: -8px; border-radius: 11px; color: var(--ink); }
.learn-row:hover { background: var(--surface-2); color: var(--ink); }
.learn-row-body { flex: 1; min-width: 0; display: grid; }
.learn-row-body strong { font-size: .9rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-row-body small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-pct { font-size: .78rem; font-weight: 700; color: var(--primary-text); }

/* ── Tentang ───────────────────────────────────────────────────────────── */
.about { display: grid; gap: 40px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.mission-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-text); }
.mission h2 { font-size: 1.2rem; font-weight: 800; }
.mission p { color: var(--ink-2); }
.about-block h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.about-block > p { color: var(--ink-2); font-size: 1.02rem; }
.about-block > p + p { margin-top: 14px; }
.about-block a { text-decoration: underline; text-underline-offset: 3px; }
.howto { display: grid; gap: 12px; }
.howto li { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.howto li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; flex: none; }
.howto strong { font-size: 1rem; }
.howto p { color: var(--muted); margin-top: 2px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 14px 0 18px; color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--primary-text); }
.footer-col a.more { color: var(--primary-text); font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ── Pemutar audio ─────────────────────────────────────────────────────── */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .2); animation: up .3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
@keyframes up { from { transform: translateY(100%); } }
.player-seekline { display: none; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--surface-3); }
.player-seekline span { position: absolute; left: 0; top: 0; bottom: 0; }
#pl-buffer { background: var(--line-2); }
#pl-fill { background: var(--primary); }
.player-inner { max-width: var(--container); margin-inline: auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 14px; height: 76px; }
.player-art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: #fff; background: linear-gradient(150deg, var(--ta), var(--tb)); flex: none; }
.player-art:hover { color: #fff; }
.player-meta { min-width: 0; width: 260px; display: grid; }
.player-title { font-weight: 700; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: 4px; }
.player-controls .icon-btn .i { width: 18px; height: 18px; }
.player-play.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.player-play.icon-btn:hover { background: var(--primary-2); color: var(--primary-ink); }
.player-time { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#pl-seek { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--v, 0%), var(--surface-3) var(--v, 0%)); cursor: pointer; }
#pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
#pl-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); }
.player-speed { height: 32px; min-width: 48px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.player-speed:hover { border-color: var(--ink-2); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
body.has-player .toast-region { bottom: 100px; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #13201C; color: #F1F6F3; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast .i { width: 18px; height: 18px; }
.toast-success .i { color: #5CD6A6; }
.toast-error .i { color: #F2867E; }
.toast-info .i { color: #EBC57E; }

/* ── Nuansa Islami: pola geometris, lengkung mihrab, kaligrafi, aksen emas ─ */
.ar { font-family: var(--font-arabic); font-weight: 400; line-height: 1.9; letter-spacing: 0; }

/* Pita hias */
.site-header::before { content: ''; display: block; height: 6px; background: var(--pat-band) center / 14px 6px repeat-x, linear-gradient(90deg, var(--emerald-deep), var(--primary), var(--emerald-deep)); }
.site-header.scrolled, body.mega-open .site-header { border-bottom-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.mega { border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: 0; }
.brand-text small { color: var(--accent-text); }

/* Judul bergaya klasik */
.hero h1, .section-head h2, .page-head h1, .col-hero h1, .reader-head h1, .lib-section-head h2, .cta-card h2,
.film-info h1, .mission h2, .about-block h2, .list-head h2, .path-card h3, .empty h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.005em;
}
.hero h1 { margin-top: 8px; line-height: 1.1; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.7rem); }
.hero h1 em {
  font-family: var(--font-display); font-style: italic; font-weight: 600; padding-right: .08em;
  background: linear-gradient(100deg, var(--primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bismillah { display: inline-block; font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.1rem); color: var(--accent); line-height: 1.7; }
.hero-bg::after { background-image: var(--pat-green); opacity: 1; }
.hero-bg .rosette { position: absolute; right: -12%; top: 50%; width: min(780px, 80vw); color: var(--gold); opacity: .22; transform: translateY(-50%); }
@keyframes spin-slow { from { transform: translateY(-50%) rotate(0); } to { transform: translateY(-50%) rotate(360deg); } }
.stat { border-top: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); }

/* Ornamen garis-bintang */
.ornament { display: flex; align-items: center; gap: 10px; color: var(--gold); width: min(220px, 70%); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament span:last-child { background: linear-gradient(270deg, transparent, currentColor); }
.ornament .i { width: 18px; height: 18px; fill: color-mix(in srgb, currentColor 18%, transparent); }
.ornament-light { color: #F2C46D; margin: 2px auto 14px; }
.ornament-end { margin: 0 auto 4px; width: min(300px, 80%); }
.eyebrow::before { content: ''; width: 11px; height: 11px; flex: none; background: currentColor; clip-path: var(--star8); }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center > div { display: grid; justify-items: center; }
.section-head.center .ornament { margin-top: 14px; }
.section-head.center .section-sub { margin-inline: auto; }

/* Latar berpola */
.section-alt { background: var(--pat-green), var(--bg-soft); }
.section-dark { background: linear-gradient(180deg, #063A2F, var(--emerald-deep)); }
.section-dark::before { background: var(--pat-gold), radial-gradient(700px 400px at 90% 0%, rgba(226, 179, 92, .18), transparent 70%); }
.page-head { position: relative; overflow: hidden; border-bottom: 0; }
.page-head::before { content: ''; position: absolute; inset: 0; background: var(--pat-green); -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 85%); mask-image: linear-gradient(90deg, transparent 25%, #000 85%); pointer-events: none; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.page-head > .container { position: relative; }
.cta-card { position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: var(--pat-green); -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%); pointer-events: none; }
.cta-card > * { position: relative; }
.film-stage { background: var(--pat-gold), #0B1512; }

/* Sampul dengan bingkai mihrab */
.cover { background: var(--pat-white), radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--ta) 60%, white 20%), transparent 60%), linear-gradient(150deg, var(--ta), var(--tb)); }
.cover-md::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity: .85; }
.cover-md .cover-icon, .cover-lg .cover-icon { position: relative; background: none; border: 0; border-radius: 0; backdrop-filter: none; }
.cover-md .cover-icon { width: 60px; height: 75px; }
.cover-lg .cover-icon { width: 80px; height: 100px; }
.cover-md .cover-icon .i, .cover-lg .cover-icon .i { position: relative; margin-top: 24%; }
.cover-arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cover-arch path { fill: rgba(255, 255, 255, .1); stroke: rgba(246, 216, 146, .85); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.cover-arch .arch-in { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.col-card:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

.col-hero-ic {
  width: 92px; height: 112px; border-radius: 50% 50% 16px 16px / 46px 46px 16px 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(246, 216, 146, .7);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .04), inset 0 0 0 6px rgba(246, 216, 146, .25);
}
.col-hero-ic .i { margin-top: 16px; }
.col-hero-pattern { background-image: var(--pat-white); background-size: 72px 72px; }
.col-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--pat-band) center / 14px 6px repeat-x, rgba(0, 0, 0, .2); }

.media-tile { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 120px 120px var(--r-lg) var(--r-lg); isolation: isolate; }
.media-tile::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(246, 216, 146, .5); border-radius: 50% 50% 14px 14px / 112px 112px 14px 14px; pointer-events: none; }
.media-tile .cover-icon { margin-bottom: 25%; }
.media-tile-play { top: auto; bottom: 18px; right: 18px; }
.media-tile-body { padding-right: 70px; }
.media-card-art { position: relative; }
.media-card .cover-lg { border-radius: 50% 50% var(--r) var(--r) / 90px 90px var(--r) var(--r); }
.media-card-play { top: auto; bottom: 12px; right: 12px; }

/* Penanda nomor berbentuk bintang delapan (seperti penanda ayat) */
.lesson-n, .outline-n, .step-n, .howto li > span { position: relative; isolation: isolate; border: 0; border-radius: 0; clip-path: var(--star8); }
.lesson-n { width: 48px; height: 48px; background: color-mix(in srgb, var(--gold) 65%, transparent); color: var(--ink-2); font-size: .85rem; }
.lesson-n::before, .outline-n::before { content: ''; position: absolute; inset: 1.5px; clip-path: var(--star8); background: var(--surface-2); z-index: -1; }
.lesson-done .lesson-n, .lesson-done .lesson-n::before { background: var(--ok); color: #fff; }
.lesson-started .lesson-n { background: var(--primary); color: var(--primary-text); }
.lesson-started .lesson-n::before { background: var(--primary-soft); }
.outline-n { width: 28px; height: 28px; margin-top: -3px; background: color-mix(in srgb, var(--gold) 55%, transparent); }
.outline-item.done .outline-n, .outline-item.done .outline-n::before { background: var(--ok); color: #fff; }
.outline-list li.current > .outline-item .outline-n { background: var(--primary); }
.outline-list li.current > .outline-item .outline-n::before { background: var(--primary-soft); }
.outline-list li.current > .outline-item.done .outline-n::before { background: var(--ok); }
.step-n { width: 32px; height: 32px; background: var(--tsoft); color: var(--tink); }
.path-steps a:hover .step-n { background: var(--ta); color: #fff; }
.howto li > span { width: 42px; height: 42px; background: var(--primary); color: var(--primary-ink); }
.tone-dot { width: 12px; height: 12px; border-radius: 0; clip-path: var(--star8); }

/* Ubin ikon segi delapan */
.need-ic, .path-ic, .lib-section-ic, .mission-ic, .learn-stat > span, .palette-ic, .empty-icon, .cta-ic { border-radius: 0; clip-path: var(--octagon); }

/* Artikel */
.prose h2::before { content: ''; display: inline-block; width: .5em; height: .5em; margin-right: .45em; background: var(--gold); clip-path: var(--star8); vertical-align: .06em; }
.prose blockquote, .prose .scripture { position: relative; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-left: 3px solid var(--gold); }

/* Footer hijau-emas */
.site-footer { position: relative; border-top: 0; color: #CFE0D8; background: var(--pat-gold), linear-gradient(180deg, #073A30, var(--emerald-deep)); }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--pat-band) center / 14px 6px repeat-x, linear-gradient(90deg, #0B5D4B, #0F6E58, #0B5D4B); }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-text small { color: var(--gold-2); }
.footer-brand .footer-ar { display: inline-block; margin: 12px 0 0; font-size: 2rem; line-height: 1.6; color: var(--gold-2); }
.footer-brand p:not(.footer-ar) { color: #A9C2B8; }
.footer-col h4 { color: var(--gold-2); }
.footer-col a { color: #B5CBC1; }
.footer-col a:hover { color: #fff; }
.footer-col a.more { color: var(--gold-2); }
.footer-bottom { border-top-color: rgba(226, 192, 110, .18); color: #8FAAA0; }
.footer-bottom a { color: var(--gold-2); }
.site-footer .btn-primary { background: var(--gold-2); color: #062F27; box-shadow: none; }
.site-footer .btn-primary:hover { background: #F0D48E; color: #062F27; }

/* Nomor ayat */
.prose sup.vn { font-family: var(--font-ui); font-size: .6em; font-weight: 700; color: var(--accent-text); margin-right: .2em; line-height: 0; }

/* ── Halaman artikel statis (untuk Google & tautan langsung) ───────────── */
.static-page .site-header { position: sticky; }
.static-nav { display: flex; gap: 2px; margin-left: 12px; }
.static-cta { margin-left: auto; }
.reader-static { padding-block: 36px 72px; }
.reader-static .reader { margin-inline: auto; }
.static-foot { padding: 28px 0 40px; text-align: center; font-size: .88rem; color: #A9C2B8; }
.static-foot a { color: var(--gold-2); }
@media (max-width: 720px) { .static-nav { display: none; } }

/* ── Beranda yang ringkas ──────────────────────────────────────────────── */
.hero-first { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.hero-first strong { color: var(--primary-text); }
.hero-first .i { width: 17px; height: 17px; color: var(--primary-text); transition: transform .2s; }
.hero-first:hover .i { transform: translateX(3px); }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.explore-card {
  display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s;
}
.explore-card:hover { color: var(--ink); border-color: color-mix(in srgb, var(--gold) 50%, transparent); transform: translateY(-2px); }
.explore-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; clip-path: var(--octagon); background: var(--primary-soft); color: var(--primary-text); }
.explore-card strong { font-size: 1.08rem; font-weight: 750; }
.explore-card small { color: var(--muted); font-size: .88rem; }
.explore-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .88rem; font-weight: 650; color: var(--primary-text); }
.explore-go .i { width: 16px; height: 16px; }
.need-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.need-row > span { font-size: .9rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.section-tight-bottom { padding-block: 48px 64px; }
.cta-simple { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cta-simple > div { flex: 1; }
.cta-simple h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.cta-simple p { color: var(--muted); margin-top: 2px; }
@media (max-width: 960px) { .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cta-simple { flex-direction: column; align-items: flex-start; }
  .cta-simple .btn { width: 100%; }
  .explore-card { padding: 16px; }
  .need-row { justify-content: flex-start; }
}

/* ── Kenyamanan membaca lama ───────────────────────────────────────────── */
/* Pola latar memudar di area teks agar tidak bersaing dengan tulisan */
.hero-bg::after { -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, .3) 45%, #000 80%); mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, .3) 45%, #000 80%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 em { background-image: linear-gradient(100deg, var(--primary-text), var(--gold-2)); }
}
:root[data-theme="dark"] .hero h1 em { background-image: linear-gradient(100deg, var(--primary-text), var(--gold-2)); }

/* Mode fokus: hanya teks artikel */
body.focus-mode .site-header, body.focus-mode .site-footer { display: none; }
body.focus-mode .reader-layout { grid-template-columns: minmax(0, 1fr); }
body.focus-mode .outline, body.focus-mode .outline-backdrop, body.focus-mode .outline-toggle { display: none !important; }
body.focus-mode .reader { margin-inline: auto; width: 100%; }
body.focus-mode #reader-audio, body.focus-mode #reader-videos { display: none; }
.icon-btn.is-on[data-focus] { color: var(--primary-text); background: var(--primary-soft); }
.icon-btn.is-on[data-focus] .i { fill: none; }

/* Tombol kembali ke atas */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 45; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: opacity .2s, transform .2s;
}
.to-top:hover { color: var(--primary-text); transform: translateY(-2px); }
body.has-player .to-top { bottom: 100px; }
.kbd-tip { text-align: center; font-size: .82rem; color: var(--muted); }
.kbd-tip kbd { margin: 0 2px; }

/* ── Responsif ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .search-trigger:hover { box-shadow: none; background: var(--surface-2); }
  .search-trigger .i { width: 20px; height: 20px; }
  .nav { margin-left: 4px; }
}

@media (max-width: 1079px) {
  .reader-layout { grid-template-columns: minmax(0, 1fr); }
  .reader { margin-inline: auto; width: 100%; }
  .outline-toggle { display: inline-grid; }
  .outline {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 85; width: min(360px, 88vw); max-height: none;
    background: var(--bg); padding: 16px 16px 32px; transform: translateX(-102%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg); align-content: start;
  }
  .outline-close { display: inline-grid; }
  #app.outline-open .outline { transform: none; }
  .outline-backdrop { position: fixed; inset: 0; z-index: 84; background: rgba(5, 12, 10, .5); }
  #app.outline-open .outline-backdrop { display: block; animation: fade .2s; }
  .film-layout.has-list { grid-template-columns: minmax(0, 1fr); }
  .clip-list { max-height: 420px; }
  .learn-layout, .col-layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 960px) {
  .nav, .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .search-trigger:hover { box-shadow: none; background: var(--surface-2); }
  .search-trigger .i { width: 20px; height: 20px; }
  .menu-btn { display: inline-grid; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-panel .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-start { grid-column: 1 / -1; }
  .path-grid { grid-template-columns: minmax(0, 1fr); }
  .path-card { display: grid; grid-template-columns: 1fr; }
  .continue-grid { grid-template-columns: minmax(0, 1fr); }
  .media-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-hero-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .col-hero-ic { width: 66px; height: 80px; border-radius: 50% 50% 12px 12px / 33px 33px 12px 12px; }
  .col-hero-ic .i { margin-top: 10px; }
  .col-hero-ic .i { width: 30px; height: 30px; }
  .col-hero-progress { justify-self: start; }
  .learn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-time { display: none; }
  .player-seekline { display: block; }
  .player-meta { flex: 1; width: auto; }
  .player-speed { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .col-card-body { padding: 12px 14px 14px; }
  .col-card-body h3 { font-size: .97rem; }
  .col-card-body p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cover-md .cover-icon { width: 48px; height: 48px; }
  .cover-md .i { width: 22px; height: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding: 0 14px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filter-input { min-width: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-link.next { text-align: left; }
  .pager-link.next small { justify-content: flex-start; }
  .mission-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lesson { padding: 14px; gap: 12px; }
  .lesson-n { width: 42px; height: 42px; font-size: .82rem; }
  .lesson-state { display: none; }
  .reader-layout { padding-block: 24px 64px; }
  .done-card { flex-wrap: wrap; }
  .done-card > .btn { width: 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .media-card-play { opacity: 1; transform: none; width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .col-grid { grid-template-columns: minmax(0, 1fr); }
  .col-card { flex-direction: row; align-items: stretch; }
  .col-card .cover-md { width: 96px; aspect-ratio: auto; border-radius: 0; }
  .col-card .cover-label { display: none; }
  .hero-tags > span { width: 100%; }
  .stat strong { font-size: 1.15rem; }
  .media-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .media-tile-body { padding: 40px 12px 12px; }
  .media-tile-body strong { font-size: .98rem; }
  .media-tile-body span { display: none; }
  .learn-stats { grid-template-columns: minmax(0, 1fr); }
  .learn-col { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .player-controls [data-pl="prev"] { display: none; }
  .player-inner { gap: 10px; }
  .player-art { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .reader-bar, .outline, .reader-foot, .player, #reader-videos, #reader-audio { display: none !important; }
  .reader-layout { display: block; }
  .prose { font-size: 12pt; }
}
