/**
 * MK Theme — Video First (Unified) template CSS.
 *
 * Single template-level CSS that handles both dark and light presets via
 * the .mk-movie-preset--{dark|light} class on the .mk-movie-template wrapper.
 *
 * Phase 4 v0.3 token cascade:
 *   base.css → preset/{active}.css → brand-tokens.css → component-tokens.css → THIS FILE
 *
 * Token strategy (Option A per Step 9 AMIN):
 *   Uses existing general --mk-movie-* deprecation aliases.
 *   NO Video First-specific Level 2 alias subsection introduced.
 *   Brand tokens for IMDb/TMDB. --mk-movie-meta-rating for rating star.
 *
 * Hero overlay/fade:
 *   Video First uses its OWN cinematic gradient style that differs from
 *   Classic Hero. Template-level overrides are used here rather than the
 *   Classic Hero --mk-movie-hero-overlay/--mk-movie-hero-fade tokens,
 *   because VF uses a radial gradient + bottom fade instead of CH's
 *   directional overlay. Concrete values in base, tokenized in light.
 *
 * NO hardcoded color values in rules (except hero overlay/fade concrete
 * gradients and play button glass-morphism rgba values that are structural
 * visual effects, not theme colors).
 *
 * @since MK Theme 0.3.112 (Step 9 — Video First Unified template)
 */

/* ════════════════════════════════════════════════════════════════════
   HERO — base (dark cinematic style)
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__hero {
	position: relative;
	width: 100%;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: var(--mk-movie-bg);
	cursor: default;
}

.mk-movie-template--video-first .mk-vf__hero--has-video {
	cursor: pointer;
}

.mk-movie-template--video-first .mk-vf__hero--poster {
	aspect-ratio: auto;
	max-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mk-movie-template--video-first .mk-vf__hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.mk-movie-template--video-first .mk-vf__hero--poster .mk-vf__hero-image {
	position: relative;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ── Cinematic overlays (VF-specific gradients) ── */
.mk-movie-template--video-first .mk-vf__hero-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, var(--mk-movie-vf-overlay-start, rgba(0, 0, 0, 0.15)) 0%, var(--mk-movie-vf-overlay-end, rgba(0, 0, 0, 0.5)) 100%);
	pointer-events: none;
	z-index: 1;
}

.mk-movie-template--video-first .mk-vf__hero-fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 45%;
	background: linear-gradient(var(--mk-movie-vf-fade-start, transparent), var(--mk-movie-vf-fade-end, rgba(0, 0, 0, 0.7)));
	pointer-events: none;
	z-index: 1;
}

/* ════════════════════════════════════════════════════════════════════
   PLAY BUTTON (glass-morphism style)
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__hero-play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	/* MT-8b-3: sits above .mk-vf__hero-title-wrap (z-index 4) so the
	   central play icon is visually above the title layer.
	   VF-HIT-1: pointer-events: none lets taxonomy/genre links below
	   this overlay receive clicks. Play controls re-enable pointer
	   events on themselves. After Play the .mk-vf__hero--playing rule
	   sets display:none on this element. */
	z-index: 5;
	pointer-events: none;
}

.mk-movie-template--video-first .mk-vf__play-btn {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--mk-movie-play-btn-bg, rgba(255, 255, 255, 0.1));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 2px solid var(--mk-movie-play-btn-border, rgba(255, 255, 255, 0.25));
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
	pointer-events: auto; /* VF-HIT-1: re-enable clicks on play button */
	cursor: pointer;
}

/* VF-HIT-1: hover moved from parent .mk-vf__hero-play:hover to direct
   .mk-vf__play-btn:hover because parent has pointer-events: none. */
.mk-movie-template--video-first .mk-vf__play-btn:hover {
	transform: scale(1.08);
	background: var(--mk-movie-play-btn-hover-bg, rgba(255, 255, 255, 0.18));
	border-color: var(--mk-movie-play-btn-hover-border, rgba(255, 255, 255, 0.4));
}

.mk-movie-template--video-first .mk-vf__play-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 16px 0 16px 28px;
	border-color: transparent transparent transparent var(--mk-movie-play-btn-fg, rgba(255, 255, 255, 0.92));
	margin-left: 5px;
	transition: border-color 0.2s;
}

/* VF-HIT-1: hover moved from parent to direct play-btn:hover child. */
.mk-movie-template--video-first .mk-vf__play-btn:hover .mk-vf__play-icon {
	border-left-color: var(--mk-movie-play-btn-fg, #fff);
}

.mk-movie-template--video-first .mk-vf__play-label {
	color: var(--mk-movie-play-btn-fg, rgba(255, 255, 255, 0.88));
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	pointer-events: auto; /* VF-HIT-1: re-enable clicks on play label */
	cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════════
   HERO BADGES — per-position absolute placement
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__hero-badges {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 3;
	pointer-events: none;
}

.mk-movie-template--video-first .mk-vf__hero-badges--top-left     { top: 14px; left: 14px; align-items: flex-start; }
.mk-movie-template--video-first .mk-vf__hero-badges--top-right    { top: 14px; right: 14px; align-items: flex-end; }
.mk-movie-template--video-first .mk-vf__hero-badges--bottom-left  { bottom: 14px; left: 14px; align-items: flex-start; }
.mk-movie-template--video-first .mk-vf__hero-badges--bottom-right { bottom: 14px; right: 14px; align-items: flex-end; }

.mk-movie-template--video-first .mk-vf__hero-badge {
	background: var(--mk-movie-hero-badge-bg, rgba(0, 0, 0, 0.65));
	color: var(--mk-movie-hero-badge-fg, var(--mk-movie-text));
	border: 1px solid var(--mk-movie-hero-badge-border, transparent);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 5px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	line-height: 1;
}

/* MT-6b: per-badge tokens. Each badge consumes its own bg/fg/border
   token, falling back to the base hero-badge token. Rated, Runtime and
   Rating are semantically distinct and independently customizable. */
.mk-movie-template--video-first .mk-vf__hero-badge--rated {
	background: var(--mk-movie-rated-badge-bg, var(--mk-movie-hero-badge-bg, rgba(0, 0, 0, 0.65)));
	color: var(--mk-movie-rated-badge-fg, var(--mk-movie-hero-badge-fg, var(--mk-movie-text)));
	border-color: var(--mk-movie-rated-badge-border, var(--mk-movie-hero-badge-border, transparent));
}

.mk-movie-template--video-first .mk-vf__hero-badge--runtime {
	background: var(--mk-movie-runtime-badge-bg, var(--mk-movie-hero-badge-bg, rgba(0, 0, 0, 0.65)));
	color: var(--mk-movie-runtime-badge-fg, var(--mk-movie-hero-badge-fg, var(--mk-movie-text)));
	border-color: var(--mk-movie-runtime-badge-border, var(--mk-movie-hero-badge-border, transparent));
}

.mk-movie-template--video-first .mk-vf__hero-badge--rating {
	background: var(--mk-movie-rating-badge-bg, var(--mk-movie-hero-badge-bg, rgba(0, 0, 0, 0.65)));
	color: var(--mk-movie-rating-badge-fg, var(--mk-movie-meta-rating, #f5c518));
	border-color: var(--mk-movie-rating-badge-border, var(--mk-movie-hero-badge-border, transparent));
}

/* ════════════════════════════════════════════════════════════════════
   VIDEO PLAYING STATE
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__hero--playing {
	aspect-ratio: 16 / 9;
}

.mk-movie-template--video-first .mk-vf__hero--playing .mk-vf__hero-image,
.mk-movie-template--video-first .mk-vf__hero--playing .mk-vf__hero-overlay,
.mk-movie-template--video-first .mk-vf__hero--playing .mk-vf__hero-fade,
.mk-movie-template--video-first .mk-vf__hero--playing .mk-vf__hero-play,
.mk-movie-template--video-first .mk-vf__hero--playing .mk-vf__hero-badges,
.mk-movie-template--video-first .mk-vf__hero--playing .mk-vf__hero-title-wrap {
	display: none;
}

/* ════════════════════════════════════════════════════════════════════
   HERO TITLE ZONE
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__hero-title-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 4;
	padding: 70px 32px 22px;
	background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.8) 100%);
}

.mk-movie-template--video-first .mk-vf__hero-title {
	font-size: 52px;
	font-weight: 800;
	line-height: 1.05;
	margin: 0;
	color: var(--mk-movie-hero-on-image-title); /* MT-3: on-image context token */
	text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
	letter-spacing: -0.5px;
}

.mk-movie-template--video-first .mk-vf__hero-original-title {
	font-size: 15px;
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	font-style: italic;
	margin: 4px 0 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mk-movie-template--video-first .mk-vf__hero-tagline {
	font-size: 16px;
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	font-style: italic;
	margin: 6px 0 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mk-movie-template--video-first .mk-vf__hero-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
}

.mk-movie-template--video-first .mk-vf__hero-info-item {
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	font-size: 14px;
}

.mk-movie-template--video-first .mk-vf__hero-info-rating {
	color: var(--mk-movie-meta-rating);
	font-weight: 600;
}

.mk-movie-template--video-first .mk-vf__hero-info-sep {
	color: var(--mk-movie-border);
	margin: 0 2px;
}

.mk-movie-template--video-first .mk-vf__hero-info-divider {
	color: var(--mk-movie-border);
	margin: 0 6px;
}

.mk-movie-template--video-first .mk-vf__hero-info-genres {
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	font-size: 13px;
}

.mk-movie-template--video-first .mk-vf__hero-info-genres a {
	color: var(--mk-movie-hero-on-image-accent); /* MT-3: on-image context token */
	text-decoration: none;
}

.mk-movie-template--video-first .mk-vf__hero-info-genres a:hover {
	color: var(--mk-movie-hero-on-image-title); /* on-image: hover toward title white */
	text-decoration: underline;
}

/* ── Hero plot / overview (MT-8a visual test) ──
   Optional plot text inside the hero, below the meta/genres line.
   Clamped to 3 lines so a long plot cannot bloat the hero zone.
   Default OFF — only rendered when video_first_hero_plot is enabled. */
.mk-movie-template--video-first .mk-vf__hero-plot {
	margin: 12px 0 0;
	max-width: 640px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════
   HERO PLAYER (JS-created iframe container)
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__hero-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.mk-movie-template--video-first .mk-vf__hero-player iframe,
.mk-movie-template--video-first .mk-vf__hero-player video {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ── Close video button (MT-8b-4) ──
   JS-generated inside .mk-vf__hero-player; removed with it on close.
   Sits above the iframe so it stays clickable. Visible only while the
   inline player exists (the player itself only exists after Play).
   Dark/neutral button with a red X icon — clear "close" without a
   fully red button looking aggressive over the video. */
.mk-movie-template--video-first .mk-vf__close-video {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #ef4444;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s ease;
}

.mk-movie-template--video-first .mk-vf__close-video:hover {
	background: rgba(0, 0, 0, 0.85);
}

.mk-movie-template--video-first .mk-vf__close-video:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mk-movie-template--video-first .mk-vf__close-video-icon {
	font-size: 18px;
}

/* MT-8b-4 corrective: caret artifact.
   After inline Play focus stays on BODY, and the theme has a visible
   caret-color, so a blinking text caret appears over the video zone.
   Suppress the caret within the Video First hero while the template
   is in the played state. CSS-only — no JS focus handling needed. */
.mk-movie-template--video-first.mk-vf--played .mk-vf__hero,
.mk-movie-template--video-first.mk-vf--played .mk-vf__hero-player {
	caret-color: transparent;
}

/* W-3.5: shared Video First widget modal.
   Created lazily by video-first-hero.js for .mk-vf-widget instances only. */
body.mk-vf-modal-open {
	overflow: hidden;
}

.mk-vf-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.mk-vf-modal[hidden] {
	display: none;
}

.mk-vf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
}

.mk-vf-modal__dialog {
	position: relative;
	z-index: 1;
	/* Fit short/landscape viewports too, keeping the close button on screen. */
	width: min(1100px, 100%, calc((100vh - 80px) * 1.777778));
	width: min(1100px, 100%, calc((100dvh - 80px) * 1.777778));
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.mk-vf-modal__content {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mk-vf-modal__content iframe,
.mk-vf-modal__content video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.mk-vf-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: #111;
	cursor: pointer;
	line-height: 1;
	font-size: 22px;
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
}

.mk-vf-modal__close:hover,
.mk-vf-modal__close:focus-visible {
	background: #fff;
}

.mk-vf-modal__close:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.9);
	outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   BODY (below hero) — two-column grid
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__body {
	max-width: var(--mk-wide-width, 1200px);
	margin-inline: auto;
	padding: 28px 24px 40px;
}

.mk-movie-template--video-first .mk-vf__grid {
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 32px;
	align-items: start;
}

/* ── Smart after-play context (MT-8b-3) ──
   Compact one-line reminder of what is playing. Rendered only in smart
   mode. Hidden by default; revealed when the template root carries
   .mk-vf--played (added by video-first-hero.js on real inline play).
   classic / dedupe modes never render this element at all. */
.mk-movie-template--video-first .mk-vf__after-play-context {
	display: none;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--mk-movie-color-border);
	font-size: 14px;
	color: var(--mk-movie-color-fg-muted);
}

.mk-movie-template--video-first.mk-vf--played .mk-vf__after-play-context {
	display: flex;
}

.mk-movie-template--video-first .mk-vf__after-play-title {
	font-weight: 700;
	color: var(--mk-movie-color-fg);
}

.mk-movie-template--video-first .mk-vf__after-play-rating {
	color: var(--mk-movie-meta-rating);
	font-weight: 600;
}

.mk-movie-template--video-first .mk-vf__after-play-sep {
	color: var(--mk-movie-color-border);
}

.mk-movie-template--video-first .mk-vf__after-play-genres a {
	color: var(--mk-movie-color-fg-muted);
	text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════
   CONTENT AREA — title, meta, overview, review
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__content {
	min-width: 0;
}

.mk-movie-template--video-first .mk-vf__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 4px;
	color: var(--mk-movie-text);
}

.mk-movie-template--video-first .mk-vf__original-title {
	font-size: 14px;
	color: var(--mk-movie-text-muted);
	font-style: italic;
	margin: 0 0 10px;
}

.mk-movie-template--video-first .mk-vf__meta-line {
	font-size: 14px;
	color: var(--mk-movie-text-muted);
	margin: 0 0 10px;
}

.mk-movie-template--video-first .mk-vf__meta-sep {
	margin: 0 4px;
	opacity: 0.5;
}

.mk-movie-template--video-first .mk-vf__meta-rating {
	color: var(--mk-movie-meta-rating);
}

.mk-movie-template--video-first .mk-vf__genres {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
	font-size: 13px;
}

.mk-movie-template--video-first .mk-vf__genres a {
	color: var(--mk-movie-link-color);
	text-decoration: none;
}

.mk-movie-template--video-first .mk-vf__genres a:hover {
	text-decoration: underline;
}

.mk-movie-template--video-first .mk-vf__section-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mk-movie-text-muted);
	margin: 0 0 10px;
}

.mk-movie-template--video-first .mk-vf__overview {
	margin-bottom: 22px;
}

.mk-movie-template--video-first .mk-vf__overview p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--mk-movie-text);
	margin: 0 0 10px;
}

/* ── Review ── */
.mk-movie-template--video-first .mk-vf__review {
	margin-bottom: 24px;
	padding: 20px;
	border: 1px solid var(--mk-movie-border);
	border-radius: 10px;
	background: var(--mk-movie-surface);
}

.mk-movie-template--video-first .mk-vf__review-content p {
	font-size: 15px;
	line-height: 1.8;
	color: var(--mk-movie-text);
	margin: 0 0 12px;
}

.mk-movie-template--video-first .mk-vf__review-content p:last-child {
	margin-bottom: 0;
}

/* ── Post meta ── */
.mk-movie-template--video-first .mk-vf__post-meta {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: var(--mk-movie-text-muted);
	padding-top: 16px;
	border-top: 1px solid var(--mk-movie-border);
	margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR — poster, people, buttons, facts
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--video-first .mk-vf__sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mk-movie-template--video-first .mk-vf__poster-wrap {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 16px var(--mk-movie-color-shadow-strong, rgba(0, 0, 0, 0.40));
}

.mk-movie-template--video-first .mk-vf__poster {
	display: block;
	width: 100%;
	height: auto;
}

/* Quick Facts */
.mk-movie-template--video-first .mk-vf__facts {
	border: 1px solid var(--mk-movie-border);
	border-radius: 10px;
	padding: 14px;
	background: var(--mk-movie-surface);
}

.mk-movie-template--video-first .mk-vf__facts-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mk-movie-text-muted);
	margin: 0 0 10px;
}

.mk-movie-template--video-first .mk-vf__fact-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--mk-movie-border);
}

.mk-movie-template--video-first .mk-vf__fact-row:last-child {
	border-bottom: none;
}

.mk-movie-template--video-first .mk-vf__fact-label {
	color: var(--mk-movie-text-muted);
}

.mk-movie-template--video-first .mk-vf__fact-value {
	font-weight: 600;
	color: var(--mk-movie-text);
}

.mk-movie-template--video-first .mk-vf__fact-rating {
	color: var(--mk-movie-meta-rating);
}

/* Action buttons */
.mk-movie-template--video-first .mk-vf__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.mk-movie-template--video-first .mk-vf__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s;
}

.mk-movie-template--video-first .mk-vf__btn:hover {
	opacity: 0.85;
}

.mk-movie-template--video-first .mk-vf__btn--imdb {
	background: var(--mk-brand-imdb-bg);
	color: var(--mk-brand-imdb-fg);
}

.mk-movie-template--video-first .mk-vf__btn--tmdb {
	background: var(--mk-brand-tmdb-bg);
	color: var(--mk-brand-tmdb-fg);
}

/* People */
.mk-movie-template--video-first .mk-vf__people {
	border: 1px solid var(--mk-movie-border);
	border-radius: 10px;
	padding: 14px;
	background: var(--mk-movie-surface);
}

.mk-movie-template--video-first .mk-vf__people-item {
	margin-bottom: 10px;
}

.mk-movie-template--video-first .mk-vf__people-item:last-child {
	margin-bottom: 0;
}

.mk-movie-template--video-first .mk-vf__people-label {
	font-size: 12px;
	color: var(--mk-movie-text-muted);
	display: block;
	margin-bottom: 2px;
}

.mk-movie-template--video-first .mk-vf__people-links {
	font-size: 13px;
	line-height: 1.6;
}

.mk-movie-template--video-first .mk-vf__people-links a {
	color: var(--mk-movie-link-color);
	text-decoration: none;
}

.mk-movie-template--video-first .mk-vf__people-links a:hover {
	text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — base (shared between presets)
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.mk-movie-template--video-first .mk-vf__hero {
		aspect-ratio: 16 / 9;
	}

	/* MT-8b-3: after-play context narrows to title + rating on mobile.
	   Full meta and genres are hidden so the context stays compact.
	   If no rating exists, the meta span (year/runtime) is the fallback;
	   if neither, only the title remains. */
	.mk-movie-template--video-first .mk-vf__after-play-genres {
		display: none;
	}

	.mk-movie-template--video-first .mk-vf__after-play-rating ~ .mk-vf__after-play-meta {
		display: none;
	}

	.mk-movie-template--video-first .mk-vf__play-btn {
		width: 64px;
		height: 64px;
	}

	.mk-movie-template--video-first .mk-vf__play-icon {
		border-width: 12px 0 12px 22px;
		margin-left: 4px;
	}

	.mk-movie-template--video-first .mk-vf__play-label {
		font-size: 13px;
	}

	.mk-movie-template--video-first .mk-vf__hero-badges {
		top: 10px;
		left: 10px;
	}

	.mk-movie-template--video-first .mk-vf__hero-badge {
		font-size: 11px;
		padding: 3px 8px;
	}

	.mk-movie-template--video-first .mk-vf__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mk-movie-template--video-first .mk-vf__sidebar {
		max-width: 100%;
	}

	.mk-movie-template--video-first .mk-vf__title {
		font-size: 22px;
	}

	.mk-movie-template--video-first .mk-vf__hero-title {
		font-size: 28px;
	}

	.mk-movie-template--video-first .mk-vf__hero-title-wrap {
		padding: 40px 16px 16px;
	}

	.mk-movie-template--video-first .mk-vf__hero-tagline {
		font-size: 14px;
	}

	.mk-movie-template--video-first .mk-vf__hero-info-item {
		font-size: 13px;
	}

	.mk-movie-template--video-first .mk-vf__hero-plot {
		font-size: 13px;
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 480px) {
	.mk-movie-template--video-first .mk-vf__hero {
		aspect-ratio: 4 / 3;
	}

	.mk-movie-template--video-first .mk-vf__play-btn {
		width: 56px;
		height: 56px;
	}

	.mk-movie-template--video-first .mk-vf__play-icon {
		border-width: 10px 0 10px 18px;
	}
}

/* Keep the mobile media controls and variable-height title in separate rows.
   The desktop overlay stays unchanged; inline playback keeps a 16:9 surface. */
@media (max-width: 768px) {
	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
		align-items: stretch;
		justify-content: stretch;
		aspect-ratio: auto;
		max-height: none;
	}

	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-play {
		position: relative;
		inset: auto;
		grid-area: 1 / 1;
		min-height: clamp(180px, 56.25vw, 360px);
		padding: 24px 16px;
	}

	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-title-wrap {
		position: relative;
		inset: auto;
		grid-area: 2 / 1;
		min-width: 0;
		padding: 16px;
		overflow-wrap: anywhere;
	}

	.mk-movie-template--video-first .mk-vf__hero--has-video.mk-vf__hero--poster .mk-vf__hero-image {
		grid-area: 1 / 1;
		max-height: 480px;
		justify-self: center;
	}

	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-badges {
		position: relative;
		inset: auto;
		grid-area: 1 / 1;
		align-self: start;
		justify-self: start;
		width: max-content;
		max-width: calc(100% - 20px);
		margin: 10px;
	}

	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-badges--top-right,
	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-badges--bottom-right {
		justify-self: end;
	}

	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-badges--bottom-left,
	.mk-movie-template--video-first .mk-vf__hero--has-video:not(.mk-vf__hero--playing) .mk-vf__hero-badges--bottom-right {
		align-self: end;
	}

	.mk-movie-template--video-first .mk-vf__hero.mk-vf__hero--playing {
		display: block;
		aspect-ratio: 16 / 9;
	}
}

/* ════════════════════════════════════════════════════════════════════
   LIGHT PRESET OVERRIDES
   ════════════════════════════════════════════════════════════════════
   Card-elevation shadows on content panels, lighter hero overlays,
   and accent-colored play button for Light preset.

   Colors flow from --mk-movie-color-* preset tokens via aliases.
   Only structural/visual-effect overrides specified here.
   ════════════════════════════════════════════════════════════════════ */

/* Hero: lighter overlay for Light preset */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-overlay {
	background: radial-gradient(ellipse at center, var(--mk-movie-vf-overlay-start, rgba(0, 0, 0, 0.05)) 0%, var(--mk-movie-vf-overlay-end, rgba(0, 0, 0, 0.25)) 100%);
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-fade {
	background: linear-gradient(var(--mk-movie-vf-fade-start, transparent), var(--mk-movie-vf-fade-end, rgba(0, 0, 0, 0.45)));
}

/* Hero title zone: lighter gradient background */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-title-wrap {
	background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.6) 100%);
}

/* Play button: action-colored on Light (BTN-2: reads action tokens). */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__play-btn {
	background: var(--mk-movie-play-btn-bg, var(--mk-movie-action-bg));
	border-color: var(--mk-movie-play-btn-border, var(--mk-movie-action-bg));
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__play-icon {
	border-left-color: var(--mk-movie-play-btn-fg, var(--mk-movie-action-fg));
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__play-label {
	text-shadow: none;
}

/* Badges: white surface with subtle shadow on Light */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-badge {
	background: var(--mk-movie-hero-badge-bg, rgba(255, 255, 255, 0.92));
	color: var(--mk-movie-hero-badge-fg, var(--mk-movie-text));
	border-color: var(--mk-movie-hero-badge-border, rgba(0, 0, 0, 0.08));
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* MT-6b: Light per-badge tokens. Light preset badge selector has 3-class
   specificity (0,3,0) which would otherwise override the base-preset
   per-badge rules (0,2,0). These light per-badge rules keep per-badge
   token consumption working under the Light preset. */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-badge--rated {
	background: var(--mk-movie-rated-badge-bg, var(--mk-movie-hero-badge-bg, rgba(255, 255, 255, 0.92)));
	color: var(--mk-movie-rated-badge-fg, var(--mk-movie-hero-badge-fg, var(--mk-movie-text)));
	border-color: var(--mk-movie-rated-badge-border, var(--mk-movie-hero-badge-border, rgba(0, 0, 0, 0.08)));
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-badge--runtime {
	background: var(--mk-movie-runtime-badge-bg, var(--mk-movie-hero-badge-bg, rgba(255, 255, 255, 0.92)));
	color: var(--mk-movie-runtime-badge-fg, var(--mk-movie-hero-badge-fg, var(--mk-movie-text)));
	border-color: var(--mk-movie-runtime-badge-border, var(--mk-movie-hero-badge-border, rgba(0, 0, 0, 0.08)));
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__hero-badge--rating {
	background: var(--mk-movie-rating-badge-bg, var(--mk-movie-hero-badge-bg, rgba(255, 255, 255, 0.92)));
	color: var(--mk-movie-rating-badge-fg, var(--mk-movie-meta-rating, #d97706));
	border-color: var(--mk-movie-rating-badge-border, var(--mk-movie-hero-badge-border, rgba(0, 0, 0, 0.08)));
}

/* Card elevation on Light panels */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__poster-wrap {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__review {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__facts {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--video-first .mk-vf__people {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
