/**
 * MK Theme — Movie Preset: Dark
 *
 * Level 1 semantic token values for the Dark movie preset.
 *
 * Namespace (per Phase 4 Token Proposal v0.3):
 *   --mk-movie-color-* (NOT --mk-color-*; that namespace belongs to
 *   site-wide base variables and global design presets).
 *
 * Scope (per Phase 4 v0.3 Section 1):
 *   .mk-movie-template.mk-movie-preset--dark { ... }
 *
 * Cascade position (per Phase 4 v0.3 Section 9):
 *   base.css → THIS FILE → brand-tokens.css → component-tokens.css → template CSS → parts CSS
 *
 * Status — STEP 2:
 *   Tokens are defined here, but the markup does not yet emit the class
 *   .mk-movie-preset--dark on any element. The selector therefore matches
 *   nothing, and these declarations have ZERO visual effect on the rendered
 *   site (additivity rule, Phase 4 v0.3 Section 10).
 *
 *   The tokens activate visually in Step 6, when the unified Classic Hero
 *   template adds the .mk-movie-preset--dark class to its <main> wrapper.
 *
 * Pixel-identity gate:
 *   With this file installed (MK Theme 0.3.106), every existing movie page
 *   must render identically to 0.3.105. If anything changes visually, the
 *   selector is somehow matching unintended markup and we must roll back.
 *
 * Source of values:
 *   Existing Dark theme production values from MK Theme 0.3.104 base.css,
 *   pre-unified Classic Hero CSS, and more-about.css. Phase 4 v0.3 Section 5 confirms
 *   meta-year and meta-rating dark values directly.
 *
 * @since MK Theme 0.3.106
 */

.mk-movie-template.mk-movie-preset--dark {

	/* ── Surfaces ─────────────────────────────────────────────────── */
	--mk-movie-color-bg:              #0f0f0f;
	--mk-movie-color-bg-elevated:     rgba(255, 255, 255, 0.06);
	--mk-movie-color-bg-surface:      rgba(255, 255, 255, 0.04);
	--mk-movie-color-bg-hover:        rgba(255, 255, 255, 0.07);
	--mk-movie-color-bg-video:        #000000;

	/* ── Foreground / text ────────────────────────────────────────── */
	--mk-movie-color-fg:              #f1f5f9;
	--mk-movie-color-fg-muted:        #94a3b8;
	--mk-movie-color-fg-strong:       #ffffff;
	--mk-movie-color-fg-on-accent:    #000000;

	/* ── Accent ───────────────────────────────────────────────────── */
	--mk-movie-color-accent:          #f5c518;
	--mk-movie-color-accent-hover:    #e6b800;

	/* ── Border ───────────────────────────────────────────────────── */
	--mk-movie-color-border:          rgba(255, 255, 255, 0.08);
	--mk-movie-color-border-strong:   rgba(255, 255, 255, 0.35);
	--mk-movie-color-border-subtle:   #555555;

	/* ── Overlay / shadow ─────────────────────────────────────────── */
	--mk-movie-color-overlay-weak:    rgba(0, 0, 0, 0.40);
	--mk-movie-color-overlay-strong:  rgba(0, 0, 0, 0.92);
	--mk-movie-color-shadow:          rgba(0, 0, 0, 0.30);
	--mk-movie-color-shadow-strong:   rgba(0, 0, 0, 0.90);

	/* ── Hero composite gradients ─────────────────────────────────── */
	/* Note: gradient strings reference --mk-movie-color-bg defined above.
	   CSS var() is resolved at use-site, so declaration order within
	   this block does not affect resolution. */
	--mk-movie-color-hero-overlay:
		linear-gradient(to bottom,
			rgba(15, 15, 15, 0.15) 0%,
			rgba(15, 15, 15, 0.55) 65%,
			var(--mk-movie-color-bg) 100%),
		linear-gradient(to right,
			rgba(15, 15, 15, 0.88) 0%,
			rgba(15, 15, 15, 0.55) 35%,
			rgba(15, 15, 15, 0.15) 65%,
			rgba(15, 15, 15, 0.05) 100%);
	--mk-movie-color-hero-fade:
		linear-gradient(to bottom,
			rgba(15, 15, 15, 0),
			var(--mk-movie-color-bg));

	/* ── Meta semantic colors ─────────────────────────────────────── */
	--mk-movie-color-meta-year:       #46d369;
	--mk-movie-color-meta-rating:     #f5c518;

	/* ── On-image hero text (MT-3) ────────────────────────────────── */
	/* Context tokens for text that appears over backdrop/image/gradient.
	   White defaults for readability in both dark and light presets,
	   because hero image overlays are always dark regardless of preset.
	   Users may override each token independently in Movies → Design.
	   Any future template rendering text over image must use these. */
	--mk-movie-hero-on-image-title:   #ffffff;
	--mk-movie-hero-on-image-muted:   rgba(255, 255, 255, 0.80);
	--mk-movie-hero-on-image-accent:  #ffffff;

	/* ── MT-6b: Rating accent alias ───────────────────────────────── */
	/* Plan-locked semantic name --mk-movie-meta-rating aliases the
	   pre-existing --mk-movie-color-meta-rating so MT-6b rating tokens
	   receive the correct preset-aware default. */
	--mk-movie-meta-rating:           var(--mk-movie-color-meta-rating, #f5c518);

	/* ── MT-6b: Hero badge base tokens ────────────────────────────── */
	--mk-movie-hero-badge-bg:         rgba(0, 0, 0, 0.65);
	--mk-movie-hero-badge-fg:         #ffffff;
	--mk-movie-hero-badge-border:     transparent;

	/* ── MT-6b: Video First overlay / fade stop-colors ───────────── */
	--mk-movie-vf-overlay-start:      rgba(0, 0, 0, 0.15);
	--mk-movie-vf-overlay-end:        rgba(0, 0, 0, 0.50);
	--mk-movie-vf-fade-start:         transparent;
	--mk-movie-vf-fade-end:           rgba(0, 0, 0, 0.70);

}
