/*
Theme Name: IDFLIX
Theme URI: https://idflix.example/
Author: IDFLIX
Description: Tema katalog film, TV series, dan drama short subtitle Indonesia. Diketik dari nol, tanpa kerangka, tanpa pustaka.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idflix
Tags: dark, one-column, custom-menu
*/

/* ==========================================================================
   0. Dasar
   ========================================================================== */
[hidden] { display: none !important; }

:root {
	--ifx-bg: #0c0c0c;
	--ifx-bg-2: #141414;
	--ifx-bg-3: #1a1a1a;
	--ifx-kartu: #242424;
	--ifx-garis: #2a2a2a;
	--ifx-teks: #f0f0f0;
	--ifx-teks-2: #d0d0d0;
	--ifx-redup: #a0a0a0;
	--ifx-redup-2: #707070;
	--ifx-merah: #d50032;
	--ifx-merah-gelap: #a80028;
	--ifx-kuning: #f5c518;
	--ifx-kepala-tinggi: 58px;
	--ifx-navbawah-tinggi: 64px;
	--ifx-radius: 8px;
	--ifx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ifx-bg);
	color: var(--ifx-teks);
	font-family: var(--ifx-font);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.ifx-laci-terbuka { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0 0 12px; }

.ifx-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.ifx-lompat {
	position: absolute; left: -999px; top: 8px;
	background: var(--ifx-merah); color: #fff;
	padding: 8px 14px; border-radius: 6px; z-index: 200;
}
.ifx-lompat:focus { left: 8px; }

.ifx-ikon { width: 22px; height: 22px; flex-shrink: 0; }

.ifx-wadah {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 14px;
}

.ifx-utama {
	padding-top: var(--ifx-kepala-tinggi);
	padding-bottom: calc(var(--ifx-navbawah-tinggi) + 20px);
	min-height: 100vh;
}

/* Kelas body per halaman: tanpa aturan khusus, disediakan untuk pengait. */
.ifx-beranda, .ifx-tonton,
.ifx-tipe-movie, .ifx-tipe-series, .ifx-tipe-short,
.ifx-rute-movie, .ifx-rute-series, .ifx-rute-shorts, .ifx-rute-trending,
.ifx-rute-genre, .ifx-rute-country, .ifx-rute-year, .ifx-rute-indeks { min-width: 0; }

/* ==========================================================================
   1. Kepala
   ========================================================================== */
.ifx-kepala {
	position: fixed; top: 0; left: 0; right: 0;
	height: var(--ifx-kepala-tinggi);
	background: var(--ifx-bg);
	z-index: 100;
	transition: box-shadow .2s;
}
.ifx-kepala-padat { box-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

.ifx-kepala-dalam {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
}

.ifx-logo { display: flex; align-items: center; flex-shrink: 0; }
.ifx-logo img { height: 24px; width: auto; }

.ifx-nav-desktop { display: none; }

.ifx-kepala-kanan {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ifx-ikon-tombol {
	background: none; border: 0; color: var(--ifx-teks);
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
}
.ifx-ikon-tombol:hover { background: var(--ifx-bg-3); }

.ifx-menu-tombol {
	background: none; border: 0; color: var(--ifx-teks);
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 6px 8px 8px; font-size: 14px; font-weight: 500;
	border-radius: 6px;
}
.ifx-menu-tombol:hover { background: var(--ifx-bg-3); }

/* Panel cari di bawah kepala */
.ifx-cari-panel {
	position: absolute; left: 0; right: 0; top: var(--ifx-kepala-tinggi);
	background: var(--ifx-bg-2);
	padding: 10px 0;
	border-bottom: 1px solid var(--ifx-garis);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}

.ifx-cari { display: flex; gap: 8px; align-items: center; }
.ifx-cari-label { flex: 1; display: block; }
.ifx-cari-input {
	width: 100%;
	background: var(--ifx-kartu);
	border: 1px solid transparent;
	border-radius: var(--ifx-radius);
	color: var(--ifx-teks);
	font: inherit;
	padding: 10px 14px;
	outline: none;
}
.ifx-cari-input:focus { border-color: var(--ifx-merah); }
.ifx-cari-input::placeholder { color: var(--ifx-redup-2); }
.ifx-cari-tombol {
	background: var(--ifx-merah); color: #fff; border: 0;
	width: 44px; height: 42px; border-radius: var(--ifx-radius);
	display: inline-flex; align-items: center; justify-content: center;
}
.ifx-cari-halaman { max-width: 560px; margin: 12px 0 16px; }

/* Laci menu */
.ifx-tirai {
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, .65);
	z-index: 110;
}
.ifx-laci {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: min(300px, 86vw);
	background: var(--ifx-bg-2);
	z-index: 120;
	display: flex; flex-direction: column;
	box-shadow: -8px 0 24px rgba(0, 0, 0, .5);
	overflow-y: auto;
}
.ifx-laci-kepala {
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 8px 8px 18px;
	border-bottom: 1px solid var(--ifx-garis);
	min-height: var(--ifx-kepala-tinggi);
}
.ifx-laci-judul { font-weight: 700; font-size: 16px; }
.ifx-laci-nav { display: flex; flex-direction: column; padding: 8px 0; }
.ifx-laci-nav a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 13px 18px; font-size: 15px; color: var(--ifx-teks-2);
	border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.ifx-laci-nav a .ifx-ikon { width: 18px; height: 18px; color: var(--ifx-redup-2); }
.ifx-laci-nav a.aktif { color: var(--ifx-merah); font-weight: 600; }
.ifx-laci-nav a:hover { background: var(--ifx-bg-3); }

/* ==========================================================================
   2. Navigasi bawah (ponsel)
   ========================================================================== */
.ifx-navbawah {
	position: fixed; left: 0; right: 0; bottom: 0;
	height: var(--ifx-navbawah-tinggi);
	background: var(--ifx-bg);
	border-top: 1px solid var(--ifx-garis);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	z-index: 100;
	padding-bottom: env(safe-area-inset-bottom);
}
.ifx-navbawah-item {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 4px; font-size: 11px; color: var(--ifx-redup);
	background: none; border: 0; padding: 0;
}
.ifx-navbawah-item .ifx-ikon { width: 22px; height: 22px; }
.ifx-navbawah-item.aktif { color: var(--ifx-merah); }

/* ==========================================================================
   3. Tombol, pil, chip
   ========================================================================== */
.ifx-tombol {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--ifx-kartu); color: var(--ifx-teks);
	border: 0; border-radius: 999px;
	padding: 10px 18px; font-size: 14px; font-weight: 600;
	line-height: 1.2; white-space: nowrap;
}
.ifx-tombol:hover { background: #2e2e2e; color: #fff; }
.ifx-tombol .ifx-ikon { width: 18px; height: 18px; }
.ifx-tombol-merah { background: var(--ifx-merah); color: #fff; }
.ifx-tombol-merah:hover { background: var(--ifx-merah-gelap); }
.ifx-tombol-kecil { padding: 7px 14px; font-size: 13px; }
.ifx-tombol-baris { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.ifx-pil {
	display: inline-block;
	background: var(--ifx-kartu); color: var(--ifx-teks);
	border-radius: 6px; padding: 2px 8px;
	font-size: 11px; font-weight: 700; letter-spacing: .3px;
	line-height: 1.6;
}
.ifx-pil-merah { background: var(--ifx-merah); color: #fff; }
.ifx-pil-kuning { background: var(--ifx-kuning); color: #0c0c0c; }

.ifx-chip-grup {
	display: inline-flex; align-items: center; gap: 2px;
	background: var(--ifx-bg-3);
	border-radius: 999px; padding: 3px;
	max-width: 100%; overflow-x: auto;
}
.ifx-chip {
	background: none; border: 0;
	color: var(--ifx-redup);
	padding: 6px 13px; border-radius: 999px;
	font-size: 12px; font-weight: 500; white-space: nowrap;
	line-height: 1.2;
}
.ifx-chip:hover { color: var(--ifx-teks); }
.ifx-chip.aktif { background: var(--ifx-teks); color: var(--ifx-bg); font-weight: 700; }

.ifx-titik-pisah {
	display: inline-block; width: 3px; height: 3px;
	border-radius: 50%; background: var(--ifx-redup-2);
	margin: 0 8px; vertical-align: middle;
}

/* ==========================================================================
   4. Seksi & judul
   ========================================================================== */
.ifx-seksi { margin: 24px 0 8px; }
.ifx-seksi-kepala {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 10px 12px; margin-bottom: 12px;
}
.ifx-seksi-judul { font-size: 17px; font-weight: 700; }
.ifx-seksi-tren .ifx-seksi-judul { margin-right: 4px; }
.ifx-seksi-episode { margin-top: 20px; }
.ifx-lihat-semua {
	margin-left: auto;
	display: inline-flex; align-items: center; gap: 2px;
	color: var(--ifx-redup); font-size: 13px;
}
.ifx-lihat-semua .ifx-ikon { width: 16px; height: 16px; }
.ifx-lihat-semua:hover { color: var(--ifx-teks); }

.ifx-judul-halaman { font-size: 22px; font-weight: 700; margin: 6px 0 10px; }
.ifx-keterangan { color: var(--ifx-redup); font-size: 13px; margin: 0 0 14px; max-width: 760px; }
.ifx-kosong { color: var(--ifx-redup); padding: 32px 0; text-align: center; }

.ifx-beranda-isi { padding-bottom: 8px; }
.ifx-arsip { padding-top: 14px; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.ifx-hero {
	position: relative;
	height: min(78vh, 620px);
	background: var(--ifx-bg-2);
	overflow: hidden;
}
.ifx-hero-rel { position: absolute; inset: 0; }
.ifx-hero-slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}
.ifx-hero-slide.aktif { opacity: 1; visibility: visible; z-index: 1; }
.ifx-hero-latar { display: none; }
.ifx-hero-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: top center;
}
.ifx-hero-isi {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 90px 16px 30px;
	background: linear-gradient(to top, var(--ifx-bg) 0%, rgba(12, 12, 12, .92) 38%, rgba(12, 12, 12, .55) 70%, rgba(12, 12, 12, 0) 100%);
	max-width: 1320px; margin: 0 auto;
}
.ifx-hero-judul {
	font-size: 28px; font-weight: 800; line-height: 1.15;
	margin: 10px 0 8px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ifx-hero-meta {
	font-size: 13px; color: var(--ifx-teks-2);
	display: flex; align-items: center; flex-wrap: wrap;
	margin-bottom: 8px;
}
.ifx-hero-rating {
	display: inline-flex; align-items: center; gap: 3px;
	color: var(--ifx-kuning); font-weight: 700;
}
.ifx-hero-rating .ifx-ikon { width: 15px; height: 15px; }
.ifx-hero-sinopsis {
	font-size: 13px; color: var(--ifx-redup); line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin: 0 0 14px; max-width: 620px;
}
.ifx-hero-titik {
	position: absolute; left: 0; right: 0; bottom: 10px;
	display: flex; justify-content: center; gap: 6px;
	z-index: 2;
}
.ifx-titik {
	width: 6px; height: 6px; border-radius: 999px;
	background: rgba(255, 255, 255, .35);
	border: 0; padding: 0;
	transition: width .25s, background .25s;
}
.ifx-titik.aktif { width: 20px; background: var(--ifx-merah); }

/* ==========================================================================
   6. Kartu poster
   ========================================================================== */
.ifx-grid, .ifx-baris {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px 8px;
}

.ifx-kartu { min-width: 0; }
.ifx-kartu-tautan { display: block; color: inherit; }

.ifx-kartu-poster {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--ifx-radius);
	overflow: hidden;
	background: var(--ifx-kartu);
}
.ifx-kartu-poster img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.ifx-kartu-tautan:hover .ifx-kartu-poster img { transform: scale(1.04); }

.ifx-poster-kosong {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 28px; font-weight: 800; color: var(--ifx-redup-2);
	background: var(--ifx-kartu);
}

.ifx-rank {
	position: absolute; top: 4px; left: 8px;
	font-size: 30px; font-weight: 800; line-height: 1;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
}

.ifx-badge {
	position: absolute; top: 6px; right: 6px;
	background: rgba(0, 0, 0, .78);
	color: #fff;
	font-size: 10px; font-weight: 700; letter-spacing: .3px;
	padding: 2px 6px; border-radius: 4px;
	line-height: 1.5;
	backdrop-filter: blur(3px);
}
.ifx-badge-tipe { top: 6px; }
.ifx-badge-eps { top: 28px; background: rgba(213, 0, 50, .9); }
.ifx-badge-lanskap { top: 6px; left: 6px; right: auto; }

.ifx-kartu-bawah {
	position: absolute; left: 6px; right: 6px; bottom: 6px;
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: 4px;
}
.ifx-bintang, .ifx-koment {
	display: inline-flex; align-items: center; gap: 3px;
	background: rgba(0, 0, 0, .78);
	border-radius: 4px; padding: 2px 6px;
	font-size: 11px; font-weight: 700; line-height: 1.5;
}
.ifx-bintang { color: var(--ifx-kuning); }
.ifx-bintang .ifx-ikon { width: 12px; height: 12px; }
.ifx-koment { color: var(--ifx-teks-2); font-weight: 500; }
.ifx-koment .ifx-ikon { width: 12px; height: 12px; }

.ifx-kartu-judul {
	margin-top: 7px;
	font-size: 13px; font-weight: 600; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ifx-kartu-sub { font-size: 12px; color: var(--ifx-redup); margin-top: 2px; }

/* ==========================================================================
   7. Kartu lanskap (episode terbaru)
   ========================================================================== */
.ifx-grid-lanskap {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 10px;
}
.ifx-lanskap { min-width: 0; }
.ifx-lanskap-tautan { display: block; color: inherit; }
.ifx-lanskap-gambar {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--ifx-radius);
	overflow: hidden;
	background: var(--ifx-kartu);
}
.ifx-lanskap-gambar img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: top center;
}
.ifx-lanskap-play {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	border: 1.5px solid rgba(255, 255, 255, .8);
	display: flex; align-items: center; justify-content: center;
	color: #fff;
}
.ifx-lanskap-play .ifx-ikon { width: 18px; height: 18px; }
.ifx-lanskap-judul {
	margin-top: 7px;
	font-size: 13px; font-weight: 600; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ifx-lanskap-sub { font-size: 12px; color: var(--ifx-redup); margin-top: 2px; }

/* ==========================================================================
   8. Kartu sorotan
   ========================================================================== */
.ifx-sorot-baris { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ifx-sorot {
	display: flex; gap: 12px;
	background: var(--ifx-bg-2);
	border: 1px solid var(--ifx-garis);
	border-radius: 12px; padding: 12px;
}
.ifx-sorot-poster {
	flex: 0 0 96px;
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 6px; overflow: hidden;
	background: var(--ifx-kartu);
	align-self: flex-start;
}
.ifx-sorot-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ifx-sorot-isi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ifx-sorot-judul { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ifx-sorot-pil { display: flex; flex-wrap: wrap; gap: 6px; }
.ifx-sorot-sinopsis {
	font-size: 12px; color: var(--ifx-redup); line-height: 1.5; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ifx-sorot .ifx-tombol { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   9. Paginasi, remah, abjad, term
   ========================================================================== */
.ifx-paginasi {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: 6px; margin: 26px 0 10px;
}
.ifx-hal {
	min-width: 36px; height: 36px; padding: 0 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ifx-bg-3); border-radius: var(--ifx-radius);
	font-size: 13px; font-weight: 600; color: var(--ifx-teks-2);
}
.ifx-hal:hover { background: var(--ifx-kartu); color: #fff; }
.ifx-hal .ifx-ikon { width: 18px; height: 18px; }
.ifx-hal.aktif { background: var(--ifx-merah); color: #fff; }
.ifx-hal.titik { background: none; color: var(--ifx-redup-2); }

.ifx-remah {
	display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
	font-size: 12px; color: var(--ifx-redup);
	margin: 10px 0 4px;
}
.ifx-remah a:hover { color: var(--ifx-teks); }
.ifx-remah span { color: var(--ifx-teks-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.ifx-remah .ifx-ikon { width: 14px; height: 14px; color: var(--ifx-redup-2); }

.ifx-abjad { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.ifx-huruf {
	min-width: 34px; height: 34px; padding: 0 8px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ifx-bg-3); border-radius: 6px;
	font-size: 13px; font-weight: 600; color: var(--ifx-teks-2);
}
.ifx-huruf:hover { background: var(--ifx-kartu); color: #fff; }
.ifx-huruf.aktif { background: var(--ifx-merah); color: #fff; }

.ifx-term-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 20px;
}
.ifx-term {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	background: var(--ifx-bg-3);
	border-radius: var(--ifx-radius);
	padding: 12px 14px; font-size: 14px; font-weight: 500;
	min-width: 0;
}
.ifx-term:hover { background: var(--ifx-kartu); }
.ifx-term-nama { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifx-term-jumlah {
	flex-shrink: 0;
	background: var(--ifx-kartu); color: var(--ifx-redup);
	border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600;
}

/* ==========================================================================
   10. Halaman tonton
   ========================================================================== */
.ifx-tonton-wadah { padding-bottom: 10px; }
.ifx-tonton-isi { padding-top: 6px; }
.ifx-episode-wadah .ifx-tonton-isi { padding-top: 10px; }

.ifx-pemutar {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
}
.ifx-pemutar.ifx-pemutar-poster { aspect-ratio: 2 / 3; max-height: 72vh; }
.ifx-pemutar.ifx-pemutar-tegak { aspect-ratio: 9 / 16; max-height: 80vh; max-width: 480px; margin: 0 auto; }
.ifx-pemutar.ifx-pemutar-lebar { aspect-ratio: 16 / 9; }
.ifx-pemutar-series { cursor: default; }

.ifx-pemutar > img.ifx-pemutar-poster {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: top center;
}
.ifx-pemutar.ifx-pemutar-lebar > img.ifx-pemutar-poster { object-fit: cover; object-position: center 20%; filter: brightness(.7); }
.ifx-pemutar-bayang {
	position: absolute; inset: 0;
	background: linear-gradient(to top, var(--ifx-bg) 0%, rgba(12, 12, 12, .35) 30%, rgba(12, 12, 12, 0) 60%);
	pointer-events: none;
}
.ifx-putar {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 68px; height: 68px; border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	border: 2px solid rgba(255, 255, 255, .85);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	backdrop-filter: blur(4px);
	transition: background .2s, transform .2s;
	padding: 0;
}
.ifx-putar .ifx-ikon { width: 32px; height: 32px; margin-left: 3px; }
.ifx-putar:hover { background: var(--ifx-merah); border-color: var(--ifx-merah); transform: translate(-50%, -50%) scale(1.06); }
.ifx-pemutar-iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0; z-index: 3;
}
.ifx-pemutar-aktif > img.ifx-pemutar-poster,
.ifx-pemutar-aktif .ifx-pemutar-bayang,
.ifx-pemutar-aktif .ifx-putar { display: none; }

.ifx-judul-tonton { font-size: 22px; font-weight: 800; line-height: 1.2; margin: 6px 0 10px; }

.ifx-genre-baris { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--ifx-teks-2); }
.ifx-genre { display: inline-block; }
.ifx-genre + .ifx-genre::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ifx-redup-2); margin: 0 8px; vertical-align: middle; }
a.ifx-genre:hover { color: var(--ifx-merah); }

.ifx-aksi-baris {
	display: flex; gap: 8px; align-items: center;
	overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px;
	scrollbar-width: none;
}
.ifx-aksi-baris::-webkit-scrollbar { display: none; }
.ifx-aksi {
	flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--ifx-kartu); color: var(--ifx-teks);
	border: 0; border-radius: 999px;
	padding: 9px 14px; font-size: 13px; font-weight: 600;
	white-space: nowrap; line-height: 1.2;
}
.ifx-aksi:hover { background: #2e2e2e; color: #fff; }
.ifx-aksi .ifx-ikon { width: 18px; height: 18px; }
.ifx-aksi-utama { background: var(--ifx-merah); color: #fff; }
.ifx-aksi-utama:hover { background: var(--ifx-merah-gelap); }

.ifx-meta-baris {
	display: flex; flex-wrap: wrap; align-items: center;
	font-size: 13px; color: var(--ifx-teks-2);
	margin-bottom: 12px;
}

.ifx-rincian { margin: 0 0 12px; }
.ifx-rincian-baris { display: flex; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.ifx-rincian-baris dt { color: var(--ifx-redup); flex-shrink: 0; }
.ifx-rincian-baris dt::after { content: " :"; }
.ifx-rincian-baris dd { margin: 0; color: var(--ifx-teks); }

.ifx-sinopsis { font-size: 14px; line-height: 1.65; color: var(--ifx-teks-2); margin: 0 0 8px; }

/* Pemeran */
.ifx-pemeran {
	display: flex; gap: 14px;
	overflow-x: auto; padding-bottom: 6px;
	scrollbar-width: thin;
}
.ifx-pemain { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ifx-pemain-nama {
	font-size: 12px; text-align: center; color: var(--ifx-teks-2); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ifx-avatar {
	width: 56px; height: 56px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 18px; font-weight: 700; color: #fff;
	flex-shrink: 0;
	background: #3a3a3a;
}
.ifx-avatar-0 { background: #7a2f4f; }
.ifx-avatar-1 { background: #2f5c7a; }
.ifx-avatar-2 { background: #4f7a2f; }
.ifx-avatar-3 { background: #7a5a2f; }
.ifx-avatar-4 { background: #5a2f7a; }
.ifx-avatar-5 { background: #2f7a6a; }

/* Daftar episode */
.ifx-episode { margin-bottom: 8px; }
.ifx-musim-tab { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ifx-musim-tab .ifx-chip { background: var(--ifx-bg-3); }
.ifx-musim-tab .ifx-chip.aktif { background: var(--ifx-teks); }
.ifx-musim {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
	max-height: 320px; overflow-y: auto;
	padding-right: 2px;
	position: relative;
}
.ifx-eps {
	display: flex; align-items: center; justify-content: center;
	background: var(--ifx-kartu); color: var(--ifx-teks-2);
	border-radius: 6px; padding: 9px 4px;
	font-size: 13px; font-weight: 600; text-align: center;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ifx-eps:hover { background: #2e2e2e; color: #fff; }
.ifx-eps.aktif { background: var(--ifx-merah); color: #fff; }

/* ==========================================================================
   11. Komentar
   ========================================================================== */
.ifx-komentar { margin-top: 28px; padding-top: 4px; }
.ifx-komentar-jumlah {
	display: inline-block; margin-left: 6px;
	background: var(--ifx-kartu); color: var(--ifx-redup);
	border-radius: 999px; padding: 1px 9px; font-size: 12px; vertical-align: middle;
}
.ifx-komentar-daftar, .ifx-komentar-daftar ol { list-style: none; margin: 0; padding: 0; }
.ifx-komentar-daftar ol.children { margin-left: 44px; }
.ifx-komen { margin: 0; }
.ifx-komen-isi { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ifx-garis); }
.ifx-komen-isi .ifx-avatar { width: 36px; height: 36px; font-size: 13px; }
.ifx-komen-badan { flex: 1; min-width: 0; }
.ifx-komen-kepala { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ifx-komen-nama { font-size: 13px; font-weight: 700; }
.ifx-komen-waktu { font-size: 12px; color: var(--ifx-redup-2); }
.ifx-komen-moderasi { font-size: 12px; color: var(--ifx-kuning); margin: 4px 0; }
.ifx-komen-teks { font-size: 14px; color: var(--ifx-teks-2); margin-top: 4px; word-wrap: break-word; }
.ifx-komen-teks p { margin: 0 0 6px; }
.ifx-komen-balas { margin-top: 4px; }
.ifx-komen-balas a, .comment-reply-link { font-size: 12px; font-weight: 600; color: var(--ifx-merah); }
.bypostauthor .ifx-komen-nama::after { content: "Admin"; margin-left: 6px; font-size: 10px; background: var(--ifx-merah); color: #fff; padding: 1px 6px; border-radius: 4px; vertical-align: middle; }
.ifx-komentar-kosong, .ifx-komentar-tutup { color: var(--ifx-redup); font-size: 13px; padding: 12px 0; margin: 0; }
.ifx-komentar-nav { display: flex; gap: 10px; justify-content: center; padding: 12px 0; font-size: 13px; }
.ifx-komentar-nav a, .ifx-komentar-nav span { padding: 6px 12px; background: var(--ifx-bg-3); border-radius: 6px; }
.ifx-komentar-nav .current { background: var(--ifx-merah); color: #fff; }

.ifx-komentar-form, .comment-respond { margin-top: 16px; }
.ifx-komentar-form-judul, .comment-reply-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.ifx-komentar-batal a { font-size: 12px; font-weight: 500; color: var(--ifx-merah); margin-left: 6px; }
.ifx-form, .comment-form { display: block; }
.ifx-form-baris { margin: 0 0 10px; }
.ifx-form-baris label { display: block; font-size: 12px; color: var(--ifx-redup); margin-bottom: 4px; }
.ifx-form-baris input, .ifx-form-baris textarea {
	width: 100%;
	background: var(--ifx-bg-3);
	border: 1px solid var(--ifx-garis);
	border-radius: var(--ifx-radius);
	color: var(--ifx-teks);
	font: inherit;
	padding: 10px 12px;
	outline: none;
}
.ifx-form-baris input:focus, .ifx-form-baris textarea:focus { border-color: var(--ifx-merah); }
.ifx-form-baris textarea { resize: vertical; min-height: 96px; }
.ifx-form-kirim, .form-submit { margin: 12px 0 0; }
.ifx-form-kirim input.ifx-tombol, .form-submit .submit { cursor: pointer; }

/* ==========================================================================
   12. Halaman statis, pencarian, 404
   ========================================================================== */
.ifx-tulisan { font-size: 15px; line-height: 1.7; color: var(--ifx-teks-2); max-width: 820px; }
.ifx-tulisan p { margin: 0 0 14px; }
.ifx-tulisan a { color: var(--ifx-merah); }
.ifx-tulisan h2, .ifx-tulisan h3 { color: var(--ifx-teks); margin: 22px 0 8px; }
.ifx-tulisan ul, .ifx-tulisan ol { padding-left: 22px; }

.ifx-404 { text-align: center; padding-top: 40px; padding-bottom: 20px; }
.ifx-404 .ifx-keterangan { margin-left: auto; margin-right: auto; }
.ifx-404 .ifx-cari-halaman { margin-left: auto; margin-right: auto; }
.ifx-404 .ifx-tombol-baris { justify-content: center; }
.ifx-404-kode { font-size: 72px; font-weight: 800; color: var(--ifx-merah); line-height: 1; margin: 0 0 6px; }

/* ==========================================================================
   13. Kaki
   ========================================================================== */
.ifx-kaki {
	border-top: 1px solid var(--ifx-garis);
	margin-top: 30px;
	padding: 28px 0 24px;
	text-align: center;
}
.ifx-kaki-dalam { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ifx-kaki-logo img { height: 28px; width: auto; }
.ifx-kaki-teks { font-size: 12px; color: var(--ifx-redup); max-width: 560px; margin: 0; line-height: 1.6; }
.ifx-kaki-teks a { color: var(--ifx-teks-2); text-decoration: underline; }
.ifx-kaki-sosial { display: flex; gap: 10px; }
.ifx-sosial {
	width: 42px; height: 42px; border-radius: 10px;
	background: var(--ifx-kartu); color: var(--ifx-teks);
	display: inline-flex; align-items: center; justify-content: center;
}
.ifx-sosial:hover { background: var(--ifx-merah); color: #fff; }
.ifx-kaki-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--ifx-redup); }
.ifx-kaki-nav a:hover { color: var(--ifx-teks); }
.ifx-kaki-hak { font-size: 12px; color: var(--ifx-redup-2); margin: 0; }

/* ==========================================================================
   14. Layar lebih lebar
   ========================================================================== */
@media (min-width: 600px) {
	.ifx-grid, .ifx-baris { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
	.ifx-grid-lanskap { grid-template-columns: repeat(3, 1fr); }
	.ifx-term-grid { grid-template-columns: repeat(3, 1fr); }
	.ifx-sorot-baris { grid-template-columns: repeat(2, 1fr); }
	.ifx-hero-judul { font-size: 34px; }
	.ifx-pemutar.ifx-pemutar-poster { aspect-ratio: 16 / 9; max-height: 560px; }
	.ifx-pemutar.ifx-pemutar-poster > img.ifx-pemutar-poster { object-position: center 20%; filter: brightness(.7); }
}

@media (min-width: 769px) {
	.ifx-wadah { padding: 0 24px; }
	.ifx-utama { padding-bottom: 40px; }
	.ifx-navbawah { display: none; }
	.ifx-nav-desktop { display: flex; align-items: center; gap: 4px; }
	.ifx-nav-desktop a {
		padding: 8px 10px; border-radius: 6px;
		font-size: 14px; color: var(--ifx-redup); font-weight: 500;
	}
	.ifx-nav-desktop a:hover { color: var(--ifx-teks); background: var(--ifx-bg-3); }
	.ifx-nav-desktop a.aktif { color: var(--ifx-teks); }
	.ifx-menu-tombol span { display: none; }
	.ifx-menu-tombol { width: 40px; height: 40px; justify-content: center; padding: 0; border-radius: 50%; }

	.ifx-hero { height: 520px; }
	.ifx-hero-latar {
		display: block;
		position: absolute; inset: -30px;
		width: calc(100% + 60px); height: calc(100% + 60px);
		object-fit: cover; filter: blur(28px) brightness(.35);
	}
	.ifx-hero-img {
		left: auto; right: 24px; top: 40px; bottom: 40px;
		width: auto; height: calc(100% - 80px);
		aspect-ratio: 2 / 3;
		border-radius: 12px;
		box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
		object-position: center;
	}
	.ifx-hero-isi {
		right: auto; top: 0; bottom: 0;
		width: min(58%, 720px);
		padding: 60px 24px 50px;
		display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
		background: linear-gradient(to right, rgba(12, 12, 12, .75), rgba(12, 12, 12, 0));
	}
	.ifx-hero-judul { font-size: 40px; }
	.ifx-hero-sinopsis { -webkit-line-clamp: 3; font-size: 14px; }
	.ifx-hero-titik { bottom: 16px; }

	.ifx-seksi-judul { font-size: 20px; }
	.ifx-judul-halaman { font-size: 28px; }
	.ifx-judul-tonton { font-size: 30px; }
	.ifx-sinopsis { font-size: 15px; max-width: 900px; }
	.ifx-kartu-judul { font-size: 14px; }
	.ifx-pemutar.ifx-pemutar-lebar { max-height: 640px; max-width: 1140px; margin: 0 auto; }
	.ifx-tonton-isi { padding-top: 12px; }
	.ifx-avatar { width: 64px; height: 64px; font-size: 20px; }
	.ifx-pemain { flex-basis: 84px; }
}

@media (min-width: 900px) {
	.ifx-grid, .ifx-baris { grid-template-columns: repeat(6, 1fr); }
	.ifx-grid-lanskap { grid-template-columns: repeat(4, 1fr); }
	.ifx-term-grid { grid-template-columns: repeat(4, 1fr); }
	.ifx-sorot-baris { grid-template-columns: repeat(2, 1fr); }
	.ifx-musim { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

@media (min-width: 1280px) {
	.ifx-grid, .ifx-baris { grid-template-columns: repeat(8, 1fr); }
	.ifx-grid-lanskap { grid-template-columns: repeat(5, 1fr); }
	.ifx-term-grid { grid-template-columns: repeat(6, 1fr); }
	.ifx-sorot-baris { grid-template-columns: repeat(4, 1fr); }
	.ifx-hero { height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ifx-hero-slide, .ifx-kartu-poster img, .ifx-titik, .ifx-putar { transition: none; }
}
