/* NOBAR-MVP-261 (SESI-QGvUoq, 7 Okt 2026) — bagian bersama Beranda Direktur Konten & PM sesuai kanvas: pita sorotan berjalan (.bs-pita),
   highlight berukuran terkunci (.bs-sorot), kartu mesin belajar Kayla satu baris (.bs-geser), pop up baca-saja (.bs-pop), film diajukan
   tim (.bd-film). Token warna app.css; HP 360 px tanpa gulir samping halaman; "kurangi gerak" = tanpa gerak sendiri. */
.bs-gbr { position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; background: #4a4a57; }
.bs-gbr > svg { opacity: .9; }
.bs-gbr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bs-gbr.n-merah { background: #8a1f2b; } .bs-gbr.n-kuning { background: #7a5600; } .bs-gbr.n-oranye { background: #8a3a0c; } .bs-gbr.n-hijau { background: #125a37; }
.bs-gbr.n-biru { background: #24418f; } .bs-gbr.n-ungu { background: #4b2f8f; } .bs-gbr.n-teal { background: #0f5c5c; } .bs-gbr.n-abu { background: #4a4a57; }
.bs-lbl { display: inline-block; max-width: 100%; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* pita sorotan berjalan */
.bs-pita { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 6px 6px 6px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.bs-pita-lbl { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--critical, #d03b3b); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.bs-pita-jendela { flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bs-pita-jendela::-webkit-scrollbar { display: none; }
.bs-pita-jalur { display: flex; gap: 8px; width: max-content; }
.bs-pita-b { flex: none; max-width: 360px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit;
  font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.bs-pita-b:hover { border-color: var(--accent); }
.bs-pita-b b.n-merah, .bs-pita-b b.n-kuning { color: var(--warning-text); } .bs-pita-b b.n-oranye { color: color-mix(in srgb, var(--serious, #ec835a) 70%, var(--text)); }
.bs-pita-b b.n-hijau { color: var(--good-text); } .bs-pita-b b.n-biru, .bs-pita-b b.n-ungu, .bs-pita-b b.n-teal { color: var(--accent); } .bs-pita-b b.n-merah { color: var(--critical-text); }
.bs-klon { display: none; }
@keyframes bs-alir { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 4px)); } }
@media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
  .bs-alir .bs-klon { display: block; }
  .bs-alir .bs-pita-jendela { overflow: hidden; }
  .bs-alir .bs-pita-jalur { animation: bs-alir calc(var(--n, 6) * 9s) linear infinite; }
  .bs-alir:hover .bs-pita-jalur, .bs-alir:focus-within .bs-pita-jalur, html:has(body > .bs-tirai) .bs-alir .bs-pita-jalur { animation-play-state: paused; }
}

/* highlight berukuran terkunci */
.bs-sorot { display: flex; height: 250px; border-radius: 22px; overflow: hidden; color: #fff; background: #3b2a8c; box-shadow: var(--shadow); min-width: 0; }
.bs-sorot.n-merah { background: #6e1a25; } .bs-sorot.n-kuning { background: #5c4200; } .bs-sorot.n-oranye { background: #6f2f0b; } .bs-sorot.n-hijau { background: #0f4a2d; }
.bs-sorot.n-biru { background: #1d3577; } .bs-sorot.n-ungu { background: #3d2777; } .bs-sorot.n-teal { background: #0c4b4b; } .bs-sorot.n-abu { background: #3a3a44; }
.bs-sorot > .bs-gbr { flex: 0 0 36%; background: rgba(0, 0, 0, .28); }
.bs-sorot-isi { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.bs-sorot-atas { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bs-navi { margin-left: auto; display: flex; gap: 6px; flex: none; }
.bs-navi button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .3); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.bs-navi button:hover { background: rgba(0, 0, 0, .45); }
.bs-sorot-j { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bs-sorot-m { font-size: 13.5px; font-weight: 600; line-height: 1.45; opacity: .95; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bs-sorot-bawah { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.bs-btn { background: #fff; color: #1b1b24; border-color: #fff; min-height: 44px; }
.bs-urut { font-size: 13px; font-weight: 600; opacity: .9; }
.bd-sorot-baris .bd-berita { grid-template-columns: minmax(0, 1fr); align-content: start; margin-top: 0; }
.bd-sorot-baris .bd-dns { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-radius: 16px; }
.bd-sorot-baris .bd-dns-nm { font-size: 16px; }

/* kartu mesin belajar Kayla: satu baris, bergeser */
.bs-kayla { display: flex; flex-direction: column; }
.bs-geser { flex: 1 1 auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 2px 2px 8px; min-width: 0; }
.bs-kartu { flex: 0 0 210px; height: 190px; scroll-snap-align: start; display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.bs-kartu:hover { border-color: var(--accent); }
.bs-kartu.n-merah { border-color: var(--critical, #d03b3b); } .bs-kartu.n-kuning { border-color: var(--warning, #fab219); } .bs-kartu.n-oranye { border-color: #ff7a3d; }
.bs-kartu.n-hijau { border-color: var(--good, #0ca30c); }
.bs-gbr-kartu { flex: 0 0 72px; }
.bs-kartu-isi { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; }
.bs-kartu-lbl { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--text-2); }
.bs-kartu-j { font-size: 13.5px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bs-pilih-panel { display: flex; flex-direction: column; }
.bs-pilih-panel .bp-pilih { flex: 1 1 auto; }

/* pop up baca-saja berukuran tetap */
.bs-pop { width: min(680px, 100%); height: min(600px, 100%); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.bs-pop-kepala { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; background: #3a3a44; color: #fff; }
.bs-pop.n-merah .bs-pop-kepala { background: #6e1a25; } .bs-pop.n-kuning .bs-pop-kepala { background: #5c4200; } .bs-pop.n-oranye .bs-pop-kepala { background: #6f2f0b; }
.bs-pop.n-hijau .bs-pop-kepala { background: #0f4a2d; } .bs-pop.n-biru .bs-pop-kepala { background: #1d3577; } .bs-pop.n-ungu .bs-pop-kepala { background: #3d2777; }
.bs-pop.n-teal .bs-pop-kepala { background: #0c4b4b; }
.bs-baca { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); }
.bs-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .3); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.bs-x:hover { background: rgba(0, 0, 0, .5); }
.bs-gbr-pop { flex: 0 0 150px; }
.bs-gbr-pop > img.bs-poster { object-fit: contain; }
.bs-pop-isi { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bs-pop-j { margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.bs-pop-m { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-line; }
.bs-kisi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bs-sel { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
.bs-sel b { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.bs-eps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bs-eps li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; }
.bs-eps li span { color: var(--text-2); }
.bs-pop-kaki { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.bs-pop-kaki .bk-btn { min-height: 44px; }
.bs-x:focus-visible, .bs-navi button:focus-visible, .bs-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bs-pita-b:focus-visible, .bs-kartu:focus-visible, .bs-geser:focus-visible, .bd-film-daftar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* tracker di beranda Direktur Konten + tombol ikon tahap */
.bd-tracker { margin-top: 4px; }
button.bk-tahap { font: inherit; padding: 0; cursor: pointer; }
button.bk-tahap:hover { filter: brightness(1.08); }
button.bk-tahap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* film diajukan tim */
.bd-film-daftar { max-height: 268px; overflow-y: auto; display: flex; flex-direction: column; padding-right: 4px; }
.bd-film { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--line); min-width: 0; }
.bd-film:first-child { border-top: 0; }
.bd-film-pos { position: relative; flex: 0 0 40px; height: 58px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.bd-film-pos > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-film-teks { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bd-film-teks b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-film-chip { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-film-sub { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-film-aksi { flex: none; display: flex; gap: 6px; }
.bd-film-b { min-height: 44px; padding: 4px 14px; font-size: 14px; }
.bd-film.p-pilih { background: color-mix(in srgb, var(--bk-hijau, #0ca30c) 8%, transparent); }
.bd-film-tolak { margin-top: 6px; } .bd-film-tolak > summary { cursor: pointer; min-height: 32px; color: var(--text-2); }
.bd-film-ket { margin: 8px 0 0; }
@media (max-width: 640px) {
  .bs-sorot { height: 300px; flex-direction: column; } .bs-sorot > .bs-gbr { flex: 0 0 84px; }
  .bs-pop { width: 100%; height: 100%; border-radius: 0; }
  .bd-film { flex-wrap: wrap; } .bd-film-aksi { flex: 1 1 100%; justify-content: flex-end; }
}

/* "Lainnya untukmu" (MVP-158) — kartu & barisnya belum pernah punya gaya; dirapikan di sini */
.bd-lain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bd-lain-kartu { display: flex; flex-direction: column; gap: 2px; }
.bd-n { font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.bd-lb { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); color: var(--text); min-width: 0; }
.bd-lb:first-of-type { border-top: 0; }
.bd-lb:hover { text-decoration: none; } .bd-lb:hover b { text-decoration: underline; }
.bd-lb-teks { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-lb-teks b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-lb-teks span { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-lain-semua { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; }
.bd-luar { margin-top: 8px; } .bd-luar > summary { cursor: pointer; min-height: 32px; color: var(--text-2); }
