/**
 * Animezia — design system.
 * Every colour/font/metric is a CSS variable set in animezia_dynamic_css()
 * (inc/enqueue.php) from the Customizer. Fallbacks below keep it sane if a
 * variable is ever missing.
 * ------------------------------------------------------------------------ */

:root {
	--az-primary: #7c5cff;
	--az-secondary: #22d3ee;
	--az-accent: #ff4d8d;
	--az-bg: #070a12;
	--az-surface: #0e1424;
	--az-header-bg: #080b15;
	--az-footer-bg: #080b15;
	--az-heading: #f4f6fb;
	--az-text: #aab3c7;
	--az-link: #22d3ee;
	--az-header-text: #e6e9f2;
	--az-menu-hover: #7c5cff;
	--az-btn: #7c5cff;
	--az-footer-text: #8b93a7;
	--az-footer-link: #c7cede;
	--az-font-heading: "Sora", system-ui, sans-serif;
	--az-font-body: "Inter", system-ui, sans-serif;
	--az-font-size: 16px;
	--az-line-height: 1.7;
	--az-letter-spacing: 0px;
	--az-container: 1280px;
	--az-logo-width: 150px;
	--az-radius: 14px;

	/* Derived helpers. */
	--az-border: rgba(255, 255, 255, .08);
	--az-border-strong: rgba(255, 255, 255, .16);
	--az-surface-2: rgba(255, 255, 255, .04);
	--az-shadow: 0 20px 48px rgba(0, 0, 0, .55);
	--az-header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--az-bg);
	color: var(--az-text);
	font-family: var(--az-font-body);
	font-size: var(--az-font-size);
	line-height: var(--az-line-height);
	letter-spacing: var(--az-letter-spacing);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--az-link); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--az-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--az-font-heading); color: var(--az-heading); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

/* Aurora ambient glow — the theme's signature. */
body::before {
	content: "";
	position: fixed;
	inset: -20% -10% auto -10%;
	height: 60vh;
	background:
		radial-gradient(60% 60% at 20% 0%, color-mix(in srgb, var(--az-primary) 22%, transparent), transparent 70%),
		radial-gradient(50% 50% at 85% 10%, color-mix(in srgb, var(--az-secondary) 16%, transparent), transparent 70%);
	filter: blur(30px);
	opacity: .7;
	pointer-events: none;
	z-index: 0;
}
#az-page { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.az-container {
	width: 100%;
	max-width: var(--az-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}
.az-layout-full .az-container { max-width: 100%; }
.az-main { display: block; min-height: 40vh; }
.az-content-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	padding-block: 40px;
}
.az-no-sidebar .az-content-wrap,
.az-content-wrap.az-content-wrap--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .az-content-wrap { grid-template-columns: minmax(0, 1fr); } }

.az-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--az-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.az-skip:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.az-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 14px;
	border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	white-space: nowrap;
}
.az-btn--primary { background: var(--az-btn); color: #fff; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--az-btn) 70%, transparent); }
.az-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--az-btn) 80%, transparent); }
.az-btn--ghost { background: var(--az-surface-2); color: var(--az-heading); border-color: var(--az-border); }
.az-btn--ghost:hover { border-color: var(--az-border-strong); color: var(--az-heading); transform: translateY(-2px); }

.az-icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
	background: var(--az-surface-2); border: 1px solid var(--az-border); color: var(--az-header-text); cursor: pointer;
	transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.az-icon-btn:hover { border-color: var(--az-border-strong); color: var(--az-primary); transform: translateY(-1px); }

/* ---------- Header ---------- */
.az-header { position: relative; background: var(--az-header-bg); border-bottom: 1px solid var(--az-border); z-index: 500; }
.az-sticky-header .az-header { position: sticky; top: 0; }
.az-header.is-scrolled { backdrop-filter: blur(12px); background: color-mix(in srgb, var(--az-header-bg) 88%, transparent); }
.az-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: var(--az-header-h);
}
.az-header__brand { display: flex; align-items: center; gap: 12px; }
.az-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.az-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--az-header-text); }
.az-logo:hover { color: var(--az-header-text); }
.az-logo__img { width: var(--az-logo-width); height: auto; }
.az-logo__img--mobile { display: none; }
.az-logo__mark {
	width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
	font-family: var(--az-font-heading); font-weight: 800; font-size: 20px; color: #fff;
	background: linear-gradient(135deg, var(--az-primary), var(--az-secondary));
	box-shadow: 0 6px 18px -6px var(--az-primary);
}
.az-logo__text { font-family: var(--az-font-heading); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }

/* Primary nav */
.az-nav { display: flex; }
.az-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.az-menu li { position: relative; }
.az-menu a {
	display: block; padding: 10px 14px; color: var(--az-header-text); font-weight: 600; font-size: 14.5px; border-radius: 8px;
}
.az-menu a:hover, .az-menu .current-menu-item > a { color: var(--az-menu-hover); background: var(--az-surface-2); }
.az-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; margin: 0; padding: 8px; list-style: none;
	background: var(--az-surface); border: 1px solid var(--az-border); border-radius: 12px; box-shadow: var(--az-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 10;
}
.az-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.az-menu .sub-menu a { color: var(--az-text); }
.az-menu .sub-menu a:hover { color: var(--az-heading); }

/* Header style 1: logo left, menu centered */
.az-header--style1 .az-nav { margin-inline: auto; }
/* Header style 2: logo center, menu below */
.az-header--style2 .az-header__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
.az-header--style2 .az-header__brand { order: 1; margin-inline: auto; }
.az-header--style2 .az-header__actions { order: 2; }
.az-header--style2 .az-nav { order: 3; flex-basis: 100%; justify-content: center; padding-bottom: 8px; }
/* Header style 3: split menu with prominent search */
.az-header--style3 .az-header__actions .az-search-toggle { order: -1; }

.az-socials, .az-header__social { display: inline-flex; gap: 8px; align-items: center; }
.az-social {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
	background: var(--az-surface-2); border: 1px solid var(--az-border); color: var(--az-header-text);
	transition: all .18s ease;
}
.az-social:hover { color: #fff; border-color: transparent; background: var(--az-primary); transform: translateY(-2px); }

/* Search drawer */
.az-search-drawer { border-top: 1px solid var(--az-border); background: var(--az-header-bg); padding: 16px 0; }
.az-search-drawer form { display: flex; gap: 10px; }
.az-search-drawer input[type="search"], .search-form input[type="search"] {
	flex: 1; width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--az-border);
	background: var(--az-surface-2); color: var(--az-heading); font-size: 15px; outline: none;
}
.az-search-drawer input:focus { border-color: var(--az-primary); }
.search-form { display: flex; gap: 8px; }
.search-form .search-submit {
	padding: 12px 18px; border: none; border-radius: 10px; background: var(--az-primary); color: #fff; font-weight: 700; cursor: pointer;
}

/* Burger + mobile nav */
.az-burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--az-border); border-radius: 10px; background: var(--az-surface-2); cursor: pointer; align-items: center; justify-content: center; }
.az-burger span { width: 20px; height: 2px; background: var(--az-header-text); border-radius: 2px; transition: .2s; }
.az-mobile-nav {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 999;
	background: var(--az-surface); border-left: 1px solid var(--az-border); padding: 20px;
	transform: translateX(100%); transition: transform .3s cubic-bezier(.22, 1, .36, 1); overflow-y: auto;
}
.az-mobile-nav.is-open { transform: translateX(0); }
.az-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.az-mobile-nav__close { background: none; border: none; color: var(--az-heading); font-size: 30px; line-height: 1; cursor: pointer; }
.az-mobile-menu { list-style: none; margin: 0; padding: 0; }
.az-mobile-menu li { border-bottom: 1px solid var(--az-border); }
.az-mobile-menu a { display: block; padding: 13px 4px; color: var(--az-heading); font-weight: 600; }
.az-mobile-menu .sub-menu { list-style: none; padding-left: 14px; }
.az-mobile-nav__social { margin-top: 18px; }
.az-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 998; opacity: 0; transition: opacity .3s ease; }
.az-overlay.is-open { opacity: 1; }

/* ---------- Breadcrumbs ---------- */
.az-breadcrumbs { border-bottom: 1px solid var(--az-border); font-size: 13px; }
.az-breadcrumbs .az-container { padding-block: 12px; }
.az-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.az-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--az-text); opacity: .5; }
.az-breadcrumbs a { color: var(--az-text); }
.az-breadcrumbs a:hover { color: var(--az-primary); }
.az-breadcrumbs [aria-current] { color: var(--az-heading); }

/* ---------- Section titles ---------- */
.az-section { padding-block: clamp(28px, 4vw, 48px); }
.az-sectitle { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.az-sectitle__kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--az-secondary); margin-bottom: 6px; }
.az-sectitle__heading { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.01em; margin: 0; }
.az-sectitle__tick { width: 5px; height: 26px; border-radius: 4px; background: linear-gradient(var(--az-primary), var(--az-accent)); box-shadow: 0 0 16px -2px var(--az-primary); }
.az-sectitle__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--az-text); }
.az-sectitle__more:hover { color: var(--az-primary); }

/* ---------- Poster card ---------- */
.az-card { position: relative; }
.az-card__link { display: block; color: inherit; }
.az-card__poster {
	position: relative; aspect-ratio: 2 / 3; border-radius: var(--az-radius); overflow: hidden;
	background: var(--az-surface); border: 1px solid var(--az-border);
	transition: transform .32s cubic-bezier(.34, 1.4, .64, 1), box-shadow .32s ease, border-color .32s ease;
}
.az-card__link:hover .az-card__poster {
	transform: translateY(-6px);
	border-color: var(--az-border-strong);
	box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 30px -8px var(--az-card-accent, var(--az-primary));
}
.az-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.az-card__img--empty { background: linear-gradient(135deg, var(--az-surface), #1a2238); }
.az-card__link:hover .az-card__img { transform: scale(1.07); }
.az-card__poster::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .95) 100%);
}
.az-card__score {
	position: absolute; top: 8px; right: 8px; z-index: 3; font-size: 11px; font-weight: 800; color: #fbbf24;
	background: rgba(0, 0, 0, .6); border: 1px solid rgba(251, 191, 36, .3); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(6px);
}
.az-card__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px; }
.az-card__genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.az-card__genres span { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); padding: 2px 6px; border-radius: 4px; }
.az-card__title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.az-card__ep { display: flex; align-items: center; gap: 6px; }
.az-card__ep-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--az-primary); padding: 2px 7px; border-radius: 5px; }

/* Badges */
.az-badge { display: inline-flex; align-items: center; gap: 5px; position: absolute; top: 8px; left: 8px; z-index: 3; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.az-badge--airing { background: rgba(34, 197, 94, .2); color: #4ade80; border: 1px solid rgba(74, 222, 128, .3); }
.az-badge--upcoming { background: rgba(124, 92, 255, .2); color: #b7a6ff; border: 1px solid rgba(124, 92, 255, .35); }
.az-badge--finished { background: rgba(148, 163, 184, .16); color: #94a3b8; border: 1px solid rgba(148, 163, 184, .25); }
.az-badge--cancelled { background: rgba(239, 68, 68, .18); color: #f87171; border: 1px solid rgba(248, 113, 113, .3); }
.az-badge--hiatus { background: rgba(251, 191, 36, .16); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .3); }
.az-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: az-blink 1.8s ease-in-out infinite; }
.az-countdown { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.az-countdown.az-aired { color: #4ade80; font-weight: 700; }
.az-countdown--lg { font-size: 18px; color: var(--az-heading); }
@keyframes az-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Scroller (slider/carousel layouts) ---------- */
.az-section__body.az-layout--grid > * { width: 100%; }
.az-scroller { position: relative; }
.az-scroller__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
	padding-block: 4px; scrollbar-width: none;
}
.az-scroller__track::-webkit-scrollbar { display: none; }
/* When a shortcode outputs its own grid inside the scroller, let it flow. */
.az-scroller__track > * { flex: 0 0 auto; scroll-snap-align: start; }
.az-scroller__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: color-mix(in srgb, var(--az-surface) 85%, transparent);
	border: 1px solid var(--az-border-strong); color: var(--az-heading); cursor: pointer; backdrop-filter: blur(8px);
	opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.az-scroller:hover .az-scroller__nav { opacity: 1; }
.az-scroller__nav--prev { left: -8px; }
.az-scroller__nav--next { right: -8px; }
.az-scroller__nav:hover { color: var(--az-primary); }
@media (max-width: 700px) { .az-scroller__nav { display: none; } }

/* ---------- Hero ---------- */
.az-hero { position: relative; overflow: hidden; }
.az-hero__stage { position: relative; min-height: clamp(420px, 60vh, 620px); }
.az-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.az-hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.az-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; transform: scale(1.05); }
.az-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to right, var(--az-bg) 8%, color-mix(in srgb, var(--az-bg) 70%, transparent) 45%, transparent 75%), linear-gradient(to top, var(--az-bg), transparent 55%); }
.az-hero__content { position: relative; z-index: 2; display: flex; align-items: center; gap: 36px; padding-block: clamp(40px, 6vw, 80px); }
.az-hero__poster { flex: 0 0 auto; width: clamp(140px, 18vw, 230px); }
.az-hero__poster img { border-radius: var(--az-radius); box-shadow: var(--az-shadow); border: 1px solid var(--az-border-strong); }
.az-hero__info { max-width: 620px; }
.az-hero__info .az-badge { position: static; margin-bottom: 14px; }
.az-hero__title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.az-hero__stats { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--az-text); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.az-hero__score { color: #fbbf24; font-weight: 800; }
.az-hero__genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.az-hero__genres span, .az-chip { font-size: 12px; font-weight: 600; color: var(--az-heading); background: var(--az-surface-2); border: 1px solid var(--az-border); padding: 5px 12px; border-radius: 100px; }
.az-hero__countdown { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 14px; border-radius: 10px; background: var(--az-surface-2); border: 1px solid var(--az-border); }
.az-hero__ep { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--az-primary); }
.az-hero__poster { display: block; }
@media (max-width: 700px) { .az-hero__poster { display: none; } }
.az-hero__dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.az-hero__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .3); cursor: pointer; transition: .2s; }
.az-hero__dot.is-active { width: 26px; border-radius: 100px; background: var(--az-primary); }

/* ---------- Genre pills ---------- */
.az-genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.az-genre-pill {
	display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 12px;
	background: linear-gradient(135deg, hsla(var(--az-pill-hue, 260), 70%, 55%, .14), var(--az-surface));
	border: 1px solid var(--az-border); color: var(--az-heading); font-weight: 700; transition: transform .2s ease, border-color .2s ease;
}
.az-genre-pill:hover { transform: translateY(-3px); color: var(--az-heading); border-color: hsla(var(--az-pill-hue, 260), 70%, 60%, .6); }
.az-genre-pill__count { font-size: 12px; color: var(--az-text); background: var(--az-surface-2); padding: 2px 9px; border-radius: 100px; }

/* ---------- Posts / archives ---------- */
.az-page-head { padding-block: 36px 8px; }
.az-page-head__title { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; }
.az-page-head__title span { color: var(--az-primary); }
.az-page-head__desc { color: var(--az-text); max-width: 720px; }
.az-postlist { display: grid; gap: 24px; }
.az-post { display: grid; grid-template-columns: 260px 1fr; gap: 20px; background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.az-post:hover { border-color: var(--az-border-strong); transform: translateY(-2px); }
.az-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.az-post__body { padding: 20px; }
.az-post__title { font-size: 20px; margin-bottom: 8px; }
.az-post__title a { color: var(--az-heading); }
.az-post__title a:hover { color: var(--az-primary); }
.az-post__meta { display: flex; gap: 14px; font-size: 13px; color: var(--az-text); margin-bottom: 10px; }
.az-post__excerpt { color: var(--az-text); margin-bottom: 14px; }
.az-post__type { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--az-secondary); font-weight: 700; }
@media (max-width: 620px) { .az-post { grid-template-columns: 1fr; } .az-post__thumb img { height: 200px; } }

/* Prose */
.az-prose { color: var(--az-text); max-width: 820px; }
.az-prose h2, .az-prose h3 { color: var(--az-heading); margin-top: 1.4em; }
.az-prose a { color: var(--az-secondary); text-decoration: underline; }
.az-prose img { border-radius: var(--az-radius); margin: 1.2em 0; }
.az-prose blockquote { border-left: 3px solid var(--az-primary); margin: 1.2em 0; padding: 4px 18px; background: var(--az-surface-2); border-radius: 0 8px 8px 0; }

/* ---------- Single anime ---------- */
.az-single--anime { position: relative; }
.az-single__banner { position: relative; height: clamp(200px, 34vw, 380px); background-size: cover; background-position: center 25%; }
.az-single__banner-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--az-bg), transparent 70%), linear-gradient(to right, color-mix(in srgb, var(--az-bg) 60%, transparent), transparent); }
.az-single__head { position: relative; display: flex; gap: 30px; margin-top: clamp(-120px, -12vw, -80px); z-index: 2; align-items: flex-end; }
.az-single__poster { flex: 0 0 auto; width: clamp(150px, 20vw, 240px); }
.az-single__poster img { border-radius: var(--az-radius); border: 1px solid var(--az-border-strong); box-shadow: var(--az-shadow); width: 100%; }
.az-single__intro { padding-bottom: 12px; }
.az-single__intro .az-badge { position: static; margin-bottom: 12px; }
.az-single__title { font-size: clamp(24px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.az-single__stats { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--az-text); font-weight: 600; margin-bottom: 12px; }
.az-single__score { color: #fbbf24; font-weight: 800; }
.az-single__genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.az-single__countdown { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: var(--az-surface-2); border: 1px solid var(--az-border); }
.az-single__ep { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--az-primary); }
.az-single__body { padding-block: 40px; display: grid; gap: 28px; }
.az-single__feature img { border-radius: var(--az-radius); }
@media (max-width: 760px) {
	.az-single__head { flex-direction: column; align-items: center; text-align: center; margin-top: -70px; }
	.az-single__intro .az-badge, .az-single__stats, .az-single__genres { justify-content: center; }
}

/* ---------- Sidebar & widgets ---------- */
.az-sidebar { display: grid; gap: 22px; align-content: start; }
.az-widget { background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius); padding: 20px; }
.az-widget__title { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--az-border); }
.az-widget a { color: var(--az-text); }
.az-widget a:hover { color: var(--az-primary); }
.az-widget ul { list-style: none; margin: 0; padding: 0; }
.az-widget li { padding: 7px 0; border-bottom: 1px dashed var(--az-border); }

/* ---------- Footer ---------- */
.az-footer { background: var(--az-footer-bg); border-top: 1px solid var(--az-border); color: var(--az-footer-text); margin-top: 40px; }
.az-footer a { color: var(--az-footer-link); }
.az-footer a:hover { color: var(--az-primary); }
.az-footer__top { padding-block: clamp(36px, 5vw, 60px); }
.az-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.az-footer__about p { margin: 14px 0; max-width: 40ch; }
.az-footer__logo { max-width: 160px; }
.az-fwidget__title { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--az-heading); margin-bottom: 16px; }
.az-footer__links, .az-footer__menu ul { list-style: none; margin: 0; padding: 0; }
.az-footer__links li, .az-footer__menu li { padding: 6px 0; }
.az-newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.az-newsletter input { flex: 1; min-width: 160px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--az-border); background: var(--az-surface-2); color: var(--az-heading); outline: none; }
.az-newsletter input:focus { border-color: var(--az-primary); }
.az-footer__bottom { border-top: 1px solid var(--az-border); padding-block: 20px; }
.az-copyright { margin: 0; text-align: center; font-size: 13px; }
@media (max-width: 900px) { .az-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .az-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Ads ---------- */
.az-ad { margin: 20px auto; text-align: center; max-width: 100%; }
.az-ad__label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--az-text); opacity: .6; margin-bottom: 6px; }
.az-ad img { margin-inline: auto; border-radius: 8px; }
@media (max-width: 600px) { .az-ad--hide-mobile { display: none !important; } }

/* Missing-plugin placeholder (admins only) */
.az-missing-plugin {
	display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
	padding: 22px 24px; border: 1px dashed var(--az-border-strong); border-radius: var(--az-radius);
	background: var(--az-surface-2); color: var(--az-text); margin: 16px 0;
}
.az-missing-plugin strong { color: var(--az-heading); font-family: var(--az-font-heading); }
.az-missing-plugin code { color: var(--az-secondary); background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 5px; }
.az-missing-plugin a { font-weight: 700; }

/* ---------- 404 ---------- */
.az-404 { position: relative; text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.az-404__glow { position: absolute; inset: 0; margin: auto; width: 400px; height: 400px; background: radial-gradient(circle, color-mix(in srgb, var(--az-primary) 30%, transparent), transparent 70%); filter: blur(40px); z-index: -1; }
.az-404__code { font-family: var(--az-font-heading); font-size: clamp(80px, 16vw, 180px); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--az-primary), var(--az-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az-404__title { font-size: clamp(22px, 3vw, 32px); margin-bottom: 12px; }
.az-404__text { max-width: 480px; margin: 0 auto 24px; }
.az-404__search { max-width: 420px; margin: 0 auto 20px; }

/* ---------- Pagination ---------- */
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--az-surface); border: 1px solid var(--az-border); color: var(--az-heading); font-weight: 700; }
.page-numbers.current { background: var(--az-primary); color: #fff; border-color: transparent; }
.page-numbers:hover:not(.current) { border-color: var(--az-border-strong); color: var(--az-primary); }

/* ---------- Preloader ---------- */
#az-preloader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--az-bg); transition: opacity .4s ease, visibility .4s ease; }
#az-preloader.is-hidden { opacity: 0; visibility: hidden; }
.az-preloader__ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--az-border); border-top-color: var(--az-primary); animation: az-spin .8s linear infinite; }
@keyframes az-spin { to { transform: rotate(360deg); } }

/* ---------- Back to top ---------- */
#az-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 700; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--az-border-strong); background: var(--az-primary); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .25s ease; box-shadow: 0 10px 26px -8px var(--az-primary); }
#az-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#az-to-top:hover { transform: translateY(-3px); }

.az-empty { text-align: center; padding: 60px 20px; color: var(--az-text); }

/* ---------- Burger animation when open ---------- */
.az-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.az-burger.is-open span:nth-child(2) { opacity: 0; }
.az-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive header ---------- */
@media (max-width: 980px) {
	.az-nav { display: none; }
	.az-burger { display: flex; }
	.az-header--style2 .az-header__inner { flex-wrap: nowrap; justify-content: space-between; text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	body::before { display: none; }
}

/* ---------- RTL niceties ---------- */
.rtl .az-sectitle__tick { transform: scaleX(-1); }
.rtl .az-mobile-nav { left: 0; right: auto; border-left: none; border-right: 1px solid var(--az-border); transform: translateX(-100%); }
.rtl .az-mobile-nav.is-open { transform: translateX(0); }
