/* =========================================================================
 * Animeku — Design System
 * Dark-first, mobile-first, shadcn-like.
 * ====================================================================== */

:root {
	--ak-bg:        #0a0a0a;
	--ak-fg:        #fafafa;
	--ak-muted:     #a1a1aa;
	--ak-border:    #27272a;
	--ak-card:      #18181b;
	--ak-card-fg:   #fafafa;
	--ak-accent:    #27272a;
	--ak-primary:   #ef4444;
	--ak-primary-fg:#ffffff;
	--ak-ring:      #ef4444;
	--ak-danger:    #ef4444;
	--ak-success:   #22c55e;
	--ak-radius:    5px;
	--ak-radius-sm: 5px;
	--ak-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
	--ak-shadow:    0 8px 24px rgba(0,0,0,.45);
	--ak-container: 1280px;
	--ak-pad:       16px;
	--ak-header-h:  56px;
	color-scheme: dark;
}

:root[data-accent="biru"]   { --ak-primary: #3b82f6; --ak-ring: #3b82f6; }
:root[data-accent="ungu"]   { --ak-primary: #8765eb; --ak-ring: #8765eb; }
:root[data-accent="oranye"] { --ak-primary: #f97316; --ak-ring: #f97316; }

/* Container padding scales with viewport so card grids breathe on desktop. */
@media (min-width: 720px)  { :root { --ak-pad: 24px; } }
@media (min-width: 1280px) { :root { --ak-pad: 32px; } }

:root[data-theme="light"] {
	--ak-bg:      #ffffff;
	--ak-fg:      #0a0a0a;
	--ak-muted:   #71717a;
	--ak-border:  #e4e4e7;
	--ak-card:    #f4f4f5;
	--ak-card-fg: #0a0a0a;
	--ak-accent:  #f4f4f5;
	--ak-shadow-sm: 0 1px 2px rgba(0,0,0,.08);
	--ak-shadow:    0 8px 24px rgba(0,0,0,.12);
	color-scheme: light;
}

@media (prefers-color-scheme: light) {
	:root[data-theme="auto"] {
		--ak-bg:      #ffffff;
		--ak-fg:      #0a0a0a;
		--ak-muted:   #71717a;
		--ak-border:  #e4e4e7;
		--ak-card:    #f4f4f5;
		--ak-card-fg: #0a0a0a;
		--ak-accent:  #f4f4f5;
		color-scheme: light;
	}
}

/* =========================================================================
 * Reset
 * ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	background: var(--ak-bg);
	color: var(--ak-fg);
	overflow-x: hidden;
	min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ak-primary); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ak-ring); outline-offset: 2px; border-radius: 5px; }

.ak-vh {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.ak-skip {
	position: absolute; top: -40px; left: 8px;
	background: var(--ak-primary); color: var(--ak-primary-fg);
	padding: 8px 12px; border-radius: 5px;
	z-index: 999;
}
.ak-skip:focus { top: 8px; }

/* =========================================================================
 * Layout
 * ====================================================================== */
.ak-main {
	max-width: var(--ak-container);
	margin: 0 auto;
	padding: 16px var(--ak-pad) 80px;
	width: 100%;
}
.ak-section { margin: 28px 0; }
.ak-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.ak-section__title {
	font-size: 1.05rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ak-section__more {
	font-size: .85rem;
	color: var(--ak-muted);
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.ak-section__more:hover { color: var(--ak-primary); }
.ak-section__footer {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}
.ak-section__footer .ak-btn { min-width: 200px; }

@media (min-width: 720px) {
	.ak-section__title { font-size: 1.15rem; }
	.ak-section { margin: 36px 0; }
}

/* =========================================================================
 * Header
 * ====================================================================== */
.ak-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in oklab, var(--ak-bg) 78%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--ak-border);
}
.ak-header__inner {
	max-width: var(--ak-container);
	margin: 0 auto;
	padding: 8px var(--ak-pad);
	display: grid;
	/* Mobile: brand stretch | actions. Search inline tersembunyi. */
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
	height: var(--ak-header-h);
}
.ak-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: var(--ak-fg);
	letter-spacing: -.01em;
	transition: opacity .15s;
}
.ak-header__brand:hover { opacity: .85; color: var(--ak-fg); }
.ak-header__brand-mark {
	display: inline-grid;
	place-items: center;
	width: 32px; height: 32px;
	border-radius: var(--ak-radius);
	background: linear-gradient(135deg, var(--ak-primary), color-mix(in oklab, var(--ak-primary) 70%, #ffffff));
	color: var(--ak-primary-fg);
	font-weight: 900;
	font-size: 15px;
	box-shadow: 0 4px 12px color-mix(in oklab, var(--ak-primary) 30%, transparent);
}
.ak-header__brand-name {
	display: inline;
	font-size: 1.05rem;
}

/* Inline nav (desktop only) */
.ak-header__nav {
	display: none;
	gap: 4px;
	align-items: center;
}
.ak-header__nav-link {
	position: relative;
	padding: 8px 14px;
	font-size: .88rem;
	font-weight: 500;
	color: var(--ak-muted);
	border-radius: var(--ak-radius);
	transition: color .15s, background .15s;
	white-space: nowrap;
	line-height: 1.2;
}
.ak-header__nav-link:hover { color: var(--ak-fg); background: var(--ak-accent); }
.ak-header__nav-link.is-active {
	color: var(--ak-fg);
	background: var(--ak-accent);
	font-weight: 600;
}

/* Desktop grid: brand | nav | search | actions */
@media (min-width: 960px) {
	.ak-header__inner {
		grid-template-columns: auto auto 1fr auto;
		gap: 20px;
	}
	.ak-header__nav { display: inline-flex; }
	.ak-search { max-width: 420px; margin-right: 0; }
}
@media (min-width: 1280px) {
	.ak-header__inner { gap: 28px; }
}

.ak-search {
	position: relative;
	display: none;
	align-items: center;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: 999px;
	padding: 4px 14px 4px 38px;
	max-width: 460px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
@media (min-width: 960px) {
	.ak-search { display: flex; }
}
.ak-search__close {
	display: none;
	background: transparent;
	border: 0;
	color: var(--ak-muted);
	padding: 4px;
	margin-right: -8px;
	border-radius: 999px;
}
.ak-search__close:hover { color: var(--ak-fg); }
.ak-search-toggle { display: inline-grid; }
@media (min-width: 960px) {
	.ak-search-toggle { display: none; }
}

/* Mobile search overlay: ketika is-searching aktif, search bar mengambil
   alih seluruh baris header. */
@media (max-width: 959px) {
	.ak-header.is-searching .ak-header__inner > :not(.ak-search) { display: none; }
	.ak-header.is-searching .ak-search {
		display: flex;
		grid-column: 1 / -1;
		max-width: none;
		margin: 0;
	}
	.ak-header.is-searching .ak-search__close { display: inline-grid; place-items: center; }
}
.ak-search:hover { border-color: color-mix(in oklab, var(--ak-border) 50%, var(--ak-muted)); }
.ak-search__label {
	position: absolute;
	left: 12px; top: 50%;
	transform: translateY(-50%);
	color: var(--ak-muted);
	pointer-events: none;
	transition: color .15s;
}
.ak-search__input {
	border: 0;
	background: transparent;
	outline: 0;
	padding: 6px 0;
	width: 100%;
	color: var(--ak-fg);
	font-size: .88rem;
}
.ak-search__input::placeholder { color: var(--ak-muted); }
.ak-search:focus-within {
	border-color: var(--ak-ring);
	background: var(--ak-bg);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ak-ring) 18%, transparent);
}
.ak-search:focus-within .ak-search__label { color: var(--ak-ring); }

.ak-header__actions { display: inline-flex; gap: 4px; }
.ak-header__action { position: relative; }
.ak-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 0;
	background: transparent;
	color: var(--ak-fg);
	border-radius: 5px;
	transition: background .15s ease;
}
.ak-icon-btn:hover { background: var(--ak-accent); }

/* Popover — anchored to its trigger via .ak-header__action wrapper */
.ak-popover {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 260px;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	padding: 8px;
	box-shadow: var(--ak-shadow);
	animation: ak-pop-in .14s ease-out;
	z-index: 60;
}
/* Mobile: popover berubah menjadi slide-in drawer dari kanan + backdrop. */
@media (max-width: 720px) {
	.ak-popover {
		position: fixed;
		top: 0; right: 0; bottom: 0; left: auto;
		width: 320px;
		max-width: 86vw;
		height: 100dvh;
		border-radius: 0;
		border: 0;
		border-left: 1px solid var(--ak-border);
		margin: 0;
		padding: 12px 12px max(16px, env(safe-area-inset-bottom));
		box-shadow: -16px 0 40px rgba(0,0,0,.5);
		animation: ak-drawer-in .22s ease-out;
		overflow-y: auto;
		transform: none;
	}
	.ak-popover::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,.55);
		backdrop-filter: blur(2px);
		z-index: -1;
		animation: ak-fade-in .22s ease-out;
	}
	.ak-popover__title {
		font-size: .65rem;
		padding: 12px 12px 4px;
	}
	.ak-popover__list a {
		padding: 12px;
		font-size: .95rem;
		gap: 12px;
	}
	.ak-popover__list a svg { width: 18px; height: 18px; }
}
@keyframes ak-drawer-in {
	from { transform: translateX(100%); }
	to   { transform: translateX(0); }
}
@keyframes ak-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.ak-popover[hidden] { display: none; }
.ak-popover__section + .ak-popover__section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ak-border); }
.ak-popover__title {
	font-size: .72rem;
	color: var(--ak-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 8px;
}
.ak-popover__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border-radius: 5px;
	font-size: .9rem;
}
.ak-popover__list a:hover { background: var(--ak-accent); color: var(--ak-primary); }

@keyframes ak-pop-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Theme/accent toggles */
.ak-toggle {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	background: var(--ak-bg);
	border: 1px solid var(--ak-border);
	border-radius: 5px;
	padding: 4px;
	margin: 0 8px;
}
.ak-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: transparent;
	border: 0;
	padding: 6px 8px;
	border-radius: 5px;
	font-size: .8rem;
	color: var(--ak-fg);
}
.ak-toggle__btn.is-active { background: var(--ak-primary); color: var(--ak-primary-fg); }
.ak-accent {
	display: flex;
	gap: 8px;
	padding: 8px;
}
.ak-accent__btn {
	width: 24px; height: 24px;
	border-radius: 999px;
	border: 2px solid transparent;
	background: var(--c, #888);
	padding: 0;
}
.ak-accent__btn.is-active { border-color: var(--ak-fg); transform: scale(1.1); }

/* =========================================================================
 * Cards (anime poster cards, 2:3 ratio)
 * ====================================================================== */
.ak-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	width: 100%;
}
@media (min-width: 480px)  { .ak-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 720px)  { .ak-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .ak-grid { grid-template-columns: repeat(6, 1fr); gap: 24px; } }
@media (min-width: 1280px) { .ak-grid { gap: 28px; } }

.ak-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
}
.ak-card__cover {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--ak-radius);
	overflow: hidden;
	background: var(--ak-card);
	box-shadow: var(--ak-shadow-sm);
}
.ak-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}
.ak-card:hover .ak-card__cover img { transform: scale(1.04); }
.ak-card:hover .ak-card__title { color: var(--ak-primary); }
.ak-card__title {
	font-size: 0.9rem;
	font-weight: 600;
	margin-top: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	transition: color .15s;
}
.ak-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: .72rem;
	color: var(--ak-muted);
}
.ak-card__chip {
	position: absolute;
	top: 6px; left: 6px;
	background: rgba(0,0,0,.7);
	color: #fff;
	font-size: .65rem;
	padding: 2px 6px;
	border-radius: 5px;
	font-weight: 600;
}
.ak-card__score {
	position: absolute;
	top: 6px; right: 6px;
	background: rgba(0,0,0,.7);
	color: #fbbf24;
	font-size: .7rem;
	padding: 2px 6px;
	border-radius: 5px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-weight: 600;
}
.ak-card__ep {
	position: absolute;
	bottom: 8px; left: 8px;
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
	font-size: .8rem;
	padding: 4px 10px;
	border-radius: 5px;
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
	line-height: 1.1;
}

/* =========================================================================
 * Buttons
 * ====================================================================== */
.ak-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	background: transparent;
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius-sm);
	font-size: .88rem;
	font-weight: 500;
	color: var(--ak-fg);
	transition: background .15s, border-color .15s, color .15s;
}
.ak-btn:hover { background: var(--ak-accent); color: var(--ak-primary); border-color: var(--ak-primary); }
.ak-btn--primary {
	background: var(--ak-primary);
	border-color: var(--ak-primary);
	color: var(--ak-primary-fg);
}
.ak-btn--primary:hover { filter: brightness(1.08); color: var(--ak-primary-fg); }
.ak-btn--ghost { background: transparent; border-color: transparent; }
.ak-btn--ghost:hover { background: var(--ak-accent); }
.ak-btn--block { width: 100%; }

.ak-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	padding: 4px 10px;
	background: var(--ak-accent);
	color: var(--ak-fg);
	border-radius: 999px;
}
.ak-pill:hover { background: var(--ak-primary); color: var(--ak-primary-fg); }

/* =========================================================================
 * Hero slide (Bilibili-style: backdrop full + side gradient + left caption)
 * ====================================================================== */
.ak-hero {
	position: relative;
	border-radius: var(--ak-radius);
	overflow: hidden;
	background: var(--ak-card);
	margin-bottom: 24px;
	isolation: isolate;
}
.ak-hero__slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.ak-hero__slides::-webkit-scrollbar { display: none; }
.ak-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	aspect-ratio: 16 / 11;
	min-height: 320px;
	max-height: 520px;
	overflow: hidden;
}
@media (min-width: 720px) { .ak-hero__slide { aspect-ratio: 21 / 9; min-height: 360px; } }
@media (min-width: 1024px){ .ak-hero__slide { aspect-ratio: 21 / 8; max-height: 540px; } }

.ak-hero__bg {
	position: absolute; inset: 0;
	z-index: 0;
}
.ak-hero__bg img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center;
}
/* Layered gradients: bottom fade + horizontal dark veil yang tetap memperlihatkan backdrop di belakang teks (tidak solid sehingga tidak terlihat "gap"). */
.ak-hero__overlay {
	position: absolute; inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%),
		linear-gradient(90deg,
			rgba(0,0,0,.78) 0%,
			rgba(0,0,0,.55) 30%,
			rgba(0,0,0,.25) 55%,
			rgba(0,0,0,0) 80%
		);
}

.ak-hero__caption {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	height: 100%;
	padding: 16px 16px 56px;
	max-width: 100%;
	color: #fff;
}
.ak-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ak-hero__pills .ak-pill {
	background: rgba(255,255,255,.14);
	color: #fff;
	border: 1px solid rgba(255,255,255,.18);
	font-size: .7rem;
	padding: 3px 9px;
	backdrop-filter: blur(6px);
}
.ak-hero__pills .ak-pill--solid {
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
	border-color: var(--ak-primary);
}
.ak-hero__title {
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -.015em;
	text-shadow: 0 2px 18px rgba(0,0,0,.6);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ak-hero__title a { color: inherit; }
.ak-hero__title a:hover { color: var(--ak-primary); }
.ak-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: .82rem;
	color: rgba(255,255,255,.9);
}
.ak-hero__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ak-hero__meta svg { width: 14px; height: 14px; }
.ak-hero__synopsis {
	font-size: .88rem;
	color: rgba(255,255,255,.85);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 60ch;
}
.ak-hero__cta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}
.ak-hero__cta .ak-btn {
	background: rgba(0,0,0,.5);
	border-color: rgba(255,255,255,.18);
	color: #fff;
	backdrop-filter: blur(8px);
}
.ak-hero__cta .ak-btn:hover { color: #fff; border-color: var(--ak-primary); }
.ak-hero__cta .ak-btn--primary {
	background: var(--ak-primary);
	border-color: var(--ak-primary);
}
.ak-hero__cta .ak-btn--primary:hover { background: var(--ak-primary); filter: brightness(1.1); }

@media (min-width: 720px) {
	.ak-hero__caption {
		padding: 32px 32px 56px 40px;
		max-width: 62%;
		gap: 14px;
	}
	.ak-hero__title { font-size: 2.4rem; }
	.ak-hero__synopsis { font-size: .92rem; -webkit-line-clamp: 4; }
}
@media (min-width: 1280px) {
	.ak-hero__caption { padding: 48px 32px 64px 56px; max-width: 56%; }
	.ak-hero__title { font-size: 2.8rem; }
}

/* Arrow nav */
.ak-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px; height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(0,0,0,.4);
	color: #fff;
	display: none;
	place-items: center;
	z-index: 4;
	backdrop-filter: blur(8px);
	transition: background .15s, color .15s, transform .15s;
}
.ak-hero__arrow:hover { background: var(--ak-primary); border-color: var(--ak-primary); }
.ak-hero__arrow--prev { left: 12px; }
.ak-hero__arrow--next { right: 12px; }
@media (min-width: 720px) {
	.ak-hero__arrow { display: inline-grid; width: 44px; height: 44px; }
	.ak-hero__arrow--prev { left: 16px; }
	.ak-hero__arrow--next { right: 16px; }
}

/* Dot pagination */
.ak-hero__dots {
	position: absolute;
	bottom: 18px;
	left: 16px;
	right: 16px;
	display: flex;
	gap: 6px;
	z-index: 3;
	justify-content: center;
}
.ak-hero__dot {
	width: 10px; height: 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.35);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background .2s, width .2s;
}
.ak-hero__dot.is-active { background: var(--ak-primary); width: 28px; }
@media (min-width: 720px) {
	.ak-hero__dots { justify-content: flex-start; left: 40px; right: auto; bottom: 24px; }
}

/* =========================================================================
 * Rails (horizontal scroll)
 * ====================================================================== */
.ak-rail {
	position: relative;
}
.ak-rail__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 0;
}
.ak-rail__viewport::-webkit-scrollbar { display: none; }
.ak-rail__list {
	display: flex;
	gap: 12px;
}
.ak-rail__item {
	flex: 0 0 auto;
	width: clamp(140px, 36vw, 180px);
	scroll-snap-align: start;
}
@media (min-width: 720px)  { .ak-rail__list { gap: 20px; } }
@media (min-width: 1280px) { .ak-rail__list { gap: 24px; } }
.ak-rail__nav {
	display: none;
	position: absolute;
	top: 36%;
	transform: translateY(-50%);
	width: 38px; height: 38px;
	border-radius: 999px;
	background: var(--ak-card);
	color: var(--ak-fg);
	border: 1px solid var(--ak-border);
	box-shadow: var(--ak-shadow);
	z-index: 4;
	align-items: center;
	justify-content: center;
}
.ak-rail__nav--prev { left: -10px; }
.ak-rail__nav--next { right: -10px; }
@media (min-width: 720px) {
	.ak-rail__nav { display: inline-grid; place-items: center; }
}

.ak-prose { line-height: 1.7; }
.ak-prose p { margin: 0 0 1em; }
.ak-prose p:last-child { margin-bottom: 0; }

.ak-ep-filter {
	position: relative;
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}
.ak-ep-filter input {
	flex: 1;
	padding: 10px 14px 10px 38px;
	background: var(--ak-bg);
	border: 1px solid var(--ak-border);
	color: var(--ak-fg);
	border-radius: var(--ak-radius);
	outline: 0;
	font-size: .88rem;
	transition: border-color .15s, box-shadow .15s;
}
.ak-ep-filter::before {
	content: "";
	position: absolute;
	left: 14px; top: 50%;
	transform: translateY(-50%);
	width: 16px; height: 16px;
	background: currentColor;
	color: var(--ak-muted);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / contain no-repeat;
	pointer-events: none;
}
.ak-ep-filter input:focus {
	border-color: var(--ak-ring);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ak-ring) 18%, transparent);
}
.ak-ep-filter input::placeholder { color: var(--ak-muted); }

/* =========================================================================
 * Filter form (archive)
 * ====================================================================== */
.ak-filter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	padding: 12px;
	margin-bottom: 16px;
}
@media (min-width: 720px) {
	.ak-filter { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
}
.ak-filter__field { display: flex; flex-direction: column; gap: 4px; }
.ak-filter__field label { font-size: .72rem; color: var(--ak-muted); text-transform: uppercase; letter-spacing: .04em; }
.ak-filter select, .ak-filter input {
	background: var(--ak-bg);
	border: 1px solid var(--ak-border);
	color: var(--ak-fg);
	padding: 8px 10px;
	border-radius: var(--ak-radius-sm);
	width: 100%;
	outline: 0;
}
.ak-filter select:focus, .ak-filter input:focus { border-color: var(--ak-ring); }
.ak-filter__submit { grid-column: 1 / -1; }
@media (min-width: 720px) {
	.ak-filter__submit { grid-column: auto; }
}

/* =========================================================================
 * Pagination
 * ====================================================================== */
.ak-pagination {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 24px 0;
}
.ak-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	padding: 6px 10px;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius-sm);
	font-size: .85rem;
}
.ak-pagination .page-numbers.current {
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
	border-color: var(--ak-primary);
}
.ak-pagination a.page-numbers:hover { border-color: var(--ak-primary); color: var(--ak-primary); }

/* =========================================================================
 * Schedule (jadwal)
 * ====================================================================== */
.ak-jadwal {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 720px) { .ak-jadwal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .ak-jadwal { grid-template-columns: repeat(3, 1fr); } }
.ak-jadwal__day {
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	overflow: hidden;
}
.ak-jadwal__day-head {
	padding: 10px 14px;
	background: var(--ak-accent);
	font-weight: 700;
	font-size: .9rem;
}
.ak-jadwal__list { padding: 4px; }
.ak-jadwal__item {
	display: flex;
	gap: 10px;
	padding: 8px;
	border-radius: var(--ak-radius-sm);
}
.ak-jadwal__item:hover { background: var(--ak-accent); }
.ak-jadwal__item img { width: 42px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; }
.ak-jadwal__item-meta { flex: 1; min-width: 0; }
.ak-jadwal__item-title { font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-jadwal__item-sub { font-size: .72rem; color: var(--ak-muted); }

/* =========================================================================
 * A-Z list
 * ====================================================================== */
.ak-azbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 16px;
}
.ak-azbar a {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	padding: 4px 8px;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius-sm);
	font-size: .8rem;
	font-weight: 600;
}
.ak-azbar a:hover { border-color: var(--ak-primary); color: var(--ak-primary); }

.ak-azlist__letter {
	margin: 18px 0 8px;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--ak-primary);
}
.ak-azlist__items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
}
@media (min-width: 480px) { .ak-azlist__items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .ak-azlist__items { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .ak-azlist__items { grid-template-columns: repeat(4, 1fr); } }
.ak-azlist__items a {
	padding: 6px 8px;
	font-size: .85rem;
	border-radius: var(--ak-radius-sm);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ak-azlist__items a:hover { background: var(--ak-accent); color: var(--ak-primary); }

/* =========================================================================
 * Footer
 * ====================================================================== */
.ak-footer {
	position: relative;
	background: linear-gradient(180deg, var(--ak-card) 0%, color-mix(in oklab, var(--ak-card) 85%, var(--ak-bg)) 100%);
	margin-top: 48px;
}
.ak-footer__accent {
	height: 2px;
	background: linear-gradient(90deg,
		transparent 0%,
		var(--ak-primary) 30%,
		var(--ak-primary) 70%,
		transparent 100%
	);
	opacity: .65;
}
.ak-footer__inner {
	max-width: var(--ak-container);
	margin: 0 auto;
	padding: 40px var(--ak-pad) 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 720px)  { .ak-footer__inner { grid-template-columns: 1.2fr 2fr; gap: 40px; } }
@media (min-width: 1024px) { .ak-footer__inner { grid-template-columns: 1.4fr 2.6fr; gap: 56px; } }

.ak-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.ak-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.1rem;
	color: var(--ak-fg);
}
.ak-footer__logo:hover { color: var(--ak-fg); opacity: .85; }
.ak-footer__tagline {
	color: var(--ak-muted);
	font-size: .85rem;
	line-height: 1.6;
	max-width: 42ch;
	margin: 0;
}
.ak-footer__social {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}
.ak-footer__social a {
	display: inline-grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 999px;
	background: var(--ak-bg);
	border: 1px solid var(--ak-border);
	color: var(--ak-muted);
	transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.ak-footer__social a:hover {
	color: var(--ak-primary-fg);
	background: var(--ak-primary);
	border-color: var(--ak-primary);
	transform: translateY(-2px);
}
.ak-footer__social svg { width: 16px; height: 16px; }

.ak-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 16px;
}
@media (min-width: 540px)  { .ak-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.ak-footer__col h4 {
	font-size: .72rem;
	color: var(--ak-fg);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--ak-border);
}
.ak-footer__col ul { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
.ak-footer__col a {
	color: var(--ak-muted);
	display: inline-flex;
	transition: color .15s, transform .15s;
}
.ak-footer__col a:hover { color: var(--ak-primary); transform: translateX(2px); }

.ak-footer__bottom {
	border-top: 1px solid var(--ak-border);
	padding: 16px var(--ak-pad);
	color: var(--ak-muted);
	text-align: center;
	font-size: .75rem;
	line-height: 1.6;
}
.ak-footer__bottom strong { color: var(--ak-fg); }

/* =========================================================================
 * FABs + share sheet
 * ====================================================================== */
.ak-fab {
	position: fixed;
	bottom: max(16px, env(safe-area-inset-bottom));
	right: 16px;
	width: 44px; height: 44px;
	border-radius: 999px;
	border: 1px solid var(--ak-border);
	background: var(--ak-card);
	color: var(--ak-fg);
	box-shadow: var(--ak-shadow);
	display: none;
	place-items: center;
	z-index: 40;
}
.ak-fab.is-visible { display: grid; }
.ak-fab--share { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px); }
.ak-fab--share.is-visible { display: grid; }
.ak-fab:hover { color: var(--ak-primary); border-color: var(--ak-primary); }

.ak-sheet {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.6);
	display: grid;
	place-items: end center;
	z-index: 100;
	padding: 16px;
	animation: ak-pop-in .2s ease-out;
}
.ak-sheet[hidden] { display: none; }
.ak-sheet__panel {
	position: relative;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	width: 100%;
	max-width: 420px;
	padding: 20px;
	box-shadow: var(--ak-shadow);
}
.ak-sheet__title { margin-bottom: 12px; }
.ak-sheet__actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.ak-sheet__actions button {
	padding: 10px;
	border: 1px solid var(--ak-border);
	background: var(--ak-bg);
	color: var(--ak-fg);
	border-radius: var(--ak-radius-sm);
	font-size: .85rem;
}
.ak-sheet__actions button:hover { border-color: var(--ak-primary); color: var(--ak-primary); }
.ak-sheet__close {
	position: absolute;
	top: 12px; right: 12px;
	background: transparent;
	border: 0;
	color: var(--ak-muted);
}

/* =========================================================================
 * Misc / utility
 * ====================================================================== */
.ak-empty {
	background: var(--ak-card);
	border: 1px dashed var(--ak-border);
	border-radius: var(--ak-radius);
	padding: 32px 16px;
	text-align: center;
	color: var(--ak-muted);
}
.ak-empty-state {
	text-align: center;
	padding: 60px 20px;
}
.ak-empty-state__title { font-size: 4rem; color: var(--ak-primary); margin-bottom: 8px; }
.ak-empty-state__lead { color: var(--ak-muted); margin-bottom: 16px; }

.ak-icon { width: 1em; height: 1em; vertical-align: -2px; }
.ak-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--ak-border);
	margin-bottom: 16px;
	overflow-x: auto;
	scrollbar-width: none;
}
.ak-tabs::-webkit-scrollbar { display: none; }
.ak-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: .9rem;
	color: var(--ak-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
}
.ak-tab.is-active, .ak-tab[aria-current="page"] {
	color: var(--ak-fg);
	border-bottom-color: var(--ak-primary);
}
.ak-tab {
	background: transparent;
	border-top: 0; border-left: 0; border-right: 0;
}

.ak-tab-panels { position: relative; }
.ak-tab-panel { display: none; }
.ak-tab-panel.is-active { display: block; }
.ak-tab-panel[hidden] { display: none !important; }

.ak-bookmark-wrap { position: relative; }
.ak-bookmark-remove {
	position: absolute;
	top: 6px; right: 6px;
	width: 26px; height: 26px;
	border-radius: 999px;
	background: rgba(0,0,0,.7);
	color: #fff;
	border: 0;
	display: grid;
	place-items: center;
	z-index: 3;
}
.ak-bookmark-remove:hover { background: var(--ak-danger); }

.ak-progress { height: 3px; background: rgba(255,255,255,.08); }
.ak-progress__bar { height: 100%; background: var(--ak-primary); width: 0%; transition: width .15s linear; }

.ak-prose img { border-radius: var(--ak-radius-sm); margin: 8px 0; }
.ak-prose a { color: var(--ak-primary); text-decoration: underline; }
.ak-prose h2, .ak-prose h3 { margin-top: 1.5em; margin-bottom: .4em; }

.ak-page__head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ak-border); }
.ak-page__title { font-size: 1.4rem; }

.is-hidden { display: none !important; }

/* Announcement banner (top of homepage, above hero) */
.ak-announce {
	position: relative;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-left: 4px solid var(--ak-primary);
	border-radius: var(--ak-radius);
	padding: 16px 18px;
	margin: 0 0 20px;
	color: var(--ak-fg);
}
.ak-announce__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--ak-primary);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 8px;
	line-height: 1.1;
}
.ak-announce p {
	margin: 0 0 8px;
	color: var(--ak-muted);
	font-size: .9rem;
	line-height: 1.6;
}
.ak-announce p:last-child { margin-bottom: 0; }
.ak-announce strong { color: var(--ak-fg); }
@media (min-width: 720px) {
	.ak-announce { padding: 20px 22px; }
	.ak-announce__title { font-size: 1.6rem; }
	.ak-announce p { font-size: .92rem; }
}

/* Hide text on mobile, show on >=720px */
.ak-hide-mobile { display: none; }
@media (min-width: 720px) { .ak-hide-mobile { display: inline; } }

/* Bookmark icon-btn active state */
.ak-icon-btn[aria-pressed="true"] {
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
}
.ak-icon-btn[aria-pressed="true"]:hover { filter: brightness(1.08); }


/* Genre directory (chip cloud) */
.ak-genre-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ak-genre-cloud .ak-pill {
	padding: 6px 12px;
	font-size: .85rem;
	border: 1px solid var(--ak-border);
	background: var(--ak-card);
}
.ak-genre-cloud .ak-pill:hover {
	border-color: var(--ak-primary);
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
}
.ak-genre-cloud__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	padding: 0 6px;
	height: 18px;
	border-radius: 999px;
	background: var(--ak-bg);
	color: var(--ak-muted);
	font-size: .68rem;
	font-weight: 600;
}
.ak-genre-cloud .ak-pill:hover .ak-genre-cloud__count {
	background: rgba(0,0,0,.25);
	color: #fff;
}

/* =========================================================================
 * Series (single anime) — redesigned hero + layout
 * ====================================================================== */
.ak-series__hero {
	position: relative;
	margin: -16px calc(-1 * var(--ak-pad)) 0;
	padding: 24px var(--ak-pad) 32px;
	overflow: hidden;
	min-height: 380px;
}
.ak-series__hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: var(--ak-cover);
	background-size: cover;
	background-position: center;
	filter: blur(28px) brightness(.5) saturate(1.2);
	transform: scale(1.18);
	z-index: 0;
}
.ak-series__hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0,0,0,.4) 0%,
		rgba(0,0,0,.55) 50%,
		var(--ak-bg) 100%
	);
	z-index: 1;
}
.ak-series__hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
	color: #fff;
}
.ak-series__cover {
	position: relative;
	width: clamp(180px, 50vw, 230px);
	aspect-ratio: 2 / 3;
	border-radius: var(--ak-radius);
	overflow: visible;
	box-shadow: 0 20px 40px rgba(0,0,0,.55);
	flex-shrink: 0;
}
.ak-series__cover img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: var(--ak-radius);
	display: block;
}
.ak-series__score-badge {
	position: absolute;
	top: 10px; left: 10px;
	background: rgba(0,0,0,.78);
	color: #fbbf24;
	font-weight: 700;
	font-size: .85rem;
	padding: 4px 10px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	backdrop-filter: blur(6px);
}
.ak-series__meta { width: 100%; }
.ak-series__eyebrow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
}
.ak-series__title {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 4px;
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ak-series__title-alt {
	color: rgba(255,255,255,.7);
	font-size: .85rem;
	margin-bottom: 12px;
}
.ak-series__lead {
	color: rgba(255,255,255,.85);
	max-width: 62ch;
	margin: 0 auto 16px;
	font-size: .92rem;
}
.ak-series__stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0;
}
.ak-stat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(0,0,0,.45);
	border: 1px solid rgba(255,255,255,.08);
	padding: 8px 12px;
	border-radius: var(--ak-radius-sm);
	backdrop-filter: blur(6px);
	color: #fff;
}
.ak-stat > svg { color: var(--ak-primary); flex-shrink: 0; }
.ak-stat > div { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.ak-stat strong { font-size: .95rem; font-weight: 700; }
.ak-stat span { font-size: .68rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }

.ak-series__genres {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 14px;
}
.ak-series__genres .ak-pill {
	background: rgba(255,255,255,.08);
	color: #fff;
	border: 1px solid rgba(255,255,255,.12);
}
.ak-series__genres .ak-pill:hover { background: var(--ak-primary); color: var(--ak-primary-fg); border-color: var(--ak-primary); }

.ak-pill--solid {
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
	font-weight: 600;
}
.ak-pill--solid:hover { filter: brightness(1.08); color: var(--ak-primary-fg); }

.ak-series__cta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}
.ak-series__cta .ak-btn {
	background: rgba(0,0,0,.45);
	border-color: rgba(255,255,255,.16);
	color: #fff;
	backdrop-filter: blur(6px);
}
.ak-series__cta .ak-btn--primary {
	background: var(--ak-primary);
	border-color: var(--ak-primary);
}
.ak-series__cta .ak-btn:hover { color: #fff; border-color: var(--ak-primary); background: rgba(0,0,0,.6); }
.ak-series__cta .ak-btn--primary:hover { background: var(--ak-primary); filter: brightness(1.1); }

@media (min-width: 720px) {
	.ak-series__hero { padding: 40px var(--ak-pad) 56px; min-height: 460px; }
	.ak-series__hero-inner {
		flex-direction: row;
		align-items: flex-end;
		text-align: left;
		gap: 28px;
		max-width: 1160px;
		margin: 0 auto;
	}
	.ak-series__cover { width: 220px; }
	.ak-series__title { font-size: 2.2rem; }
	.ak-series__eyebrow, .ak-series__stats, .ak-series__genres, .ak-series__cta { justify-content: flex-start; }
	.ak-series__lead { margin-left: 0; margin-right: 0; }
}

/* Two-column layout */
.ak-series__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 16px;
}
@media (min-width: 960px) {
	.ak-series__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
	.ak-series__side { position: sticky; top: calc(var(--ak-header-h) + 16px); align-self: start; }
}

/* Card-block — consistent panel wrapper */
.ak-card-block {
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	padding: 16px;
	margin-bottom: 16px;
}
.ak-card-block__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.ak-card-block__title {
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ak-card-block__count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ak-accent);
	color: var(--ak-muted);
	font-size: .72rem;
	font-weight: 700;
	margin-left: 6px;
}

/* Detail — list of rows with icon-label + value, separated by hairlines */
.ak-detail { display: flex; flex-direction: column; }
.ak-detail__row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--ak-border);
	font-size: .85rem;
	align-items: start;
}
.ak-detail__row:last-child { border-bottom: 0; }
.ak-detail__label {
	color: var(--ak-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}
.ak-detail__label svg { width: 14px; height: 14px; color: var(--ak-primary); flex-shrink: 0; }
.ak-detail__value { line-height: 1.45; }
.ak-detail__value a { color: var(--ak-fg); border-bottom: 1px dotted var(--ak-border); }
.ak-detail__value a:hover { color: var(--ak-primary); border-color: var(--ak-primary); }

/* Episode list card-style */
.ak-eplist {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	max-height: 720px;
	overflow-y: auto;
	padding: 0;
}
.ak-eplist::-webkit-scrollbar { width: 6px; }
.ak-eplist::-webkit-scrollbar-track { background: transparent; }
.ak-eplist::-webkit-scrollbar-thumb { background: var(--ak-border); border-radius: 5px; }
.ak-eplist > li { list-style: none; margin: 0; }

.ak-eplist-card {
	position: relative;
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 14px;
	padding: 8px;
	padding-left: 14px;
	background: var(--ak-bg);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	overflow: hidden;
	color: inherit;
	transition: border-color .15s, background .15s, transform .15s;
	align-items: center;
}
/* Accent strip kiri yang muncul saat hover */
.ak-eplist-card::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--ak-primary);
	transform: scaleY(0);
	transform-origin: center;
	transition: transform .2s ease;
}
.ak-eplist-card:hover {
	border-color: var(--ak-primary);
	background: var(--ak-accent);
}
.ak-eplist-card:hover::before { transform: scaleY(1); }
.ak-eplist-card:hover .ak-eplist-card__title { color: var(--ak-primary); }

.ak-eplist-card__thumb {
	position: relative;
	aspect-ratio: 16/9;
	border-radius: var(--ak-radius-sm);
	overflow: hidden;
	background: var(--ak-card);
}
.ak-eplist-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.ak-eplist-card:hover .ak-eplist-card__thumb img { transform: scale(1.06); }
.ak-eplist-card__num {
	position: absolute;
	top: 4px; left: 4px;
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
	font-size: .68rem;
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: .03em;
	box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.ak-eplist-card__body { min-width: 0; }
.ak-eplist-card__title {
	font-size: .95rem;
	font-weight: 600;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .15s;
	line-height: 1.3;
}
.ak-eplist-card__meta { font-size: .75rem; color: var(--ak-muted); display: flex; gap: 8px; align-items: center; }

@media (max-width: 480px) {
	.ak-eplist-card { grid-template-columns: 80px 1fr; padding: 6px; padding-left: 10px; gap: 10px; }
	.ak-eplist-card__title { font-size: .88rem; }
}
@media (min-width: 720px) and (max-width: 959px) {
	.ak-eplist { grid-template-columns: 1fr 1fr; }
}

.ak-btn--sm { padding: 6px 12px; font-size: .78rem; }
/* Beri tombol ghost--sm border halus agar tidak terlihat seperti teks polos */
.ak-btn--ghost.ak-btn--sm {
	border: 1px solid var(--ak-border);
	background: var(--ak-bg);
}
.ak-btn--ghost.ak-btn--sm:hover {
	border-color: var(--ak-primary);
	color: var(--ak-primary);
	background: var(--ak-accent);
}
.ak-btn.is-disabled, .ak-icon-btn.is-disabled { opacity: .35; pointer-events: none; cursor: not-allowed; }

/* =========================================================================
 * Episode page — two-column layout
 * ====================================================================== */
.ak-ep {
	max-width: 1280px;
	margin: 0 auto;
}

.ak-breadcrumb {
	font-size: .8rem;
	color: var(--ak-muted);
	margin-bottom: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}
.ak-breadcrumb a { color: var(--ak-muted); }
.ak-breadcrumb a:hover { color: var(--ak-primary); }
.ak-breadcrumb__sep {
	display: inline-block;
	color: var(--ak-muted);
	opacity: .75;
	margin: 0 2px;
}
.ak-breadcrumb__current { color: var(--ak-fg); font-weight: 500; }

.ak-ep__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	padding: 10px 14px;
	margin-bottom: 14px;
}
.ak-ep__bar-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ak-ep__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.ak-ep__series {
	font-size: .78rem;
	color: var(--ak-muted);
}
.ak-ep__series:hover { color: var(--ak-primary); }
.ak-ep__bar-nav { display: flex; gap: 2px; flex-shrink: 0; }

@media (min-width: 720px) {
	.ak-ep__title { font-size: 1.1rem; }
}

/* Layout grid: player main + side */
.ak-ep__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 960px) {
	.ak-ep__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
	.ak-ep__side { position: sticky; top: calc(var(--ak-header-h) + 16px); align-self: start; max-height: calc(100vh - var(--ak-header-h) - 32px); overflow-y: auto; }
}

/* =========================================================================
 * Video player (YouTube-like custom controls)
 * ====================================================================== */
.ak-vp {
	position: relative;
	background: #000;
	border-radius: var(--ak-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	width: 100%;
	color: #fff;
	user-select: none;
	cursor: default;
	outline: 0;
}
.ak-vp:fullscreen, .ak-vp.is-fullscreen { border-radius: 0; aspect-ratio: auto; height: 100vh; }
.ak-vp__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	background: #000;
	display: block;
}

/* Big center play button — visible when paused */
.ak-vp__big-play {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 72px; height: 72px;
	border-radius: 999px;
	border: 0;
	background: rgba(0,0,0,.65);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: opacity .2s, transform .2s, background .2s;
	z-index: 4;
	backdrop-filter: blur(8px);
}
.ak-vp__big-play svg { width: 30px; height: 30px; transform: translateX(2px); }
.ak-vp__big-play:hover { background: var(--ak-primary); transform: translate(-50%, -50%) scale(1.08); }
.ak-vp.is-playing .ak-vp__big-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.7); }

/* Loading spinner */
.ak-vp__spinner {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
}
.ak-vp__spinner span {
	display: block;
	width: 44px; height: 44px;
	border-radius: 999px;
	border: 3px solid rgba(255,255,255,.18);
	border-top-color: var(--ak-primary);
	animation: ak-spin .8s linear infinite;
}
@keyframes ak-spin { to { transform: rotate(360deg); } }

/* Floating title at top — only visible while controls are showing */
.ak-vp__title {
	position: absolute;
	top: 0; left: 0; right: 0;
	padding: 14px 18px 28px;
	z-index: 3;
	color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 100%);
	font-size: .82rem;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
}
.ak-vp__title strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.2; }
.ak-vp__title span { color: rgba(255,255,255,.75); font-size: .78rem; }
.ak-vp.is-idle .ak-vp__title { opacity: 0; transform: translateY(-8px); }

/* Controls overlay */
.ak-vp__controls {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 5;
	padding: 0 8px 6px;
	background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,0) 100%);
	transition: opacity .25s, transform .25s;
}
.ak-vp.is-idle .ak-vp__controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.ak-vp.is-idle { cursor: none; }

/* Progress */
.ak-vp__progress {
	position: relative;
	height: 18px;
	padding: 7px 4px;
	cursor: pointer;
	touch-action: none;
}
.ak-vp__progress-track {
	position: relative;
	height: 4px;
	background: rgba(255,255,255,.25);
	border-radius: 999px;
	transition: height .12s;
}
.ak-vp__progress:hover .ak-vp__progress-track { height: 6px; }
.ak-vp__progress-buffer,
.ak-vp__progress-fill {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	border-radius: 999px;
}
.ak-vp__progress-buffer { background: rgba(255,255,255,.35); width: 0; }
.ak-vp__progress-fill   { background: var(--ak-primary); width: 0; }
.ak-vp__progress-thumb {
	position: absolute;
	top: 50%; left: 0;
	transform: translate(-50%, -50%) scale(0);
	width: 14px; height: 14px;
	background: var(--ak-primary);
	border-radius: 999px;
	transition: transform .12s;
	box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.ak-vp__progress:hover .ak-vp__progress-thumb { transform: translate(-50%, -50%) scale(1); }
.ak-vp__progress-tip {
	position: absolute;
	bottom: 22px; left: 0;
	transform: translateX(-50%);
	background: rgba(0,0,0,.85);
	color: #fff;
	font-size: .72rem;
	padding: 3px 7px;
	border-radius: 4px;
	pointer-events: none;
	white-space: nowrap;
}

/* Button bar */
.ak-vp__bar {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 2px 4px 4px;
}
.ak-vp__btn {
	display: inline-grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 4px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background .12s, transform .12s;
}
.ak-vp__btn:hover { background: rgba(255,255,255,.15); transform: scale(1.05); }
.ak-vp__btn svg { width: 20px; height: 20px; }

.ak-vp__volume { display: inline-flex; align-items: center; }
.ak-vp__vol {
	-webkit-appearance: none;
	appearance: none;
	width: 0;
	height: 4px;
	background: rgba(255,255,255,.35);
	border-radius: 999px;
	margin: 0 6px;
	overflow: hidden;
	opacity: 0;
	transition: width .2s, opacity .15s, margin .15s;
	cursor: pointer;
}
.ak-vp__volume:hover .ak-vp__vol,
.ak-vp__volume:focus-within .ak-vp__vol {
	width: 80px; opacity: 1; margin: 0 8px;
}
.ak-vp__vol::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px; height: 12px;
	background: #fff;
	border-radius: 999px;
	border: 0;
	box-shadow: -200px 0 0 200px var(--ak-primary);
}
.ak-vp__vol::-moz-range-thumb {
	width: 12px; height: 12px;
	background: #fff;
	border-radius: 999px;
	border: 0;
}
.ak-vp__vol::-moz-range-progress { background: var(--ak-primary); border-radius: 999px; height: 4px; }

.ak-vp__time {
	font-size: .78rem;
	font-variant-numeric: tabular-nums;
	padding: 0 8px;
	color: rgba(255,255,255,.95);
	display: inline-flex;
	gap: 4px;
}
.ak-vp__time-sep { color: rgba(255,255,255,.5); }

.ak-vp__spacer { flex: 1; }

.ak-vp__speed {
	min-width: 44px;
	font-weight: 600;
	font-size: .82rem;
}
.ak-vp__cc {
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .04em;
	border: 2px solid currentColor;
	padding: 0 4px;
	border-radius: 4px;
	line-height: 1.1;
}
[data-vp-subs-toggle].is-on { color: var(--ak-primary); }

/* Caption styling */
.ak-vp__video::cue {
	background: rgba(0,0,0,.78);
	color: #fff;
	font-size: 1.35rem;
	line-height: 1.4;
	padding: 3px 8px;
	text-shadow: 0 1px 3px rgba(0,0,0,.9);
	font-weight: 500;
}
@media (min-width: 720px) {
	.ak-vp__video::cue { font-size: 1.55rem; }
}
@media (min-width: 1280px) {
	.ak-vp__video::cue { font-size: 1.75rem; }
}
/* Fullscreen — lebih besar lagi karena viewport jauh lebih luas */
.ak-vp:fullscreen .ak-vp__video::cue,
.ak-vp.is-fullscreen .ak-vp__video::cue {
	font-size: clamp(1.6rem, 3.2vh, 2.6rem);
	padding: 4px 10px;
}

.ak-vp__menu-wrap { position: relative; }
.ak-vp__menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 6px);
	background: rgba(20,20,20,.95);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 5px;
	padding: 4px;
	min-width: 110px;
	box-shadow: 0 6px 20px rgba(0,0,0,.5);
	backdrop-filter: blur(8px);
	z-index: 10;
}
.ak-vp__menu button {
	display: block;
	width: 100%;
	background: transparent;
	color: #fff;
	border: 0;
	padding: 8px 12px;
	text-align: left;
	font-size: .82rem;
	border-radius: 4px;
	cursor: pointer;
}
.ak-vp__menu button:hover { background: rgba(255,255,255,.1); }
.ak-vp__menu button.is-active { color: var(--ak-primary); font-weight: 600; }

/* Casting badge */
.ak-vp.is-casting .ak-vp__video { filter: blur(20px) brightness(.4); }
.ak-vp.is-casting::after {
	content: "Sedang nge-cast ke TV…";
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	background: rgba(0,0,0,.6);
	padding: 10px 16px;
	border-radius: 5px;
	font-size: .85rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
	z-index: 3;
}
[data-vp-cast]:not([hidden]) svg { color: var(--ak-primary); }

/* Mobile: hide volume slider, time fixed compact, etc. */
@media (max-width: 540px) {
	.ak-vp__btn { width: 32px; height: 32px; }
	.ak-vp__btn svg { width: 18px; height: 18px; }
	.ak-vp__volume:hover .ak-vp__vol,
	.ak-vp__volume:focus-within .ak-vp__vol { width: 0; opacity: 0; }
	.ak-vp__time { font-size: .72rem; padding: 0 4px; }
	.ak-vp__big-play { width: 60px; height: 60px; }
	[data-vp-airplay], [data-vp-pip] { display: none; }
}

/* Legacy iframe-only player wrapper (untuk embed) */
.ak-player {
	position: relative;
	background: #000;
	border-radius: var(--ak-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	width: 100%;
}
.ak-player iframe, .ak-player video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
}
.ak-player__empty {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	color: var(--ak-muted);
	background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}

.ak-player__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 12px;
	background: var(--ak-card);
	border: 1px solid var(--ak-border);
	border-top: 0;
	border-radius: 0 0 var(--ak-radius) var(--ak-radius);
	align-items: center;
}
.ak-player__field { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; }
.ak-player__field > span { display: inline-flex; align-items: center; gap: 4px; color: var(--ak-muted); }
.ak-player__field select {
	padding: 6px 10px;
	background: var(--ak-bg);
	color: var(--ak-fg);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius-sm);
	font-size: .85rem;
}
.ak-subs { display: inline-flex; gap: 6px; }

.ak-ep-nav {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	gap: 8px;
	margin: 16px 0 8px;
}
.ak-ep-nav .ak-btn { width: 100%; }

.ak-ep__meta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-size: .78rem;
	color: var(--ak-muted);
	padding: 12px 0;
	border-top: 1px solid var(--ak-border);
}
.ak-ep__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Sidebar: mini series card (backdrop blur + cover + meta + CTA arrow) */
.ak-mini-series {
	position: relative;
	overflow: hidden;
	border-radius: var(--ak-radius);
	border: 1px solid var(--ak-border);
	background: var(--ak-card);
	margin-bottom: 16px;
}
.ak-mini-series__bg {
	position: absolute; inset: 0;
	background-image: var(--ak-cover);
	background-size: cover;
	background-position: center;
	filter: blur(24px) brightness(.4) saturate(1.2);
	transform: scale(1.2);
	opacity: .9;
	z-index: 0;
}
.ak-mini-series__bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.75) 100%);
}
.ak-mini-series__link {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 12px;
	padding: 12px;
	color: #fff;
}
.ak-mini-series__cover {
	position: relative;
	width: 80px;
	aspect-ratio: 2/3;
	border-radius: var(--ak-radius-sm);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.ak-mini-series__cover img { width: 100%; height: 100%; object-fit: cover; }
.ak-mini-series__score {
	position: absolute;
	top: 4px; left: 4px;
	background: rgba(0,0,0,.78);
	color: #fbbf24;
	font-size: .65rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: var(--ak-radius-sm);
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.ak-mini-series__score svg { width: 11px; height: 11px; }
.ak-mini-series__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ak-mini-series__title {
	font-size: .9rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ak-mini-series__pills { display: flex; gap: 4px; flex-wrap: wrap; }
.ak-mini-series__pills .ak-pill {
	font-size: .65rem;
	padding: 2px 7px;
	background: rgba(255,255,255,.12);
	color: #fff;
	border: 1px solid rgba(255,255,255,.14);
}
.ak-mini-series__pills .ak-pill--solid {
	background: var(--ak-primary);
	color: var(--ak-primary-fg);
	border-color: var(--ak-primary);
}
.ak-mini-series__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: .72rem;
	color: rgba(255,255,255,.8);
	margin-top: auto;
}
.ak-mini-series__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ak-mini-series__meta svg { width: 12px; height: 12px; }
.ak-mini-series__more { color: var(--ak-primary); font-weight: 600; }
.ak-mini-series__link:hover .ak-mini-series__title { color: var(--ak-primary); }
.ak-mini-series__link:hover .ak-mini-series__more { transform: translateX(2px); }
.ak-mini-series__more { transition: transform .15s ease; }

.ak-ep-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
	gap: 6px;
	max-height: 360px;
	overflow-y: auto;
}
.ak-ep-grid__item {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	background: var(--ak-bg);
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius-sm);
	font-weight: 600;
	font-size: .82rem;
	color: var(--ak-fg);
	transition: background .12s, border-color .12s, color .12s;
}
.ak-ep-grid__item:hover { border-color: var(--ak-primary); color: var(--ak-primary); }
.ak-ep-grid__item.is-current {
	background: var(--ak-primary);
	border-color: var(--ak-primary);
	color: var(--ak-primary-fg);
}
