/* Panduan Shoot · palet B Oren Senja (Aliff lulus 23 Nov). Satu pil krim + satu butang bulat setiap skrin. */
@font-face { font-family: "Inter Tight"; src: url(aset/font/inter-tight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(aset/font/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --hitam: #0A0908; --arang: #1C1915; --arang-2: #26221D; --garis: #2F2A24;
  --krim: #F1EADB; --ink: #1A140F; --kelabu: #9C9488; --kelabu-2: #6E675D;
  --oren: #E0692E; --oren-glow: rgba(224, 105, 46, .45); --kraft-ink: #2A1D12;
  --rec: #E5484D;
  --sans: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r-besar: 22px; --r-kad: 18px;
  --atas: env(safe-area-inset-top, 0px); --bawah: env(safe-area-inset-bottom, 0px);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--hitam); color: var(--krim); font-family: var(--sans); font-size: 16px; line-height: 1.4; }
body { overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--oren); outline-offset: 2px; }

#app { position: relative; min-height: 100dvh; overflow-x: hidden; }
.skrin { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 100dvh;
  padding: calc(var(--atas) + 8px) var(--gutter) 0; background: var(--hitam); overflow-y: auto; }
.skrin.penuh { padding: 0; overflow: hidden; }
.skrin > * { flex-shrink: 0; max-width: 100%; }
/* iOS auto-zoom bila medan bawah 16 px; semua input 16 px ke atas */
input, textarea, select { font-size: max(16px, 1em); }
.skrin { overflow-x: hidden; }
img:not([src]), img[src=""] { visibility: hidden; }
.amaran + .grid-ep, .amaran + .kosong { margin-top: 12px; }

/* kepala */
.kepala { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; min-height: 52px; }
.kepala .tajuk { text-align: center; min-width: 0; }
.kepala .tajuk small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--kelabu); }
.kepala .tajuk b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kepala .kanan { justify-self: end; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--arang); border: 1px solid var(--garis); font-weight: 700; font-size: 12px; }
.bulat-kecil { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--arang); border: 1px solid var(--garis); }
.bulat-kecil svg, .rnd svg { width: 18px; height: 18px; }

/* cip kaca */
.kaca { background: rgba(18, 15, 12, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .09); border-radius: 999px; }
.cip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; font-size: 12px; white-space: nowrap; }
.cip .titik-hidup { width: 7px; height: 7px; border-radius: 50%; background: var(--oren); }

/* tab pil */
.tab { display: flex; gap: 6px; padding: 6px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tab button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--garis); color: var(--kelabu); font-size: 14px; white-space: nowrap; }
.tab button[aria-selected="true"] { background: var(--oren); border-color: var(--oren); color: #fff; font-weight: 600; }

/* kaki: pil + bulat */
.kaki { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 10px; align-items: center;
  padding: 14px 0 calc(var(--bawah) + 14px); background: linear-gradient(transparent, var(--hitam) 30%); }
.pil { position: relative; overflow: hidden; flex: 1; height: 56px; border-radius: 999px; background: var(--krim); color: var(--ink);
  font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pil::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pil:disabled { opacity: .45; }
.pil .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); }
.rnd { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--arang); border: 1px solid var(--garis); }
.rnd svg { width: 22px; height: 22px; }

/* episod */
.grid-ep { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kad-ep { position: relative; overflow: hidden; border-radius: var(--r-kad); background: var(--arang-2); min-height: 190px; text-align: left; }
.kad-ep.tinggi { grid-row: span 2; min-height: 389px; }
.kad-ep .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kad-ep .cover.lakaran { object-fit: contain; padding: 18px; opacity: .55; }
.kad-ep .cip { position: absolute; top: 10px; left: 10px; font-size: 11px; }
.kad-ep .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.kad-ep .no { font-family: var(--mono); font-size: 11px; color: var(--kelabu); letter-spacing: .06em; }
.kad-ep .tt { font-size: 16px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.kad-ep.tinggi .tt { font-size: 22px; }
.titik { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.titik i { width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 234, 219, .2); }
.titik i.lulus { background: var(--oren); box-shadow: 0 0 6px var(--oren-glow); }
.titik i.ulang { background: var(--kelabu-2); }
.kosong { color: var(--kelabu); padding: 40px 8px; text-align: center; }

/* kad shot */
.lakaran-kad { position: relative; border-radius: var(--r-besar); overflow: hidden; aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 50% 100%, #2b2219, #0e0c0a); border: 1px solid var(--garis); }
.lakaran-kad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lakaran-kad .seg { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; padding: 3px; z-index: 2; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--kelabu); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--oren); color: #fff; font-weight: 600; }
.lakaran-kad .bawah { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 13px; color: var(--kelabu); }
.lakaran-kad .tiada { position: absolute; inset: 0; display: grid; place-items: center; color: var(--kelabu); font-size: 14px; padding: 20px; text-align: center; }
.spec { display: grid; grid-template-columns: 76px 1fr; margin: 14px 0 0; }
.spec dt, .spec dd { padding: 10px 0; border-bottom: 1px solid var(--garis); margin: 0; }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--kelabu); padding-top: 12px; }
.spec dd { font-size: 15px; }
.spec dd.cakap { font-weight: 600; }
.baris-kad { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: 16px; background: var(--arang); border: 1px solid var(--garis); }
.baris-kad .gmb { width: 52px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--arang-2); flex: none; }
.baris-kad .teks { flex: 1; min-width: 0; font-size: 13px; color: var(--kelabu); }
.baris-kad .teks b { display: block; color: var(--krim); font-size: 15px; font-weight: 600; }
.pilih3 { display: flex; gap: 6px; }
.pilih3 button { min-width: 44px; height: 38px; border-radius: 12px; border: 1px solid var(--garis); font-family: var(--mono); font-size: 14px; }
.pilih3 button[aria-pressed="true"] { background: var(--oren); border-color: var(--oren); color: #fff; }
.label-kecil { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--kelabu); }

/* senarai (sesi, semak, upload) */
.senarai { display: grid; border-radius: 18px; background: var(--arang); border: 1px solid var(--garis); overflow: hidden; }
.senarai > * { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--garis); text-align: left; min-width: 0; }
.senarai > *:last-child { border-bottom: 0; }
.senarai .isi { flex: 1; min-width: 0; }
.senarai .isi small { display: block; color: var(--kelabu); font-size: 12.5px; margin-top: 2px; }
.senarai .hujung { font-family: var(--mono); font-size: 12px; color: var(--kelabu); white-space: nowrap; }
.senarai .hujung.ok { color: var(--krim); }
.tanda { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1.5px solid var(--kelabu-2); display: grid; place-items: center; }
.tanda.on { background: var(--oren); border-color: var(--oren); }
.tanda.on::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bar { height: 4px; border-radius: 4px; background: var(--garis); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--oren); }
h2.bahagian { font-size: 15px; font-weight: 600; margin: 22px 0 10px; }
.nota { font-size: 13px; color: var(--kelabu); margin: 10px 2px 0; }
.amaran { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(224, 105, 46, .12); border: 1px solid rgba(224, 105, 46, .4); font-size: 14px; }

/* masuk */
.masuk { justify-content: center; gap: 18px; }
.masuk h1 { font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.masuk p { color: var(--kelabu); margin: 0; }
.medan { width: 100%; height: 56px; border-radius: 16px; border: 1px solid var(--garis); background: var(--arang); padding: 0 18px; font-family: var(--mono); font-size: 20px; letter-spacing: .3em; }
.ralat { color: #FF9C7A; font-size: 14px; min-height: 20px; }

/* kamera */
/* Bingkai kamera = 9:16 tepat (sama dengan video yang dirakam), supaya zon selamat padan dengan video sebenar. */
.skrin.penuh { background: #000; }
.kamera { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); aspect-ratio: 9 / 16; width: min(100vw, 100dvh * 9 / 16); background: #000; overflow: hidden; }
.kamera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kamera video.cermin { transform: scaleX(-1); }
.teleprompter { position: absolute; left: 0; right: 0; top: calc(var(--atas) + 62px); height: 28%; overflow: hidden; padding: 6px 12% 0;
  background: linear-gradient(rgba(0, 0, 0, var(--tp-latar, .33)), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent); z-index: 3; }
.teleprompter p { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.35; text-shadow: 0 1px 4px #000; will-change: transform; }
/* Zon selamat TikTok (frame 1080x1920): kawasan bawah ~700 px (caption) dan kanan ~180 px (butang) ditutup UI TikTok. */
.zon-tiktok { position: absolute; inset: 0; pointer-events: none; z-index: 2; --bawah: 36%; }
.zon-tiktok.demo { --bawah: 53%; } /* anchor TikTok Shop tutup lebih banyak */
.zon-tiktok .kotak { position: absolute; top: 13%; bottom: var(--bawah); left: 11%; right: 17%; border: 1.5px dashed rgba(241, 234, 219, .75); border-radius: 10px; }
.zon-tiktok .kotak span { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 600; color: var(--krim); background: rgba(0, 0, 0, .45); padding: 2px 7px; border-radius: 6px; }
.zon-tiktok .tutup { position: absolute; background: repeating-linear-gradient(135deg, rgba(224, 105, 46, .15) 0 6px, transparent 6px 16px); display: grid; place-items: center; }
.zon-tiktok .tutup span { font-size: 11px; font-weight: 600; color: #FFD9C4; background: rgba(0, 0, 0, .45); padding: 2px 7px; border-radius: 6px; }
.zon-tiktok .kanan { right: 0; width: 17%; top: 34%; bottom: var(--bawah); }
.zon-tiktok .kanan span { writing-mode: vertical-rl; }
.zon-tiktok .bawah { left: 0; right: 0; bottom: 0; height: var(--bawah); }
.bayang { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 72%; opacity: .5; pointer-events: none; z-index: 2; }
.hud { position: absolute; top: calc(var(--atas) + 10px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.rec-titik { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.meter { position: absolute; left: 12px; top: 40%; height: 26%; width: 6px; border-radius: 6px; background: rgba(241, 234, 219, .15); overflow: hidden; z-index: 4; }
.meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(var(--rec), var(--oren) 18%, var(--krim) 40%); transition: height .08s linear; }
.kawalan { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bawah) + 22px); display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.kawalan .kecil { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--krim); }
.kawalan .kecil .bulat-kecil { width: 48px; height: 48px; }
.henti { position: relative; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; }
.henti svg.cincin { position: absolute; inset: 0; transform: rotate(-90deg); }
.henti .isi { width: 64px; height: 64px; border-radius: 50%; background: var(--krim); display: grid; place-items: center; }
.henti .isi i { width: 24px; height: 24px; border-radius: 7px; background: var(--rec); }
.henti .isi.mula i { border-radius: 50%; width: 28px; height: 28px; }
.kiraan { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; }
.kiraan span { font-size: 140px; font-weight: 700; color: var(--krim); text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.laras { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bawah) + 120px); padding: 14px; border-radius: 18px; z-index: 5; display: grid; gap: 10px; }
.laras label { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.laras input[type=range] { accent-color: var(--oren); }
.laras .nilai { font-family: var(--mono); font-size: 13px; text-align: right; }

/* keputusan */
.take-kad { position: relative; border-radius: var(--r-besar); overflow: hidden; background: #000; aspect-ratio: 4 / 3.6; }
.take-kad video { width: 100%; height: 100%; object-fit: cover; }
.take-kad .atas { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; }
.jalur-take { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.jalur-take button { flex: 0 0 74px; height: 58px; border-radius: 12px; overflow: hidden; position: relative; border: 1.5px solid var(--garis); background: var(--arang); font-size: 13px; }
.jalur-take button img { width: 100%; height: 100%; object-fit: cover; }
.jalur-take button span { position: absolute; left: 6px; bottom: 4px; font-family: var(--mono); font-size: 11px; text-shadow: 0 1px 3px #000; }
.jalur-take button[aria-current="true"] { border-color: var(--oren); }
.kertas { position: relative; margin: 14px -4px 0; padding: 30px 20px 18px; color: var(--kraft-ink);
  background: url(aset/kertas-kraft-v2.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(224, 105, 46, .18)); min-height: 200px; }
.kertas .h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 18px; }
.lencana { font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 5px 11px; border-radius: 999px; background: var(--oren); color: #fff; }
.lencana.lulus { background: var(--kraft-ink); color: var(--krim); }
.kertas ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.kertas li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-weight: 600; font-size: 15.5px; padding-bottom: 10px; border-bottom: 1px solid rgba(42, 29, 18, .18); }
.kertas li:last-child { border-bottom: 0; padding-bottom: 0; }
.kertas li .no { width: 22px; height: 22px; border-radius: 50%; background: var(--kraft-ink); color: var(--krim); display: grid; place-items: center; font-size: 12px; margin-top: 1px; }
.kertas li .no.ok { background: none; border: 1.5px solid var(--kraft-ink); color: var(--kraft-ink); }
.kertas li small { display: block; font-weight: 400; font-size: 14px; opacity: .85; margin-top: 2px; }
.kertas .tunggu { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 18px 0; }
.kertas .atasi { display: inline-block; margin-top: 10px; font-size: 13px; text-decoration: underline; opacity: .8; }
.nota-take { width: 100%; margin-top: 12px; min-height: 48px; border-radius: 14px; border: 1px solid var(--garis); background: var(--arang); padding: 12px 14px; font-size: 16px; resize: vertical; }

/* ringkasan */
.angka-besar { text-align: center; margin: 16px 0 4px; }
.angka-besar b { display: block; font-size: 52px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.angka-besar small { color: var(--kelabu); font-size: 15px; }
.matriks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; margin: 20px 0 8px; }
.matriks i { aspect-ratio: 1; border-radius: 50%; background: rgba(241, 234, 219, .14); }
.matriks i.lulus { background: var(--oren); box-shadow: 0 0 10px var(--oren-glow); }

/* skrin buka */
.buka { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--hitam); }
.buka .logo { text-align: center; }
.buka .logo b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.buka .logo small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--kelabu); }
.buka .glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(var(--oren-glow), transparent 65%); }

/* lembaran bawah */
.lembaran { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(0, 0, 0, .55); }
.lembaran .isi-lembaran { max-height: 78dvh; overflow-y: auto; background: var(--hitam); border-radius: 24px 24px 0 0; border-top: 1px solid var(--garis);
  padding: 18px var(--gutter) calc(var(--bawah) + 18px); }
.lembaran .pemegang { width: 40px; height: 4px; border-radius: 4px; background: var(--garis); margin: 0 auto 14px; }

.skrin > .cip { align-self: flex-start; margin-top: 12px; }

.lakaran-kad img.contoh { object-fit: cover; object-position: 50% 20%; }
.lakaran-kad:has(img.contoh:not([hidden])) .bawah { color: var(--krim); text-shadow: 0 1px 4px #000; }
