/**
 * MK Theme — Movie Component Tokens (Level 2 Aliases)
 *
 * Level 2 component aliases that map Level 1 preset values to specific
 * UI components. Movie CSS rules should reference these tokens, not
 * Level 1 tokens directly (with the documented exceptions in Sections
 * 2.3 and 2.4 of Phase 4 v0.3 — video and modal hold concrete values).
 *
 * Per Phase 4 Token Proposal v0.3, Section 2:
 *   - Scope: .mk-movie-template
 *   - Loaded AFTER brand-tokens.css (Section 9 cascade)
 *   - Total 41 movie component aliases across 8 component groups
 *
 * Per Phase 4 Section 11 — radius family (added in Step 4):
 *   --mk-radius-sm, --mk-radius-md, --mk-radius-lg, --mk-radius-pill
 *   Non-preset-controlled; same value across all presets.
 *
 * Per Phase 4 Section 3.2 — alias timing:
 *   Step 4 (this version) introduces the backwards-compat alias block
 *   for old --mk-movie-* names. Old names continue to work after
 *   base.css declarations are removed.
 *
 * Fallback values on Level 2 aliases (Discovery D5):
 *   Every Level 2 alias that references --mk-movie-color-* includes a
 *   fallback value matching current dark production (MK Theme 0.3.107).
 *   This is required because --mk-movie-color-* tokens only exist
 *   inside the preset class scope (.mk-movie-template.mk-movie-preset--*),
 *   which is not yet emitted in markup. Without fallbacks, base.css
 *   rules consuming Level 2 aliases would become invalid-at-computed-value
 *   and revert to initial values (e.g. Watch button background → transparent).
 *
 *   After Step 6 adds preset class to markup, the fallbacks become
 *   unreachable — Level 1 tokens always resolve through preset. The
 *   fallback values are then "temporary safety layer" that can be
 *   removed in post-migration cleanup.
 *
 *   The fallback strategy is movie-only and preserves Phase 4 v0.3
 *   architecture exactly (Level 1 stays scoped to preset selectors).
 *
 * Discovery D3:
 *   --mk-movie-video-play-bg uses rgba(255, 255, 255, 0.9) instead of
 *   the originally documented #f2f2f2, preserving current inline video
 *   play circle appearance (90% white over black video frame).
 *
 * Discovery D4:
 *   --mk-movie-label was dead code in base.css L19 (no consuming uses).
 *   Dropped without alias.
 *
 * @since MK Theme 0.3.107 (Step 3 — created)
 * @since MK Theme 0.3.108 (Step 4 — radius, R2 fix, fallbacks, deprecation aliases)
 * @since MK Theme 0.3.111 (Step 8 — added --mk-movie-text-muted deprecation alias
 *                          for Poster Review template compatibility)
 */

.mk-movie-template {

	/* ── 2.1 Movie hero (6 aliases) ───────────────────────────────── */
	/* Fallbacks mirror current Dark production from MK Theme 0.3.107. */
	--mk-movie-hero-bg:            var(--mk-movie-color-bg, #0f0f0f);
	--mk-movie-hero-text:          var(--mk-movie-color-fg, #f1f5f9);
	--mk-movie-hero-muted:         var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-hero-overlay:       var(--mk-movie-color-hero-overlay,
		linear-gradient(to bottom, rgba(15, 15, 15, 0.15) 0%, rgba(15, 15, 15, 0.55) 65%, #0f0f0f 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-hero-fade:          var(--mk-movie-color-hero-fade,
		linear-gradient(to bottom, rgba(15, 15, 15, 0), #0f0f0f));
	--mk-movie-hero-poster-shadow: var(--mk-movie-color-shadow-strong, rgba(0, 0, 0, 0.90));

	/* ── 2.2 Movie buttons / actions (4 aliases) ──────────────────── */
	/* BTN-2: Watch L2 aliases now read from action tokens first, so per-template
	   Watch button overrides flow cleanly. action-* tokens default to the
	   movie accent chain for full backward compatibility. */
	--mk-movie-btn-watch-bg:       var(--mk-movie-action-bg, var(--mk-movie-color-accent, #f5c518));
	--mk-movie-btn-watch-fg:       var(--mk-movie-action-fg, var(--mk-movie-color-fg-on-accent, #000000));
	--mk-movie-btn-watch-hover-bg: var(--mk-movie-action-hover-bg, var(--mk-movie-color-accent-hover, #e6b800));
	--mk-movie-btn-icon-fg:        var(--mk-movie-color-fg-on-accent, #000000);

	/* ── 2.2a BTN-2: Action button family (Watch / primary action) ──── */
	/* Separates Watch Now button color from taxonomy/link color.
	   Default chain falls back to movie accent so unchanged presets
	   look identical. Users can override Watch independently. */
	--mk-movie-action-bg:       var(--mk-movie-color-accent, #f5c518);
	--mk-movie-action-fg:       var(--mk-movie-color-fg-on-accent, #000000);
	--mk-movie-action-hover-bg: var(--mk-movie-color-accent-hover, #e6b800);

	/* ── 2.2b BTN-2: Movie link family (taxonomy / cast / director / meta) ── */
	/* Separates taxonomy and metadata link color from Watch button color.
	   Default chain falls back to movie accent. Users can override links
	   independently. on-image hero genre links keep their MT-3 on-image
	   tokens — they live in a different visual context. */
	--mk-movie-link-color:       var(--mk-movie-color-accent, #f5c518);
	--mk-movie-link-hover-color: var(--mk-movie-color-accent-hover, #e6b800);

	/* ── 2.3 Movie video (5 aliases — 1 aliased, 4 concrete)
	   D3: video-play-bg uses rgba(255, 255, 255, 0.9) to match current render */
	--mk-movie-video-bg:              var(--mk-movie-color-bg-video, #000000);
	--mk-movie-video-overlay:         rgba(0, 0, 0, 0.40);
	--mk-movie-video-overlay-hover:   rgba(0, 0, 0, 0.55);
	--mk-movie-video-play-bg:         rgba(255, 255, 255, 0.9);
	--mk-movie-video-play-icon:       #111111;

	/* ── 2.4 Movie modal (3 aliases — all concrete, stays dark) ───── */
	--mk-movie-modal-backdrop:    rgba(0, 0, 0, 0.92);
	--mk-movie-modal-video-bg:    #000000;
	--mk-movie-modal-close-fg:    #ffffff;

	/* ── 2.5 Movie meta row (5 aliases) ───────────────────────────── */
	--mk-movie-meta-text:         var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-meta-sep:          var(--mk-movie-color-border-subtle, #555555);
	--mk-movie-meta-year:         var(--mk-movie-color-meta-year, #46d369);
	--mk-movie-meta-rated-border: var(--mk-movie-color-border-strong, rgba(255, 255, 255, 0.35));
	--mk-movie-meta-rating:       var(--mk-movie-color-meta-rating, #f5c518);

	/* ── 2.6 Movie info section (3 aliases) ───────────────────────── */
	--mk-movie-info-label:        var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-info-link-hover:   var(--mk-movie-color-fg-strong, #ffffff);
	--mk-movie-info-col-border:   var(--mk-movie-color-border, rgba(255, 255, 255, 0.08));

	/* ── 2.7 Movie review (7 aliases) ─────────────────────────────── */
	--mk-movie-review-bg:                var(--mk-movie-color-bg, #0f0f0f);
	--mk-movie-review-title:             var(--mk-movie-color-fg, #f1f5f9);
	--mk-movie-review-body:              var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-review-strong:            var(--mk-movie-color-fg, #f1f5f9);
	--mk-movie-review-em:                var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-review-blockquote-border: var(--mk-movie-color-accent, #f5c518);
	--mk-movie-review-meta:              var(--mk-movie-color-fg-muted, #94a3b8);

	/* ── 2.8 More About accordion (8 aliases) ─────────────────────────
	   Step 5 mitigation: fallback values mirror current 0.3.108 production
	   rendering, not Phase 4 dark intent. This keeps Step 5 pixel-identical.
	   When Step 6 lands preset class in markup, --mk-movie-color-* values
	   take over from fallbacks and the More About panel aligns with the
	   rest of Classic Hero Dark. Drift becomes visible in Step 6 context. */
	--mk-movie-more-fg:               var(--mk-movie-color-fg, #e6e6e6);
	--mk-movie-more-fg-muted:         var(--mk-movie-color-fg-muted, rgba(230, 230, 230, 0.62));
	--mk-movie-more-summary-bg:       var(--mk-movie-color-bg-surface, rgba(255, 255, 255, 0.06));
	--mk-movie-more-summary-hover-bg: var(--mk-movie-color-bg-hover, rgba(255, 255, 255, 0.07));
	--mk-movie-more-grid-bg:          var(--mk-movie-color-bg-elevated, rgba(255, 255, 255, 0.025));
	--mk-movie-more-border:           var(--mk-movie-color-border, rgba(255, 255, 255, 0.08));
	--mk-movie-more-border-strong:    var(--mk-movie-color-border-strong, rgba(255, 255, 255, 0.20));
	--mk-movie-more-link-underline:   var(--mk-movie-color-border-subtle, rgba(230, 230, 230, 0.3));

	/* ── Radius family (Phase 4 v0.3 Section 11) ──────────────────── */
	/* Not preset-controlled. Same values across all movie presets. */
	--mk-radius-sm:   4px;
	--mk-radius-md:   8px;
	--mk-radius-lg:   12px;
	--mk-radius-pill: 9999px;

	/* ── Deprecation aliases for old --mk-movie-* names (Step 4) ──── */
	/* These keep existing CSS rules working that still reference the
	   old short names. Each alias points to a Level 1 token with a
	   fallback. Same safety mechanism as Level 2 aliases above (D5).
	   Once Step 6 lands and preset class is always present, fallbacks
	   become unreachable and can be removed in post-migration cleanup. */
	--mk-movie-bg:      var(--mk-movie-color-bg, #0f0f0f);
	--mk-movie-text:    var(--mk-movie-color-fg, #f1f5f9);
	--mk-movie-muted:   var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-text-muted: var(--mk-movie-color-fg-muted, #94a3b8);
	--mk-movie-accent:  var(--mk-movie-color-accent, #f5c518);
	--mk-movie-surface: var(--mk-movie-color-bg-elevated, rgba(255, 255, 255, 0.06));
	--mk-movie-border:  var(--mk-movie-color-border, rgba(255, 255, 255, 0.08));
	--mk-movie-radius:  var(--mk-radius-md);

	/* Note: --mk-movie-label (base.css L19, value #666) was dead code
	   in 0.3.107 (D4). No alias needed. */

}
