/*
Theme Name: Animetna
Theme URI: https://animetna.com
Author: Secu
Description: قالب انميتنا (Animetna) العربي (RTL) لمواقع مشاهدة الأنمي: أنميات، حلقات، سيرفرات مشاهدة متعددة، روابط تحميل، معلومات كاملة لكل انمي (الاستوديو، موعد البث، المصدر…)، فلاتر وتصنيفات، ولوحة تحكم كاملة لإدارة المحتوى.
Version: 2.0.9
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sakura
Tags: rtl-language-support, dark, custom-menu, custom-logo, featured-images
*/

/* ================= Tokens ================= */
:root {
	/* Black & red — cinema style. Posters pop on pure dark neutrals. */
	--ink: #0a0a0a;        /* page */
	--panel: #161616;      /* surfaces */
	--panel-2: #202020;    /* raised */
	--line: #2a2a2a;
	--text: #f5f5f5;
	--muted: #a3a3a3;

	--pink: #e50914;       /* main red */
	--orange: #b20710;     /* deep red */
	--grad: linear-gradient(135deg, #f6121d 0%, #e50914 45%, #a8060f 100%);
	--on-accent: #ffffff;
	--sky: #ff4d55;        /* links & small accents */
	--live: #46d369;
	--glow: 0 8px 24px rgba(229, 9, 20, .35);

	--r-lg: 12px;
	--r-sm: 6px;
	--font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--font-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--wrap: 1280px;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.75;
	direction: rtl;
	text-align: right;
	background-color: var(--ink);
	background-image: radial-gradient(1100px 520px at 50% -12%, rgba(229, 9, 20, .10), transparent 65%);
	background-attachment: fixed;
	min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.icon { flex-shrink: 0; }
::selection { background: var(--pink); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; inset-inline-start: 8px;
	background: var(--grad); color: var(--on-accent); padding: 8px 16px; border-radius: var(--r-sm);
}
.empty { color: var(--muted); padding: 32px 0; }

/* ================= Buttons & chips ================= */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--grad); color: var(--on-accent);
	font-weight: 600; line-height: 1.4; white-space: nowrap;
	box-shadow: var(--glow);
	transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 12px 34px rgba(229, 9, 20, .5); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn--small { padding: 6px 14px; font-size: .88rem; box-shadow: none; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.icon-btn:hover { border-color: var(--sky); color: var(--sky); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
	font-size: .82rem; padding: 4px 13px; border-radius: 999px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
	transition: background .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--pink); background: rgba(229, 9, 20, .16); }

/* ================= Header ================= */
.notice-bar {
	background: var(--grad); color: var(--on-accent);
	text-align: center; font-weight: 600; font-size: .9rem; padding: 7px 20px;
}
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10, 10, 10, .82);
	-webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo img { height: 40px; width: auto; max-width: none; }
.logo__mark {
	display: grid; place-items: center; width: 36px; height: 36px;
	background: var(--grad); color: #fff; border-radius: 11px;
	transform: rotate(-8deg); box-shadow: var(--glow);
}

.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a { display: block; padding: 8px 14px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--text); background: rgba(229, 9, 20, .16); }
.nav .sub-menu {
	display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; padding: 6px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }

.search-form {
	display: flex; align-items: center;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden;
}
.search-form:focus-within { border-color: var(--sky); background: rgba(229, 9, 20, .08); }
.search-form input[type="search"] { background: none; border: 0; outline: none; padding: 8px 16px; width: 220px; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { background: none; border: 0; padding: 0 14px; height: 40px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.search-form button:hover { color: var(--sky); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-inline-start: auto; }

/* ================= Page heads & breadcrumbs ================= */
.page-head { padding-block: 28px 20px; }
.page-head--tight { padding-block: 20px 12px; }
.page-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.45; margin: 6px 0 0; }
.page-desc { color: var(--muted); max-width: 75ch; }
.page-desc p { margin: 8px 0 0; line-height: 1.9; }
.page-desc a { color: var(--sky); }
.page-sub { margin: 4px 0 0; color: var(--sky); font-weight: 600; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; opacity: .45; margin-inline-end: 8px; }
.crumbs a:hover { color: var(--sky); }

/* ================= Home intro & about ================= */
.intro { padding-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.intro__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.5; margin: 0; }
.about { padding-bottom: 8px; }
.about__text { color: var(--muted); max-width: 80ch; margin-top: 14px; }
.about__text p { margin: 0 0 .8em; }

/* ================= Sections & grid ================= */
.section { padding-block: 32px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__title {
	position: relative; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; line-height: 1.45; margin: 0;
	padding-inline-start: 16px;
}
.section__title::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 12%; bottom: 12%; width: 5px; border-radius: 3px;
	background: var(--grad); box-shadow: 0 0 14px rgba(229, 9, 20, .6);
}
.section__title small { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); }
.section__more { color: var(--sky); font-weight: 600; font-size: .92rem; }
.section__more:hover { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 24px 16px; }

/* ================= Cards ================= */
.card { min-width: 0; }
.card__media {
	position: relative; display: block; aspect-ratio: 300 / 430;
	border-radius: var(--r-lg); overflow: hidden; background: var(--panel);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
	transition: box-shadow .25s, transform .25s;
}
.card__media:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--pink), 0 16px 36px rgba(229, 9, 20, .3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__media:hover img { transform: scale(1.06); }
.card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 10, .85), transparent 45%);
	pointer-events: none;
}
.card__body { padding-top: 10px; }
.card__title {
	font-size: .97rem; font-weight: 600; line-height: 1.5; margin: 0; text-align: right;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { margin: 3px 0 0; font-size: .82rem; color: var(--muted); }
.card__status {
	position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
	background: rgba(10, 10, 10, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card__status--airing::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: var(--live); box-shadow: 0 0 8px var(--live);
}
.card__status--airing { color: var(--live); }
.card__status--upcoming { color: var(--sky); }

/* Signature element: the episode number tab */
.ep-tag {
	position: absolute; z-index: 1; inset-inline-end: 0; bottom: 16px;
	display: flex; flex-direction: column; align-items: center; min-width: 60px;
	padding: 5px 12px 7px; line-height: 1.05;
	background: var(--grad); color: var(--on-accent);
	border-start-start-radius: 14px; border-end-start-radius: 14px;
	box-shadow: var(--glow);
}
.ep-tag small { font-size: .66rem; font-weight: 600; }
.ep-tag b { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.card__play {
	position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
	opacity: 0; transition: opacity .2s;
}
.card__play .icon {
	width: 56px; height: 56px; padding: 14px; border-radius: 50%;
	background: var(--grad); color: #fff; box-shadow: var(--glow);
}
.card__media:hover .card__play, .card__media:focus-visible .card__play { opacity: 1; }

/* ================= Hero slider (full width) ================= */
.hero { position: relative; isolation: isolate; }
.hero__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
	flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
	position: relative; overflow: hidden; display: flex; align-items: flex-end;
	min-height: clamp(470px, 70vh, 660px); /* grows when the title/description is long — nothing gets cut */
}
.hero__art, .hero__art picture { position: absolute; inset: 0; }
.hero__art img {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
	object-fit: cover; object-position: center 28%;
	transform: scale(1.04); transition: transform 7s ease-out;
}
.hero__slide.is-active .hero__art img { transform: scale(1); }
/* No banner on a computer: soft poster backdrop + sharp poster card */
.hero__slide--poster .hero__art img { filter: blur(26px) brightness(.55) saturate(1.4); transform: scale(1.2); }
.hero__slide--poster.is-active .hero__art img { transform: scale(1.15); }
.hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 10, .55) 28%, rgba(10, 10, 10, 0) 60%),
		linear-gradient(to left, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .6) 38%, rgba(10, 10, 10, .05) 75%);
}
.hero__inner {
	position: relative; z-index: 2; width: 100%;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
	padding-top: 56px; padding-bottom: 84px;
}
.hero__text { max-width: 640px; }
.hero__meta {
	list-style: none; margin: 0 0 12px; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	font-size: .88rem; font-weight: 600; color: #d9d9d9;
}
.hero__meta li + li::before { content: "•"; margin-inline-end: 14px; opacity: .5; }
.hero__meta .hero__badge + li::before { content: none; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__badge--airing { color: var(--live); background: rgba(70, 211, 105, .12); border-color: rgba(70, 211, 105, .35); }
.hero__badge--airing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: sk-pulse 1.8s infinite; }
@keyframes sk-pulse { 50% { opacity: .35; } }
.hero__title {
	font-family: var(--font-head); font-weight: 800; line-height: 1.25; margin: 0;
	font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.01em; text-align: right;
	text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__title a:hover { color: var(--text); }
.hero__alt { margin: 6px 0 0; color: var(--muted); font-size: .95rem; text-align: right; }
.hero__story {
	color: #ebebeb; margin: 14px 0 0; max-width: 58ch; font-size: 1.02rem; line-height: 1.85;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__genres { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: .9rem; }
.hero__genres a { color: var(--sky); font-weight: 600; }
.hero__genres a + a::before { content: "/"; color: var(--muted); opacity: .5; margin-inline-end: 16px; font-weight: 400; }
.hero__genres a:hover { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--lg { padding: 13px 28px; font-size: 1.02rem; }
.btn--ghost.btn--lg { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__poster { flex: 0 0 auto; width: 230px; margin-bottom: 4px; transform: rotate(-2deg); transition: transform .3s; }
.hero__poster:hover { transform: rotate(0) translateY(-4px); }
.hero__poster img {
	width: 100%; aspect-ratio: 300 / 430; object-fit: cover; border-radius: 18px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14);
}
.hero__slide--banner .hero__poster { display: none; }

.hero__controls {
	position: absolute; z-index: 3; bottom: 26px; inset-inline: 0;
	max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
	display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hero__controls > * { pointer-events: auto; }
.hero__dots { display: flex; align-items: center; gap: 8px; }
.hero__dot {
	position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
	background: rgba(255, 255, 255, .3); transition: width .35s ease, background .2s;
}
.hero__dot:hover { background: rgba(255, 255, 255, .55); }
.hero__dot.is-active { width: 38px; background: rgba(255, 255, 255, .22); }
.hero__dot span { position: absolute; inset: 0; inset-inline-end: auto; width: 0; background: var(--grad); border-radius: inherit; }
.hero__dot.is-active span { width: 100%; }
.hero.is-playing .hero__dot.is-active span { width: 0; animation: sk-dot var(--hero-delay, 6.5s) linear forwards; }
@keyframes sk-dot { to { width: 100%; } }
.hero__arrows { display: flex; gap: 8px; }
.hero__btn {
	display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; color: var(--text);
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s;
}
.hero__btn:hover { background: var(--grad); border-color: transparent; color: #fff; }

/* ================= Home rails (horizontal rows) ================= */
.section__tools { display: flex; align-items: center; gap: 8px; }
.section__more { display: inline-flex; align-items: center; gap: 2px; }
.section__more .icon { width: 18px; height: 18px; }
.rail__btn {
	display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer; color: var(--text);
	background: var(--panel); border: 1px solid var(--line); border-radius: 50%; transition: background .2s, opacity .2s;
}
.rail__btn:hover:not(:disabled) { background: var(--grad); border-color: transparent; color: #fff; }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail {
	display: grid; grid-auto-flow: column; gap: 16px;
	grid-auto-columns: calc((100% - 5 * 16px) / 6);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding-block: 6px 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.live-dot { display: inline-block; width: 9px; height: 9px; margin-inline-start: 6px; vertical-align: middle; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: sk-pulse 1.8s infinite; }
.section__all { display: none; }

/* Card badges */
.card__type {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1;
	font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px;
	background: rgba(10, 10, 10, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card__count {
	position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 1;
	display: inline-flex; align-items: center; gap: 4px;
	font-size: .76rem; font-weight: 700; padding: 2px 9px 2px 7px; border-radius: 999px;
	background: rgba(10, 10, 10, .8); border: 1px solid rgba(255, 255, 255, .14);
}
.card__count .icon { width: 14px; height: 14px; color: var(--sky); }

/* ================= Anime filters ================= */
.filters {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
	background: rgba(22, 22, 22, .75); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 16px; margin-bottom: 28px;
}
.filters__item { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); }
.filters select {
	min-width: 160px; padding: 8px 12px; color: var(--text);
	background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.filters select:focus { border-color: var(--sky); outline: none; }

/* ================= Pagination ================= */
.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 12px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600;
}
.page-numbers:hover { border-color: var(--pink); color: var(--text); }
.page-numbers.current { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: var(--glow); }
.page-numbers.dots { background: none; border: 0; }

/* ================= Single anime ================= */
.anime-hero { position: relative; overflow: hidden; padding-block: 24px 40px; }
.anime-hero__bg {
	position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
	object-fit: cover; object-position: center 20%;
	filter: blur(30px) brightness(.45) saturate(1.6);
}
.anime-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), rgba(10, 10, 10, .3) 70%); }
.anime-hero .wrap { position: relative; z-index: 1; }
.anime-head { display: grid; grid-template-columns: 250px 1fr; gap: 36px; margin-top: 20px; align-items: start; }
.anime-head__poster img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 300 / 430; object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.anime-head__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.35; margin: 0; }
.anime-head__alt { color: var(--muted); margin: 4px 0 14px; text-align: right; }
.story__title { font-size: 1rem; font-weight: 600; color: var(--sky); margin: 20px 0 0; }
.story { color: #e0e0e0; max-width: 72ch; margin-top: 6px; }
.story p { margin: 0 0 .8em; }
.anime-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.facts {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px;
}
.facts li { background: rgba(22, 22, 22, .8); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.facts span { display: block; font-size: .78rem; color: var(--muted); }
.facts b { font-weight: 600; }
.facts a { color: var(--sky); }

.ep-tools { display: flex; gap: 8px; }
.ep-tools input {
	width: 150px; padding: 8px 12px; background: var(--panel);
	border: 1px solid var(--line); border-radius: var(--r-sm); outline: none;
}
.ep-tools input:focus { border-color: var(--sky); }
.ep-list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px;
}
.ep-list a {
	display: block; text-align: center; padding: 12px 8px; font-weight: 600;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
	transition: border-color .15s, background .15s;
}
.ep-list a:hover { border-color: var(--pink); color: var(--text); background: rgba(229, 9, 20, .14); }
.ep-list a:visited { color: var(--muted); }

/* ================= Watch page ================= */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-bottom: 48px; align-items: start; }
.player {
	position: relative; aspect-ratio: 16 / 9; background: #000000;
	border-radius: var(--r-lg); overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px rgba(229, 9, 20, .12);
}
.player--trailer { max-width: 860px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty { display: grid; place-items: center; height: 100%; color: var(--muted); padding: 20px; text-align: center; }

.servers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.servers__label { color: var(--muted); font-size: .9rem; margin-inline-end: 4px; }
.servers button {
	padding: 7px 18px; cursor: pointer; font-weight: 600;
	background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.servers button:hover { border-color: var(--pink); }
.servers button[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: var(--glow); }

.ep-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.ep-about { margin-top: 32px; padding: 18px 20px; background: rgba(22, 22, 22, .6); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ep-about p { margin: 12px 0 0; color: #dcdcdc; }
.ep-about a { color: var(--sky); }
.ep-about bdi { white-space: nowrap; }
.ep-about__date { color: var(--muted); font-size: .88rem; }
.ep-about__story { color: var(--muted) !important; font-size: .95rem; }
.ep-about__summary { color: var(--text) !important; font-size: 1.02rem; }
.ep-about__h { font-size: 1rem; font-weight: 600; color: var(--sky); margin: 18px 0 0; }

.downloads { margin-top: 32px; }
.downloads__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.downloads__list li {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.downloads__host { font-weight: 600; }
.downloads__q { font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: rgba(229, 9, 20, .12); color: var(--sky); }
.downloads__list .btn { margin-inline-start: auto; }

.watch__side { display: grid; gap: 16px; position: sticky; top: 88px; }
.mini-anime {
	display: flex; gap: 12px; align-items: center; padding: 10px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.mini-anime:hover { border-color: var(--pink); color: var(--text); }
.mini-anime img { width: 64px; aspect-ratio: 300 / 430; object-fit: cover; border-radius: var(--r-sm); }
.mini-anime b { display: block; line-height: 1.5; }
.mini-anime small { color: var(--muted); }
.side-eps { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.side-eps__title { font-family: var(--font-head); font-size: 1rem; margin: 0 0 10px; }
.side-eps ol { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side-eps a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--muted); }
.side-eps a:hover { background: var(--panel-2); color: var(--text); }
.side-eps a.is-current { background: var(--grad); color: var(--on-accent); font-weight: 600; }

/* ================= Content pages, 404 ================= */
.prose { padding-bottom: 48px; }
.prose > * { max-width: 80ch; }
.prose .sk-form { max-width: 720px; }
.ltr-block { text-align: left; margin-top: 28px; }
.prose a { color: var(--sky); text-decoration: underline; }
.not-found { text-align: center; padding-block: 72px; display: grid; justify-items: center; gap: 8px; }
.not-found__code {
	font-family: var(--font-head); font-weight: 800; font-size: 6rem; line-height: 1; margin: 0;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.search-form--big input[type="search"] { width: min(420px, 70vw); padding: 12px 20px; }

/* ================= Footer ================= */
.site-footer { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .7); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-block: 36px; }
.site-footer__brand p { color: var(--muted); margin: 6px 0 0; max-width: 42ch; font-size: .92rem; }
.site-footer__h { font-size: .95rem; margin: 0 0 10px; color: var(--text); }
.site-footer__genres { max-width: 520px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__nav a, .socials a, .site-footer__genres a { color: var(--muted); font-size: .92rem; }
.site-footer__nav a:hover, .socials a:hover, .site-footer__genres a:hover { color: var(--pink); }
.site-footer__copy { padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: .85rem; }


/* ================= Ads ================= */
.ad { margin: 20px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad__label { display: block; font-size: .68rem; letter-spacing: .04em; color: var(--muted); opacity: .7; margin-bottom: 4px; }
.ad__body { display: flex; justify-content: center; align-items: center; max-width: 100%; overflow: hidden; }
.ad__body iframe, .ad__body img, .ad__body ins { max-width: 100% !important; }
.site-main > .ad--header { margin-top: 16px; }
.watch__main > .ad:first-child { margin-top: 0; }
.watch__side .ad { margin: 0; }
.ad-sticky {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
	display: flex; justify-content: center; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
	background: rgba(10, 10, 10, .96); border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
}
.ad-sticky__body { max-width: 100%; overflow: hidden; }
.ad-sticky__close {
	position: absolute; top: -30px; inset-inline-start: 8px; width: 30px; height: 30px; border-radius: 8px 8px 0 0;
	background: rgba(10, 10, 10, .96); border: 1px solid var(--line); border-bottom: 0; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}
body.has-sticky-ad { padding-bottom: 70px; }

/* ================= Forms (contact / DMCA) ================= */
.sk-form { max-width: 720px; margin-top: 16px; }
.sk-form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.sk-form input[type="text"], .sk-form input[type="email"], .sk-form input[type="url"], .sk-form textarea {
	width: 100%; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; font-size: 16px;
}
.sk-form input:focus, .sk-form textarea:focus { border-color: var(--sky); }
.sk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sk-form__check label { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.sk-form__check input { margin-top: 6px; }
.sk-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
.form-note { padding: 12px 16px; border-radius: var(--r-sm); margin: 12px 0; font-weight: 600; }
.form-note--ok { background: rgba(70, 211, 105, .12); border: 1px solid rgba(70, 211, 105, .4); color: var(--live); }
.form-note--err { background: rgba(229, 9, 20, .12); border: 1px solid rgba(229, 9, 20, .4); color: #ff6b72; }
.prose h2 { font-family: var(--font-head); font-size: 1.2rem; margin: 28px 0 8px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 4px; }

/* ================= Footer logo ================= */
.site-footer__logo img { height: 36px; width: auto; max-width: none; margin-bottom: 14px; }
.site-footer__brand { max-width: 460px; }
.site-footer__brand .site-footer__h { margin-top: 4px; }
.site-footer__nav ul { flex-direction: column; gap: 6px; }
.socials { margin-top: 14px !important; }
.site-footer__copy { text-align: center; }

/* ================= Mobile header: compact, search on demand ================= */
.search-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
	.watch { grid-template-columns: 1fr; }
	.watch__side { position: static; }
	.side-eps ol { max-height: 360px; }
}
@media (max-width: 900px) {
	.menu-toggle, .search-toggle { display: grid; place-items: center; }
	.menu-toggle { margin-inline-start: 0; }
	.search-toggle { margin-inline-start: auto; }
	.logo img { height: 34px; }
	.site-header .search-form { display: none; }
	.site-header.search-open .search-form { display: flex; }
	.site-footer__inner { flex-direction: column; }
	.site-footer__brand, .site-footer__genres { max-width: none; }
	.site-header__inner { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
	.nav { display: none; flex-basis: 100%; order: 3; }
	.nav.is-open { display: block; }
	.nav > ul { flex-direction: column; padding-bottom: 8px; }
	.nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; background: none; padding-inline-start: 16px; }
	.search-form { order: 4; flex-basis: 100%; }
	.search-form input[type="search"] { flex: 1; width: auto; }
	.anime-head { grid-template-columns: 170px 1fr; gap: 22px; }
}
@media (max-width: 640px) {
	body { background-attachment: scroll; }
	.wrap { padding-inline: 14px; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 12px; }
	.anime-head { grid-template-columns: 1fr; }
	.anime-head__poster { max-width: 200px; }
	.ep-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
	.ep-nav .btn { flex: 1; justify-content: center; }
	.filters select { min-width: 0; width: 100%; }
	.filters__item { flex: 1 1 140px; }
	.player { border-radius: 0; margin-inline: -14px; }
	.logo img { height: 30px; }
	.sk-form__row { grid-template-columns: 1fr; }
	.section { padding-block: 24px; }
	.section__title { font-size: 1.12rem; }
	.page-title { font-size: 1.3rem; }
	.card__title { font-size: .9rem; }
	.ep-tag { min-width: 50px; padding: 4px 10px 6px; bottom: 12px; }
	.ep-tag b { font-size: 1.3rem; }
	.servers button { padding: 9px 16px; }
	.ep-list a { padding: 13px 6px; }
	.intro { padding-top: 22px; }
	.intro__genres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; width: calc(100% + 28px); }
	.intro__genres::-webkit-scrollbar { display: none; }
	.chip { white-space: nowrap; }
	.anime-head__poster { margin-inline: auto; }
	.anime-head__actions .btn { flex: 1; justify-content: center; }
	.downloads__list li { flex-wrap: wrap; }
}
/* ================= Small hover & press effects ================= */
a, button, .btn, .chip, .card__media, .rail__btn, .hero__btn, .page-numbers, .icon-btn,
.servers button, .ep-list a, .side-eps a, .mini-anime, .search-form, .downloads__list li, .filters select {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, filter .2s ease, opacity .2s ease;
}
/* Buttons: a bit brighter and lifted on hover, pressed on click */
.btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn:active { filter: brightness(.95); transform: translateY(0) scale(.98); }
.btn--ghost:hover { filter: none; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .75); }
.chip:active, .servers button:active, .ep-list a:active, .page-numbers:active, .rail__btn:active, .hero__btn:active { transform: scale(.96); }
/* Header */
.logo:hover img { opacity: .85; }
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::after {
	content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px;
	background: var(--pink); transform: scaleX(0); transition: transform .25s ease;
}
.nav > ul > li > a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.search-form:hover { border-color: rgba(255, 255, 255, .24); }
.search-form button:hover, .search-toggle:hover, .menu-toggle:hover { color: var(--pink); }
/* Cards: title turns red with the poster hover */
.card__title a:hover, .card__media:hover + .card__body .card__title a { color: var(--pink); }
.card__media:hover img { filter: brightness(1.08); }
/* Links with arrows */
.section__more .icon { transition: transform .2s ease; }
.section__more:hover .icon { transform: translateX(-3px); }
.hero__genres a:hover, .page-desc a:hover, .ep-about a:hover { color: #fff; }
/* Watch page & lists */
.servers button:hover { background: rgba(229, 9, 20, .12); color: #fff; }
.page-numbers:hover { background: rgba(229, 9, 20, .12); }
.downloads__list li:hover { border-color: rgba(229, 9, 20, .5); }
.filters select:hover { border-color: #4a4a4a; }
.mini-anime:hover img { filter: brightness(1.1); }
:focus-visible { outline-color: var(--pink); }
@media (hover: none) {
	.btn:hover, .card__media:hover { transform: none; } /* no "stuck" hover on phones */
}

/* Laptops with short screens: tighter slider so long descriptions fit */
@media (min-width: 769px) and (max-height: 820px) {
	.hero__slide { min-height: clamp(430px, 74vh, 600px); }
	.hero__inner { padding-top: 40px; padding-bottom: 76px; gap: 36px; }
	.hero__title { font-size: clamp(1.7rem, 3vw, 2.5rem); }
	.hero__story { -webkit-line-clamp: 2; font-size: .98rem; margin-top: 10px; }
	.hero__meta { margin-bottom: 8px; }
	.hero__actions { margin-top: 18px; }
	.hero__poster { width: 190px; }
}

/* ================= Home: tablets & phones ================= */
@media (min-width: 1100px) {
	.grid--eps { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1100px) {
	.rail { grid-auto-columns: calc((100% - 3 * 16px) / 4.3); }
	.hero__poster { width: 190px; }
}
@media (max-width: 768px) {
	/* Slider: the poster fills the phone screen, text sits at the bottom */
	.hero__slide { min-height: max(500px, min(84vh, 640px)); }
	.hero__inner { padding-top: 120px; }
	.hero__slide--poster .hero__art img,
	.hero__slide--poster.is-active .hero__art img { filter: none; transform: none; }
	.hero__art img { object-position: center 18%; transform: none; }
	.hero__slide.is-active .hero__art img { transform: none; }
	.hero__shade {
		background:
			linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 10, .92) 26%, rgba(10, 10, 10, .45) 52%, rgba(10, 10, 10, 0) 72%),
			linear-gradient(to bottom, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 22%);
	}
	.hero__inner { padding-bottom: 54px; justify-content: center; }
	.hero__text { text-align: center; max-width: none; }
	.hero__meta { justify-content: center; font-size: .8rem; gap: 6px 10px; margin-bottom: 10px; }
	.hero__meta li + li::before { margin-inline-end: 10px; }
	.hero__title { font-size: 1.75rem; text-align: center; }
	.hero__alt { text-align: center; font-size: .85rem; }
	.hero__story { font-size: .92rem; line-height: 1.75; margin-top: 10px; -webkit-line-clamp: 2; }
	.hero__genres { justify-content: center; font-size: .82rem; margin-top: 8px; }
	.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
	.hero__actions .btn { justify-content: center; padding: 12px 10px; font-size: .95rem; }
	.hero__actions .btn:only-child { grid-column: 1 / -1; }
	.hero__poster, .hero__arrows { display: none; }
	.hero__controls { bottom: 20px; justify-content: center; }

	.rail { grid-auto-columns: 38%; gap: 12px; margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
	.rail__btn { display: none; }
	.grid--eps { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
	.grid--eps > :nth-child(n + 13) { display: none; }
	.section__all { display: flex; justify-content: center; margin-top: 20px; }
	.section--eps .section__head .section__more { display: none; }
	.card__type { top: 7px; inset-inline-end: 7px; font-size: .62rem; padding: 1px 6px; }
	.card__status { top: 7px; inset-inline-start: 7px; font-size: .64rem; padding: 2px 8px; }
	.card__count { bottom: 7px; inset-inline-start: 7px; font-size: .68rem; }
}
@media (max-width: 400px) {
	.hero__title { font-size: 1.5rem; }
	.grid--eps .card__title { font-size: .8rem; }
	.grid--eps .ep-tag { min-width: 40px; padding: 3px 7px 4px; bottom: 8px; }
	.grid--eps .ep-tag small { font-size: .56rem; }
	.grid--eps .ep-tag b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================= 2.0.0: anime information, FAQ, A–Z index ================= */
.info { margin-top: 8px; }
.info .section__title { margin: 0 0 14px; }
.facts__wide { grid-column: span 2; }
.facts b { display: block; line-height: 1.7; overflow-wrap: anywhere; }
.facts bdi { font-weight: 500; }

.story__en { margin-top: 10px; color: var(--muted); }
.story__en summary { cursor: pointer; color: var(--sky); font-size: .9rem; width: fit-content; }
.story__en div { margin-top: 8px; text-align: left; font-size: .95rem; line-height: 1.7; }

.faq__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; }
.faq__item summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--pink); font-size: 1.2rem; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0; padding: 0 16px 14px; color: #d6d6d6; line-height: 1.9; }

.side-eps__gap { text-align: center; color: var(--muted); padding: 2px 0; letter-spacing: 2px; }
.side-eps__all { display: block; text-align: center; margin-top: 10px; padding: 9px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--sky); }
.side-eps__all:hover { border-color: var(--pink); color: var(--text); }

.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; direction: ltr; justify-content: flex-end; padding: 8px 0; }
.az-nav a { min-width: 34px; text-align: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); text-decoration: none !important; font-weight: 600; }
.az-nav a:hover { border-color: var(--pink); background: rgba(229, 9, 20, .16); }
.az-group { margin-top: 22px; scroll-margin-top: 90px; }
.az-group__h { font-family: var(--font-head); color: var(--pink); border-bottom: 1px solid var(--line); padding-bottom: 6px; text-align: right; }
.az-group__h small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.prose .az-list { list-style: none; padding: 0; columns: 3 240px; column-gap: 28px; max-width: none; }
.az-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.prose .az-list a { text-decoration: none; color: var(--text); }
.prose .az-list a:hover { color: var(--sky); }
.az-list small { color: var(--muted); font-size: .78rem; margin-inline-start: 6px; }
.page-az .prose > * { max-width: none; }

@media (max-width: 640px) {
	.facts__wide { grid-column: 1 / -1; }
}

/* =========================================================================
 * 2.0.2 — Typography lock.
 * Page builders / plugins (Elementor "Global Kit", theme.json global styles, optimisation
 * plugins) print rules like ".elementor-kit-5 h1 { font-size: 64px; font-family: … }" that are
 * MORE specific than the theme's class rules, so headings became huge and lost the Arabic fonts.
 * These declarations are !important so the theme's own sizes always win.
 * ========================================================================= */
html { font-size: 100% !important; }
body.sk-theme { font-family: var(--font-body) !important; font-size: 16px !important; line-height: 1.75 !important; letter-spacing: normal !important; }
body.sk-theme h1, body.sk-theme h2, body.sk-theme h3, body.sk-theme h4, body.sk-theme h5, body.sk-theme h6 {
	letter-spacing: normal !important; text-transform: none !important; word-spacing: normal !important;
}
body.sk-theme h1 { font-size: 2rem !important; line-height: 1.45 !important; font-family: var(--font-head) !important; }
body.sk-theme h2 { font-size: 1.3rem !important; line-height: 1.45 !important; font-family: var(--font-head) !important; }
body.sk-theme h3 { font-size: 1.05rem !important; line-height: 1.5 !important; font-family: inherit !important; }
body.sk-theme h4, body.sk-theme h5, body.sk-theme h6 { font-size: 1rem !important; line-height: 1.5 !important; font-family: inherit !important; }

body.sk-theme .page-title       { font-family: var(--font-head) !important; font-weight: 800 !important; font-size: clamp(1.4rem, 2.6vw, 2rem) !important; line-height: 1.45 !important; }
body.sk-theme .intro__title     { font-family: var(--font-head) !important; font-weight: 800 !important; font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important; line-height: 1.5 !important; }
body.sk-theme .section__title   { font-family: var(--font-head) !important; font-weight: 800 !important; font-size: 1.3rem !important; line-height: 1.45 !important; }
body.sk-theme .anime-head__title { font-family: var(--font-head) !important; font-weight: 800 !important; font-size: clamp(1.5rem, 3vw, 2.4rem) !important; line-height: 1.35 !important; }
body.sk-theme .story__title,
body.sk-theme .ep-about__h      { font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 1rem !important; line-height: 1.6 !important; }
body.sk-theme .side-eps__title  { font-family: var(--font-head) !important; font-size: 1rem !important; line-height: 1.5 !important; }
body.sk-theme .site-footer__h   { font-family: var(--font-body) !important; font-weight: 700 !important; font-size: .95rem !important; line-height: 1.6 !important; }
body.sk-theme .card__title      { font-family: var(--font-body) !important; font-weight: 600 !important; font-size: .97rem !important; line-height: 1.5 !important; }
body.sk-theme .az-group__h      { font-family: var(--font-head) !important; font-size: 1.3rem !important; }
body.sk-theme .prose h2         { font-family: var(--font-head) !important; font-size: 1.2rem !important; }
body.sk-theme .section__title small { font-family: var(--font-body) !important; font-size: .9rem !important; }

@media (max-width: 640px) {
	body.sk-theme h1 { font-size: 1.4rem !important; }
	body.sk-theme .section__title { font-size: 1.12rem !important; }
	body.sk-theme .page-title { font-size: 1.3rem !important; }
	body.sk-theme .card__title { font-size: .9rem !important; }
}
@media (max-width: 400px) {
	body.sk-theme .grid--eps .card__title { font-size: .8rem !important; }
}

/* 2.0.2 — wordmark logo (ANIMETNA). Wide image, so it is a little shorter than the old icon+text logo. */
.logo img { height: 24px !important; width: auto !important; }
.site-footer__logo img { height: 22px !important; width: auto !important; }
@media (max-width: 900px) { .logo img { height: 20px !important; } }
@media (max-width: 400px) { .logo img { height: 18px !important; } }

/* 2.0.2 — MyAnimeList score badge */
.card__score {
	position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 1;
	display: inline-flex; align-items: center; gap: 3px;
	font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; direction: ltr;
	background: rgba(10, 10, 10, .8); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
}
.card__score span { color: #f5c518; }
@media (max-width: 640px) { .card__score { bottom: 7px; inset-inline-end: 7px; font-size: .68rem; } }

/* 2.0.2 — live search suggestions */
.search-form { position: relative; overflow: visible; }
.search-form.is-loading button { opacity: .5; }
.ls {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
	width: max(100%, 380px); max-height: min(70vh, 520px); overflow-y: auto;
	background: #141414; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .65); text-align: right;
}
.ls__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.ls__item:hover, .ls__item.is-active { background: rgba(229, 9, 20, .14); }
.ls__img { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--panel-2); }
.ls__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.45; }
.ls__title { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls__en, .ls__meta { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls__en { text-align: right; }
.ls__score { flex: none; font-size: .76rem; font-weight: 700; color: #f5c518; }
.ls__empty { margin: 0; padding: 12px; color: var(--muted); font-size: .9rem; }
.ls__all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--line); text-align: center; color: var(--sky); font-size: .88rem; text-decoration: none; }
.ls__all:hover, .ls__all.is-active { color: var(--text); }
@media (max-width: 900px) { .ls { width: 100%; inset-inline: 0; } }

/* 2.0.2 — /top-anime/ list */
.page-top .prose > * { max-width: none; }
.prose .top-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.top-list__item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.top-list__rank { flex: none; width: 34px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--pink); }
.top-list__img img { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.top-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prose .top-list__title { color: var(--text); text-decoration: none; font-weight: 600; }
.prose .top-list__title:hover { color: var(--sky); }
.top-list__text small { color: var(--muted); font-size: .8rem; }
.top-list__score { flex: none; font-weight: 700; color: #f5c518; }
/* the badge is dir=ltr, so logical "inline-end" would flip to the right and cover the episode count */
.card__score { inset-inline-end: auto !important; left: 10px; }
@media (max-width: 640px) { .card__score { left: 7px; } }
.admin-note { margin: 0; padding: 14px 16px; border: 1px dashed var(--pink); border-radius: 12px; color: #ddd; background: rgba(229, 9, 20, .06); }
.admin-note a { color: var(--sky); text-decoration: underline; }
.facts small { color: var(--muted); font-weight: 400; font-size: .8rem; }

/* 2.0.6 — contact page */
.contact { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; padding-bottom: 56px; }
.contact__info { display: grid; gap: 14px; }
.contact__card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.contact__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(229, 9, 20, .14); font-size: 1.1rem; margin-bottom: 8px; }
.contact__h { margin: 0 0 4px; font-family: var(--font-body) !important; font-size: 1rem !important; font-weight: 700 !important; line-height: 1.6 !important; }
.contact__card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.contact__card a { color: var(--sky); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__socials a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text) !important; font-size: .85rem; }
.contact__socials a:hover { border-color: var(--pink); }
.contact__form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.contact__form .section__title { margin: 0 0 6px; }
.contact .sk-form { max-width: none; margin-top: 10px; }
.contact .sk-form p { margin: 0 0 16px; }
.sk-form label { font-weight: 600; color: #d8d8d8; }
.sk-form .req { color: var(--pink); }
.sk-form input[type="text"], .sk-form input[type="email"], .sk-form input[type="url"], .sk-form textarea, .sk-form select {
	width: 100%; padding: 12px 14px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
	font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.sk-form select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-left: 40px;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a3a3a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 16px 50%; }
.sk-form textarea { resize: vertical; min-height: 150px; line-height: 1.8; }
.sk-form input:focus, .sk-form textarea:focus, .sk-form select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(229, 9, 20, .18); }
.sk-form ::placeholder { color: #6f6f6f; }
.sk-form__submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sk-form__submit small { color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) {
	.contact { grid-template-columns: 1fr; }
	.contact__form { order: -1; padding: 18px 16px 4px; }
}

/* 2.0.7 — movie watch card (instead of an episode list) */
.movie-watch__card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.movie-watch__play { position: relative; display: block; min-height: 240px; background: #000; }
.movie-watch__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .25s, transform .4s; }
.movie-watch__play:hover .movie-watch__bg { opacity: .7; transform: scale(1.03); }
.movie-watch__btn { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow); }
.movie-watch__btn .icon { width: 36px; height: 36px; color: #fff; }
.movie-watch__info { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.movie-watch__title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.5; }
.movie-watch__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.movie-watch__meta li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: #ddd; background: rgba(255, 255, 255, .03); }
.movie-watch__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.movie-watch__parts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.movie-watch__parts a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.movie-watch__parts a:hover { border-color: var(--pink); }
.ep-nav--movie { justify-content: center; }
@media (max-width: 800px) {
	.movie-watch__card { grid-template-columns: 1fr; }
	.movie-watch__play { min-height: 200px; }
	.movie-watch__info { padding: 18px 16px; }
}
