:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1f1f1f;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --amber: #2dd4bf;
  --amber-dark: #d99a00;
  --border: #2a2a2a;
  --danger: #e5484d;
  /* Fase 2 ronde 2 — skala spacing + radius konsisten. Sisi konten
     16px di semua layar (dulu section 24px, detail 16px, banner 16px
     — tidak konsisten); radius kartu 14px, panel 16px. */
  --pad-x: 16px;
  --radius-card: 14px;
  --radius-panel: 16px;
}
* { box-sizing: border-box; }
/* v1.0.7: matikan kilau sentuh bawaan WebView/Android (tanda bayangan saat ketuk menu). */
* { -webkit-tap-highlight-color: transparent; }
/* Latar hidup (v1.0.25, dikuatkan v1.0.26): gradien gelap + glow amber di atas,
   menempel di viewport (fixed) supaya terasa hidup saat scroll. v1.0.25 terlalu
   samar di HP — glow + gradien dikuatkan supaya kelihatan jelas di Beranda. */
html { background: radial-gradient(140% 700px at 50% -40px, rgba(45,212,191,0.25), rgba(45,212,191,0.07) 45%, rgba(45,212,191,0) 70%), linear-gradient(#181818, #0d0d0d 35%, #080808); background-attachment: fixed; }
html, body { margin: 0; padding: 0; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { background: transparent; }
a { color: inherit; }
button { font-family: inherit; }
#app { max-width: 1100px; margin: 0 auto; padding-bottom: 84px; }

/* Halus: tiap ganti tampilan muncul dengan fade naik sedikit. */
#main > div { animation: fadeIn .28s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Baris poster yang bisa digeser menyamping (seperti di artefak). */
.row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; }
.row::-webkit-scrollbar { display: none; }
.row .card { flex: 0 0 160px; scroll-snap-align: start; }
/* Tinggi poster baris horizontal dikunci 240px (= 160px x 3/2) supaya
   bawah poster selalu sejajar walau aspect-ratio tidak jalan di WebView lama. */
.row .card img { height: 240px; }
.row .card-body h3 { font-size: 13px; }

/* Skeleton loading: kartu abu-abu berkilau selagi katalog dimuat. */
.skeleton { flex: 0 0 160px; aspect-ratio: 2 / 3; border-radius: 12px; background: linear-gradient(100deg, #1a1a1a 40%, #2a2a2a 50%, #1a1a1a 60%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.grid .skeleton { flex: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Header — Fase 2 ronde 2: latar SOLID (dulu rgba 0.96 — konten yang
   di-scroll ke bawah header tembus dan terbaca sebagai "teks hantu",
   tertangkap di screenshot Kelola Akun). Bayangan lembut memisahkan
   header dari konten; tidak ada lagi yang bisa tembus. */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  padding: 12px 16px 8px;
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand h1 { margin: 0; font-size: 24px; letter-spacing: -0.3px; flex: 0 0 auto; }
.brand h1 span { color: var(--amber); }
.search-row { display: flex; gap: 8px; margin-top: 10px; }
.search-row input {
  flex: 1; background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 14px; font-size: 15px; outline: none;
}
.search-row input:focus { border-color: var(--amber); }
.icon-btn {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.icon-btn svg { display: block; }
.icon-btn.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Status muat ulang: boleh memendek (ellipsis), tidak boleh menjepit
   tombol ikon di kanan. */
.refresh-status { margin-left: auto; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; flex: 0 1 auto; }
/* Tab atas: baris bisa digeser; fade di tepi kanan menandakan masih ada
   tab di luar layar (dulu tab terakhir terpotong kasar "["). */
nav.tabs {
  display: flex; gap: 6px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs button {
  flex: 0 0 auto; background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
nav.tabs button.active { background: var(--amber); color: #111; font-weight: 700; }

/* Hero: gambar penuh lebar tanpa bingkai, seperti di artefak. */
.hero { margin: 0; overflow: hidden; background: var(--surface); position: relative; min-height: 380px; border: none; border-radius: 0; }
.hero img { width: 100%; height: 420px; object-fit: cover; display: block; animation: kenburns 16s ease-in-out infinite alternate; }
/* Zoom (Ken Burns) supaya hero terasa hidup; transform saja = murah di GPU.
   v1.0.26: lebih cepat + lebih nge-zoom dari v1.0.25 supaya geraknya kelihatan. */
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.15) translateY(-12px); } }
/* Ken Burns hemat (v1.0.27): dijeda JS saat gambar tidak kelihatan di layar
   atau pemutar dibuka. Dijeda di tempat, lanjut dari titik yang sama. */
.kb-paused { animation-play-state: paused !important; }
.hero-anim img { animation: heroFade .5s ease, kenburns 16s ease-in-out infinite alternate; }
.hero-anim .hero-body { animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.92)); }
.hero-body h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; }
.hero-body p { margin: 0 0 12px; color: #ddd; font-size: 14px; }
.hero-dots { display: flex; gap: 6px; margin-top: 12px; }
.hero-dots span { width: 12px; height: 12px; border-radius: 999px; background: #444; cursor: pointer; transition: width .2s ease, background .2s ease; }
.hero-dots span.active { width: 28px; background: var(--amber); }

/* Sections & grid — Fase 2 ronde 2: padding sisi 16px (skala --pad-x),
   selaras dengan detail/banner/pengumuman yang sudah 16px. */
section { padding: 0 var(--pad-x); margin-top: 20px; }
section h2 { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
section h2::before { content: ''; flex: 0 0 auto; width: 5px; height: 20px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px rgba(45,212,191,0.55); }

/* Kepala seksi beranda: judul di kiri, "Lihat Semua" di kanan. */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.see-all { background: none; border: none; color: var(--amber); font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 0 4px 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(5, 1fr); } }
/* Kartu adalah <button>: isinya ketengah sendiri kalau kartu dipaksa lebih
   tinggi oleh stretch (baris campuran, mis. Sedang Tayang) sehingga poster
   turun ~10px dari atas bingkai. Flex kolom menempelkan isi ke atas. */
.card { display: flex; flex-direction: column; position: relative; background: var(--surface); border: 1px solid #262626; border-radius: var(--radius-card); overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.card:active { transform: scale(.96); border-color: var(--amber); }
/* Badge kualitas video: pil gelap dengan teks HD amber di pojok kanan atas poster, seperti di artefak. */
.hd-badge { display: inline-block; background: rgba(0,0,0,0.65); color: var(--amber); font-weight: 700; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; letter-spacing: 0.4px; vertical-align: middle; }
.card .hd-badge { position: absolute; top: 8px; right: 8px; left: auto; z-index: 2; }
/* Pill episode di kartu (patch tambahan v1.0.19): "Episode N" yang tadinya
   menempel di judul dipindah ke dalam poster, kiri atas. Serasi dengan
   .hd-badge (pil gelap) tapi teks putih polos — bukan amber — supaya tidak
   tertukar dengan HD yang di kanan atas. */
.ep-pill { display: inline-block; background: rgba(0,0,0,0.65); color: #fff; font-weight: 600; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; letter-spacing: 0.4px; vertical-align: middle; }
.card .ep-pill { position: absolute; top: 8px; left: 8px; z-index: 2; }
/* Di kartu Baru Rilis, kiri atas sudah ditempati badge BARU: pill episode
   turun satu baris di bawahnya (BARU ~19px + jarak 7px). */
.card .ep-pill.ep-below { top: 34px; }
/* v1.0.22 (koreksi Yi 25 Nov): pill episode KEMBALI ke baris atas di .grid —
   top:34px v1.0.19 membuat pill melayang di tengah poster, tidak sejajar
   dengan HD kanan atas. Supaya "Episode N" + HD muat berdampingan bahkan
   di kartu tersempit (320px, lebar kartu nyata di dalam <section> ~83px),
   kedua pill dikecilkan di konteks grid: font 8px, padding 1px 3px, tanpa
   letter-spacing, offset tepi 6px (bukan 8px). Terukur di harness v122
   (katalog nyata, kartu 82,7px di 320px): "Episode 14" 47,5px + HD 18px,
   celah 3,1px, top pill == top HD (selisih 0); di 360px celah 16,5px,
   di 390px 26,5px. Catatan: episode 3 digit ("Episode 100", 52,1px)
   bersinggungan HD ~1,5px HANYA di 320px — di luar cakupan perbaikan ini.
   Teks pill tetap "Episode N". Aturan .ep-below (Baru Rilis, pill di bawah
   BARU) TIDAK tersentuh: top:34px + left:8px-nya datang dari aturan
   .card .ep-pill(.ep-below) di atas, bukan dari sini. */
.grid .card .ep-pill, .related-grid .card .ep-pill { font-size: 8px; padding: 1px 3px; letter-spacing: 0; }
.grid .card .hd-badge, .related-grid .card .hd-badge { font-size: 8px; padding: 1px 3px; letter-spacing: 0; }
.grid .card .ep-pill:not(.ep-below), .related-grid .card .ep-pill:not(.ep-below) { left: 6px; }
.grid .card .hd-badge, .related-grid .card .hd-badge { right: 6px; }
.card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: #222; }
/* Fase 2 ronde 2: min-width:0 + width:100% WAJIB — .card adalah
   <button> dengan display:flex, dan di Chrome flex item di dalam
   <button> TIDAK stretch di cross-axis (quirk Chromium: isi button
   dibungkus kotak anonim) sehingga .card-body melebar mengikuti teks
   nowrap terpanjang dan .card-meta terpotong di border kartu TANPA
   ellipsis (terbukti di repro terisolasi: body 117-123px vs kartu
   111px; twin <div> dengan CSS sama langsung benar: body 109px,
   ellipsis jalan). width:100% memaksa body selebar kartu. */
.card-body { padding: 8px 10px 10px; min-width: 0; width: 100%; }
/* Judul selalu setinggi 2 baris supaya tanggal di bawahnya sejajar di semua kartu,
   judul 1 baris tidak bikin kartunya lebih pendek. */
.card-body h3 { margin: 0; font-size: 13px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
/* Baris meta kartu v1.0.19 (Varian A): satu baris "TAHUN · view · ♥ favorit",
   tidak boleh pecah ke baris kedua. Di grid 3 kolom yang sempit, font
   diperkecil supaya baris tetap muat (diukur di 320/360/390px).
   Fase 2 ronde 2: angka favorit panjang ("12,6 rb · ♥ 414") meluber
   melewati tepi kartu dan terpotong tengah angka — ellipsis membuat
   potongan itu terlihat disengaja, bukan cacat. */
.card-body p.card-meta { white-space: nowrap; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.grid .card-body p.card-meta, .related-grid .card-body p.card-meta { font-size: 10px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%); mask-image: linear-gradient(to right, #000 88%, transparent 100%); }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 10px 18px; font-size: 14px; cursor: pointer; transition: transform .12s ease; }
.chip:active { transform: scale(.96); }
.chip.active { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; box-shadow: 0 0 20px rgba(45,212,191,0.5); }

/* Buttons — Fase 2 ronde 2: target sentuh 15px, padding sedikit lega. */
.btn { background: var(--amber); color: #111; border: none; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Detail — padding-top 42px = tinggi tombol back yang dihapus v1.0.21.
   Padding ini JUGA menahan margin-top 150px .detail-head supaya tidak
   collapse keluar .detail (bug v1.0.21: margin jatuh ke atas, .detail +
   backdrop ikut turun 150px, muncul ruang hitam di atas). */
.detail { padding: 42px 16px 16px; position: relative; overflow: hidden; }
/* Ronde 5: scrim lama kembali (gradien bawah ke var(--bg)) — keterbacaan
   judul/meta dijaga scrim, bukan text-shadow (dihapus, R-L4). Ken Burns
   tetap jalan (transform animasi menimpa transform statis, jadi tidak
   ada scale di sini). */
.detail-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 320px; background-size: cover; background-position: center 20%; opacity: 1; filter: none; -webkit-mask-image: none; mask-image: none; pointer-events: none; animation: kenburns 20s ease-in-out infinite alternate; }
.detail-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, var(--bg) 96%); }
.detail > :not(.detail-backdrop) { position: relative; }
.back-circle { position: absolute; top: 16px; left: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 20px; cursor: pointer; }
.detail-head { margin-top: 150px; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.detail-actions .btn { flex: 1; padding: 13px 10px; font-size: 15px; }
.btn-dark { background: #1f1f1f; color: #fff; border: 1px solid #2a2a2a; border-radius: 999px; padding: 13px 18px; font-weight: 700; font-size: 15px; cursor: pointer; flex: 0 0 auto; transition: transform .12s ease; }
.btn-dark:active { transform: scale(.97); }
.genre-pill { display: inline-block; background: #1f1f1f; border: 1px solid #2a2a2a; color: #eee; border-radius: 999px; padding: 7px 14px; font-size: 13px; margin: 0 6px 6px 0; }
.detail .meta-line { color: var(--muted); font-size: 14px; margin-top: 6px; }
.detail .info-line { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #ccc; }
.detail .info-line b { color: var(--text); }

/* Baris episode ala artefak: kartu gelap, tombol putar lingkaran amber, Download di kanan. */
.ep-row { display: flex; align-items: center; gap: 14px; background: #161616; border: 1px solid #222; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s ease; }
.ep-row:active { border-color: var(--amber); }
.ep-row.last-watched { border-color: var(--amber); }
.ep-mark { display: block; font-size: 12px; font-weight: 400; color: var(--amber); margin-top: 2px; }
/* Bar progres tipis di bawah poster kartu Lanjutkan Menonton. */
.continue-progress { display: block; position: relative; height: 4px; margin-top: -4px; background: rgba(255,255,255,.45); z-index: 2; }
.continue-progress span { display: block; height: 100%; background: var(--amber); }
/* Bingkai emas untuk kartu Lanjutkan Menonton. */
#continueGrid .card { border-color: var(--amber); }
/* Modal konfirmasi download. */
.confirm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; }
.confirm-modal.open { display: flex; }
.confirm-card { background: #161616; border: 1px solid var(--amber); border-radius: 18px; padding: 20px; width: 100%; max-width: 340px; }
.confirm-card h3 { margin: 0 0 8px; font-size: 17px; }
.confirm-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn, .confirm-actions .btn-dark { flex: 1; }
.ep-play { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: var(--amber); background-size: cover; background-position: center; color: #111; border: none; font-size: 24px; cursor: pointer; }
.ep-title { flex: 1; font-weight: 600; font-size: 15px; }
.ep-download { background: #222; color: #fff; border: none; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13px; cursor: pointer; }

/* Pemeran: foto lingkaran dengan nama di bawah. */
.cast-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cast-row::-webkit-scrollbar { display: none; }
.cast-item { flex: 0 0 76px; text-align: center; }
.cast-item img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #222; }
.cast-item p { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.3; }

/* Judul Terkait: grid 3 kolom, 6 baris ke bawah (18 judul). */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Badge episode di kartu Lanjutkan Menonton + tombol hapus di pojok poster. */
.ep-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.continue-x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Input pencarian di halaman pencarian. */
.search-input { width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 13px 18px; font-size: 15px; outline: none; }
.search-input:focus { border-color: var(--amber); }
.detail-head { display: flex; gap: 16px; }
/* Ronde 5 (R-L4): text-shadow ronde 3 dihapus — keterbacaan kembali dijaga scrim ::after. */
/* Ronde 5 (R-L5): poster detail kembali polos 140px, tanpa bingkai/bayangan. */
.detail-head img { width: 140px; border-radius: 12px; aspect-ratio: 2/3; object-fit: cover; }
.detail-head h2 { margin: 0 0 8px; font-size: 20px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.detail p.desc { color: #ddd; font-size: 14px; line-height: 1.6; }
.episode-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.episode-list button { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; cursor: pointer; }
.episode-list button.watched { border-color: var(--amber); color: var(--amber); }

/* Player modal */
.modal { position: fixed; inset: 0; background: #000; z-index: 50; display: none; flex-direction: column; overflow: hidden; }
.modal.open { display: flex; }
/* Area bawah pemutar (server, tombol, daftar episode) yang bisa di-scroll;
   video + judul tetap di atas. overscroll-behavior menahan scroll supaya
   halaman di belakang modal tidak ikut bergerak. */
.player-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Pemutar custom: video + kontrol buatan sendiri di dalam stage.
   Stage yang di-fullscreen (bukan video saja) supaya kontrol custom
   tetap terlihat saat fullscreen, dan orientasi dikunci landscape. */
.player-stage { position: relative; width: 100%; background: #000; touch-action: pan-y; }
.player-stage video { width: 100%; aspect-ratio: 16 / 9; min-height: 220px; max-height: 62vh; background: #000; display: block; object-fit: contain; touch-action: pan-y; }
.player-stage:fullscreen, .player-stage:-webkit-full-screen { background: #000; }
.player-stage:fullscreen video, .player-stage:-webkit-full-screen video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 25%, transparent 60%, rgba(0,0,0,.65)); opacity: 1; transition: opacity .25s; z-index: 2; }
.player-stage.controls-hidden .player-overlay { opacity: 0; pointer-events: none; }
.player-top { display: none; align-items: center; gap: 12px; padding: 14px 16px; }
.player-stage:fullscreen .player-top, .player-stage:-webkit-full-screen .player-top { display: flex; }
.player-top-titles h3 { margin: 0; font-size: 16px; }
.player-top-titles p { margin: 2px 0 0; color: #ccc; font-size: 13px; }
.player-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding-left: 4px; }
.player-center.show { display: flex; }
.player-spinner { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--amber); animation: player-spin 0.8s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-seek-ind { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.65); color: #fff; padding: 8px 12px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.player-seek-ind.left { left: 16px; }
.player-seek-ind.right { right: 16px; }
.player-seek-ind.show { opacity: 1; }
/* Indikator geser video ala MX Player: waktu target besar + delta [+-00:00]. */
.player-swipe-ind { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.player-swipe-ind .swipe-time { font-size: 30px; font-weight: 700; line-height: 1.2; }
.player-swipe-ind .swipe-delta { font-size: 16px; line-height: 1.4; }
.player-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); margin-top: auto; }
.player-icon-btn { background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex: none; }
.player-icon-btn.small { font-size: 18px; width: 36px; height: 36px; }
.player-icon-btn svg { display: block; }
.player-time { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.player-seek-wrap { position: relative; flex: 1; display: flex; align-items: center; touch-action: none; }
.player-seek-wrap input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; margin: 0; touch-action: none; }
.player-seek-wrap input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.player-seek-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); margin-top: -6px; }
.player-seek-wrap input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.player-seek-wrap input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--amber); }
.player-seek-bubble { position: absolute; bottom: 30px; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.load-more-wrap { text-align: center; padding: 20px 16px 8px; }
.load-more-wrap .btn { min-width: 200px; }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
/* Baris pilihan kualitas (HLS 360p/480p/720p): tersembunyi sampai peta
   kualitas episode berhasil diambil dari halaman watch-lite. Tombol aktif
   memakai warna aksen yang sama seperti episode aktif. */
.quality-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.quality-row .quality-label { color: var(--muted); font-size: 13px; margin-right: 2px; }
.quality-btn { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.quality-btn.active { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; }
.player-episodes { padding: 0 16px 12px; }
.player-episodes h4 { margin: 8px 0; font-size: 14px; }
.player-episodes .episode-list { display: flex; flex-wrap: wrap; gap: 8px; }
.player-episodes .episode-list button { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; cursor: pointer; }
.player-episodes .episode-list button.active { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; }
.player-episodes .next-row { margin-top: 10px; }
.player-note { padding: 0 16px 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.server-status { padding: 0 16px; font-size: 13px; color: var(--muted); }

/* Bottom nav — Fase 2 ronde 2: latar SOLID (dulu rgba 0.98 — tombol
   konten di bawahnya tembus di screenshot, sama seperti header). */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #0c0c0c; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.45);
  display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav button { background: transparent; border: none; color: var(--muted); font-size: 12px; padding: 6px 8px; cursor: pointer; }
.bottom-nav button.active { color: var(--amber); font-weight: 700; }
/* v1.0.7: tidak ada latar/garis fokus yang tertinggal sesudah ketuk tombol nav. */
.bottom-nav button:focus, .bottom-nav button:active { background: transparent; outline: none; }

/* States */
.empty, .error-box { text-align: center; color: var(--muted); padding: 28px 12px; line-height: 1.6; }
.error-box { color: #ffb4b8; }
.rate-banner { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #e5484d; background: rgba(229, 72, 77, .12); color: #ffb4b8; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.hidden { display: none !important; }
footer { padding: 24px 16px; color: var(--muted); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--border); margin-top: 28px; }

/* Baru Rilis (v1.0.17): badge BARU isi amber di pojok kiri atas kartu,
   hitungan "x hari lalu" di bawah judul dengan warna amber. */
.baru-badge { display: inline-block; background: var(--amber); color: #111; font-weight: 700; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; letter-spacing: 0.4px; vertical-align: middle; }
.card .baru-badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.card-body p .rel-time { color: var(--amber); font-weight: 700; }

/* Badge status di detail: TAMAT (isi amber) / ONGOING (outline amber). */
.status-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: 0.4px; }
.status-badge.tamat { background: var(--amber); color: #111; }
.status-badge.ongoing { background: transparent; border: 1px solid var(--amber); color: var(--amber); }

/* Episode Baru (v1.0.17): daftar baris vertikal — poster kecil di kiri,
   judul + nomor episode di tengah, pil BARU di kanan. Ditekan langsung
   memutar episode itu. */
.ep-new-list { display: flex; flex-direction: column; gap: 10px; }
.ep-new-row { display: flex; align-items: center; gap: 12px; width: 100%; background: #161616; border: 1px solid #222; border-radius: 14px; padding: 10px 12px; cursor: pointer; text-align: left; color: var(--text); }
.ep-new-row:active { border-color: var(--amber); }
.ep-new-row img { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #222; flex: 0 0 auto; }
.ep-new-info { flex: 1; min-width: 0; }
.ep-new-info b { display: block; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-new-info span { display: block; color: var(--amber); font-size: 13px; font-weight: 700; margin-top: 3px; }
.ep-new-pill { flex: 0 0 auto; background: transparent; border: 1px solid var(--amber); color: var(--amber); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.4px; }

/* ---- Login (v1.0.9) ---- */
.auth-overlay { position: fixed; inset: 0; z-index: 100; background: radial-gradient(140% 700px at 50% -40px, rgba(45,212,191,0.25), rgba(45,212,191,0.07) 45%, rgba(45,212,191,0) 70%), linear-gradient(#181818, #0d0d0d 35%, #080808); background-attachment: fixed; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 380px; margin: auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 20px; text-align: center; }
.auth-mascot { width: 132px; height: 132px; object-fit: cover; border-radius: 24px; display: block; margin: 0 auto 12px; background: var(--surface2); }
.auth-title { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.3px; }
.auth-title span { color: var(--amber); }
.auth-h2 { margin: 0 0 10px; font-size: 20px; }
.auth-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-note { margin: 0 0 16px; color: #ddd; font-size: 14px; line-height: 1.6; text-align: left; }
.auth-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(229,72,77,0.12); border: 1px solid rgba(229,72,77,0.5); color: #ffb4b8; font-size: 14px; line-height: 1.5; text-align: left; }
.auth-label { display: block; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.auth-input { width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 12px 16px; font-size: 15px; outline: none; }
.auth-input:focus { border-color: var(--amber); }
.auth-btn { width: 100%; padding: 13px 16px; font-size: 15px; margin-top: 16px; }
.auth-btn:disabled { opacity: 0.45; cursor: default; }
.auth-link { background: none; border: none; color: var(--amber); font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 2px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 4px; }
.auth-divider span { flex: 1; height: 1px; background: var(--border); }
.auth-switch { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.recovery-box { border: 1px dashed var(--amber); border-radius: 12px; padding: 16px 12px; margin: 4px 0 0; background: rgba(45,212,191,0.06); }
.recovery-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--amber); margin-bottom: 8px; }
.recovery-box code { font-size: 20px; font-weight: 700; letter-spacing: 1px; word-break: break-all; color: var(--text); }
.auth-check { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 14px; line-height: 1.5; margin-top: 16px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--amber); }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* ---- Profil + Admin (v1.0.10) ---- */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.profile-avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: var(--amber); color: #111; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.profile-email { font-size: 16px; font-weight: 700; word-break: break-all; }
.profile-email-sub { font-size: 14px; opacity: 0.75; word-break: break-all; }
.profile-role { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.4px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
/* Kepala Profil: lencana peran ("Pengguna") putih tebal (perintah Yi 23:51) — ditaruh SEBELUM
   .profile-role.admin/.founder/.vip (spesifisitas sama, aturan yang belakangan menang) supaya
   ADMIN (merah), Pendiri (emas) dan VIP (emas) tetap memakai warna mereka sendiri. */
.profile-head .profile-role { color: var(--text); }
.profile-role.admin { background: #e5484d; border-color: #e5484d; color: #fff; }
/* Lencana Pendiri (founder): bintang EMAS di samping tag ADMIN merah —
   emas di sini pembeda peran tertinggi, bukan lencana admin (admin tetap
   merah solid di atas). Teks gelap supaya kontras di atas emas. */
.profile-role.founder { background: #f5b301; border-color: #f5b301; color: #231a00; }
/* Lencana VIP (v1.0.24, M4 revisi): pill emas JELAS dengan struktur yang
   sama persis dengan lencana peran — emas yang sama dengan lencana
   Pendiri, teks "VIP" yang membedakan. Dipakai di Profil (di bawah
   lencana peran) dan di daftar akun admin (di samping lencana peran). */
.profile-role.vip { background: #f5b301; border-color: #f5b301; color: #231a00; }
/* Baris lencana VIP + "VIP aktif sampai ..." di bawah lencana peran
   di kepala Profil (M4 revisi). */
/* Kepala Profil: baris VIP sejajar dengan lencana peran (satu baris, bukan menumpuk) — perintah Yi 23:51. */
.profile-vip-line { display: inline-block; margin-top: 5px; margin-left: 6px; }
.profile-vip-line .profile-role { margin-top: 0; }
.profile-vip-until { margin-top: 8px; font-size: 13px; }
.admin-user .lock-note { font-size: 12px; color: var(--muted); }
/* Lencana ADMIN MERAH mencolok (koreksi Yi 25 Nov ~00:45 WIB — BUKAN
   emas/amber seperti brief awal). Merah solid di samping nama/email ini
   pembeda visual supaya profil admin langsung terlihat berbeda dari
   profil user biasa. Lencana "Pengguna" tetap netral (di atas). */
.profile-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-panel); padding: 18px; margin-top: 16px; }
.profile-section h3 { margin: 0 0 4px; font-size: 16px; }
.profile-section p.hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.profile-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.profile-msg.error { background: rgba(229,72,77,0.12); border: 1px solid rgba(229,72,77,0.5); color: #ffb4b8; }
.profile-msg.ok { background: rgba(45,212,191,0.10); border: 1px solid rgba(45,212,191,0.5); color: var(--amber); }
.profile-msg:empty { display: none; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-actions .btn { width: 100%; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-outline { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.danger:disabled, .btn.danger-outline:disabled { opacity: 0.45; cursor: default; }
.profile-field { margin-top: 10px; }
.profile-field .auth-label { margin-top: 0; }
.profile-field .auth-input { margin-bottom: 0; }
.profile-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(229,72,77,0.10); border: 1px solid rgba(229,72,77,0.4); color: #ffb4b8; font-size: 13px; line-height: 1.6; }
.admin-stats { display: flex; gap: 10px; margin: 0 0 14px; }
.admin-stat { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.admin-stat b { display: block; font-size: 22px; color: var(--amber); }
.admin-stat span { font-size: 12px; color: var(--muted); }
/* Baris akun: kartu, sama seperti Dramaloka (round 3.1) — sebelumnya
   datar dengan garis pemisah, tampilannya beda dari Dramaloka. */
.admin-user { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px; margin-bottom: 10px; }
/* Struktur baris (round 3.2, mengikuti acuan Dramaloka): identitas di
   baris SENDIRI lebar penuh; lencana di baris sendiri di bawahnya;
   catatan kunci di baris sendiri di bawah lencana; lalu meta, tombol.
   Perbaikan cacat utama: sebelumnya identitas + lencana + catatan dalam
   satu baris flex — lencana menjepit kolom identitas sampai "Founder
   LayarKita" pecah tengah kata ("Found / er / Layar / Kita") di HP.
   Kini identitas tidak pernah dijepit: ia selebar kartu, dan hanya
   membungkus antar kata (word-break: normal, tanpa break-all). */
.admin-user-id-row { display: block; }
.admin-user-id-row .email { font-weight: 600; font-size: 14px; word-break: normal; overflow-wrap: break-word; }
.admin-user-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.admin-user-badges .profile-role { margin-top: 0; }
.admin-user-lock { display: block; margin-top: 6px; }
.admin-user-lock .lock-note { font-size: 12px; color: var(--muted); }
/* Centang biru terverifikasi Pendiri (round 3.2): menempel tepat sesudah
   nama, selaras tinggi huruf, tidak dominan. */
.verify-badge { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; flex: none; }
.admin-user-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.admin-user-actions .btn { padding: 8px 13px; font-size: 13px; }
/* Tombol terkunci (baris sendiri / baris admin & Pendiri untuk admin
   biasa): jauh lebih pudar dari tombol aktif supaya jelas tidak bisa
   diklik — round 3.1. */
.admin-user-actions .btn:disabled { opacity: .35; cursor: not-allowed; }
.admin-user-actions .btn.armed { background: var(--danger); color: #fff; border-color: var(--danger); }
/* Badge akun diblokir (suspend): garis merah, bukan tag peran. */
.profile-role.suspended { background: transparent; border-color: #e5484d; color: #ffb4b8; }
/* Baris meta akun: tanggal daftar · terakhir aktif · request hari ini. */
.admin-user-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.admin-code-box { margin-top: 10px; border: 1px dashed var(--amber); border-radius: 12px; padding: 12px; background: rgba(45,212,191,0.06); }
.admin-code-box code { font-size: 18px; font-weight: 700; letter-spacing: 1px; word-break: break-all; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* Pemilih avatar (round 3, v1.0.16): grid 8 preset — 2 maskot + 6 warna. */
.avatar-grid { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; margin: 12px 0; }
.avatar-option { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border); padding: 0; cursor: pointer; overflow: hidden; background: var(--surface2); }
.avatar-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-option.selected { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(45,212,191,.35); }
/* Identitas baris Kelola Akun (round 3): email di atas, @username di bawah.
   Round 3.2: tanpa flex:1 (identitas kini baris blok lebar penuh, bukan
   item flex yang bisa dijepit); @username tanpa break-all — hanya
   membungkus bila satu token melebihi lebar kartu. */
.admin-user-id { display: flex; flex-direction: column; min-width: 0; }
.admin-user-tg { font-size: 13px; color: var(--muted); word-break: normal; overflow-wrap: break-word; }

/* ---- VIP v1.0.23 ---- */
/* Tombol avatar header (pola Dramaloka): lingkaran gambar, tanpa huruf. */
.profile-btn { padding: 0; overflow: hidden; }
.profile-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* Banner VIP/jatah: bar bertumpuk di atas hero (bukan overlay) — konten
   di bawah bergeser, dan hilang tanpa gap saat X ditekan. */
#vipBanners { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.vip-banner { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--amber); border-left: 3px solid var(--amber); border-radius: var(--radius-card); padding: 10px 12px; color: var(--text); font-size: 14px; line-height: 1.5; }
.vip-banner-text { flex: 1; min-width: 0; }
.vip-banner-x { background: transparent; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; flex: 0 0 auto; }
.vip-banner .btn.small { flex: 0 0 auto; }
/* Layar jatah habis / bayar: tombol X di pojok kanan atas kartu. */
.quota-x { float: right; margin: -6px -6px 0 8px; width: 36px; height: 36px; font-size: 22px; }
.confirm-card.vip-modal-card { max-width: 400px; max-height: 86vh; overflow-y: auto; }
.vip-pkg-btn { width: 100%; margin-bottom: 8px; text-align: left; }
/* Baris kegunaan Token di kartu Token (patch 2026-11-28): tebal + merah mencolok. */
.token-use-line { color: #ff4d4d; font-weight: 800; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
/* Token Jatah: kolom custom jumlah token (cermin kartu VIP). */
.custom-label { display: block; color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.custom-row { display: flex; gap: 10px; align-items: center; }
.custom-row .auth-input { flex: 1; min-width: 0; }
.custom-total { font-size: 15px; font-weight: 700; white-space: nowrap; }
.custom-total s { color: var(--muted); font-weight: 400; }
.vip-amount { font-size: 16px; margin: 0 0 12px; }
.vip-amount s, .vip-pkg-btn s { color: var(--muted); }
.vip-qris-img { display: block; width: 100%; max-width: 280px; margin: 8px auto; border-radius: 12px; background: #fff; }
#vipModalBody h3, #quotaModal h3 { margin-top: 4px; }
/* Baris/kartu seksi VIP di Kelola Akun. */
.admin-vip-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px; margin-bottom: 10px; }
.claim-shot-img { display: block; width: 100%; max-width: 320px; margin: 8px auto; border-radius: 12px; }
.vip-days-select { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
#adminQuotaRequestsSection h3, #adminClaimsSection h3, #adminFarmingSection h3, #adminDiscountSection h3, #adminCloudflareSection h3, #adminQrisSection h3 { margin: 20px 0 10px; font-size: 16px; }
#adminCloudflareSection p { margin: 6px 0; font-size: 14px; line-height: 1.5; }

/* ---- Accordion Kelola Akun (Fase 1 ronde 2) ----
   Tiap seksi Kelola Akun jadi lipatan: header ketuk buka/tutup, isi
   tampil hanya saat .open. Chrome murni class (tanpa inline style)
   supaya Fase 2 (restyle) tinggal ganti CSS ini. Badge jumlah pill
   amber; panah (chevron CSS) menunjuk bawah saat tertutup, atas saat
   terbuka. Isi body memakai padding kartu yang sama seperti
   .profile-section. */
.admin-acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-panel); margin-top: 16px; overflow: hidden; }
.admin-acc-head { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: none; color: var(--text); font-size: 16px; font-weight: 700; text-align: left; padding: 16px; cursor: pointer; }
.admin-acc-title { flex: 1; min-width: 0; }
.admin-acc-count { flex: 0 0 auto; background: var(--amber); color: #111; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 9px; border-radius: 999px; }
.admin-acc-chev { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin: 0 3px 3px 0; }
.admin-acc.open .admin-acc-chev { transform: rotate(225deg); margin: 3px 3px 0 0; }
.admin-acc-body { display: none; padding: 0 16px 16px; }
.admin-acc.open > .admin-acc-body { display: block; }
/* Isi seksi yang tadinya margin atas h3 kini menempel di body lipatan:
   hilangkan margin atas elemen pertama supaya tidak ada gap ganda. */
.admin-acc-body > :first-child { margin-top: 0; }
.admin-acc-body .admin-stats { margin-bottom: 0; }
.admin-acc-body .admin-stats + .admin-stats { margin-top: 10px; }

/* Bar pengumuman Beranda (round 3, item 7): di bawah slider hero, di atas
   Genre. Hanya tampil bila ada pengumuman aktif; bila tidak ada,
   .hidden menutupnya total tanpa sisa ruang. Ikon mikrofon aksen di
   kiri; teks berjalan kanan -> kiri berulang (marquee CSS). */
.announce-bar { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: var(--radius-card); color: var(--text); overflow: hidden; }
.announce-icon { flex: 0 0 auto; display: flex; align-items: center; color: var(--amber); }
.announce-icon svg { display: block; }
.announce-track { flex: 1; min-width: 0; overflow: hidden; }
.announce-text { display: inline-block; white-space: nowrap; font-size: 14px; line-height: 1.4; animation: announceScroll 20s linear infinite; will-change: transform; }
@keyframes announceScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Lapisan pengumuman Pendiri (pola .confirm-modal): catatan + hitungan. */
.announce-note { margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.announce-count { margin: 6px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.confirm-card textarea.auth-input { border-radius: 12px; resize: vertical; min-height: 76px; }
/* Baris Berhenti tayang + Batal di lapisan pengumuman: label panjang
   tetap satu baris (tanpa mengubah tombol .confirm-actions lain). */
.announce-actions .btn, .announce-actions .btn-dark { flex: 1 1 0; min-width: 0; white-space: nowrap; font-size: 14px; padding-left: 8px; padding-right: 8px; }

/* Ronde 5 item 8 — editor tier VIP (cermin DR; warna ikut tema LK: --surface/--amber teal). */
.vip-tier-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.vip-tier-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; flex: 1; min-width: 0; }
.vip-tier-days { width: 90px; display: block; margin-top: 6px; }
.vip-tier-disc { font-size: 12px; color: var(--muted); flex: 1 1 100%; margin-top: 8px; align-self: flex-start; white-space: nowrap; }
.vip-tier-disc b { color: var(--text); }
.vip-tier-del { flex-shrink: 0; margin-left: auto; margin-top: 0; }
.vip-price-wrap { display: flex; align-items: center; background: var(--surface2); border: 1.5px solid var(--amber); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.vip-price-cur { padding: 0 2px 0 12px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.vip-price-wrap .auth-input { flex: 1; min-width: 0; width: 130px; border: 0; background: transparent; padding: 12px 12px 12px 6px; }
.vip-price-wrap:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
/* Ronde 5 item 9 — avatar inisial + peran di seksi Pemeran (LK tanpa foto pemeran). */
.cast-item .cast-initials { width: 72px; height: 72px; border-radius: 50%; background: var(--surface2); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto; letter-spacing: .5px; }
.cast-item .cast-role { font-size: 11px; color: var(--muted); margin: 2px 0 0; line-height: 1.3; }

/* Patch bedah #2 (28 Nov 2026) item C: keempat daftar admin scroll di dalam. */
#adminActivityLogList, #adminQuotaRequestsList, #adminClaimsList, #adminFarmingList, #adminUsersList { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Panel Log Aktivitas (29 Nov 2026, Pendiri saja): baris log. */
.admin-log-row { padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
.admin-log-row:last-child { border-bottom: none; }
.admin-log-time { color: var(--muted); font-size: 12px; }
.admin-log-body { overflow-wrap: break-word; }
/* Patch bedah #2 item D: daftar klaim pending di Beranda (expand-inline). */
.home-claims { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 8px; overflow: hidden; }
.home-claims-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); }
.home-claims-count { flex: 0 0 auto; background: var(--amber); color: #111; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 9px; border-radius: 999px; }
.home-claims-list { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 14px; }
.home-claims-list .admin-user-row, .home-claims-list .admin-vip-row { margin-top: 0; margin-bottom: 10px; }
.home-claims-list .admin-user-row:last-child, .home-claims-list .admin-vip-row:last-child { margin-bottom: 0; }
/* Patch bedah #2 item E: toast global. */
.app-toast { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); max-width: 420px; background: var(--surface2); color: var(--text); border: 1px solid var(--amber); border-radius: 12px; padding: 12px 12px 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.app-toast.error { border-color: #e5484d; color: #ffb4b8; }
.app-toast #appToastMsg { flex: 1; min-width: 0; }
.app-toast #appToastClose { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
/* Mata sandi form daftar (29 Nov 2026). */
.pw-wrap{position:relative}
.pw-wrap .auth-input{padding-right:46px}
.eye-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#aaa;cursor:pointer;font-size:18px;line-height:1;border-radius:8px}
.eye-btn:hover{color:#fff;background:#333}
.eye-btn svg{width:20px;height:20px;display:block;margin:auto}
.eye-btn .icon-eye-off{display:none}
.eye-btn.showing .icon-eye{display:none}
.eye-btn.showing .icon-eye-off{display:block}
