/**
 * MK Theme — Classic Hero 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 (enforced by enqueue order in inc/movies/assets.php):
 *   base.css → preset/{active}.css → brand-tokens.css → component-tokens.css → THIS FILE → parts/*.css
 *
 * NO hardcoded color values in this file. Every color reference goes through:
 *   - Level 2 component aliases (--mk-movie-hero-*, --mk-movie-info-*, etc.)
 *   - Brand tokens (--mk-brand-*) for IMDb/TMDB
 *   - Level 1 preset tokens (--mk-movie-color-*) where preset-specific semantics differ
 *     between dark and light (e.g. tagline color)
 *
 * No local CSS variable block on .mk-movie-hero (Discovery D2 resolved by absence —
 * the cascade flows from .mk-movie-template through Level 2 aliases).
 *
 * Layout differentiation between dark and light is handled via
 * .mk-movie-template.mk-movie-preset--light override blocks at the bottom
 * of the file. Sizes are concrete values for now (sizing tokens deferred
 * to a future migration step).
 *
 * @since MK Theme 0.3.110 (Step 6 — Phase 4 v0.3 unified template)
 */

/* ════════════════════════════════════════════════════════════════════
   HERO — base (dark-style layout, light overrides further down)
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--classic-hero .mk-movie-hero {
	position: relative;
	min-height: 75vh;
	background-color: var(--mk-movie-hero-bg);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}

.mk-movie-template--classic-hero .mk-movie-hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--mk-movie-hero-overlay);
	z-index: 1;
}

.mk-movie-template--classic-hero .mk-movie-hero__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px;
	background: var(--mk-movie-hero-fade);
	z-index: 2;
}

.mk-movie-template--classic-hero .mk-movie-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 40px 48px 48px;
	width: 100%;
}

/* ── Poster ── */
.mk-movie-template--classic-hero .mk-movie-hero__poster {
	flex-shrink: 0;
	width: 170px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--mk-movie-hero-poster-shadow);
	align-self: flex-start;
}

.mk-movie-template--classic-hero .mk-movie-hero__poster img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Content ── */
.mk-movie-template--classic-hero .mk-movie-hero__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 4px;
}

.mk-movie-template--classic-hero .mk-movie-hero__tagline {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	margin-bottom: 12px;
}

.mk-movie-template--classic-hero .mk-movie-hero__title {
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1px;
	margin: 0 0 10px;
	color: var(--mk-movie-hero-on-image-title); /* MT-3: on-image context token */
}

.mk-movie-template--classic-hero .mk-movie-hero__original-title {
	font-size: 16px;
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	margin-bottom: 16px;
}

.mk-movie-template--classic-hero .mk-movie-hero__plot {
	font-size: 14px;
	line-height: 1.75;
	color: var(--mk-movie-hero-on-image-muted); /* MT-3: on-image context token */
	max-width: 640px;
}

.mk-movie-template--classic-hero .mk-movie-hero__plot p:last-child {
	margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════════
   ACTIONS BAR — base (dark-style: outside hero, full-width)
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--classic-hero .mk-movie-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 20px 48px;
	background: var(--mk-movie-hero-bg);
	flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════
   INFO SECTION — base
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--classic-hero .mk-movie-info {
	padding: 0 48px 28px;
	border-top: 1px solid var(--mk-movie-info-col-border);
}

.mk-movie-template--classic-hero .mk-movie-info__grid {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 0;
	padding: 24px 0;
}

.mk-movie-template--classic-hero .mk-movie-info__col {
	padding: 0 28px 0 0;
	border-right: 1px solid var(--mk-movie-info-col-border);
}

.mk-movie-template--classic-hero .mk-movie-info__col:last-child {
	border-right: none;
	padding-right: 0;
	padding-left: 28px;
}

.mk-movie-template--classic-hero .mk-movie-info__col--wide {
	padding: 0 28px;
}

.mk-movie-template--classic-hero .mk-movie-info__block {
	margin-bottom: 16px;
}

.mk-movie-template--classic-hero .mk-movie-info__block:last-child {
	margin-bottom: 0;
}

.mk-movie-template--classic-hero .mk-movie-info__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--mk-movie-info-label);
	margin-bottom: 4px;
}

.mk-movie-template--classic-hero .mk-movie-info__value {
	font-size: 14px;
	color: var(--mk-movie-hero-text);
	line-height: 1.6;
}

/* Info section links — :not(.mk-movie-btn) prevents brand button text
   contamination so IMDb/TMDB anchor buttons keep their brand fg tokens. */
.mk-movie-template--classic-hero .mk-movie-info__value a:not(.mk-movie-btn) {
	color: var(--mk-movie-hero-text);
	text-decoration: none;
	transition: color 0.15s;
}

.mk-movie-template--classic-hero .mk-movie-info__value a:not(.mk-movie-btn):hover {
	color: var(--mk-movie-info-link-hover);
	text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════════
   ARTICLE HEADER BOX — MT-7b/7c-1 editorial/article identity
   Preset-aware through existing movie tokens.
   Placed above review section. Only in classic-hero-unified (not legacy).
   "Review" label removed in MT-7c-1 — review.php h2 handles that heading.
   ════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────────
   MT-9b: Classic Hero base Article Header block removed.

   Classic Hero inline AH uses the same .mk-movie-article-header classes
   as the shared part.  The base block that was here (padding, background,
   border, text-align, title font/margin, meta gap/font) is now fully
   covered by the shared article-header.css, which also adds MT-9b
   improvements (content-width centering, variable meta gap, mobile
   breakpoints, middot separators, preset blocks).

   Keeping the CH-prefixed base block would have blocked those shared
   improvements due to higher specificity — notably mobile padding
   reduction and meta gap variable would not apply to Classic Hero.

   The Clean Light preset block was already moved to shared CSS earlier
   in this build.  With this removal, article-header.css is the single
   authoritative AH visual source for CH, PR, and VF.
   ──────────────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────────────
   MT-7c-3 / MT-9b: Clean Light Article Header polish moved to shared
   article-header.css (MT-9b).  The CH-specific block that was here is
   no longer needed — the shared selector
   .mk-movie-preset--light .mk-movie-article-header applies to all
   current templates including Classic Hero.
   ──────────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════
   REVIEW SECTION — base
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template--classic-hero .mk-movie-review {
	padding: 0 48px 48px;
	background: var(--mk-movie-review-bg);
	border-top: 1px solid var(--mk-movie-info-col-border);
}

.mk-movie-template--classic-hero .mk-movie-review__inner {
	padding-top: 32px;
	max-width: 720px;
	margin: 0 auto;
}

.mk-movie-template--classic-hero .mk-movie-review__title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--mk-movie-review-title);
}

.mk-movie-template--classic-hero .mk-movie-review__body {
	font-size: 15px;
	line-height: 1.8;
	color: var(--mk-movie-review-body);
}

.mk-movie-template--classic-hero .mk-movie-review__body p {
	margin-bottom: 14px;
}

.mk-movie-template--classic-hero .mk-movie-review__body p:last-child {
	margin-bottom: 0;
}

.mk-movie-template--classic-hero .mk-movie-review__body strong,
.mk-movie-template--classic-hero .mk-movie-review__body b {
	color: var(--mk-movie-review-strong);
	font-weight: 600;
}

.mk-movie-template--classic-hero .mk-movie-review__body em,
.mk-movie-template--classic-hero .mk-movie-review__body i {
	color: var(--mk-movie-review-em);
	font-style: italic;
}

.mk-movie-template--classic-hero .mk-movie-review__body h2,
.mk-movie-template--classic-hero .mk-movie-review__body h3,
.mk-movie-template--classic-hero .mk-movie-review__body h4 {
	color: var(--mk-movie-review-strong);
	margin: 20px 0 10px;
	line-height: 1.3;
}

.mk-movie-template--classic-hero .mk-movie-review__body blockquote {
	border-left: 3px solid var(--mk-movie-review-blockquote-border);
	margin: 20px 0;
	padding: 8px 0 8px 20px;
	color: var(--mk-movie-review-strong);
	font-size: 16px;
	font-style: italic;
	line-height: 1.7;
}

.mk-movie-template--classic-hero .mk-movie-review__body blockquote p {
	margin-bottom: 0;
	color: var(--mk-movie-review-strong);
}

.mk-movie-template--classic-hero .mk-movie-review__body ul,
.mk-movie-template--classic-hero .mk-movie-review__body ol {
	margin: 0 0 14px 20px;
	color: var(--mk-movie-review-body);
}

.mk-movie-template--classic-hero .mk-movie-review__body li {
	margin-bottom: 6px;
}

.mk-movie-template--classic-hero .mk-movie-review__meta {
	margin-top: 20px;
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--mk-movie-review-meta);
}

/* ════════════════════════════════════════════════════════════════════
   LIGHT PRESET OVERRIDES
   ════════════════════════════════════════════════════════════════════
   These rules adjust sizes, layout, and a few preset-specific colors
   that the Level 1 token system alone cannot express (e.g. tagline
   goes from muted-grey on dark to accent-blue on light).

   Light preset structural notes (documented design differences from
   legacy classic-hero-light):
   - Actions bar stays OUTSIDE the hero section (Dark-style PHP path).
     Legacy Light had actions INSIDE hero__content. Compact styling
     below makes the actions bar visually integrated, but it does
     NOT match legacy Light pixel-perfect. Per Step 6 AMIN this is
     documented as a known visual difference, not a fail.
   - Sections respect the selected movie container. Viewport-wide sizing
     includes the scrollbar and can overflow narrow or boxed layouts.
   - Compact button sizing matches legacy Light.
   ════════════════════════════════════════════════════════════════════ */

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero {
	min-height: 420px;
	overflow: hidden;
	width: 100%;
	margin-left: 0;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__inner {
	gap: 32px;
	padding: 56px 48px;
	min-height: 420px;
	max-width: var(--mk-wide-width, 1200px);
	margin-inline: auto;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__poster {
	width: 180px;
	border-radius: var(--mk-radius-lg);
	background: var(--mk-movie-color-bg-elevated);
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__poster img {
	border-radius: var(--mk-radius-lg);
}

/* Tagline: on-image accent token in light (replaces direct accent reference).
   MT-3: was var(--mk-movie-color-accent) which could produce unreadable
   dark text if user sets a dark custom accent. Now uses on-image token. */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__tagline {
	/* MT-6d-3 corrective: dark text on light wash for readability.
	   Clean Light overlay is a white wash — dark text is readable on
	   both bright and dark backdrops under the light overlay.
	   Replaces white on-image token that disappeared on bright images. */
	color: #111827;
	text-shadow: none;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	margin-bottom: 8px;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__title {
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 8px 0;
	letter-spacing: -0.5px;
	/* MT-6d-3 corrective: dark text on light wash. Replaces white
	   on-image text + shadow approach that was not readable enough
	   on bright backdrop images (Predrag product decision). */
	color: #111827;
	text-shadow: none;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__original-title {
	font-size: 15px;
	margin-bottom: 12px;
	color: #1f2937; /* MT-6d-3 corrective */
	text-shadow: none;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__plot {
	font-size: 15px;
	line-height: 1.65;
	max-width: 600px;
	margin-top: 16px;
	color: #1f2937; /* MT-6d-3 corrective */
	text-shadow: none;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__plot p {
	margin: 0 0 8px 0;
}

/* ── Actions bar (Light): compact, transparent, full-bleed ── */
/* Documented design difference: actions live OUTSIDE hero in unified
   markup but visually integrate via transparent background and compact
   sizing. Legacy classic-hero-light had actions INSIDE hero__content. */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-actions {
	background: transparent;
	border: none;
	padding: 16px 48px 24px;
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	flex-wrap: wrap;
	max-width: var(--mk-wide-width, 1200px);
	margin-inline: auto;
}

/* ── Buttons (Light): compact, brand colors, slightly smaller ── */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-btn {
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 5px;
	font-weight: 600;
}

/* BTN-2: Watch button reads action tokens (separate from taxonomy/link color). */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-btn--watch {
	background: var(--mk-movie-action-bg);
	color: var(--mk-movie-action-fg);
}

/* IMDb/TMDB brand colors stay locked — brand tokens already preset-agnostic.
   No light override needed; --mk-brand-imdb-* and --mk-brand-tmdb-* apply. */

/* ── Info section (Light): full-bleed surface ── */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info {
	background: var(--mk-movie-color-bg-elevated);
	border-top: none;
	border-bottom: 1px solid var(--mk-movie-info-col-border);
	width: 100%;
	margin-left: 0;
	padding: 28px 48px;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__grid {
	gap: 24px;
	max-width: var(--mk-wide-width, 1200px);
	margin-inline: auto;
	padding: 0;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__col {
	padding: 0 24px 0 0;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__col:last-child {
	padding-left: 0;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__label {
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* Info section links: near-black for Clean Light readability.
   MT-6d-3 corrective: taxonomy/cast/director links are dark by default,
   independent from Watch Now button which stays on action tokens.
   :not(.mk-movie-btn) prevents brand button text contamination. */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__value a:not(.mk-movie-btn) {
	color: #0f172a;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__value a:not(.mk-movie-btn):hover,
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__value a:not(.mk-movie-btn):focus {
	color: #0f172a;
	text-decoration: underline;
}

/* ── Inline video (Light): full-bleed ── */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-inline-video {
	background: var(--mk-movie-hero-bg);
	width: 100%;
	margin-left: 0;
	padding: 32px 48px;
}

/* ── Review (Light): full-bleed ── */
.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-review {
	background: var(--mk-movie-hero-bg);
	border-top: 1px solid var(--mk-movie-info-col-border);
	width: 100%;
	margin-left: 0;
	padding: 40px 48px;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-review__title {
	font-size: 22px;
	margin: 0 0 20px 0;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-review__body {
	font-size: 16px;
	line-height: 1.75;
}

.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-review__meta {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--mk-movie-info-col-border);
}

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

@media (max-width: 900px) {
	.mk-movie-template--classic-hero .mk-movie-hero {
		min-height: 55vh;
	}
}

@media (max-width: 768px) {
	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 32px 20px;
	}

	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__poster {
		width: 140px;
	}

	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-hero__plot {
		max-width: 100%;
	}

	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__grid {
		grid-template-columns: 1fr;
	}

	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__col {
		border-right: none;
		padding-right: 0;
		border-bottom: 1px solid var(--mk-movie-info-col-border);
		padding-bottom: 16px;
	}

	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info__col:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-actions,
	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-info,
	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-inline-video,
	.mk-movie-template.mk-movie-preset--light.mk-movie-template--classic-hero .mk-movie-review {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 640px) {
	.mk-movie-template--classic-hero .mk-movie-hero {
		min-height: auto;
	}

	.mk-movie-template--classic-hero .mk-movie-hero__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 20px 24px;
		gap: 16px;
	}

	.mk-movie-template--classic-hero .mk-movie-hero__poster {
		width: 100px;
		align-self: flex-start;
	}

	.mk-movie-template--classic-hero .mk-movie-hero__title {
		font-size: 28px;
	}

	.mk-movie-template--classic-hero .mk-movie-hero__tagline {
		font-size: 10px;
	}

	.mk-movie-template--classic-hero .mk-movie-hero__plot {
		max-width: 100%;
	}

	.mk-movie-template--classic-hero .mk-movie-actions,
	.mk-movie-template--classic-hero .mk-movie-info,
	.mk-movie-template--classic-hero .mk-movie-review {
		padding-left: 20px;
		padding-right: 20px;
	}

	.mk-movie-template--classic-hero .mk-movie-info__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mk-movie-template--classic-hero .mk-movie-info__col {
		border-right: none;
		border-bottom: 1px solid var(--mk-movie-info-col-border);
		padding: 16px 0;
	}

	.mk-movie-template--classic-hero .mk-movie-info__col:last-child {
		padding-left: 0;
		border-bottom: none;
	}

	.mk-movie-template--classic-hero .mk-movie-info__col--wide {
		padding: 16px 0;
	}

	.mk-movie-template--classic-hero .mk-movie-review__body {
		font-size: 14px;
	}
}
