/* =========================================================
   theme.css — Desain baru JeanStream (tema sinema gelap)
   Menggantikan style.css lama sepenuhnya.
   ========================================================= */

:root {
	--bg:        #0b0d10;
	--bg-grad:   radial-gradient(1200px 600px at 70% -10%, #1a1030 0%, transparent 60%),
	             radial-gradient(900px 500px at -10% 10%, #2a0a12 0%, transparent 55%);
	--surface:   #14181f;
	--surface-2: #1b212b;
	--border:    #262d38;
	--text:      #eef0f3;
	--muted:     #98a1ae;
	--accent:    #e50914;
	--accent-2:  #ff3b45;
	--gold:      #ffb84d;
	--radius:    14px;
	--maxw:      1240px;
	--shadow:    0 10px 30px rgba(0,0,0,.45);
	font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	background: var(--bg);
	background-image: var(--bg-grad);
	background-attachment: fixed;
	color: var(--text);
	font-family: 'Inter', 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 34px 0; }

/* ---------- Tombol ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 12px 22px; border-radius: 10px;
	font-weight: 600; font-size: 15px; cursor: pointer;
	border: 1px solid transparent; transition: .18s ease;
	font-family: 'Poppins', sans-serif; white-space: nowrap;
}
.btn i { font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(229,9,20,.35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11,13,16,.72);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	display: flex; align-items: center; gap: 26px;
	height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
	width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
	box-shadow: 0 0 0 1px var(--border);
}
.brand-name { font-family: 'Poppins'; font-weight: 700; font-size: 20px; letter-spacing: .3px; }
.brand-name span { color: var(--accent); }
.brand-sub { display: block; font-size: 11px; color: var(--muted); margin-top: -3px; }

.nav-links { display: flex; gap: 6px; margin-left: 8px; list-style: none; padding: 0; }
.nav-links a {
	padding: 8px 14px; border-radius: 8px; color: var(--muted);
	font-size: 14.5px; font-weight: 500; transition: .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; background: rgba(229,9,20,.16); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-search {
	display: flex; align-items: center; background: var(--surface-2);
	border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 14px;
}
.nav-search input {
	background: none; border: none; outline: none; color: #fff; width: 150px; font-size: 14px;
}
.nav-search input::placeholder { color: #6b7480; }
.nav-search button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
	.nav-links, .nav-search { display: none; }
	.nav-toggle { display: block; margin-left: auto; }
	.nav-links.open {
		display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
		background: rgba(11,13,16,.96); padding: 12px; gap: 4px; border-bottom: 1px solid var(--border);
	}
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative; min-height: 78vh; display: flex; align-items: flex-end;
	overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, var(--bg) 6%, rgba(11,13,16,.6) 45%, transparent 100%),
	            linear-gradient(to right, rgba(11,13,16,.9) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 60px 0 70px; max-width: 640px; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-2);
	background: rgba(229,9,20,.12); border: 1px solid rgba(229,9,20,.3);
	padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-title { font-size: clamp(34px, 5.5vw, 62px); font-weight: 800; margin: 0 0 8px; }
.hero-sub { color: var(--gold); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.hero-desc { color: #c7cdd6; font-size: 16px; margin-bottom: 26px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   Baris film (carousel)
   ========================================================= */
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.row-title {
	font-size: 22px; font-weight: 700; margin: 0; padding-left: 14px;
	border-left: 4px solid var(--accent);
}
.row-title small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }

.rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 18px;
	overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
.rail::-webkit-scrollbar-track { background: transparent; }

/* grid biasa (koleksi CMS, most popular) */
.grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 20px;
}

/* ---------- Kartu poster ---------- */
.card { scroll-snap-align: start; position: relative; }
.poster {
	position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden;
	background: var(--surface-2); box-shadow: var(--shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .poster { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,.6); }
.card:hover .poster img { transform: scale(1.07); }
.poster-overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 12px; opacity: 0; transition: opacity .25s ease;
	background: linear-gradient(to top, rgba(0,0,0,.9), transparent 65%);
}
.card:hover .poster-overlay { opacity: 1; }
.poster-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-46%) scale(.7);
	width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
	display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
	opacity: 0; transition: .25s ease; border: none; cursor: pointer; padding: 0; z-index: 3;
	box-shadow: 0 6px 20px rgba(229,9,20,.5);
}
.poster-play:hover { background: var(--accent-2); }
.card:hover .poster-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.badge-year {
	position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.65);
	backdrop-filter: blur(4px); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px;
}
.badge-soon {
	position: absolute; top: 10px; right: 10px; background: var(--gold); color: #3a2600;
	font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; text-transform: uppercase;
}
.card-title { margin: 10px 2px 2px; font-size: 14.5px; font-weight: 600; color: #eef0f3; }
.card-sub { margin: 0 2px; font-size: 12.5px; color: var(--muted); }

.remove-btn {
	position: absolute; top: 8px; right: 8px; z-index: 4; width: 30px; height: 30px; border-radius: 50%;
	border: none; background: rgba(229,9,20,.92); color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
	opacity: 0; transition: opacity .2s;
}
.card:hover .remove-btn { opacity: 1; }
.remove-btn:hover { background: var(--accent-2); }

.empty-state {
	grid-column: 1 / -1; text-align: center; color: var(--muted);
	padding: 46px 20px; border: 2px dashed var(--border); border-radius: var(--radius);
}
.empty-state a { color: var(--accent-2); font-weight: 600; }

/* Tombol kelola (Edit / Hapus) di kartu admin */
.cms-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-mini {
	flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
	cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: .18s;
	font-family: 'Inter', sans-serif;
}
.btn-mini.edit:hover { background: var(--gold); color: #3a2600; border-color: var(--gold); }
.btn-mini.del:hover { background: var(--accent); border-color: var(--accent); }
.card.editing .poster { outline: 3px solid var(--gold); outline-offset: 2px; }

/* =========================================================
   Halaman detail film
   ========================================================= */
.detail-hero { position: relative; }
.detail-bg { position: absolute; inset: 0; height: 460px; background-size: cover; background-position: center; }
.detail-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,13,16,.5), var(--bg) 92%); }
.detail-inner { position: relative; z-index: 2; padding-top: 120px; }
.detail-head { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.detail-poster { width: 210px; flex-shrink: 0; border-radius: 12px; box-shadow: var(--shadow); }
.detail-meta h1 { font-size: clamp(28px,4vw,44px); font-weight: 800; margin: 0 0 6px; }
.detail-meta .sub { color: var(--gold); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.player-wrap {
	position: relative; width: 100%; aspect-ratio: 16/9; margin: 34px 0 10px;
	border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow);
	border: 1px solid var(--border);
}
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.synopsis { max-width: 900px; }
.synopsis h3 { font-size: 20px; margin: 26px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.synopsis p { color: #c7cdd6; margin: 0 0 14px; }

/* =========================================================
   CMS / form
   ========================================================= */
.panel {
	max-width: 680px; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow); margin: 0 auto;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14.5px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.field input[type=text], .field input[type=url] {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
	background: #0e1218; color: #fff; font-size: 14.5px; transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: #5c6672; }

.dropzone {
	border: 2px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center;
	color: var(--muted); cursor: pointer; transition: .2s;
}
.dropzone:hover { border-color: var(--accent); background: rgba(229,9,20,.05); }
.dropzone i { font-size: 26px; }
.dropzone input[type=file] { display: none; }
.img-preview { margin-top: 14px; text-align: center; display: none; }
.img-preview img { max-height: 250px; border-radius: 10px; box-shadow: var(--shadow); margin: 0 auto; }

.toast {
	position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
	background: #178a4c; color: #fff; padding: 13px 22px; border-radius: 10px; font-weight: 600;
	opacity: 0; pointer-events: none; transition: .3s; z-index: 99; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   404 / kosong
   ========================================================= */
.notice { text-align: center; padding: 90px 20px; }
.notice .big { font-size: 88px; font-weight: 800; color: var(--accent); font-family: 'Poppins'; }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 44px 0 26px; }
.footer h4 { font-size: 15px; margin: 0 0 14px; color: #fff; }
.footer p, .footer li { color: var(--muted); font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a:hover { color: var(--accent-2); }
.footer .social a {
	display: inline-flex; width: 36px; height: 36px; border-radius: 9px; margin-right: 8px;
	align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border);
	color: var(--muted); transition: .2s;
}
.footer .social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.copyright { text-align: center; padding: 18px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.copyright b { color: var(--accent-2); }

@media (max-width: 780px) {
	.footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.detail-head { align-items: center; }
	.detail-poster { width: 150px; }
	.detail-inner { padding-top: 90px; }
}

/* =========================================================
   Modal pemutar inline (lightbox) — putar film tanpa pindah halaman
   ========================================================= */
.player-modal {
	position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
	padding: 20px; opacity: 0; transition: opacity .25s ease;
}
.player-modal.show { opacity: 1; }
.player-modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,.88); backdrop-filter: blur(8px); }
.player-modal-box { position: relative; z-index: 2; width: min(1040px, 96vw); transform: scale(.95); transition: transform .25s ease; }
.player-modal.show .player-modal-box { transform: scale(1); }
.player-modal-frame {
	position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.7); border: 1px solid var(--border);
}
.player-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-modal-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 14px; }
.player-modal-title { color: #fff; font-family: 'Poppins'; font-weight: 600; font-size: 18px; }
.player-modal-close {
	width: 42px; height: 42px; border-radius: 50%; border: none; flex-shrink: 0;
	background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; transition: .2s;
	display: flex; align-items: center; justify-content: center;
}
.player-modal-close:hover { background: var(--accent); transform: rotate(90deg); }
@media (max-width: 560px) { .player-modal-title { font-size: 15px; } }

/* =========================================================
   Lapisan gaya "Framer" — gradient, glass, animasi reveal
   ========================================================= */

/* Orbs gradient mengambang di latar (khas landing Framer) */
.fx-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 18s ease-in-out infinite; }
.fx-orb.a { width: 460px; height: 460px; background: #7a1020; top: -120px; right: -80px; }
.fx-orb.b { width: 400px; height: 400px; background: #3a1466; bottom: -120px; left: -100px; animation-delay: -6s; }
.fx-orb.c { width: 320px; height: 320px; background: #10263f; top: 40%; left: 55%; animation-delay: -11s; }
@keyframes float {
	0%,100% { transform: translate(0,0) scale(1); }
	50%     { transform: translate(30px,-40px) scale(1.08); }
}

/* Teks gradient untuk judul display */
.grad-text {
	background: linear-gradient(100deg, #fff 0%, #ffd7b0 40%, var(--accent-2) 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow kecil di atas heading (pola Framer) */
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase;
	letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

/* Kartu glass */
.glass {
	background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px);
	border-radius: var(--radius);
}

/* Animasi reveal saat scroll (di-trigger IntersectionObserver di site.js) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.fx-orb { animation: none; }
}

/* Marquee judul (aksen dekoratif ala Framer) */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 14px 0; margin: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee span { font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: #2f3742; letter-spacing: 1px; text-transform: uppercase; }
.marquee span b { color: var(--accent); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Sentuhan hover Framer pada tombol utama */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
	transform: translateX(-120%); transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
