/* NOBAR-MVP-156 (SESI-VzEfSn, ADR-0073) — Beranda staf (kartu per video). Selektor diawali `.bk`. Token warna dari app.css (terang/gelap
   ikut tema); warna tahap (hue) punya pasangan gelap. Status selalu teks + warna. HP 360 px: kartu satu kolom, tanpa gulir samping.
   Tombol utama bertulisan putih: latar lewat --bk-utama-bg supaya tema Orbit (PR #74) bisa memberi gradasi (aksen Orbit gelap terang). */
#app { --bk-merah: var(--critical, #d03b3b); --bk-kuning: var(--warning, #fab219); --bk-hijau: var(--good, #0ca30c); --bk-biru: var(--accent, #2a78d6); }
.bk-h-intake { --hue: #0f7f7f; } .bk-h-naskah { --hue: #2a6fc9; } .bk-h-review { --hue: #6a4bdc; } .bk-h-vo { --hue: #b4580c; }
.bk-h-edit { --hue: #b8366f; } .bk-h-bungkus { --hue: #3f4fb8; } .bk-h-tayang { --hue: #1c7090; } .bk-h-skor { --hue: #946600; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .bk-h-intake { --hue: #45cdc9; } :root:where(:not([data-theme="light"])) .bk-h-naskah { --hue: #6aa8f0; }
  :root:where(:not([data-theme="light"])) .bk-h-review { --hue: #a690ff; } :root:where(:not([data-theme="light"])) .bk-h-vo { --hue: #ffa65c; }
  :root:where(:not([data-theme="light"])) .bk-h-edit { --hue: #ff7fb6; } :root:where(:not([data-theme="light"])) .bk-h-bungkus { --hue: #8e9bff; }
  :root:where(:not([data-theme="light"])) .bk-h-tayang { --hue: #5cc6ea; } :root:where(:not([data-theme="light"])) .bk-h-skor { --hue: #ffc94a; }
}
:root[data-theme="dark"] .bk-h-intake { --hue: #45cdc9; } :root[data-theme="dark"] .bk-h-naskah { --hue: #6aa8f0; }
:root[data-theme="dark"] .bk-h-review { --hue: #a690ff; } :root[data-theme="dark"] .bk-h-vo { --hue: #ffa65c; }
:root[data-theme="dark"] .bk-h-edit { --hue: #ff7fb6; } :root[data-theme="dark"] .bk-h-bungkus { --hue: #8e9bff; }
:root[data-theme="dark"] .bk-h-tayang { --hue: #5cc6ea; } :root[data-theme="dark"] .bk-h-skor { --hue: #ffc94a; }
.bk-ubin, .bk-tahap, .bk-studio { --hue-soft: color-mix(in srgb, var(--hue, var(--text-3)) 14%, var(--surface)); }

/* kepala */
.bk-pratinjau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px;
  background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.bk-pratinjau a { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.bk-pratinjau a.on { border-color: var(--accent); }
.bk-kepala { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 16px; }
.bk-kepala h1 { margin: 0; font-size: 26px; line-height: 1.15; }
.bk-tgl { font-size: 14px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.bk-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.bk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bk-dot.d-merah { background: var(--bk-merah); } .bk-dot.d-kuning { background: var(--bk-kuning); } .bk-dot.d-hijau { background: var(--bk-hijau); } .bk-dot.d-biru { background: var(--bk-biru); }

/* ubin ringkasan */
.bk-ringkas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 0 8px; }
.bk-ubin { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); min-width: 0; }
.bk-ubin-ik { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--hue-soft); color: var(--hue); flex: none; }
.bk-ubin-angka { display: block; font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bk-ubin-angka .gerak { font-size: 13px; vertical-align: middle; }
.bk-ubin-lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-top: 4px; }

/* judul seksi */
.bk-judul-seksi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.bk-judul-seksi h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.bk-judul-seksi span { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* kartu video */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.bk-kosong { grid-column: 1 / -1; padding: 22px; border-radius: 18px; border: 1px dashed var(--line); color: var(--text-2); text-align: center; }
.bk-kartu { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; border-radius: 22px; min-width: 0;
  background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); }
.bk-kartu.k-merah { border-color: var(--bk-merah); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bk-merah) 16%, transparent); }
.bk-kartu.k-kuning { border-color: var(--bk-kuning); }
.bk-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.bk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-blob { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .42; }
.bk-blob.b1 { width: 62%; height: 120%; left: -12%; top: -24%; background: #2a78d6; }
.bk-blob.b2 { width: 52%; height: 100%; right: -8%; top: 10%; background: #bf3b7a; }
.bk-blob.b3 { width: 40%; height: 70%; left: 34%; bottom: -30%; background: #e9a210; }
.bk-thumb-ikon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.bk-chip-ep { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(0, 0, 0, .7); color: #fff; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.bk-nama { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px -6px; font-size: 13px; font-weight: 700; min-width: 0; }
.bk-nama a:first-child { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-lencana-hb { flex: none; font-size: 12px; font-weight: 800; color: var(--warning-text); background: color-mix(in srgb, var(--bk-kuning) 18%, var(--surface));
  padding: 2px 8px; border-radius: 999px; }
.bk-judul { margin: 0 4px; font-size: 17px; font-weight: 800; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bk-judul-kosong { display: flex; flex-direction: column; gap: 9px; margin: 6px 4px 0; min-height: 2.4em; }
.bk-judul-kosong span { height: 13px; border-radius: 7px; background: var(--surface-2); width: 86%; }
.bk-judul-kosong span + span { width: 55%; }

/* episode */
.bk-eps { display: flex; flex-direction: column; gap: 8px; margin: 0 4px; }
.bk-ep-toggle, .bk-ep-tunggal { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; max-width: 100%; padding: 0 12px 0 10px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.bk-ep-toggle { cursor: pointer; }
.bk-ep-toggle:hover { border-color: var(--accent); }
.bk-ep-sub { font-weight: 600; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-ep-n { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.bk-chev { flex: none; transition: transform .15s; }
.bk-ep-toggle.buka .bk-chev { transform: rotate(180deg); }
.bk-ep-daftar { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-ep { display: inline-flex; align-items: center; gap: 6px; min-width: 58px; height: 42px; padding: 0 12px; border-radius: 12px; border: 2px solid transparent;
  background: var(--surface-2); color: var(--text-2); font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.bk-ep.aktif { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-ep.e-final, .bk-ep-tunggal.e-final { color: var(--good-text); } .bk-ep.e-final { background: color-mix(in srgb, var(--bk-hijau) 14%, var(--surface)); }
.bk-ep.e-aju, .bk-ep-tunggal.e-aju { color: var(--accent); } .bk-ep.e-aju { background: var(--accent-soft); }
.bk-ep.e-baru { background: var(--surface); color: var(--text); border-color: var(--line); }
.bk-ep.e-baru.aktif { border-color: var(--accent); }
.bk-ep.e-revisi, .bk-ep-tunggal.e-revisi { color: var(--warning-text); } .bk-ep.e-revisi { background: color-mix(in srgb, var(--bk-kuning) 18%, var(--surface)); }
.bk-ep-kosong { font-size: 13px; color: var(--text-3); }

/* tenggat */
.bk-pita { display: flex; align-items: center; gap: 10px; margin: 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--bk-merah); color: #fff;
  font-weight: 800; font-size: 14px; }
.bk-pita svg { flex: none; }
.bk-pita-wa { color: #fff; text-decoration: underline; font-weight: 800; white-space: nowrap; }
.bk-pita-wa:hover { color: #fff; }
.bk-lain:has(#beranda[hidden]) { display: none; }
.bk-kartu.k-tahan { opacity: .85; }
.bk-cd { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; cursor: help; }
.bk-cd.t-merah { background: color-mix(in srgb, var(--bk-merah) 13%, var(--surface)); color: var(--critical-text); }
.bk-cd.t-kuning { background: color-mix(in srgb, var(--bk-kuning) 18%, var(--surface)); color: var(--warning-text); }
.bk-cd.t-hijau { background: color-mix(in srgb, var(--bk-hijau) 13%, var(--surface)); color: var(--good-text); }
.bk-cd svg { flex: none; }
.bk-cd-lbl { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bk-cd-angka { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bk-cd-angka.denyut { animation: bk-denyut 1.2s ease-in-out infinite; }
@keyframes bk-denyut { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.bk-tanpa.bk-tahan { color: var(--warning-text); background: color-mix(in srgb, var(--bk-kuning) 14%, var(--surface)); }
.bk-tanpa { margin: 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; }
.bk-beres { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; font-weight: 800; font-size: 15px;
  background: color-mix(in srgb, var(--bk-hijau) 13%, var(--surface)); color: var(--good-text); }
.bk-prog { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: -4px 4px 0; }
.bk-prog span { display: block; height: 100%; border-radius: 999px; background: var(--bk-hijau); }

/* rel 7 tahap */
.bk-baris-tahap { display: flex; justify-content: space-between; gap: 4px; margin: 0 4px; }
.bk-tahap { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--hue-soft); color: var(--hue); border: 2px solid transparent; }
.bk-tahap.s-belum { background: var(--surface-2); color: var(--text-3); }
.bk-tahap.s-belum > svg { opacity: .6; }
.bk-tahap.s-jalan { border-color: var(--hue); }
.bk-tahap.s-bahaya { border-color: var(--bk-merah); background: color-mix(in srgb, var(--bk-merah) 13%, var(--surface)); color: var(--critical-text); }
.bk-ok { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bk-hijau); display: none; place-items: center;
  border: 2px solid var(--surface); }
.bk-tahap.s-selesai .bk-ok { display: grid; }

/* keterangan hover / fokus */
.bk-tipwrap { outline-offset: 2px; }
.bk-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 30; display: none; width: max-content; max-width: 260px;
  padding: 8px 11px; border-radius: 10px; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 600; line-height: 1.4;
  white-space: pre-line; text-align: left; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); pointer-events: none; }
.bk-tipwrap:focus-visible .bk-tip, .bk-tipwrap.buka .bk-tip { display: block; }
@media (hover: hover) { .bk-tipwrap:hover .bk-tip { display: block; } }
.bk-baris-tahap .bk-tahap:first-child .bk-tip { left: 0; transform: none; }
.bk-baris-tahap .bk-tahap:last-child .bk-tip { left: auto; right: 0; transform: none; }
.bk-cd .bk-tip { left: 12px; transform: none; }

/* tombol */
.bk-aksi { display: flex; gap: 10px; margin: 0 4px; }
.bk-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 12px; border-radius: 14px;
  font-weight: 800; font-size: 15px; text-align: center; border: 0; }
.bk-btn:hover { text-decoration: none; }
.bk-btn-utama { background: var(--bk-utama-bg, var(--accent)); color: #fff; }
.bk-btn-utama:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-btn-bahaya { background: var(--bk-merah); color: #fff; flex: 0 1 auto; }
:root:not([data-skema="klasik"]) .bk-btn-utama { --bk-utama-bg: var(--orbit-grad, var(--accent)); }

/* studio */
.bk-studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.bk-studio { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 168px; border-radius: 22px;
  background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .15s, border-color .15s; }
a.bk-studio:hover { transform: translateY(-3px); border-color: var(--hue); text-decoration: none; }
.bk-studio-ik { width: 80px; height: 80px; border-radius: 24px; display: grid; place-items: center; background: var(--hue-soft); color: var(--hue); }
.bk-studio-nm { font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.bk-studio.mati { filter: grayscale(1); opacity: .45; box-shadow: none; }
.bk-badge { position: absolute; right: 14px; top: 14px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--critical, #d03b3b); color: #fff; font-weight: 800; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .bk-cd-angka.denyut { animation: none; } .bk-studio, .bk-chev { transition: none; } }
@media (max-width: 640px) {
  .bk-kepala h1 { font-size: 22px; }
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-ringkas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bk-ubin { padding: 12px; gap: 10px; }
  .bk-ubin-ik { width: 40px; height: 40px; }
  .bk-ubin-angka { font-size: 24px; }
  .bk-studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-tahap { width: 36px; height: 36px; }
  .bk-cd-angka { font-size: 26px; }
}
