/* ==========================================================================
   ReelView – main stylesheet
   ========================================================================== */

:root {
	--rv-accent: #e50914;
	--rv-bg: #0a0a0f;
	--rv-surface: #14141b;
	--rv-surface-2: #1c1c26;
	--rv-text: #ffffff;
	--rv-muted: #a0a0b0;
	--rv-border: rgba(255, 255, 255, 0.08);
	--rv-gold: #f5c518;
	--rv-radius: 10px;
	--rv-header-h: 76px;
	--rv-font: "Poppins", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rv-gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--rv-accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 10px; top: 10px; z-index: 1000; background: #fff; color: #000; padding: 10px 16px; }

.rv-container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--rv-gutter); }
.rv-muted { color: var(--rv-muted); }
.rv-icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.rv-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 22px; border-radius: 6px; border: 1px solid transparent;
	font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: .2px;
	transition: transform .2s, background .2s, border-color .2s, color .2s;
	white-space: nowrap;
}
.rv-btn:hover { transform: translateY(-2px); }
.rv-btn--primary { background: var(--rv-accent); color: #fff; }
.rv-btn--primary:hover { color: #fff; filter: brightness(1.1); }
.rv-btn--glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); }
.rv-btn--glass:hover { background: rgba(255,255,255,.22); color: #fff; }
.rv-btn--ghost { border-color: var(--rv-border); background: transparent; }
.rv-btn--sm { padding: 8px 16px; font-size: 13px; }
.rv-btn--lg { padding: 14px 28px; font-size: 15px; }

.rv-icon-btn {
	width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
	display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.rv-icon-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.rv-header {
	position: sticky; top: 0; z-index: 100; height: var(--rv-header-h);
	background: rgba(10,10,15,.92); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rv-border);
	transition: background .3s, border-color .3s;
}
.rv-transparent-header .rv-header { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); border-color: transparent; backdrop-filter: none; }
.rv-transparent-header .rv-header.is-scrolled { background: rgba(10,10,15,.95); backdrop-filter: blur(12px); border-color: var(--rv-border); }
.admin-bar .rv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rv-header { top: 46px; } }

.rv-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.rv-header__toggle { display: none; border: 0; background: none; padding: 4px; }

.rv-logo { flex-shrink: 0; }
.rv-logo img { max-height: 44px; width: auto; }
.rv-logo__text { font-size: 26px; font-weight: 800; letter-spacing: -.5px; display: inline-flex; align-items: center; }
.rv-logo__mark { color: var(--rv-accent); font-size: 32px; margin-right: 1px; }

.rv-nav { flex: 1; }
.rv-nav__menu, .rv-nav .menu { list-style: none; display: flex; gap: 6px; }
.rv-nav li { position: relative; list-style: none; }
.rv-nav a { display: block; padding: 10px 14px; font-weight: 500; font-size: 15px; border-radius: 6px; }
.rv-nav .current-menu-item > a, .rv-nav .current_page_item > a, .rv-nav a:hover { color: var(--rv-accent); }
.rv-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.rv-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; padding: 10px; list-style: none;
	background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: var(--rv-radius);
	box-shadow: 0 20px 40px rgba(0,0,0,.5);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.rv-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.rv-nav li:hover > .sub-menu, .rv-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rv-nav .sub-menu a { font-size: 14px; padding: 8px 12px; }

.rv-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.rv-search-panel { position: absolute; top: 100%; left: 0; right: 0; padding: 18px 0; background: var(--rv-surface); border-bottom: 1px solid var(--rv-border); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.rv-searchform { display: flex; align-items: center; gap: 12px; background: var(--rv-surface-2); border: 1px solid var(--rv-border); border-radius: 8px; padding: 6px 6px 6px 16px; max-width: 760px; margin: 0 auto; }
.rv-searchform .rv-icon { color: var(--rv-muted); }
.rv-searchform input { flex: 1; background: transparent; border: 0; color: var(--rv-text); font: inherit; font-size: 16px; padding: 8px 0; outline: none; min-width: 0; }

.rv-nav-overlay { display: none; }

@media (max-width: 1024px) {
	.rv-header__toggle { display: inline-flex; }
	.rv-header__inner { gap: 14px; }
	/* backdrop-filter would trap the fixed drawer inside the header box */
	.rv-header, .rv-transparent-header .rv-header.is-scrolled { backdrop-filter: none; }
	.rv-header { background: rgba(10,10,15,.97); }
	.rv-nav {
		position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); z-index: 200;
		background: var(--rv-surface); padding: 80px 16px 24px; overflow-y: auto;
		transform: translateX(-100%); transition: transform .3s ease;
	}
	.rv-nav__menu, .rv-nav .menu { flex-direction: column; gap: 0; }
	.rv-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; display: none; }
	.rv-nav li.is-open > .sub-menu { display: block; }
	.rv-nav .menu-item-has-children > a::after { float: right; margin-top: 8px; }
	body.rv-nav-open .rv-nav { transform: none; }
	body.rv-nav-open .rv-nav-overlay { display: block; position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.6); }
	body.rv-nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
	.rv-header__actions .rv-btn { display: none; }
	.rv-logo__text { font-size: 22px; }
}

/* ---------- Hero ---------- */
.rv-hero { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; background: #000; }
.rv-hero__slides, .rv-hero__slide { position: absolute; inset: 0; }
.rv-hero__slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.rv-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.rv-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center top; transform: scale(1.06); transition: transform 8s linear; }
.rv-hero__slide.is-active .rv-hero__bg { transform: scale(1); }
.rv-hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(10,10,15,.95) 0%, rgba(10,10,15,.75) 35%, rgba(10,10,15,.1) 70%),
		linear-gradient(0deg, var(--rv-bg) 0%, transparent 35%);
}
.rv-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--rv-header-h); }
.rv-hero__content > * { max-width: 620px; }
.rv-hero__slide.is-active .rv-hero__content > * { animation: rv-rise .8s both; }
.rv-hero__slide.is-active .rv-hero__content > *:nth-child(2) { animation-delay: .08s; }
.rv-hero__slide.is-active .rv-hero__content > *:nth-child(3) { animation-delay: .16s; }
.rv-hero__slide.is-active .rv-hero__content > *:nth-child(4) { animation-delay: .24s; }
.rv-hero__slide.is-active .rv-hero__content > *:nth-child(n+5) { animation-delay: .32s; }
@keyframes rv-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.rv-hero__eyebrow { display: inline-block; align-self: flex-start; color: var(--rv-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 12px; padding-left: 14px; border-left: 3px solid var(--rv-accent); }
.rv-hero__title { font-size: clamp(36px, 5.5vw, 72px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; text-transform: uppercase; }
.rv-hero__logo { margin-bottom: 20px; }
.rv-hero__logo img { max-height: 160px; max-width: min(460px, 80vw); width: auto; filter: drop-shadow(0 4px 20px rgba(0,0,0,.6)); }
.rv-hero__text { color: #d4d4de; font-size: 16px; }
.rv-hero__credit { color: var(--rv-muted); font-size: 14px; }
.rv-hero__credit span { color: #fff; font-weight: 600; }
.rv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.rv-hero__thumbs { position: absolute; z-index: 3; right: var(--rv-gutter); bottom: 60px; display: flex; gap: 12px; }
.rv-hero__thumb { position: relative; width: 82px; aspect-ratio: 2/3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; opacity: .55; transition: .3s; }
.rv-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-hero__thumb:hover { opacity: .9; }
.rv-hero__thumb.is-active { opacity: 1; border-color: var(--rv-accent); transform: translateY(-6px); }
.rv-hero__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--rv-accent); }
.rv-hero__thumb.is-active .rv-hero__progress { animation: rv-progress var(--rv-autoplay, 6s) linear forwards; }
.rv-hero.is-paused .rv-hero__progress { animation-play-state: paused; }
@keyframes rv-progress { to { width: 100%; } }

.rv-hero__arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: .3s; }
.rv-hero:hover .rv-hero__arrow { opacity: 1; }
.rv-hero__arrow:hover { background: var(--rv-accent); border-color: var(--rv-accent); }
.rv-hero__arrow--prev { left: 16px; }
.rv-hero__arrow--next { right: 16px; }

@media (max-width: 900px) {
	.rv-hero { height: auto; min-height: 0; }
	.rv-hero__slides { position: relative; height: 82vh; min-height: 520px; }
	.rv-hero__shade { background: linear-gradient(0deg, var(--rv-bg) 5%, rgba(10,10,15,.75) 50%, rgba(10,10,15,.3) 100%); }
	.rv-hero__content { justify-content: flex-end; padding-bottom: 110px; }
	.rv-hero__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
	.rv-hero__credit { display: none; }
	.rv-hero__thumbs { left: var(--rv-gutter); right: auto; bottom: 24px; gap: 8px; overflow-x: auto; max-width: calc(100% - 2 * var(--rv-gutter)); }
	.rv-hero__thumb { width: 54px; flex-shrink: 0; }
	.rv-hero__thumb.is-active { transform: none; }
	.rv-hero__arrow { display: none; }
}

/* ---------- Meta / genres / pills ---------- */
.rv-meta { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 14px; color: #d4d4de; font-size: 14px; }
.rv-meta li { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.rv-meta li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--rv-accent); transform: translateY(-50%); }
.rv-meta__rating { color: var(--rv-gold); font-weight: 600; }
.rv-cert { border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 600; }

.rv-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rv-genres a { font-size: 12px; font-weight: 500; padding: 3px 12px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid var(--rv-border); }
.rv-genres a:hover { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }

/* ---------- Sections ---------- */
.rv-home { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 40px; }
.rv-section { padding: 28px 0; }
.rv-section__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rv-section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.rv-section__bar .rv-section__head { margin-bottom: 0; }
.rv-section__title { font-size: clamp(20px, 2.2vw, 26px); margin: 0; position: relative; padding-left: 14px; }
.rv-section__title::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px; border-radius: 2px; background: var(--rv-accent); }
.rv-section__more { display: inline-flex; align-items: center; gap: 4px; color: var(--rv-muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.rv-section__more:hover { color: var(--rv-accent); }

/* ---------- Carousel ---------- */
.rv-carousel { position: relative; }
.rv-carousel__nav { display: flex; gap: 8px; }
.rv-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rv-border); background: var(--rv-surface); display: inline-flex; align-items: center; justify-content: center; transition: .2s; }
.rv-arrow:hover:not(:disabled) { background: var(--rv-accent); border-color: var(--rv-accent); }
.rv-arrow:disabled { opacity: .35; cursor: default; }
.rv-carousel__nav--float { position: absolute; right: 0; top: -54px; }

.rv-row {
	--rv-cols: 7;
	--rv-gap: 16px;
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--rv-cols) - 1) * var(--rv-gap)) / var(--rv-cols));
	gap: var(--rv-gap); overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none;
	padding: 6px 0 10px; margin: -6px 0 -10px;
}
.rv-row::-webkit-scrollbar { display: none; }
.rv-row > * { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1400px) { .rv-row { --rv-cols: 6; } }
@media (max-width: 1200px) { .rv-row { --rv-cols: 5; } }
@media (max-width: 960px)  { .rv-row { --rv-cols: 4; } }
@media (max-width: 720px)  { .rv-row { --rv-cols: 3; --rv-gap: 12px; } }
@media (max-width: 480px)  { .rv-row { --rv-cols: 2.3; --rv-gap: 10px; } .rv-carousel__nav { display: none; } }

/* ---------- Poster card ---------- */
.rv-card { position: relative; }
.rv-card__poster { position: relative; aspect-ratio: 2/3; border-radius: var(--rv-radius); overflow: hidden; background: var(--rv-surface-2); }
.rv-card__img, .rv-card__img img { display: block; width: 100%; height: 100%; }
.rv-card__img img { object-fit: cover; transition: transform .5s ease; }
.rv-card:hover .rv-card__img img { transform: scale(1.08); }
.rv-card__rating { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.72); color: var(--rv-gold); font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.rv-card__type { position: absolute; bottom: 8px; left: 8px; z-index: 2; padding: 2px 8px; border-radius: 4px; background: var(--rv-accent); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.rv-card .rv-score { position: absolute; top: 8px; right: 8px; z-index: 2; }
.rv-card__overlay {
	position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.25)); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.rv-card:hover .rv-card__overlay, .rv-card__poster:focus-within .rv-card__overlay { opacity: 1; pointer-events: auto; }
.rv-card__play { width: 54px; height: 54px; border-radius: 50%; background: var(--rv-accent); color: #fff; display: flex; align-items: center; justify-content: center; transform: scale(.7); transition: transform .3s; box-shadow: 0 0 0 8px rgba(229,9,20,.25); }
.rv-card:hover .rv-card__play { transform: scale(1); }
.rv-card__play:hover { color: #fff; }
.rv-card__trailer { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.4); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.rv-card__trailer:hover { background: #fff; color: #000; }
.rv-card__trailer .rv-icon { width: 12px; height: 12px; }
.rv-card__body { padding: 10px 2px 0; }
.rv-card__title { font-size: 15px; font-weight: 600; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__meta { color: var(--rv-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Review score ring ---------- */
.rv-score {
	--rv-size: 40px;
	width: var(--rv-size); height: var(--rv-size); border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: conic-gradient(var(--rv-accent) calc(var(--rv-pct) * 1%), rgba(255,255,255,.15) 0);
	flex-shrink: 0;
}
.rv-score span { width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; background: #0d0d12; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.rv-score--large { --rv-size: 96px; }
.rv-score--large span { font-size: 28px; width: calc(100% - 10px); height: calc(100% - 10px); }

/* ---------- Spotlight ---------- */
.rv-spotlight__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 20px; }
.rv-spotlight__stage { position: relative; border-radius: 14px; overflow: hidden; min-height: 460px; background: var(--rv-surface); }
.rv-spotlight__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.rv-spotlight__panel.is-active { opacity: 1; visibility: visible; }
.rv-spotlight__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-spotlight__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,15,.95) 0%, rgba(10,10,15,.6) 45%, transparent 80%), linear-gradient(0deg, rgba(10,10,15,.8), transparent 50%); }
.rv-spotlight__info { position: absolute; z-index: 1; left: 0; bottom: 0; padding: clamp(20px, 3vw, 40px); max-width: 560px; }
.rv-spotlight__info h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 800; }
.rv-spotlight__info p { color: #d4d4de; }
.rv-spotlight__list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.rv-spotlight__item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 10px; border: 1px solid transparent; background: var(--rv-surface); text-align: left; transition: .25s; }
.rv-spotlight__item:hover { background: var(--rv-surface-2); }
.rv-spotlight__item.is-active { border-color: var(--rv-accent); background: var(--rv-surface-2); }
.rv-spotlight__item img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.rv-spotlight__item-text { min-width: 0; display: flex; flex-direction: column; }
.rv-spotlight__item strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-spotlight__item small { color: var(--rv-muted); font-size: 12px; }
@media (max-width: 960px) {
	.rv-spotlight__grid { grid-template-columns: 1fr; }
	.rv-spotlight__stage { min-height: 420px; }
	.rv-spotlight__list { flex-direction: row; overflow-x: auto; max-height: none; scrollbar-width: none; }
	.rv-spotlight__list li { flex: 0 0 240px; }
	.rv-spotlight__item { flex-direction: column; align-items: stretch; gap: 8px; }
	.rv-spotlight__item img { width: 100%; }
}

/* ---------- Top 10 ---------- */
.rv-row--top10 { --rv-cols: 5.5; }
@media (max-width: 1200px) { .rv-row--top10 { --rv-cols: 4.3; } }
@media (max-width: 720px)  { .rv-row--top10 { --rv-cols: 2.4; } }
.rv-top10__item { display: flex; align-items: flex-end; }
.rv-top10__num {
	font-size: clamp(110px, 11vw, 190px); font-weight: 800; line-height: .78; letter-spacing: -10px;
	color: var(--rv-bg); -webkit-text-stroke: 3px rgba(255,255,255,.6);
	margin-right: -18px; position: relative; z-index: 0; user-select: none; flex-shrink: 0;
	transition: -webkit-text-stroke-color .3s;
}
.rv-top10__item:hover .rv-top10__num { -webkit-text-stroke-color: var(--rv-accent); }
.rv-top10__poster { position: relative; z-index: 1; flex: 1; min-width: 0; aspect-ratio: 2/3; border-radius: var(--rv-radius); overflow: hidden; box-shadow: -12px 0 24px rgba(0,0,0,.6); }
.rv-top10__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rv-top10__item:hover .rv-top10__poster img { transform: scale(1.08); }

/* ---------- Series spotlight ---------- */
.rv-series { position: relative; padding: 60px 0; margin: 28px 0; overflow: hidden; }
.rv-series::before { content: ""; position: absolute; inset: 0; background-image: var(--rv-series-bg); background-size: cover; background-position: center; opacity: .35; }
.rv-series::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--rv-bg) 10%, rgba(10,10,15,.6) 60%, rgba(10,10,15,.85)), linear-gradient(0deg, var(--rv-bg), transparent 30%, transparent 70%, var(--rv-bg)); }
.rv-series > .rv-container { position: relative; z-index: 1; }
.rv-series__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.rv-series__info { max-width: 680px; }
.rv-series__title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; text-transform: uppercase; }
.rv-series__info p { color: #d4d4de; }

/* ---------- Seasons / episodes ---------- */
.rv-seasons__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.rv-seasons__tab { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--rv-border); background: rgba(255,255,255,.05); font-size: 14px; font-weight: 500; transition: .2s; }
.rv-seasons__tab:hover { border-color: var(--rv-accent); }
.rv-seasons__tab.is-active { background: var(--rv-accent); border-color: var(--rv-accent); }
.rv-seasons__panel { display: none; }
.rv-seasons__panel.is-active { display: block; animation: rv-fade .4s; }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
.rv-seasons .rv-carousel__nav--float { top: -64px; }
.rv-row--episodes { --rv-cols: 5; }
@media (max-width: 1200px) { .rv-row--episodes { --rv-cols: 4; } }
@media (max-width: 900px)  { .rv-row--episodes { --rv-cols: 2.5; } }
@media (max-width: 480px)  { .rv-row--episodes { --rv-cols: 1.5; } }
.rv-episode__img { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--rv-surface-2); margin-bottom: 10px; }
.rv-episode__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rv-episode:hover .rv-episode__img img { transform: scale(1.06); }
.rv-episode__num { position: absolute; top: 8px; left: 8px; background: var(--rv-accent); padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.rv-episode__time { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); padding: 1px 8px; border-radius: 4px; font-size: 12px; }
.rv-episode__title { font-size: 14px; font-weight: 600; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-episode__date { color: var(--rv-muted); font-size: 12px; margin: 0; }

/* ---------- Review cards ---------- */
.rv-reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.rv-rcard { position: relative; background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 12px; overflow: hidden; transition: transform .3s, border-color .3s; }
.rv-rcard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.rv-rcard__img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.rv-rcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rv-rcard:hover .rv-rcard__img img { transform: scale(1.06); }
.rv-rcard > .rv-score { position: absolute; top: 12px; right: 12px; --rv-size: 52px; }
.rv-rcard > .rv-score span { font-size: 16px; }
.rv-rcard__body { padding: 16px 18px 18px; }
.rv-rcard__title { font-size: 18px; }
.rv-rcard__verdict { color: var(--rv-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-rcard__foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--rv-muted); border-top: 1px solid var(--rv-border); padding-top: 12px; }

/* ---------- Single title ---------- */
.rv-single-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; padding: calc(var(--rv-header-h) + 60px) 0 50px; overflow: hidden; }
.rv-single-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.rv-single-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,15,.97) 0%, rgba(10,10,15,.8) 45%, rgba(10,10,15,.35)), linear-gradient(0deg, var(--rv-bg) 0%, transparent 40%); }
.rv-single-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: end; }
.rv-single-hero__poster { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6); aspect-ratio: 2/3; background: var(--rv-surface-2); }
.rv-single-hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.rv-single-hero__title { font-size: clamp(32px, 4.5vw, 60px); font-weight: 800; margin-bottom: 6px; }
.rv-single-hero__orig { color: var(--rv-muted); font-size: 15px; margin-bottom: 14px; }
.rv-single-hero__tagline { font-style: italic; color: #d4d4de; font-size: 17px; margin-bottom: 16px; }
.rv-single-hero__scores { display: flex; align-items: center; gap: 24px; margin: 18px 0 22px; flex-wrap: wrap; }
.rv-single-hero__scorebox { display: flex; align-items: center; gap: 12px; }
.rv-single-hero__scorebox .rv-score { --rv-size: 60px; }
.rv-single-hero__scorebox .rv-score span { font-size: 18px; }
.rv-single-hero__scorebox small { display: block; color: var(--rv-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.rv-single-hero__scorebox strong { font-size: 15px; }
.rv-tmdb-score { display: flex; align-items: center; gap: 10px; }
.rv-tmdb-score__val { font-size: 28px; font-weight: 800; color: var(--rv-gold); display: inline-flex; align-items: center; gap: 4px; }
.rv-tmdb-score__val small { font-size: 14px; color: var(--rv-muted); font-weight: 500; }

@media (max-width: 900px) {
	.rv-single-hero { min-height: 0; padding-top: calc(var(--rv-header-h) + 30px); }
	.rv-single-hero__inner { grid-template-columns: 1fr; gap: 24px; }
	.rv-single-hero__poster { width: 180px; }
}

.rv-single-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 40px 0 20px; }
@media (max-width: 1024px) { .rv-single-body { grid-template-columns: 1fr; } }
.rv-block { margin-bottom: 40px; }
.rv-block__title { font-size: 22px; position: relative; padding-left: 14px; margin-bottom: 16px; }
.rv-block__title::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px; border-radius: 2px; background: var(--rv-accent); }
.rv-overview { font-size: 16px; color: #d4d4de; }

.rv-verdict { display: flex; gap: 24px; align-items: center; background: var(--rv-surface); border: 1px solid var(--rv-border); border-left: 4px solid var(--rv-accent); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.rv-verdict__label { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--rv-accent); font-weight: 700; }
.rv-verdict__text { font-size: 19px; font-weight: 600; margin: 4px 0 0; }
.rv-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 640px) { .rv-proscons { grid-template-columns: 1fr; } .rv-verdict { flex-direction: column; align-items: flex-start; } }
.rv-proscons__box { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 12px; padding: 18px 20px; }
.rv-proscons__box h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.rv-proscons__box ul { list-style: none; }
.rv-proscons__box li { display: flex; gap: 8px; padding: 4px 0; color: #d4d4de; font-size: 14px; }
.rv-proscons__box--pros h4, .rv-proscons__box--pros li .rv-icon { color: #3ecf6e; }
.rv-proscons__box--cons h4, .rv-proscons__box--cons li .rv-icon { color: #ff5a5f; }
.rv-proscons__box li .rv-icon { margin-top: 4px; }

.rv-content { font-size: 16px; color: #e0e0ea; }
.rv-content a { color: var(--rv-accent); text-decoration: underline; }
.rv-content img { border-radius: 10px; margin: 1.2em 0; }
.rv-content h2, .rv-content h3 { margin-top: 1.5em; }
.rv-content blockquote { border-left: 4px solid var(--rv-accent); margin: 1.5em 0; padding: 4px 0 4px 20px; color: #fff; font-size: 18px; font-style: italic; }
.rv-content iframe { max-width: 100%; }

.rv-facts { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 12px; padding: 22px; position: sticky; top: calc(var(--rv-header-h) + 20px); }
.rv-facts dl { margin: 0; }
.rv-facts dt { color: var(--rv-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 14px; }
.rv-facts dt:first-child { margin-top: 0; }
.rv-facts dd { margin: 2px 0 0; font-weight: 500; }

.rv-cast { --rv-cols: 8; }
@media (max-width: 1200px) { .rv-cast { --rv-cols: 6; } }
@media (max-width: 720px)  { .rv-cast { --rv-cols: 3.5; } }
.rv-person { text-align: center; }
.rv-person__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--rv-surface-2); margin-bottom: 10px; border: 2px solid var(--rv-border); transition: border-color .3s; }
.rv-person:hover .rv-person__img { border-color: var(--rv-accent); }
.rv-person__img img { width: 100%; height: 100%; object-fit: cover; }
.rv-person__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.rv-person__role { display: block; font-size: 12px; color: var(--rv-muted); line-height: 1.3; }

.rv-trailer-embed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.rv-trailer-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-trailer-embed__cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.rv-trailer-embed__cover::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background .3s; }
.rv-trailer-embed__cover:hover::before { background: rgba(0,0,0,.15); }
.rv-trailer-embed__cover span { position: relative; width: 80px; height: 80px; border-radius: 50%; background: var(--rv-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(229,9,20,.25); }

/* ---------- Archive / grid ---------- */
.rv-page-head { padding: 50px 0 26px; border-bottom: 1px solid var(--rv-border); margin-bottom: 30px; background: radial-gradient(ellipse at top left, rgba(229,9,20,.18), transparent 60%); }
.rv-page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0; }
.rv-page-head p { color: var(--rv-muted); margin: 6px 0 0; }
.rv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rv-filter a { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--rv-border); font-size: 13px; }
.rv-filter a.is-active, .rv-filter a:hover { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px; }
@media (max-width: 480px) { .rv-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }

.navigation.pagination { margin: 48px 0 20px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--rv-surface); border: 1px solid var(--rv-border); font-weight: 500; }
.page-numbers.current, a.page-numbers:hover { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }

/* Blog list */
.rv-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.rv-post-card { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 12px; overflow: hidden; }
.rv-post-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--rv-surface-2); }
.rv-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rv-post-card__body { padding: 18px; }
.rv-post-card__body h2 { font-size: 18px; }
.rv-post-card__meta { color: var(--rv-muted); font-size: 12px; margin-bottom: 8px; }
.rv-post-card__body p { color: var(--rv-muted); font-size: 14px; }

.rv-article { max-width: 860px; margin: 0 auto; padding: 40px 0 20px; }
.rv-article__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.rv-article__thumb { border-radius: 14px; overflow: hidden; margin: 24px 0; }

.rv-empty { min-height: 70vh; display: flex; align-items: center; text-align: center; padding: 140px 0 60px; }
.rv-empty h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; }
.rv-empty p { color: var(--rv-muted); font-size: 17px; }
.rv-404__code { font-size: clamp(120px, 20vw, 220px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 3px var(--rv-accent); margin: 0; }
.rv-empty .rv-searchform { margin: 24px auto; }

/* ---------- Comments ---------- */
.rv-comments { padding: 20px 0 40px; }
.rv-comments .comment-list { list-style: none; }
.rv-comments .comment-list .children { list-style: none; padding-left: 30px; }
.rv-comments .comment-body { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.rv-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rv-comments .comment-author img { border-radius: 50%; }
.rv-comments .comment-metadata { font-size: 12px; color: var(--rv-muted); margin-bottom: 8px; }
.rv-comments .reply a { font-size: 13px; color: var(--rv-accent); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 8px; color: var(--rv-text); padding: 12px 14px; font: inherit;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--rv-accent); }
.comment-form .submit { background: var(--rv-accent); color: #fff; border: 0; border-radius: 6px; padding: 12px 26px; font-weight: 600; cursor: pointer; }
.comment-form label { display: block; font-size: 13px; color: var(--rv-muted); margin-bottom: 4px; }

/* ---------- Widgets ---------- */
.widget { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 17px; }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--rv-border); }
.widget li:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.rv-footer { background: #07070b; border-top: 1px solid var(--rv-border); margin-top: 40px; }
.rv-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
@media (max-width: 900px) { .rv-footer__grid { grid-template-columns: 1fr 1fr; } .rv-footer__brand { grid-column: 1 / -1; } }
.rv-footer__brand p { color: var(--rv-muted); max-width: 420px; margin-top: 14px; }
.rv-footer h4 { font-size: 16px; margin-bottom: 16px; }
.rv-footer ul { list-style: none; }
.rv-footer li { list-style: none; }
.rv-footer__col a { display: inline-block; padding: 5px 0; color: var(--rv-muted); }
.rv-footer__col a:hover { color: var(--rv-accent); }
.rv-footer__col .rv-nav__menu { display: block; }
.rv-social { display: flex; gap: 10px; }
.rv-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--rv-surface-2); display: flex; align-items: center; justify-content: center; transition: .2s; }
.rv-social a:hover { background: var(--rv-accent); color: #fff; }
.rv-footer__bottom { border-top: 1px solid var(--rv-border); padding: 18px 0; font-size: 13px; color: var(--rv-muted); }
.rv-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rv-footer__bottom p { margin: 0; }
.rv-tmdb-credit a { color: #01b4e4; }

.rv-backtop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--rv-accent); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; box-shadow: 0 10px 20px rgba(0,0,0,.4); }
.rv-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Trailer modal ---------- */
.rv-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rv-modal[hidden] { display: none; }
.rv-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); animation: rv-fade .3s; }
.rv-modal__box { position: relative; width: min(1100px, 100%); animation: rv-rise .35s; }
.rv-modal__video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.rv-modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-modal__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.rv-modal__close:hover { background: var(--rv-accent); }
body.rv-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Gutenberg alignment helpers */
.alignwide { margin-left: -60px; margin-right: -60px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { color: var(--rv-muted); font-size: 13px; text-align: center; }
