:root {
	--wr-bg: #0b0b0b;
	--wr-header: #000;
	--wr-card: #141414;
	--wr-text: #f4f4f5;
	--wr-muted: #a1a1aa;
	--wr-line: #27272a;
	--wr-accent: #22c55e;
	--wr-yellow: #facc15;
	--wr-radius: 10px;
	--wr-max: 1280px;
	--wr-header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body.watchreel {
	margin: 0;
	background: var(--wr-bg);
	color: var(--wr-text);
	font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
	line-height: 1.45;
	min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--wr-header);
	border-bottom: 1px solid #111;
}

.site-header__inner {
	max-width: var(--wr-max);
	margin: 0 auto;
	min-height: var(--wr-header-h);
	padding: 0 24px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	letter-spacing: 0.04em;
	font-size: 22px;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-logo img { max-height: 40px; width: auto; }

.site-logo__play { color: var(--wr-accent); display: flex; }

.site-nav__list {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.site-nav__link,
.site-nav .cat-item a {
	display: block;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.92;
}

.site-nav__item.is-active .site-nav__link,
.site-nav__link:hover {
	opacity: 1;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 12px;
}

.search-form {
	display: flex;
	align-items: center;
	background: #141414;
	border: 1px solid #222;
	border-radius: 999px;
	overflow: hidden;
}

.search-form input {
	background: transparent;
	border: 0;
	color: #fff;
	padding: 8px 12px 8px 14px;
	width: 160px;
	font: inherit;
	font-size: 13px;
	outline: none;
}

.search-form button {
	background: transparent;
	border: 0;
	color: #a1a1aa;
	padding: 8px 12px 8px 0;
	cursor: pointer;
}

.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wr-accent);
	color: #052e16;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 8px;
	padding: 10px 16px;
	white-space: nowrap;
}

.btn-cta:hover { filter: brightness(1.08); }

.btn-ghost {
	display: inline-flex;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	color: #d4d4d8;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
}

/* Catalog */
.site-main {
	max-width: var(--wr-max);
	margin: 0 auto;
	padding: 28px 24px 64px;
}

.catalog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.catalog__title {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.catalog__more {
	color: var(--wr-muted);
	font-size: 13px;
	font-weight: 600;
}

.catalog--secondary,
.catalog--related { margin-top: 48px; }

.sort-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sort-tabs__item {
	border: 1px solid #3f3f46;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #e4e4e7;
	background: transparent;
}

.sort-tabs__item.is-active {
	background: var(--wr-yellow);
	border-color: var(--wr-yellow);
	color: #111;
}

/* Grid */
.video-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 14px;
}

.video-card__poster {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--wr-radius);
	overflow: hidden;
	background: var(--wr-card);
}

.video-card__poster img,
.video-card__trailer {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-card__trailer {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.video-card:hover .video-card__trailer.is-ready { opacity: 1; }

.video-card__poster img {
	transition: transform .35s ease;
}

.video-card:hover .video-card__poster img { transform: scale(1.06); }

.video-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--wr-accent);
	color: #052e16;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 3px 7px;
	border-radius: 4px;
}

.watch-head__kicker .video-card__badge { position: static; }

.video-card__duration {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(0,0,0,.72);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 7px;
	border-radius: 4px;
}

.video-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .2s ease;
}

.video-card:hover .video-card__play { opacity: 1; }

.video-card__title {
	margin: 10px 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

.video-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--wr-muted);
	font-size: 13px;
}

.video-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #e4e4e7;
}

/* Player */
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--wr-muted);
	font-size: 13px;
	margin-bottom: 16px;
}

.player-shell { margin-bottom: 28px; }

.player-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.player-frame iframe,
.player-frame video,
.player-frame embed,
.player-frame object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.player-frame--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--wr-muted);
	padding: 24px;
}

.player-frame--empty img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .35;
}

.player-frame--empty p { position: relative; max-width: 420px; text-align: center; }

.watch-head {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px;
	margin-bottom: 28px;
}

.watch-head__poster {
	width: 180px;
	border-radius: 10px;
	object-fit: cover;
	aspect-ratio: 2 / 3;
	background: var(--wr-card);
}

.watch-head__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	color: var(--wr-muted);
	font-size: 13px;
	margin: 0 0 8px;
}

.watch-head__title {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.watch-head__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
}

.watch-head__rating span { color: var(--wr-muted); font-size: 13px; }

.watch-head__content { color: #d4d4d8; max-width: 70ch; }
.watch-head__content p { margin: 0 0 12px; }

.watch-block { margin: 24px 0; }
.watch-block h2 { font-size: 16px; margin: 0 0 10px; }

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chip {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: #181818;
	border: 1px solid #2a2a2a;
	font-size: 13px;
}

.chip:hover { border-color: var(--wr-accent); color: #fff; }

.still-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.still-grid img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	background: #111;
}

/* Empty / pages */
.empty-state {
	text-align: center;
	padding: 72px 16px;
	color: var(--wr-muted);
}

.empty-state h1,
.empty-state h2 { color: #fff; }

.empty-state__code {
	font-size: 56px;
	font-weight: 800;
	color: var(--wr-accent);
	margin: 0;
}

.empty-state .search-form {
	margin: 16px auto;
	max-width: 320px;
	justify-content: center;
}

.empty-state .search-form input { width: 100%; }

.plain-page { max-width: 720px; }
.plain-page h1 { font-size: 32px; margin-top: 0; }
.plain-page__body { color: #d4d4d8; }

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.nav-links a,
.nav-links span {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 0 10px;
}

.nav-links .current { background: var(--wr-yellow); color: #111; border-color: var(--wr-yellow); }

.site-footer {
	border-top: 1px solid #171717;
	padding: 28px 24px 40px;
	color: var(--wr-muted);
	font-size: 13px;
}

.site-footer__inner {
	max-width: var(--wr-max);
	margin: 0 auto;
}

.site-footer .site-logo { font-size: 16px; margin-bottom: 10px; }

.footer-nav {
	display: flex;
	gap: 16px;
	list-style: none;
	padding: 0;
}

/* Mobile */
@media (max-width: 1100px) {
	.video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
	.site-header__inner {
		grid-template-columns: auto auto 1fr;
	}

	.nav-toggle { display: flex; order: 2; justify-self: end; }

	.site-header__tools { display: none; }

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: var(--wr-header-h);
		background: #000;
		padding: 12px 20px 20px;
		border-bottom: 1px solid #222;
	}

	body.nav-open .site-nav { display: block; }

	.site-nav__list { display: block; }

	.site-nav__link { padding: 12px 0; border-bottom: 1px solid #181818; }

	.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.watch-head { grid-template-columns: 1fr; }

	.watch-head__poster { width: 140px; }

	.catalog__title { font-size: 22px; }

	.still-grid { grid-template-columns: repeat(2, 1fr); }

	.site-main { padding: 20px 16px 48px; }
}

@media (min-width: 801px) {
	body.nav-open .site-header__tools .search-form { display: flex; }
}
