:root {
  color-scheme: dark;
  --night: #05090d;
  --surface: #0c1116;
  --ivory: #e6dfd2;
  --muted: #a7a8a8;
  --copper: #c9946e;
  --line: #34312d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ivory);
  background: var(--night);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, input[type="range"] { cursor: pointer; }
button:disabled, input:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hero, .documentary { width: 94%; max-width: 1920px; margin-inline: auto; }
.hero { margin-top: 0; }
.player { background: var(--surface); }
.player-stage { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.player-stage { aspect-ratio: 16 / 9; }
.player-art, .player-art picture, .player-art img { display: block; width: 100%; height: 100%; }
.player-art { position: absolute; inset: 0; }
.player-art img { object-fit: contain; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-surface { padding: 16px; border-bottom: 1px solid var(--line); }
.player-actions { display: flex; gap: 12px; align-items: center; min-height: 48px; }
.play-button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--copper); background: var(--copper); color: #10100f; font-size: 13px; font-weight: 650; letter-spacing: .015em; transition: background .2s; }
.play-button:hover:not(:disabled) { background: #e0b493; }
.player-format { display: none; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.wireless-controls { display: flex; align-items: center; margin-left: auto; gap: 4px; }
.icon-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 2px; }
.icon-button:hover { color: var(--copper); background: #ffffff08; }
.cast-slot { width: 44px; height: 44px; padding: 10px; }
google-cast-launcher { display: block; width: 24px; height: 24px; --connected-color: #c9946e; --disconnected-color: #e6dfd2; }
.player-controls { margin-top: 12px; }
.timeline { display: flex; align-items: center; gap: 16px; }
.timeline input { flex: 1; min-width: 50px; width: 100%; }
input[type="range"] { accent-color: var(--copper); height: 28px; margin: 0; }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.control-row { display: flex; align-items: center; gap: 2px; }
.volume { width: 60px; }
.quality { font-size: 9px; letter-spacing: .12em; color: var(--muted); margin-left: 12px; }
.control-spacer { flex: 1; }
.player-status { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--ivory); font-size: 13px; line-height: 1.6; }
.player[data-state="error"] .player-status { color: #edbca1; }
.remote-message { position: absolute; inset: 0; display: grid; place-items: center; background: #05090daa; padding: 24px; text-align: center; }
.remote-message span { padding: 16px 24px; background: var(--surface); border: 1px solid var(--line); line-height: 1.5; }
.documentary-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 12px; row-gap: 6px; padding: 26px 20px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.documentary-link span { color: var(--copper); }
.documentary-link .icon { width: 16px; height: 16px; }
.documentary-link:hover { color: var(--ivory); }
.documentary { margin-top: 48px; }
.section-heading { padding-inline: 20px; }
.section-heading { margin-bottom: 24px; text-align: center; }
.eyebrow { color: var(--copper); font-size: 10px; letter-spacing: .25em; margin: 0 0 16px; }
h2 { margin: 0; font: 400 clamp(25px, 4vw, 42px)/1.2 Georgia, "Times New Roman", serif; text-wrap: balance; }
.section-caption { color: var(--muted); font-size: 10px; letter-spacing: .19em; margin: 16px 0 0; }
.site-footer { max-width: 1440px; margin: 64px auto 0; border-top: 1px solid var(--line); padding: 24px 24px max(28px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: 10px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--copper); font-size: 12px; }
.site-footer span { letter-spacing: .1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; transform: translateY(-200%); padding: 16px; background: var(--ivory); color: var(--night); }
.skip-link:focus { transform: translateY(0); }
.noscript-message { padding: 24px; text-align: center; }
@media (min-width: 540px) { .player-format { display: inline; } .player-surface { padding: 20px 24px; } .volume { width: 80px; } }
@media (min-width: 768px) { .documentary { margin-top: 72px; } .documentary-link { padding-block: 32px; } }
@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) {
  .player-surface { padding: 20px 32px; }
}
@media (min-width: 1504px) { .hero { margin-top: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Solo estilos del video que el navegador ya puso en fullscreen real. */
.player video:fullscreen { object-fit: contain; background: #000; width: 100%; height: 100%; max-width: none; max-height: none; }
.player video:-webkit-full-screen { object-fit: contain; background: #000; width: 100%; height: 100%; max-width: none; max-height: none; }
.player[data-video-fullscreen="true"] .player-surface { visibility: hidden; }

/* Móvil/tablet: transporte nativo durante toda la reproducción local. */
.player[data-controls="native"] .player-format { display: none; }
.player[data-controls="native"]:not([data-state="remote"]) .player-controls { display: none; }
.player[data-controls="native"][data-state="playing"] .player-stage {
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: none;
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .hero, .documentary { width: 93%; }
}
@media (min-width: 1440px) {
  .hero, .documentary { width: 95%; }
}
