/* NOBAR-MVP-157 (SESI-VzEfSn, ADR-0073) — Beranda PM. Selektor diawali `.bp`; ikon/keterangan/ubin/studio dari berandakerja.css (.bk).
   Token warna app.css (terang/gelap ikut tema). HP 360 px: jadwal bertumpuk (nama · rel · tahap sekarang), dua panel jadi satu kolom. */
.bp-ubin-mg { text-decoration: none; color: var(--text); }
.bp-ubin-mg:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bp-ubin-isi { flex: 1; min-width: 0; }
.bp-bar { position: relative; display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--surface-2); }
.bp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--bk-hijau); }
.bp-bar b { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--text); }

/* perlu tindakan */
.bp-aman { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--bk-hijau) 12%, var(--surface)); color: var(--good-text); font-weight: 700; }
.bp-tindak { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bp-tk { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface);
  border: 2px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.bp-tk.k-merah { border-color: var(--bk-merah); } .bp-tk.k-kuning { border-color: var(--bk-kuning); }
.bp-tk-kepala { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.bp-tk-ik { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.bp-tk-ik.i-merah { background: color-mix(in srgb, var(--bk-merah) 13%, var(--surface)); color: var(--critical-text); }
.bp-tk-ik.i-kuning { background: color-mix(in srgb, var(--bk-kuning) 18%, var(--surface)); color: var(--warning-text); }
.bp-tk-judul { display: block; font-weight: 800; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bp-tk-isi { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-tk-btn { flex: 0 0 auto; align-self: flex-start; min-height: 40px; padding: 4px 16px; font-size: 14px; }

/* jadwal produksi */
.bp-jadwal { display: flex; flex-direction: column; gap: 8px; }
.bp-baris { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .7fr); align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.bp-baris.k-merah { border-color: var(--bk-merah); box-shadow: inset 4px 0 0 var(--bk-merah); }
.bp-baris.k-kuning { box-shadow: inset 4px 0 0 var(--bk-kuning); }
.bp-kepala-rel { background: none; border: 0; padding-top: 0; padding-bottom: 0; }
.bp-lbl-rel { display: flex; justify-content: space-between; }
.bp-lbl-rel i { width: 40px; text-align: center; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--text-3); }
.bp-vid { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.bp-vid:hover { text-decoration: none; }
.bp-vid:hover .bp-vid-nm { text-decoration: underline; }
.bp-mini { position: relative; flex: none; width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.bp-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-mini .bk-blob { filter: blur(12px); }
.bp-vid-teks { min-width: 0; }
.bp-vid-nm { display: block; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-vid-sub { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-rel { position: relative; display: flex; justify-content: space-between; align-items: center; min-width: 0; }
.bp-rel-garis, .bp-rel-isi { position: absolute; left: 20px; right: 20px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--line); }
.bp-rel-isi { right: auto; background: var(--bk-hijau); max-width: calc(100% - 40px); }
.bp-rel .bk-tahap { width: 36px; height: 36px; border-radius: 11px; z-index: 1; }
.bp-rel .bk-tahap.s-belum { background: var(--surface-2); }
.bp-kanan { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; text-align: right; }
.bp-pil { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); }
.bp-pil b { font-variant-numeric: tabular-nums; font-weight: 800; }
.bp-pil.p-merah { background: color-mix(in srgb, var(--bk-merah) 13%, var(--surface)); color: var(--critical-text); }
.bp-pil.p-kuning { background: color-mix(in srgb, var(--bk-kuning) 18%, var(--surface)); color: var(--warning-text); }
.bp-pil.p-hijau { background: color-mix(in srgb, var(--bk-hijau) 13%, var(--surface)); color: var(--good-text); }
.bp-pil.denyut { animation: bk-denyut 1.2s ease-in-out infinite; }
.bp-tayang { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* tim & intake */
.bp-dua { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 28px; }
.bp-panel { padding: 14px 16px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.bp-panel-judul { margin: 0 0 12px; }
.bp-tim { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; }
.bp-org { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; cursor: help; }
.bp-ava { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--line); }
.bp-ava .av, .bp-ava .bp-ini { width: 52px; height: 52px; border-radius: 50%; font-size: 17px; line-height: 52px; }
.bp-ini { display: grid; place-items: center; background: var(--surface-2); font-weight: 800; }
.bp-ava.r-merah { box-shadow: 0 0 0 3px var(--bk-merah); } .bp-ava.r-kuning { box-shadow: 0 0 0 3px var(--bk-kuning); } .bp-ava.r-hijau { box-shadow: 0 0 0 3px var(--bk-hijau); }
.bp-jml { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: var(--text); color: var(--surface); font-size: 12px; font-weight: 800; border: 2px solid var(--surface); }
.bp-org-nm { font-size: 12.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-org-peran { font-size: 11px; font-weight: 800; color: var(--hue); }
.bp-org .bk-tip { bottom: calc(100% + 6px); }
.bp-intk { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); color: var(--text); min-width: 0; }
.bp-intk:first-of-type { border-top: 0; }
.bp-intk:hover { text-decoration: none; background: var(--surface-2); }
.bp-intk-ok { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; }
.bp-intk-ok.ok { background: var(--good, #0ca30c); } .bp-intk-ok.tidak { background: var(--critical, #d03b3b); }
.bp-intk-teks { flex: 1; min-width: 0; }
.bp-intk-teks b, .bp-intk-teks span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-intk-teks b { font-size: 14px; } .bp-intk-teks span { font-size: 12.5px; color: var(--text-2); }
.bp-intk-tgl { flex: none; font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* pilih film */
.bp-pilih { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 22px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #4f46e5 0%, #0f78b8 100%); box-shadow: var(--shadow); }
.bp-pilih:hover { text-decoration: none; color: #fff; filter: saturate(1.1); }
.bp-pilih-nm { font-size: 24px; font-weight: 900; letter-spacing: .06em; }
.bp-pilih-sub { font-size: 14px; font-weight: 700; opacity: .92; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bp-chip { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .24); font-size: 13px; font-weight: 700; }
.bp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bp-pil { position: relative; }
.bp-ringkasan { margin: 18px 0 0; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .bp-pil.denyut { animation: none; } }
@media (max-width: 1080px) {
  .bp-baris { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "vid kanan" "rel rel"; }
  .bp-vid { grid-area: vid; } .bp-kanan { grid-area: kanan; } .bp-rel { grid-area: rel; }
  .bp-kepala-rel { display: none; }
}
@media (max-width: 640px) {
  .bp-baris { grid-template-columns: minmax(0, 1fr); grid-template-areas: "vid" "kanan" "rel"; }
  .bp-kanan { flex-direction: row; justify-content: space-between; align-items: center; }
  .bp-rel .bk-tahap { width: 34px; height: 34px; }
  .bp-tim { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bp-dua { grid-template-columns: minmax(0, 1fr); }
}
