/* ============================================================
   Nikepoi theme — dark streaming UI
   ============================================================ */

:root {
	--bg: #0d0f14;
	--surface: #161a22;
	--surface-2: #1c212c;
	--border: #232a36;
	--text: #e6e9ef;
	--text-dim: #8b93a3;
	--accent: #e11d48;
	--accent-2: #f43f5e;
	--gold: #fbbf24;
	--radius: 8px;
	--shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Header ---------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	/* Di atas drawer (100) & backdrop (99): bar header selalu terlihat,
	   tombol ✕ tidak pernah menimpa konten drawer. */
	z-index: 101;
}

/* Hamburger toggle (semua ukuran layar) */

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	z-index: 102;
}

.nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigasi selalu di dalam drawer (semua ukuran layar) */

.site-nav {
	position: fixed;
	/* Mulai di bawah header (tinggi via variable) — konten drawer
	   tidak pernah tertutup bar header / tombol ✕. */
	top: var(--nikepoi-header-h, 56px);
	bottom: 0;
	left: 0;
	width: 280px;
	max-width: 85vw;
	background: var(--surface);
	border-right: 1px solid var(--border);
	transform: translateX(-105%);
	transition: transform 0.2s ease;
	z-index: 100;
	padding: 14px;
	overflow-y: auto;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
}

.site-nav.is-open { transform: translateX(0); }

.nav-list { flex-direction: column; gap: 2px; }
.nav-list a { padding: 12px 14px; font-size: 16px; border-radius: var(--radius); }

body.nikepoi-nav-open::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99;
}

body.nikepoi-nav-open { overflow: hidden; }

/* Halaman situs di bagian bawah drawer */

.nav-drawer-pages {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.nav-drawer-pages h4 {
	margin: 0 0 8px;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-dim);
}

.nav-drawer-pages ul { list-style: none; margin: 0; padding: 0; }

.nav-drawer-pages li a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius);
	color: var(--text-dim);
	font-size: 14px;
}

.nav-drawer-pages li a:hover {
	color: var(--text);
	background: var(--surface-2);
	text-decoration: none;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 56px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	font-weight: 700;
	font-size: 18px;
}

.site-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
}

.site-nav { flex: 1; }

.nav-list {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.nav-list a {
	display: block;
	padding: 6px 12px;
	border-radius: var(--radius);
	color: var(--text);
	font-weight: 500;
}

.nav-list a:hover {
	background: var(--surface-2);
	text-decoration: none;
	color: #fff;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	background: var(--accent);
	color: #fff;
}

.search-form { display: flex; align-items: center; gap: 0; margin-left: auto; }

.search-form input[type="search"] {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius) 0 0 var(--radius);
	color: var(--text);
	padding: 7px 12px;
	width: 200px;
	font-size: 14px;
	outline: none;
}

.search-form input[type="search"]:focus { border-color: var(--accent); }

.search-form button {
	background: var(--accent);
	border: none;
	border-radius: 0 var(--radius) var(--radius) 0;
	color: #fff;
	padding: 7px 12px;
	cursor: pointer;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.search-form .search-icon { display: block; }

/* ---------- Layout ---------- */

.site-main { padding: 24px 0 48px; }

.content-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

.content-main { min-width: 0; }

.page-title {
	font-size: 26px;
	margin: 0 0 18px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.page-title-count {
	font-size: 13px;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 2px 10px;
}

.section-title { font-size: 20px; margin: 28px 0 14px; }

.term-description { color: var(--text-dim); }

.empty-state { color: var(--text-dim); padding: 24px 0; }

/* ---------- Filter bar ---------- */

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px;
	margin-bottom: 22px;
}

.filter-field select {
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: var(--radius);
	padding: 7px 10px;
	font-size: 14px;
	max-width: 170px;
}

.filter-submit {
	background: var(--accent);
	border: none;
	color: #fff;
	border-radius: var(--radius);
	padding: 8px 18px;
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
}

.filter-submit:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Video grid + cards ---------- */

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.video-card { background: transparent; }

.video-card-link { display: block; color: var(--text); }

.video-card-link:hover { text-decoration: none; }

.video-card-thumb {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform 0.15s ease;
}

.video-card-link:hover .video-card-thumb { transform: translateY(-2px); }

.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-card-nothumb {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim);
}

.video-card-nothumb .play-icon { width: 42px; height: 42px; }

.badge {
	position: absolute;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
}

.badge-duration { right: 6px; bottom: 6px; }

.badge-type { left: 6px; top: 6px; }

.badge-type-jav { background: var(--accent); }
.badge-type-h-anime { background: #7c3aed; }

.badge-episode { left: 6px; top: 30px; background: #0ea5e9; }

.badge-processing { right: 6px; top: 6px; background: #d97706; }

/* ---------- Episode (seri) ---------- */

.episode-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 14px 0;
}

.episode-nav-btn {
	display: inline-block;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
}

.episode-nav-btn:hover { border-color: var(--accent); text-decoration: none; }

.episode-nav-btn.is-disabled { opacity: 0.4; pointer-events: none; }

.episode-nav-info { flex: 1; text-align: center; color: var(--text-dim); font-size: 13px; }

.episode-list-wrap { margin-top: 22px; }

.episode-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.episode-list li { border-bottom: 1px solid var(--border); }

.episode-list li:last-child { border-bottom: none; }

.episode-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: var(--text);
}

.episode-list a:hover { background: var(--surface-2); text-decoration: none; }

.episode-list-label { font-weight: 700; color: #0ea5e9; min-width: 48px; font-size: 13px; }

.episode-list-title { flex: 1; font-size: 14px; }

.episode-list-duration { color: var(--text-dim); font-size: 12px; }

.episode-list-now {
	font-size: 11px;
	font-weight: 700;
	background: var(--accent);
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
}

.episode-list li.is-current a { background: var(--surface-2); }

@media (max-width: 640px) {
	.episode-list a { flex-wrap: wrap; gap: 6px; }
	.episode-list-title { flex-basis: 100%; order: 3; }
}

.video-card-title {
	font-size: 14px;
	font-weight: 600;
	margin: 8px 0 2px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.video-card-meta { color: var(--text-dim); font-size: 12px; }

/* ---------- Pagination ---------- */

.pagination {
	display: flex;
	gap: 6px;
	margin: 28px 0 0;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 14px;
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination .page-numbers:not(.current):hover { border-color: var(--accent); text-decoration: none; }

.page-gap { color: var(--text-dim); align-self: center; }

/* ---------- Homepage hero ---------- */

.hero-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: minmax(140px, auto);
	gap: 12px;
	margin-bottom: 24px;
}

.hero-featured {
	grid-row: span 2;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	min-height: 300px;
}

.hero-featured-link { display: block; height: 100%; color: var(--text); }

.hero-featured-link:hover { text-decoration: none; }

.hero-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-featured-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 16px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.hero-featured-overlay h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.see-all { display: inline-block; margin: 10px 0 22px; font-weight: 600; }

/* ---------- Single video ---------- */

.player-note { color: var(--text-dim); font-size: 13px; margin-top: 8px; }

/* Halaman info: cover video-store + ledger kredit film */

.video-hero {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: start;
	margin-bottom: 10px;
}

.video-hero-poster {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.video-hero-poster img { width: 100%; height: 100%; object-fit: cover; }

.video-hero-poster-link { display: block; height: 100%; }

.video-hero-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.video-hero-play svg {
	width: 56px;
	height: 56px;
	color: #fff;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.video-hero-poster-link:hover .video-hero-play,
.video-hero-poster-link:focus-visible .video-hero-play { opacity: 1; }

.video-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin: 0 0 8px;
}

.video-eyebrow a { color: inherit; }

.video-eyebrow a:hover { color: var(--text); }

.video-title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.video-stats {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 14px;
	color: var(--text-dim);
	font-size: 13px;
}

/* Ledger kredit: label mono kapital + garis hairline */

.video-ledger { margin: 0 0 16px; }

.video-ledger-row {
	display: flex;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px solid var(--border);
}

.video-ledger-row:last-child { border-bottom: none; }

.video-ledger dt {
	flex: 0 0 92px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dim);
	padding-top: 2px;
}

.video-ledger dd { margin: 0; font-size: 14px; }

.video-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-watch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: var(--radius);
	box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
	transition: transform 0.15s ease, background 0.15s ease;
}

.btn-watch:hover { background: var(--accent-2); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-watch-icon { width: 20px; height: 20px; }

/* Halaman nonton: stage bioskop */

.watch-stage {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #000;
}

.now-playing {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.now-playing-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
	animation: nikepoi-pulse 2s ease-in-out infinite;
}

@keyframes nikepoi-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.now-playing-dot { animation: none; }
}

.now-playing-label { color: var(--accent-2); flex-shrink: 0; }

.now-playing-title {
	color: var(--text);
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.now-playing-ep { flex-shrink: 0; }

.now-playing-meta { margin-left: auto; flex-shrink: 0; }

.watch-stage .player-wrap { border-radius: 0; box-shadow: none; border: none; }

.video-watch-head { margin: 16px 0 4px; }

.video-watch-title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }

.video-watch-title a { color: var(--text); }

.video-watch-title a:hover { color: var(--accent-2); }

.video-watch-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.video-watch-views { color: var(--text-dim); font-size: 13px; margin-left: auto; }

.btn-info { display: inline-flex; align-items: center; gap: 7px; }

.btn-info svg { width: 15px; height: 15px; }

/* Next up */

.next-up { margin-top: 14px; }

.next-up a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color 0.15s ease;
}

.next-up a:hover { border-color: var(--accent); text-decoration: none; }

.next-up-thumb {
	width: 48px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--surface-2);
	flex-shrink: 0;
}

.next-up-thumb img { width: 100%; height: 100%; object-fit: cover; }

.next-up-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.next-up-label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.next-up-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.next-up-play {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.next-up-play svg { width: 18px; height: 18px; margin-left: 2px; }

@media (max-width: 640px) {
	.video-hero { grid-template-columns: 1fr; gap: 16px; }
	.video-hero-poster { max-width: 200px; }
	.video-title { font-size: 1.4rem; }
	.btn-watch { width: 100%; }
	.video-actions { flex-direction: column; align-items: stretch; }
	.video-actions .share-buttons { justify-content: center; }
	.now-playing { flex-wrap: wrap; row-gap: 4px; }
	.video-watch-views { margin-left: 0; }
}

/* Play overlay di kartu */

.video-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(225, 29, 72, 0.9);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 2;
}

.video-card-play svg { width: 22px; height: 22px; margin-left: 3px; }

.video-card-link:hover ~ .video-card-play,
.video-card-thumb:hover .video-card-play { opacity: 1; }

.video-card-play:hover { transform: translate(-50%, -50%) scale(1.1); }

@media (hover: none) {
	/* Layar sentuh: tombol play selalu terlihat */
	.video-card-play { opacity: 0.92; }
}

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

.player-wrap video { width: 100%; height: 100%; display: block; }

.player-notice {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim);
	font-size: 16px;
}

/* Rating (SVG) */

.rating-stars { display: inline-flex; align-items: center; gap: 8px; }

.rating-stars .star { display: inline-block; position: relative; line-height: 1; }

.rating-stars .star-icon { width: 20px; height: 20px; display: block; color: #3a4150; }

.rating-stars .star.is-full .star-icon,
.rating-stars .star.is-half .star-half-fg .star-icon { color: var(--gold); }

.rating-stars .star.is-half .star-half-fg {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	overflow: hidden;
}

.rating-label { color: var(--text-dim); font-size: 13px; }

.rating-stars.is-interactive .star { cursor: pointer; transition: transform 0.1s; }

.rating-stars.is-interactive .star:hover { transform: scale(1.2); }

.rating-stars.is-interactive .star:hover .star-icon { color: var(--gold); }

.rating-stars.is-interactive .star:hover ~ .star .star-icon { color: #3a4150; }

.rating-done { color: #4ade80; font-size: 13px; }

/* Share */

.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }

.video-actions .share-buttons { margin: 0; }

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	padding: 7px 14px;
	font-size: 13px;
	cursor: pointer;
}

.share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.share-btn:hover { border-color: var(--accent); text-decoration: none; }

/* Entry content */

.entry-content { line-height: 1.75; }

.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 1.4em; }

.entry-content p { margin: 0 0 1.1em; }

/* Related */

.related-grid { margin-top: 6px; }

/* ---------- Sidebar ---------- */

.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
}

.widget-title {
	font-size: 15px;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-dim);
}

.top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; }

.top-list li { counter-increment: top; margin-bottom: 12px; }

.top-list li:last-child { margin-bottom: 0; }

.top-list a { display: flex; gap: 10px; align-items: center; color: var(--text); }

.top-list a::before {
	content: counter(top);
	font-weight: 800;
	color: var(--text-dim);
	font-size: 15px;
	min-width: 16px;
}

.top-list-thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--surface-2);
}

.top-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.top-list-title {
	font-size: 13px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Ad slots */

.ad-slot {
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	margin: 16px 0;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ad-slot iframe, .ad-slot img { max-width: 100%; }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	margin-top: 48px;
}

.footer-bottom {
	padding: 14px 0;
	font-size: 13px;
	color: var(--text-dim);
}

.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.content-with-sidebar { grid-template-columns: 1fr; }
	.sidebar { order: 2; }
}

/* Header mobile: nama web + form cari penuh */
@media (max-width: 768px) {
	/* Header mobile 2 baris: ~108px */
	.site-nav { --nikepoi-header-h: 110px; }

	.header-inner { gap: 10px; }

	.site-logo { font-size: 16px; }
	.site-logo-mark { width: 28px; height: 28px; font-size: 15px; }

	.search-form { order: 3; flex-basis: 100%; }
	.search-form input[type="search"] {
		flex: 1;
		width: auto;
		height: 42px;
		font-size: 16px; /* mencegah zoom otomatis iOS saat fokus */
	}
}

@media (max-width: 640px) {
	.video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
	.video-card-title { font-size: 13px; }
	.page-title { font-size: 20px; }

	/* Hero: featured full-width, kartu kecil 2 kolom */
	.hero-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-featured { grid-column: 1 / -1; grid-row: auto; min-height: 200px; }
	.hero-featured-overlay h2 { font-size: 15px; }

	/* Filter: dua kolom, tap area besar */
	.filter-bar { gap: 6px; }
	.filter-field { flex: 1 1 calc(50% - 6px); min-width: 0; }
	.filter-field select { width: 100%; max-width: none; padding: 9px 10px; font-size: 15px; }
	.filter-submit { flex: 1 1 100%; padding: 10px; font-size: 15px; }

	/* Rating & share: target sentuh lebih besar */
	.rating-stars .star-icon { width: 26px; height: 26px; }
	.share-btn { padding: 9px 14px; }
}
