/* ==========================================================================
   Media page — builds on landing.css (nav, buttons, sections, footer)
   ========================================================================== */
.media-page { background: var(--bg); }
.nav-links .nav-back { color: var(--muted); }
.eyebrow[style*="--c"] { color: var(--c); }
.eyebrow[style*="--c"] .pulse { background: var(--c); }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- hero ---------- */
.mhero { position: relative; padding: clamp(4.4rem, 10vw, 7.4rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.mhero-photo { position: absolute; inset: 0; z-index: 0; }
.mhero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; display: block; filter: saturate(.7) brightness(.95); }
.mhero-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 80% at 28% 45%, rgba(7,11,24,.7) 0%, rgba(7,11,24,.35) 42%, rgba(7,11,24,.55) 70%, rgba(7,11,24,.92) 100%),
    linear-gradient(180deg, rgba(7,11,24,.45) 0%, transparent 30%, transparent 68%, var(--bg) 100%); }
.mhero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.mhero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 16ch; }
.mhero .lead { margin-top: 1.4rem; max-width: 62ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-2); }
.format-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-top: 2.4rem; }
.format { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: transform .25s var(--ease), border-color .25s; }
.format:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.format .fi { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 1rem; }
.format b { font-weight: 750; }
.format small { color: var(--muted); font-size: .78rem; font-family: var(--mono); }

/* ---------- section chrome ---------- */
.msection { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.msection-head { max-width: 820px; margin-bottom: 2rem; }
.msection-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin: .5rem 0 .8rem; }
.msection-head p { color: var(--text-2); font-size: 1.02rem; }

/* ---------- film ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 1.2rem; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong); background: #000; cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; }
.video-frame:hover img { transform: scale(1.03); }
.video-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,11,24,.7)); pointer-events: none; transition: opacity .3s; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.playing::after, .video-frame.playing .video-play, .video-frame.playing .video-meta { display: none; }
.video-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; z-index: 2; }
.video-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.video-frame:hover .video-play { transform: scale(1.06); }
.video-meta { position: absolute; left: 1rem; bottom: .9rem; display: flex; gap: .5rem; z-index: 2; }
.video-meta span { font-family: var(--mono); font-size: .72rem; padding: .25rem .55rem; border-radius: 7px; background: rgba(7,11,24,.7); border: 1px solid var(--border-strong); color: var(--text-2); }
.video-side { padding: 1.4rem; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: .9rem; }
.video-side h3 { font-size: 1.05rem; font-weight: 750; }
.video-side p { color: var(--text-2); font-size: .95rem; }
.video-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .2rem 0; }
.video-facts div { padding: .6rem .7rem; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.video-facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.video-facts dd { margin: .15rem 0 0; font-weight: 700; font-size: .92rem; }
.video-facts dd a { color: var(--accent); }
.video-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- podcast ---------- */
.pod { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; padding: 1.6rem; border-radius: 24px; border: 1px solid var(--border-strong); background: var(--surface-solid); user-select: none; }
.pod-art { position: relative; aspect-ratio: 1; border-radius: 18px; background: linear-gradient(160deg, #10203a, #0b1020); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.pod-art svg { width: 78%; height: 78%; }
.pod-art .a1 { fill: none; stroke: rgba(34,211,238,.25); stroke-width: 1; }
.pod-art .a2 { fill: none; stroke: rgba(34,211,238,.45); stroke-width: 1; stroke-dasharray: 3 5; }
.pod-art .ecg { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 0; opacity: .7; }
.pod.playing .pod-art .ecg { opacity: 1; animation: ecgDraw 2.4s linear infinite; }
.pod.playing .pod-art .a2 { animation: spin 14s linear infinite; transform-origin: 50% 50%; }
@keyframes ecgDraw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: -160; } }
@keyframes spin { to { transform: rotate(360deg); } }
.pod-ep { position: absolute; left: .8rem; top: .7rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pod-body { min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
.pod-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pod-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.pod-sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.pod-badge { flex: 0 0 auto; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }
.pod-desc { color: var(--text-2); font-size: .95rem; max-width: 70ch; }
.pod-wave { width: 100%; height: 72px; display: block; cursor: pointer; }
.pod-seek { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); cursor: pointer; margin-top: -.4rem; }
.pod-seek i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--accent); }
.pod-seek b { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .15s; }
.pod-seek:hover b, .pod-seek:focus-visible b { opacity: 1; }
.pod-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.pod-ctl { display: flex; align-items: center; gap: .7rem; margin-top: .2rem; }
.pod-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease); }
.pod-play:hover { transform: scale(1.05); }
.pod-play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.pod.playing .pod-play::before { width: 6px; height: 18px; border: 0; border-left: 5px solid var(--ink); border-right: 5px solid var(--ink); margin-left: 0; }
.pod.loading .pod-play::before { width: 18px; height: 18px; border: 3px solid rgba(6,32,42,.3); border-top-color: var(--ink); border-radius: 50%; margin: 0; animation: spin .8s linear infinite; }
.pod-skip { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.pod-skip svg { width: 22px; height: 22px; fill: currentColor; }
.pod-skip span { position: absolute; font-size: .52rem; font-weight: 800; top: 50%; left: 50%; transform: translate(-50%, -30%); font-family: var(--mono); }
.pod-skip:hover, .pod-rate:hover, .pod-mute:hover { color: var(--text); border-color: var(--text); }
.pod-time { margin-left: .4rem; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--text-2); display: inline-flex; gap: .4rem; }
.pod-time .sep { color: var(--muted); }
.pod-rate { margin-left: auto; min-width: 54px; height: 34px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-family: var(--mono); font-size: .8rem; font-weight: 700; cursor: pointer; }
.pod-mute { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.pod-mute svg { width: 20px; height: 20px; fill: currentColor; }
.pod-mute svg .w1, .pod-mute svg .w2 { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pod-mute[aria-pressed="true"] svg .w1, .pod-mute[aria-pressed="true"] svg .w2 { display: none; }

/* ---------- slides ---------- */
.deck { outline: none; border-radius: 24px; }
.deck:focus-visible .deck-stage { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.deck-stage { position: relative; aspect-ratio: 1376 / 769; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong); background: #0b1020; }
.deck-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.deck-stage .deck-next { opacity: 0; pointer-events: none; }
.deck-stage img.swap { animation: slideIn .35s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(var(--dir, 24px)); } to { opacity: 1; transform: none; } }
.deck-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(7,11,24,.75); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; opacity: 0; transition: opacity .25s, background .2s; backdrop-filter: blur(6px); }
.deck-arrow.prev { left: .9rem; } .deck-arrow.next { right: .9rem; }
.deck-stage:hover .deck-arrow, .deck:focus-within .deck-arrow, .deck-arrow:focus-visible { opacity: 1; }
.deck-arrow:hover { background: var(--accent-2); color: var(--ink); border-color: transparent; }
.deck-arrow[disabled] { opacity: 0 !important; pointer-events: none; }
.deck-hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; background: linear-gradient(180deg, transparent, rgba(7,11,24,.8)); color: #fff; font-size: .78rem; opacity: 0; transition: opacity .25s; }
.deck-stage:hover .deck-hud, .deck:focus-within .deck-hud { opacity: 1; }
.deck-count { font-family: var(--mono); }
.deck-count b { font-weight: 800; }
.deck-hint { color: rgba(255,255,255,.7); margin-left: auto; }
.deck-fs { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.deck-fs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deck-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.deck-progress i { display: block; height: 100%; width: 5%; background: var(--accent-2); transition: width .3s var(--ease); }
.deck-caption { display: flex; align-items: baseline; gap: .8rem; margin: 1rem .2rem .8rem; font-size: 1.02rem; font-weight: 650; min-height: 1.6em; }
.deck-cap-n { font-family: var(--mono); color: var(--accent-2); font-size: .78rem; font-weight: 700; }
.deck-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .2rem .8rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.deck-strip button { flex: 0 0 auto; width: 132px; aspect-ratio: 1376 / 768; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: #0b1020; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s var(--ease); scroll-snap-align: center; position: relative; }
.deck-strip button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.deck-strip button span { position: absolute; left: 6px; bottom: 4px; font-family: var(--mono); font-size: .62rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.deck-strip button:hover { opacity: .9; transform: translateY(-2px); }
.deck-strip button[aria-selected="true"] { opacity: 1; border-color: var(--accent-2); }
.deck-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; }
.deck-actions .btn small { font-weight: 500; opacity: .75; font-size: .78rem; margin-left: .2rem; }
.deck-actions .fine { margin-left: auto; }
.deck:fullscreen { background: #000; display: grid; place-items: center; padding: 0; border-radius: 0; }
.deck:fullscreen .deck-stage { width: min(100vw, calc(100vh * 1376 / 769)); border-radius: 0; border: 0; }
.deck:fullscreen .deck-caption, .deck:fullscreen .deck-strip { display: none; }
.deck:fullscreen .deck-arrow, .deck:fullscreen .deck-hud { opacity: 1; }

/* ---------- infographics ---------- */
.infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.info { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: transform .25s var(--ease), border-color .25s; }
.info:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-3) 50%, transparent); }
.info-img { position: relative; aspect-ratio: 2752 / 1536; overflow: hidden; background: #fff; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.info-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.info:hover .info-img img { transform: scale(1.04); }
.info-img::after { content: "View full size"; position: absolute; right: .7rem; bottom: .6rem; font-size: .7rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; background: rgba(7,11,24,.8); color: #fff; opacity: 0; transition: opacity .2s; }
.info:hover .info-img::after { opacity: 1; }
.info-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.info-body h3 { font-size: 1.02rem; font-weight: 750; line-height: 1.3; }
.info-body p { color: var(--text-2); font-size: .88rem; flex: 1; }
.info-foot { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.info-foot .btn { padding: .5rem .8rem; font-size: .82rem; }
.info-foot small { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4,7,16,.96); display: flex; flex-direction: column; animation: menuIn .2s var(--ease); }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: rgba(7,11,24,.8); backdrop-filter: blur(10px); }
.lb-title { font-weight: 700; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-hint { margin-left: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.lb-btn { height: 34px; min-width: 34px; padding: 0 .7rem; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; }
.lb-btn:hover { color: var(--text); border-color: var(--text); }
.lb-btn[aria-pressed="true"] { background: var(--accent-3); color: var(--ink); border-color: transparent; }
#lb-close { font-size: 1.3rem; }
.lb-scroll { flex: 1; overflow: auto; display: grid; place-items: center; padding: 1rem; cursor: zoom-in; }
.lb-scroll img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; border-radius: 6px; background: #fff; }
.lightbox.zoomed .lb-scroll { place-items: start; cursor: zoom-out; }
.lightbox.zoomed .lb-scroll img { max-width: none; max-height: none; width: 2752px; margin: auto; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(7,11,24,.75); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.lb-arrow.prev { left: 1rem; } .lb-arrow.next { right: 1rem; }
.lb-arrow:hover { background: var(--accent-3); color: var(--ink); border-color: transparent; }
body.lb-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: 1fr; }
  .format-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infos { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mhero h1 { max-width: none; }
  .pod { grid-template-columns: 1fr; padding: 1.1rem; gap: 1rem; }
  .pod-art { width: 96px; aspect-ratio: 1; border-radius: 14px; }
  .pod-ep { display: none; }
  .pod-top { flex-direction: column; gap: .5rem; }
  .pod-ctl { flex-wrap: wrap; gap: .5rem; }
  .pod-time { margin-left: 0; order: 5; width: 100%; justify-content: center; margin-top: .2rem; }
  .pod-rate { margin-left: auto; }
  .deck-hint { display: none; }
  .deck-arrow { opacity: 1; width: 40px; height: 40px; font-size: 1.5rem; }
  .deck-hud { opacity: 1; }
  .deck-strip button { width: 104px; }
  .deck-actions .fine { margin-left: 0; width: 100%; }
  .deck-actions .btn { width: 100%; justify-content: center; }
  .video-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .video-facts { grid-template-columns: 1fr 1fr; }
  .lb-hint { display: none; }
  .lb-arrow { top: auto; bottom: 1rem; transform: none; }
  .lightbox.zoomed .lb-scroll img { width: 1600px; }
}
@media (prefers-reduced-motion: reduce) {
  .mhero-photo img { filter: saturate(.8) brightness(.6); }
}
