/* ==========================================================================
   TVApp theme
   ========================================================================== */

:root {
	--accent: #e50914;
	--bg: #000;
	--surface: #141414;
	--surface-2: #1e1e1e;
	--border: rgba(255, 255, 255, 0.1);
	--text: #fff;
	--body: #b5b5b5;
	--muted: #8f8f8f;
	--radius: 6px;
	--header-h: 80px;
	--gutter: clamp(16px, 2.8vw, 48px);
	--ease-out: cubic-bezier(0.39, 0.575, 0.565, 1);
	--font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Outfit", var(--font);
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { color: var(--text); font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.screen-reader-text,
.skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* Entrance animations --------------------------------------------------------
   Text in an active slide slides in from the right, one line after another. */
@keyframes tva-in-right { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes tva-in-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes tva-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes tva-fade { from { opacity: 0; } }
.is-active .anim,
.detail-hero .anim { animation: tva-in-right .6s var(--ease-out) both; }
.is-active .anim--1, .detail-hero .anim--1 { animation-delay: .2s; }
.is-active .anim--2, .detail-hero .anim--2 { animation-delay: .4s; }
.is-active .anim--3, .detail-hero .anim--3 { animation-delay: .6s; }
.is-active .anim--4, .detail-hero .anim--4 { animation-delay: .8s; }

/* Sections fade up as they scroll into view (JS adds .is-visible). */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Buttons ---------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .75em 1.5em; border-radius: 4px; border: 1px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
	transition: background-color .3s, border-color .3s, color .3s, transform .3s;
}
.btn .icon { width: 1em; height: 1em; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--accent); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--sm { padding: .5em 1.1em; font-size: 14px; }
.btn--lg { padding: .85em 1.7em; }
.btn.is-static { cursor: default; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; background: transparent; border: 0; border-radius: 50%; color: var(--text); transition: background-color .3s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: var(--text); }

.round-btn {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
	border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); color: #fff;
	transition: background-color .3s, border-color .3s, transform .3s;
}
.round-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.round-btn .icon { width: 20px; height: 20px; }
.round-btn--sm { width: 34px; height: 34px; }
.round-btn--sm .icon { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; padding: .15em .55em; border-radius: 3px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; }

/* Header ---------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(0, 0, 0, .9); backdrop-filter: blur(10px); transition: background-color .4s, box-shadow .4s; }
.has-hero .site-header { position: fixed; inset-inline: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); backdrop-filter: none; }
.site-header.is-scrolled,
.has-hero .site-header.is-scrolled { background: rgba(0, 0, 0, .96); box-shadow: 0 1px 0 var(--border); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-brand { flex: none; display: flex; align-items: center; gap: 16px; }
.site-brand .custom-logo { max-height: 44px; width: auto; }
.site-brand__text { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.site-brand__text:hover { color: var(--text); }
.site-brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; }
.site-brand__mark .icon { width: 18px; height: 18px; }
.header-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 4px; background: linear-gradient(90deg, #f5b301, #e07b00); color: #111; font-size: 13px; font-weight: 700; }
.header-pill:hover { color: #111; filter: brightness(1.1); }
.header-pill .icon { width: 14px; height: 14px; }

.nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
/* Small label above a section's menu name (e.g. "AR" over "Turkish Series"). */
/* Small label on the same line as a section's menu name (e.g. "AR  Turkish Series"). */
.menu-label { display: inline; }
.menu-badge { display: inline-block; margin-inline-end: 6px; padding: 1px 5px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; white-space: nowrap; vertical-align: middle; position: relative; top: -1px; }
.nav__list a:has(.menu-badge) { white-space: nowrap; }
.page-note { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.nav__list > li { position: relative; }
.nav__list a { display: block; padding: 10px 0; font-weight: 500; color: #fff; }
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a { color: var(--accent); }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 210px; list-style: none; margin: 0; padding: 8px 0;
	background: var(--surface); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { padding: 8px 20px; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__burger { display: none; }
@media (max-width: 1024px) {
	.nav { display: none; }
	.site-header__actions { margin-left: auto; }
	.site-header__burger { display: inline-grid; }
}
@media (max-width: 600px) {
	:root { --header-h: 62px; }
	.site-brand__text { font-size: 20px; }
	.site-brand__mark { width: 30px; height: 30px; }
	.site-header__account, .header-pill { display: none; }
}

/* Drawer ---------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); animation: tva-fade .3s both; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: var(--surface); padding: 72px 24px 24px; overflow-y: auto; animation: drawer-in .35s var(--ease-out) both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__close { position: absolute; top: 14px; right: 14px; }
.drawer__list, .drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__list .sub-menu { padding-left: 16px; }
.drawer__list a { display: block; padding: 12px 0; font-size: 18px; font-weight: 500; color: #fff; border-bottom: 1px solid var(--border); }
.drawer__account { width: 100%; margin-top: 24px; }

/* Search overlay ------------------------------------------------------------ */
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .96); display: flex; align-items: flex-start; padding-top: 18vh; animation: tva-fade .3s both; }
.search-overlay[hidden] { display: none; }
.search-overlay__close { position: absolute; top: 16px; right: 16px; }
.search-overlay__inner { max-width: 820px; animation: tva-in-up .5s var(--ease-out) .1s both; }
.search-overlay__hint { color: var(--muted); margin-top: 14px; text-align: center; }
.search-form { display: flex; align-items: center; gap: 10px; position: relative; }
.search-form__icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; display: flex; }
.search-form__field { flex: 1; min-width: 0; height: 54px; padding: 0 16px 0 48px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; }
.search-form__field:focus { outline: none; border-color: var(--accent); }
.search-form__submit { height: 54px; }
@media (max-width: 480px) { .search-form__submit { display: none; } }

/* Media / placeholders --------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__placeholder { display: grid; place-items: center; }
.media__placeholder span { font-family: var(--font-head); font-size: clamp(22px, 3vw, 44px); font-weight: 800; color: rgba(255, 255, 255, .82); }
.hero__bg .media__placeholder span,
.detail-hero__bg .media__placeholder span,
.vspot__bg .media__placeholder span,
.sspot__bg .media__placeholder span,
.player__empty .media__placeholder span { display: none; }

/* Facts + stars ------------------------------------------------------------------- */
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #fff; font-size: 14px; margin-bottom: 16px; }
.fact-icon { display: inline-flex; align-items: center; gap: 6px; }
.fact-icon .icon { width: 15px; height: 15px; }
.stars { --rating: 0%; position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, #f5b301 var(--rating), rgba(255, 255, 255, .25) var(--rating)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-badge { display: inline-flex; padding: 1px 7px; border-radius: 3px; background: #f5c518; color: #000; font-size: 12px; font-weight: 800; }
.dot-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: #fff; }
.dot-list li { position: relative; }
.dot-list li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); }

.hero__info { margin: 0 0 24px; display: grid; gap: 4px; font-size: 14px; }
.hero__info div { display: flex; gap: 8px; }
.hero__info dt { color: var(--accent); font-weight: 600; }
.hero__info dd { margin: 0; color: #fff; }
.hero__info a:hover { color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 10px; }

/* Hero slider -------------------------------------------------------------------------
   Slides move sideways; a card carousel on the right follows the active slide. */
/* overflow: clip (not hidden) so focus/scrollIntoView can't scroll the sliders sideways. */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 1000px; overflow: hidden; overflow: clip; background: #000; }
.hero__track { display: flex; height: 100%; transition: transform .9s cubic-bezier(.7, 0, .3, 1); will-change: transform; }
.hero__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; overflow: clip; }
.hero__bg { position: absolute; inset: 0; }
.hero__slide.is-active .hero__bg .media__img { animation: tva-zoom-out 8s ease-out both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .65) 38%, rgba(0, 0, 0, .1) 75%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%); }
.hero__content { position: relative; height: 100%; display: flex; align-items: center; padding-top: var(--header-h); }
.hero__text-wrap { max-width: 560px; }
.hero__title { font-size: clamp(38px, 4.6vw, 72px); font-weight: 700; text-transform: capitalize; margin-bottom: 14px; }
.hero__text { color: var(--body); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hero__side { position: absolute; z-index: 3; right: 0; bottom: 10%; width: 46%; display: flex; flex-direction: column; gap: 22px; overflow: hidden; overflow: clip; }
.hero__rail { display: flex; gap: 18px; transition: transform .9s cubic-bezier(.7, 0, .3, 1); will-change: transform; }
.hero__card {
	position: relative; flex: 0 0 clamp(180px, 15vw, 260px); aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: var(--radius);
	overflow: hidden; background: var(--surface); text-align: left; opacity: .55; transform: scale(.92); transform-origin: bottom left;
	transition: opacity .5s, transform .5s var(--ease-out), box-shadow .5s;
}
.hero__card:hover { opacity: .9; }
.hero__card.is-active { opacity: 1; transform: none; box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }
.hero__card-media { position: absolute; inset: 0; }
.hero__card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 55%); }
.hero__card-body { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; }
.hero__card-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.2; }
.hero__card-meta { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; }
.hero__card-meta .icon { width: 13px; height: 13px; }
.hero__arrows { display: flex; gap: 12px; }

@media (max-width: 1100px) {
	.hero__side { width: 40%; }
	.hero__card { flex-basis: 170px; }
}
@media (max-width: 900px) {
	.hero { height: auto; min-height: 0; max-height: none; }
	.hero__slide { height: 82vh; min-height: 540px; }
	.hero__shade { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .85) 45%, rgba(0, 0, 0, .25) 100%); }
	.hero__content { align-items: flex-end; padding-bottom: 120px; }
	.hero__side { left: var(--gutter); right: auto; bottom: 28px; width: auto; flex-direction: row; align-items: center; overflow: visible; }
	.hero__rail { display: none; }
}

/* Rows --------------------------------------------------------------------------------- */
.rows { position: relative; z-index: 1; padding-bottom: 24px; }
.row { margin-top: clamp(32px, 3.6vw, 56px); }
.row__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.row__title { font-size: clamp(20px, 1.8vw, 28px); margin: 0; text-transform: capitalize; }
.row__more { color: var(--accent); font-weight: 600; font-size: 14px; }
.row__more:hover { color: #fff; }

.row__viewport { position: relative; }
.row__track {
	--cols: 6; --gap: clamp(12px, 1.2vw, 20px);
	display: grid; grid-auto-flow: column; gap: var(--gap);
	grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 12px 0 18px; margin: -12px 0 -18px;
}
.row__track::-webkit-scrollbar { display: none; }
.row__track > * { scroll-snap-align: start; }
.row--landscape .row__track { --cols: 5; }
.row--person .row__track { --cols: 10; }
.row--genre .row__track { --cols: 6; }
@media (max-width: 1400px) { .row__track { --cols: 5; } .row--landscape .row__track { --cols: 4; } .row--person .row__track { --cols: 8; } .row--genre .row__track { --cols: 5; } }
@media (max-width: 1024px) { .row__track { --cols: 4; } .row--landscape .row__track { --cols: 3; } .row--person .row__track { --cols: 6; } .row--genre .row__track { --cols: 4; } }
@media (max-width: 680px) { .row__track { --cols: 2.4; } .row--landscape .row__track { --cols: 1.6; } .row--person .row__track { --cols: 3.6; } .row--genre .row__track { --cols: 2.2; } }

.row__nav {
	position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .7); color: #fff;
	opacity: 0; transition: opacity .3s, background-color .3s, border-color .3s;
}
.row__nav .icon { width: 18px; height: 18px; }
.row__nav--prev { left: calc(var(--gutter) / 2 - 8px); }
.row__nav--next { right: calc(var(--gutter) / 2 - 8px); }
.row__nav:hover { background: var(--accent); border-color: var(--accent); }
.row__viewport:hover .row__nav:not([disabled]),
.row__nav:focus-visible { opacity: 1; }
.row__nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .row__nav { display: none; } }

/* Cards -----------------------------------------------------------------------------------
   Hover: image zooms, a dark gradient fades in and the description slides up. */
.card { position: relative; min-width: 0; }
.card__link { display: block; color: #fff; }
.card__link:hover { color: #fff; }
.card__media { border-radius: var(--radius); }
.card--poster .card__media { aspect-ratio: 2 / 2.8; }
.card--landscape .card__media { aspect-ratio: 16 / 9; }
.card__media .media__img { transition: transform .6s ease-in-out; }
.card__media::after {
	content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s;
	background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), linear-gradient(0deg, #000 5%, rgba(0, 0, 0, 0) 65%);
}
.card__desc {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px; display: grid; gap: 6px; justify-items: start;
	opacity: 0; transform: translateY(100%); transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .4s;
}
.card__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: #ddd; }
.card__meta .icon { width: 13px; height: 13px; }
.card__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.card__btn .icon { width: 11px; height: 11px; }
.card__flag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card__caption { margin: 10px 0 0; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }

.card__link:hover .media__img,
.card__link:focus-visible .media__img { transform: scale(1.3); }
.card__link:hover .card__media::after,
.card__link:focus-visible .card__media::after { opacity: 1; }
.card__link:hover .card__desc,
.card__link:focus-visible .card__desc { opacity: 1; transform: none; }
.card__link:hover .card__caption { color: var(--accent); }

/* Top 10: big outlined number in the poster's corner; it drops away on hover. */
.card__rank {
	position: absolute; right: 8px; bottom: -6px; z-index: 2; font-family: var(--font-head); font-size: clamp(70px, 6.5vw, 120px); font-weight: 800; line-height: 1;
	color: rgba(0, 0, 0, .35); -webkit-text-stroke: 3px #fff; transition: transform .5s var(--ease-out), opacity .4s;
}
.card__link:hover .card__rank { transform: translateY(100%); opacity: 0; }

/* People ------------------------------------------------------------------------------------ */
.person__link { display: block; text-align: center; color: #fff; }
.person__media { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.person__media .media__img { transition: transform .6s ease-in-out, filter .6s; filter: grayscale(.15); }
.person__media .media__placeholder span { font-size: 24px; }
a.person__link:hover .media__img { transform: scale(1.12); filter: none; }
.person__name { margin: 10px 0 2px; font-size: 14px; font-weight: 600; transition: color .3s; }
a.person__link:hover .person__name { color: var(--accent); }
.person__role { margin: 0; font-size: 12px; color: var(--muted); }

/* Genre cards ---------------------------------------------------------------------------- */
.genre-card__link { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius); transition: transform .6s, box-shadow .6s; }
.genre-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .55); transition: background-color .4s; }
.genre-card__name { position: relative; z-index: 2; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); }
.genre-card__link:hover { color: #fff; transform: scale(1.06); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); z-index: 2; }
.genre-card__link:hover::before { background: rgba(229, 9, 20, .35); }

/* Vertical spotlight ------------------------------------------------------------------------- */
.vspot { position: relative; display: grid; grid-template-columns: minmax(240px, 22%) minmax(0, 1fr); margin-top: clamp(40px, 5vw, 72px); min-height: min(80vh, 760px); background: #000; }
.vspot__stage { position: relative; grid-column: 2; grid-row: 1; overflow: hidden; overflow: clip; }
.vspot__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.vspot__slide.is-active { opacity: 1; visibility: visible; }
.vspot__bg { position: absolute; inset: 0; }
.vspot__slide.is-active .vspot__bg .media__img { animation: tva-zoom-out 8s ease-out both; }
.vspot__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 40%); }
.vspot__content { position: absolute; left: clamp(24px, 3vw, 56px); top: 50%; transform: translateY(-50%); max-width: 520px; }
.vspot__genres { color: #fff; font-size: 14px; margin-bottom: 8px; }
.vspot__title { font-size: clamp(30px, 3.4vw, 54px); margin-bottom: 12px; }
.vspot__text { color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vspot__list { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px 24px var(--gutter); background: linear-gradient(90deg, #000, #0a0a0a); z-index: 2; }
.vspot__thumbs { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scrollbar-width: none; max-height: 620px; }
.vspot__thumbs::-webkit-scrollbar { display: none; }
.vspot__thumb { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: var(--surface); text-align: left; opacity: .6; transition: opacity .4s, border-color .4s; }
.vspot__thumb:hover { opacity: .9; }
.vspot__thumb.is-active { opacity: 1; border-color: var(--accent); }
.vspot__thumb-media { position: absolute; inset: 0; }
.vspot__thumb-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0) 60%); }
.vspot__thumb-media .media__placeholder span { display: none; }
.vspot__thumb-body { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 2px; }
.vspot__thumb-title { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vspot__thumb-meta { display: inline-flex; align-items: center; gap: 5px; color: #ddd; font-size: 12px; }
.vspot__thumb-meta .icon { width: 12px; height: 12px; }
@media (max-width: 900px) {
	.vspot { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.vspot__list { min-width: 0; }
	.vspot__stage { grid-column: 1; grid-row: 1; height: 70vh; min-height: 460px; }
	.vspot__shade { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .8) 45%, rgba(0, 0, 0, .2)); }
	.vspot__content { top: auto; bottom: 28px; transform: none; right: 24px; }
	.vspot__list { grid-row: 2; flex-direction: row; padding: 16px var(--gutter); }
	.vspot__thumbs { flex-direction: row; overflow-x: auto; max-height: none; }
	.vspot__thumb { width: 200px; }
	.vspot__nav { display: none; }
}

/* TV show spotlight ---------------------------------------------------------------------- */
.sspot { position: relative; margin-top: clamp(40px, 5vw, 72px); min-height: min(86vh, 820px); overflow: hidden; overflow: clip; display: grid; }
.sspot__slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.sspot__slide.is-active { opacity: 1; visibility: visible; }
.sspot__bg { position: absolute; inset: 0; }
.sspot__slide.is-active .sspot__bg .media__img { animation: tva-zoom-out 8s ease-out both; }
.sspot__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .25) 100%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 25%), linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 20%); }
.sspot__inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: 40px; padding-block: 80px 120px; }
.sspot__info { max-width: 560px; }
.sspot__kicker { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.sspot__title { font-size: clamp(32px, 3.8vw, 60px); margin-bottom: 14px; }
.sspot__text { color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sspot__meta { display: flex; gap: 18px; color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.sspot__meta span + span { position: relative; }
.sspot__meta span + span::before { content: ""; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); }
.sspot__panel { background: rgba(10, 10, 10, .92); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); max-height: 520px; display: flex; flex-direction: column; }
.sspot__panel-title { font-size: 18px; margin-bottom: 12px; }
.sspot__tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.sspot__tab { flex: none; padding: 8px 12px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.sspot__tab:hover { color: #fff; }
.sspot__tab.is-active { color: #fff; border-color: var(--accent); }
.sspot__episodes { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.sspot__episodes[hidden] { display: none; }
.sspot__ep { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; color: #fff; }
.sspot__ep-media { aspect-ratio: 16 / 9; border-radius: 4px; }
.sspot__ep-media .media__placeholder span { display: none; }
.sspot__ep-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s; }
.sspot__ep-play .icon { width: 22px; height: 22px; color: #fff; }
.sspot__ep:hover .sspot__ep-play { opacity: 1; }
.sspot__ep-body { display: grid; gap: 4px; min-width: 0; }
.sspot__ep-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.sspot__ep:hover .sspot__ep-title { color: var(--accent); }
.sspot__ep-meta { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.sspot__ep-meta .icon { width: 12px; height: 12px; }
.sspot__arrows { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; display: flex; gap: 12px; pointer-events: none; }
.sspot__arrows .round-btn { pointer-events: auto; }
@media (max-width: 900px) {
	.sspot { min-height: 0; }
	.sspot__inner { grid-template-columns: minmax(0, 1fr); padding-block: 64px 96px; }
	.sspot__panel { max-height: 420px; }
	.sspot__arrows { bottom: 28px; }
}

/* Page heads, grids, chips ----------------------------------------------------------------- */
.site-main { min-height: 60vh; }
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: 8px; }
.page-title { font-size: clamp(28px, 3.4vw, 44px); }
.page-desc { color: var(--muted); max-width: 760px; }
.page-search { max-width: 640px; margin-top: 12px; }
.section-title { font-size: clamp(20px, 1.8vw, 26px); margin: 40px 0 16px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 4px; margin-top: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 16px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: #ddd; font-size: 14px; font-weight: 500; transition: background-color .3s, border-color .3s, color .3s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 14vw, 230px), 1fr)); gap: 28px clamp(12px, 1.2vw, 20px); margin-top: 24px; }
.grid--people { grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 10vw, 170px), 1fr)); }

.pagination { margin: 48px 0 16px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); color: #fff; font-weight: 600; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); }
.pagination .page-numbers .icon { width: 18px; height: 18px; }

.empty-note { color: var(--muted); padding: 40px 0; }
.empty-state { text-align: center; padding: 120px var(--gutter) 80px; max-width: 760px; }
.empty-state p { color: var(--muted); }
.empty-state__code { font-size: 96px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.empty-state__search { margin: 28px auto; max-width: 560px; }

/* Detail page -------------------------------------------------------------------------- */
.detail-hero { position: relative; min-height: 100vh; max-height: 1000px; display: flex; align-items: center; overflow: hidden; }
.detail-hero__bg { position: absolute; inset: 0; }
.detail-hero__bg .media__img { animation: tva-zoom-out 9s ease-out both; }
.detail-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .1) 80%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%); }
.detail-hero__inner { position: relative; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px; }
.detail-hero__content { max-width: 640px; }
.detail-hero__title { font-size: clamp(38px, 4.6vw, 72px); font-weight: 700; margin-bottom: 14px; }
.readmore { margin-bottom: 14px; }
.readmore__text { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.readmore.is-open .readmore__text { -webkit-line-clamp: unset; display: block; }
.readmore__btn { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; }
.share-note { font-size: 13px; color: #fff; background: var(--surface-2); padding: 4px 10px; border-radius: 4px; }
@media (max-width: 760px) {
	.detail-hero { min-height: 80vh; align-items: flex-end; }
	.detail-hero__shade { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .85) 50%, rgba(0, 0, 0, .3) 100%); }
}

.details .prose { max-width: 860px; color: var(--body); }
.watch { margin-top: 8px; }
.player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player figure { margin: 0; }
.player__fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.player__empty { position: absolute; inset: 0; display: grid; place-items: center; }
.player__empty::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.player__empty p { position: relative; z-index: 1; margin: 0; padding: 0 24px; text-align: center; font-weight: 600; color: #fff; }

/* Person page */
.person-page { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(24px, 3vw, 48px); padding-top: calc(var(--header-h) / 2 + 24px); align-items: start; }
.person-page__photo { aspect-ratio: 3 / 4; border-radius: var(--radius); animation: tva-in-up .7s var(--ease-out) both; }
.person-page__body { animation: tva-in-right .7s var(--ease-out) .15s both; }
.person-page .prose { color: var(--body); max-width: 760px; }
@media (max-width: 640px) { .person-page { grid-template-columns: 1fr; } .person-page__photo { max-width: 220px; } }

/* Seasons + episodes (show / episode pages) ------------------------------------------------ */
.seasons__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.seasons__head .section-title { margin: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; padding: 8px 18px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; color: #ddd; transition: .3s; }
.tab:hover { color: #fff; }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.episode-list[hidden] { display: none; }
.episode { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; color: #fff; transition: transform .4s var(--ease-out), box-shadow .4s; }
.episode:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
.episode.is-current { box-shadow: 0 0 0 2px var(--accent); }
.episode__media { display: block; aspect-ratio: 16 / 9; }
.episode__media .media__img { transition: transform .6s; }
.episode:hover .episode__media .media__img { transform: scale(1.1); }
.episode__media .media__placeholder span { display: none; }
.episode__play { position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); color: #fff; transition: background-color .3s, border-color .3s, transform .3s; }
.episode__play .icon { width: 20px; height: 20px; margin-left: 3px; }
.episode:hover .episode__play { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.episode__time { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 2px 8px; border-radius: 3px; background: rgba(0, 0, 0, .75); font-size: 12px; font-weight: 600; }
.episode__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.episode__num { color: var(--accent); font-size: 13px; font-weight: 600; }
.episode__title { font-weight: 600; font-size: 16px; }
.episode__text { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.episode-page { padding-top: calc(var(--header-h) / 2); }
.episode-page__info { margin-top: 24px; max-width: 900px; }
.episode-page__show { color: var(--accent); font-weight: 600; }
.episode-page__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.episode-page .prose { color: var(--body); }

/* Modal (trailer) -------------------------------------------------------------------- */
.modal { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: var(--radius); background: #000; color: var(--text); overflow: visible; }
.modal[open] { animation: tva-in-up .4s var(--ease-out) both; }
.modal::backdrop { background: rgba(0, 0, 0, .88); }
.modal__close { position: absolute; top: -50px; right: 0; color: #fff; }

/* Articles / prose ---------------------------------------------------------------------- */
.article { max-width: 900px; padding-bottom: 40px; }
.article__meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.article__image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose img { height: auto; border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 3px solid var(--accent); }
.page-content { padding-block: 40px; }

.post-list { display: grid; gap: 28px; margin-top: 24px; }
.post-summary { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; }
.post-summary:not(:has(.post-summary__media)) { grid-template-columns: 1fr; }
.post-summary__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.post-summary__title { font-size: 22px; }
@media (max-width: 640px) { .post-summary { grid-template-columns: 1fr; } }

/* Comments ---------------------------------------------------------------------------- */
.comments { max-width: 860px; padding-bottom: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--muted); }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 500; color: #fff; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--accent); }

/* Footer ------------------------------------------------------------------------------- */
.site-footer { margin-top: 72px; background: #0a0a0a; border-top: 1px solid var(--border); }
.site-footer__grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; padding-block: 64px 40px; }
.site-footer__contact { margin: 18px 0 14px; font-size: 14px; }
.site-footer__contact a { color: #fff; }
.site-footer__label { margin: 0; font-size: 14px; }
.site-footer__phone { display: inline-block; margin-top: 2px; font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; }
.site-footer__title { font-size: 17px; margin-bottom: 18px; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.site-footer__menu a { color: var(--body); transition: color .3s, padding .3s; }
.site-footer__menu a:hover { color: var(--accent); padding-left: 4px; }
.site-footer__newsletter { margin-bottom: 20px; }
.site-footer__newsletter input[type="email"],
.site-footer__newsletter input[type="text"] { width: 100%; padding: 11px 14px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: #fff; }
.site-footer__newsletter input[type="submit"],
.site-footer__newsletter button { margin-top: 8px; padding: 11px 18px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social__label { color: #fff; font-weight: 600; font-size: 14px; margin-right: 4px; }
.social__link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: #fff; transition: background-color .3s, transform .3s; }
.social__link:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.social__link .icon { width: 16px; height: 16px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--border); font-size: 14px; }
.site-footer__copy { margin: 0; }
.apps { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.apps__label { color: #fff; font-weight: 600; }
.apps__links { display: flex; gap: 10px; }
.app-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); background: #000; color: #fff; line-height: 1.1; font-weight: 600; font-size: 15px; transition: border-color .3s, transform .3s; }
.app-btn small { display: block; font-size: 10px; font-weight: 400; color: #ccc; }
.app-btn .icon { width: 22px; height: 22px; }
.app-btn:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* Back to top ------------------------------------------------------------------------------ */
.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 140; display: grid; place-items: center; width: 44px; height: 44px;
	border: 0; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(229, 9, 20, .35);
	opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .4s, visibility .4s, transform .4s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top .icon { width: 20px; height: 20px; }

/* Bottom bar (phones) ---------------------------------------------------------------------- */
.bottom-bar { display: none; }
@media (max-width: 768px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
	.bottom-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: grid; grid-template-columns: repeat(5, 1fr);
		height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: rgba(10, 10, 10, .97); border-top: 1px solid var(--border); backdrop-filter: blur(10px);
	}
	.bottom-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: #9a9a9a; font-size: 11px; font-weight: 500; }
	.bottom-bar__item .icon { width: 22px; height: 22px; }
	.bottom-bar__item.is-active, .bottom-bar__item:hover { color: #fff; }
	.bottom-bar__item.is-active .icon { color: var(--accent); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

/* WordPress core classes ------------------------------------------------------------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { color: var(--muted); font-size: 14px; }

/* Language switch ---------------------------------------------------------------- */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .3s, background-color .3s; }
.lang-switch:hover { color: #fff; border-color: var(--accent); background: rgba(229, 9, 20, .15); }
.lang-switch[lang="ar"] { font-family: "Cairo", var(--font); }
.lang-switch--drawer { width: 100%; height: 44px; margin-top: 12px; font-size: 16px; }
@media (max-width: 600px) { .lang-switch--header { height: 30px; padding: 0 10px; font-size: 13px; } }

/* Right-to-left (Arabic) ------------------------------------------------------------
   Logical layout (flex, grid) mirrors automatically; these rules mirror the rest. */
[dir="rtl"] body { font-family: "Cairo", var(--font); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5,
[dir="rtl"] .site-brand__text, [dir="rtl"] .hero__card-title, [dir="rtl"] .genre-card__name,
[dir="rtl"] .site-footer__phone { font-family: "Cairo", var(--font-head); }
/* Arabic letters must stay joined: no letter spacing, no forced capitals. */
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .hero__kicker, [dir="rtl"] .hero__title, [dir="rtl"] .row__title, [dir="rtl"] .detail-hero__title { text-transform: none; }
[dir="rtl"] .hero__title, [dir="rtl"] .detail-hero__title { line-height: 1.3; }

/* Chevron icons point the other way. */
[dir="rtl"] .row__nav .icon, [dir="rtl"] .hero__arrows .icon, [dir="rtl"] .sspot__arrows .icon,
[dir="rtl"] .episode-page__nav .icon, [dir="rtl"] .pagination .icon { transform: scaleX(-1); }

/* Shades: dark side follows the text (right). */
[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .65) 38%, rgba(0, 0, 0, .1) 75%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%); }
[dir="rtl"] .detail-hero__shade { background: linear-gradient(270deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .1) 80%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%); }
[dir="rtl"] .vspot__shade { background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 40%); }
[dir="rtl"] .sspot__shade { background: linear-gradient(270deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .25) 100%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 25%), linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 20%); }
[dir="rtl"] .vspot__list { background: linear-gradient(270deg, #000, #0a0a0a); }

/* Positions. */
[dir="rtl"] .hero__side { right: auto; left: 0; }
[dir="rtl"] .hero__card { transform-origin: bottom right; }
[dir="rtl"] .vspot__content { left: auto; right: clamp(24px, 3vw, 56px); }
[dir="rtl"] .card__rank { right: auto; left: 8px; }
[dir="rtl"] .card__flag { left: auto; right: 10px; }
[dir="rtl"] .episode__time { right: auto; left: 8px; }
[dir="rtl"] .row__nav--prev { left: auto; right: calc(var(--gutter) / 2 - 8px); }
[dir="rtl"] .row__nav--next { right: auto; left: calc(var(--gutter) / 2 - 8px); }
[dir="rtl"] .dot-list li + li::before,
[dir="rtl"] .sspot__meta span + span::before { left: auto; right: -11px; }
[dir="rtl"] .search-form__icon { left: auto; right: 16px; }
[dir="rtl"] .search-form__field { padding: 0 48px 0 16px; }
[dir="rtl"] .nav__list .sub-menu { left: auto; right: -16px; }
[dir="rtl"] .site-footer__menu a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .drawer__panel { right: auto; left: 0; animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } }
[dir="rtl"] .drawer__close { right: auto; left: 14px; }
[dir="rtl"] .to-top { right: auto; left: 24px; }
[dir="rtl"] .modal__close { right: auto; left: 0; }
[dir="rtl"] .comment-list .children { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .comment-author img { float: right; margin-right: 0; margin-left: 12px; }
[dir="rtl"] .stars::before { background: linear-gradient(270deg, #f5b301 var(--rating), rgba(255, 255, 255, .25) var(--rating)); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 900px) {
	[dir="rtl"] .hero__side { left: auto; right: var(--gutter); }
}
@media (max-width: 768px) {
	[dir="rtl"] .to-top { left: 16px; }
}
