[hidden] {
  display: none !important;
}

:root {
  --bg-obsidian: #0b0d11;
  --bg-slate: #12161d;
  --bg-panel: #171c25;
  --bg-panel-elev: #1d2430;
  --bg-inset: #0e1218;
  --border-steel: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 255, 255, 0.2);
  --accent-orange: #ff5416;
  --accent-orange-hi: #ff7338;
  --accent-orange-glow: rgba(255, 84, 22, 0.16);
  --accent-cyan: #22d3ee;
  --accent-emerald: #22c55e;
  --accent-amber: #f59e0b;
  --text-chalk: #f3f5f8;
  --text-silver: #b3becd;
  --text-muted: #7f8c9f;
  --font-sans: "Avenir Next", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1240px;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-obsidian);
  color: var(--text-chalk);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-chalk);
  background:
    radial-gradient(900px 440px at 88% -6%, rgba(255, 84, 22, 0.14), transparent 60%),
    radial-gradient(700px 420px at 8% 18%, rgba(34, 211, 238, 0.06), transparent 62%),
    linear-gradient(180deg, #0b0d11 0%, #0f131a 48%, #0b0d11 100%);
  min-height: 100vh;
  overflow-x: clip;
}

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

a {
  color: var(--accent-orange-hi);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

a:hover {
  color: #ffa07a;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent-orange);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.mtg-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Telemetry Ticker */
.mtg-ticker {
  background: #07090c;
  border-bottom: 1px solid rgba(255, 84, 22, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-silver);
  padding: 7px 0;
}

.mtg-ticker-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.mtg-ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-orange-hi);
  font-weight: 700;
}

.mtg-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
}

.mtg-ticker-sep {
  color: rgba(255, 255, 255, 0.22);
}

/* Header */
.mtg-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 17, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-steel);
}

.mtg-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.mtg-subnav-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 17, 23, 0.85);
}

.mtg-nav-links {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.mtg-nav-link {
  color: var(--text-silver);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.mtg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-chalk);
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.mtg-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 84, 22, 0.65);
}

.mtg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mtg-brand-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mtg-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-orange-hi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtg-nav-link:hover,
.mtg-nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 84, 22, 0.14);
}

.mtg-nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent-orange);
}

.mtg-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search Box */
.mtg-search-wrap {
  position: relative;
}

.mtg-search-input {
  width: 280px;
  background: var(--bg-inset);
  color: var(--text-chalk);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font-sans);
}

.mtg-search-input::placeholder {
  color: var(--text-muted);
}

.mtg-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.mtg-search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(360px, 88vw);
  background: var(--bg-panel-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: none;
  z-index: 90;
  max-height: 360px;
  overflow-y: auto;
}

.mtg-search-results.is-open {
  display: block;
}

.mtg-search-item {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-chalk);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mtg-search-item:last-child {
  border-bottom: none;
}

.mtg-search-item:hover {
  background: rgba(255, 84, 22, 0.14);
  color: #fff;
}

.mtg-search-item-title {
  font-size: 13.5px;
  font-weight: 700;
}

.mtg-search-item-desc {
  font-size: 12px;
  color: var(--text-silver);
  margin-top: 2px;
}

.mtg-search-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Locale Switcher */
.mtg-lang-wrap {
  position: relative;
}

.mtg-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-panel);
  color: var(--text-chalk);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
}

.mtg-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  background: var(--bg-panel-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  z-index: 95;
}

.mtg-lang-menu.is-open {
  display: block;
}

.mtg-lang-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-silver);
}

.mtg-lang-opt:hover,
.mtg-lang-opt.is-current {
  background: rgba(255, 84, 22, 0.16);
  color: #fff;
}

.mtg-menu-toggle {
  display: none;
  background: var(--bg-panel);
  color: var(--text-chalk);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile Drawer */
.mtg-mobile-drawer {
  display: none;
  background: var(--bg-slate);
  border-bottom: 1px solid var(--border-steel);
  padding: 14px 20px 18px;
}

.mtg-mobile-drawer.is-open {
  display: block;
}

.mtg-mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mtg-mobile-nav-grid a {
  background: var(--bg-panel);
  border: 1px solid var(--border-steel);
  color: var(--text-chalk);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
}

/* Breadcrumb */
.mtg-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin: 18px 0 6px;
}

.mtg-breadcrumbs a {
  color: var(--text-silver);
}

/* Hero Section */
.mtg-hero {
  padding: 26px 0 18px;
}

.mtg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(23, 28, 37, 0.94) 0%, rgba(14, 17, 23, 0.96) 100%);
  border: 1px solid var(--border-steel);
  border-top: 3px solid var(--accent-orange);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.mtg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-orange-hi);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #fff;
}

.mtg-lead {
  margin: 0 0 18px;
  font-size: 16.5px;
  color: var(--text-silver);
  line-height: 1.6;
}

.mtg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.mtg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.mtg-btn-primary {
  background: var(--accent-orange);
  color: #fff;
}

.mtg-btn-primary:hover {
  background: var(--accent-orange-hi);
  color: #fff;
}

.mtg-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-chalk);
  border-color: var(--border-bright);
}

.mtg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mtg-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mtg-stat-box {
  background: var(--bg-inset);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}

.mtg-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mtg-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.mtg-hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: #080a0d;
  aspect-ratio: 16 / 9;
}

.mtg-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtg-hero-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(11, 13, 17, 0.85);
  border: 1px solid rgba(255, 84, 22, 0.65);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
}

/* Direct Answer Band (Strict Rule: No ad above H1 or Direct Answer) */
.mtg-direct-answer {
  margin: 16px 0 14px;
  background: linear-gradient(90deg, rgba(255, 84, 22, 0.12) 0%, rgba(23, 28, 37, 0.94) 55%);
  border: 1px solid rgba(255, 84, 22, 0.35);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.mtg-da-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-orange-hi);
  margin-bottom: 5px;
}

.mtg-direct-answer p {
  margin: 0;
  font-size: 15.5px;
  color: #f8fafc;
}

/* Safe Collapsed Ad Slots */
.mtg-ad-slot {
  display: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.mtg-ad-slot.is-active {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  max-width: 100%;
  margin: 22px auto;
  padding: 10px;
  background: rgba(14, 17, 23, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mtg-ad-inner {
  max-width: 100%;
  overflow: hidden;
}

/* Main Content Layout with Sticky TOC */
.mtg-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  padding: 12px 0 42px;
  align-items: start;
}

.mtg-layout-grid.no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.mtg-main-col {
  min-width: 0;
}

.mtg-toc {
  position: sticky;
  top: 86px;
  background: var(--bg-panel);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mtg-toc-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin: 0 0 10px;
}

.mtg-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mtg-toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-silver);
  padding: 4px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}

.mtg-toc-list a:hover,
.mtg-toc-list a.is-active {
  color: #fff;
  border-left-color: var(--accent-orange);
  background: rgba(255, 84, 22, 0.09);
}

/* Sections & Cards */
.mtg-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 22px;
}

.mtg-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mtg-section h2::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--accent-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.mtg-section p {
  margin: 0 0 12px;
  color: var(--text-silver);
}

.mtg-section p:last-child {
  margin-bottom: 0;
}

.mtg-bullet-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.mtg-bullet-list li {
  position: relative;
  padding: 10px 14px 10px 28px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-chalk);
  font-size: 14.5px;
}

.mtg-bullet-list li::before {
  content: "▸";
  position: absolute;
  left: 11px;
  top: 10px;
  color: var(--accent-orange-hi);
  font-weight: 800;
}

.mtg-callout {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-md);
}

.mtg-callout-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.mtg-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text-chalk);
}

/* Hub Grid */
.mtg-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mtg-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.mtg-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-orange);
}

.mtg-hub-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080a0d;
  overflow: hidden;
}

.mtg-hub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtg-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 84, 22, 0.18);
  color: #ffb194;
  border: 1px solid rgba(255, 84, 22, 0.45);
}

.mtg-hub-thumb .mtg-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 13, 17, 0.88);
}

.mtg-hub-body {
  padding: 15px 16px;
}

.mtg-hub-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
}

.mtg-hub-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-silver);
  line-height: 1.5;
}

/* Interactive Telemetry Widgets */
.mtg-widget-box {
  background: linear-gradient(180deg, #161c25 0%, #11161d 100%);
  border: 1px solid var(--border-bright);
  border-top: 3px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.mtg-widget-head {
  margin-bottom: 16px;
}

.mtg-widget-head h2 {
  margin: 0 0 5px;
  font-size: 20px;
  color: #fff;
}

.mtg-widget-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-silver);
}

.mtg-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mtg-tab-btn {
  background: var(--bg-inset);
  color: var(--text-silver);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mtg-tab-btn:hover {
  border-color: var(--accent-orange);
  color: #fff;
}

.mtg-tab-btn.is-active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

.mtg-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mtg-telemetry-cell {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.mtg-telemetry-cell-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 5px;
}

.mtg-telemetry-cell p {
  margin: 0;
  font-size: 14px;
  color: var(--text-chalk);
}

.mtg-source-footnote {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Tracks Matrix */
.mtg-track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mtg-track-card {
  background: var(--bg-inset);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mtg-track-card.is-hidden {
  display: none;
}

.mtg-track-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mtg-track-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtg-status-pill {
  position: absolute;
  top: 9px;
  right: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.mtg-status-pill.launch {
  background: rgba(20, 83, 45, 0.92);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.55);
}

.mtg-status-pill.upcoming {
  background: rgba(120, 53, 15, 0.92);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.mtg-track-body {
  padding: 13px 14px;
}

.mtg-track-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange-hi);
  margin-bottom: 4px;
}

.mtg-track-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
}

.mtg-track-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-silver);
  line-height: 1.5;
}

/* Tables */
.mtg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  background: var(--bg-inset);
}

.mtg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mtg-table th,
.mtg-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mtg-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.03);
}

.mtg-table tr:last-child td {
  border-bottom: none;
}

/* YouTube Click-to-Load Cards */
.mtg-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mtg-video-grid[data-video-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mtg-video-card {
  background: var(--bg-inset);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mtg-video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.mtg-video-stage img,
.mtg-video-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.mtg-play-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.65) 100%);
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
}

.mtg-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 84, 22, 0.48);
  transition: transform 0.16s ease;
}

.mtg-play-trigger:hover .mtg-play-circle {
  transform: scale(1.08);
}

.mtg-play-label {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(11, 13, 17, 0.85);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mtg-video-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mtg-video-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange-hi);
}

.mtg-video-info h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
  color: #fff;
}

.mtg-video-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-silver);
}

.mtg-watch-link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Official Channels List */
.mtg-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mtg-channel-card {
  background: var(--bg-inset);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mtg-channel-card strong {
  color: #fff;
  font-size: 14.5px;
}

.mtg-channel-card span {
  font-size: 12.5px;
  color: var(--text-silver);
}

/* FAQ Accordion */
.mtg-faq-list {
  display: grid;
  gap: 10px;
}

.mtg-faq-item {
  background: var(--bg-inset);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mtg-faq-item summary {
  padding: 13px 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mtg-faq-item summary::-webkit-details-marker {
  display: none;
}

.mtg-faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-orange-hi);
  font-size: 18px;
  flex-shrink: 0;
}

.mtg-faq-item[open] summary::after {
  content: "−";
}

.mtg-faq-answer {
  padding: 0 16px 14px;
  font-size: 14.5px;
  color: var(--text-silver);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 11px;
}

/* Related Cards */
.mtg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mtg-related-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.mtg-related-card:hover {
  border-color: var(--accent-orange);
}

.mtg-related-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 4px;
}

.mtg-related-card span {
  font-size: 12.5px;
  color: var(--text-silver);
}

/* Footer */
.mtg-footer {
  border-top: 1px solid var(--border-steel);
  background: #080a0e;
  padding: 34px 0 28px;
  margin-top: 24px;
}

.mtg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.mtg-footer h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange-hi);
}

.mtg-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.mtg-footer-links a {
  color: var(--text-silver);
}

.mtg-footer-links a:hover {
  color: #fff;
}

.mtg-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .mtg-subnav-bar {
    display: none;
  }

  .mtg-search-wrap {
    display: none;
  }

  .mtg-menu-toggle {
    display: inline-flex;
  }

  .mtg-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mtg-toc {
    position: static;
    order: -1;
  }

  .mtg-video-grid[data-video-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mtg-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    gap: 18px;
  }

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

  .mtg-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .mtg-container {
    padding: 0 14px;
  }

  .mtg-stats-strip,
  .mtg-telemetry-grid,
  .mtg-hub-grid,
  .mtg-track-grid,
  .mtg-video-grid,
  .mtg-channel-grid,
  .mtg-related-grid,
  .mtg-mobile-nav-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .mtg-section,
  .mtg-widget-box {
    padding: 18px 16px;
  }

  .mtg-ticker {
    font-size: 10px;
    padding: 5px 0;
  }

  .mtg-ticker-inner {
    gap: 4px 10px;
  }

  .mtg-ticker-sep {
    display: none;
  }

  .mtg-ticker-item-extra {
    display: none;
  }

  .mtg-video-grid[data-video-count="3"] {
    grid-template-columns: minmax(0, 1fr);
  }
}
