/* =========================================================
   Avengers Doomsday Download — core stylesheet
   ========================================================= */

:root {
  --red: #ec1d24;
  --red-dark: #b81219;
  --ink: #0a0a0b;
  --ink-2: #141416;
  --panel: #1b1b1f;
  --panel-2: #232329;
  --line: #2e2e35;
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --text: #17171a;
  --muted: #8c8c96;
  --muted-2: #6d6d77;
  --green: #3f9c62;
  --green-dim: #2b6b45;
  --gold: #c9a227;
  --max: 1240px;
  --topbar-h: 46px;
  --nav-h: 54px;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid #1f1f23;
  transition: transform 0.28s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }

.topbar {
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #232328;
}

.topbar__side {
  display: flex;
  align-items: center;
  height: 100%;
}

.topbar__side--left { justify-self: start; }
.topbar__side--right { justify-self: end; }

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 20px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8d8dd;
  border-right: 1px solid #232328;
  transition: color 0.18s ease, background 0.18s ease;
}
.topbar__link:first-child { border-left: 1px solid #232328; }
.topbar__link:hover { color: #fff; background: #16161a; }
.topbar__link--red { color: #fff; }
.topbar__link--red .arrow { color: var(--red); }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  height: 100%;
  line-height: 1;
  background: var(--red);
  color: #fff;
  min-width: 210px;
  transition: background 0.2s ease;
}
.brand:hover { background: var(--red-dark); }

.brand__main {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.mainnav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.mainnav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.mainnav a {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfcfd6;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease;
}
.mainnav a:hover,
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

.nav-toggle {
  display: none;
  margin: 0 auto;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px;
  cursor: pointer;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
  background-color: #000;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 32%, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%),
    url("../img/avengers-doomsday-key-art.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  padding: 70px 0 100px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content { max-width: 620px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e6e6ea;
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.hero h1 span {
  display: block;
  font-size: 0.44em;
  letter-spacing: 0.3em;
  color: var(--green);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9);
  margin-top: 8px;
}

.hero__text {
  margin-top: 22px;
  max-width: 520px;
  color: #c9c9d0;
  font-size: 17.5px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #dfe0e6;
}
.hero__status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

/* Skewed buttons (reference style) */
.btn {
  position: relative;
  display: inline-block;
  padding: 15px 34px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: skewX(-11deg);
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn > span { display: inline-block; transform: skewX(11deg); }
.btn:hover { background: var(--red-dark); transform: skewX(-11deg) translateY(-2px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn--sm { padding: 12px 24px; font-size: 13px; }

.btn--dark { background: var(--ink); }

/* unconfigured launch destinations read as pending, never as a broken link */
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn[aria-disabled="true"]:hover {
  background: var(--red);
  transform: skewX(-11deg);
}
.btn--ghost[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn--dark:hover { background: #000; }

/* =========================================================
   White content sheet with angled top edge
   ========================================================= */

.sheet {
  position: relative;
  background: var(--paper);
  margin-top: -3.4vw;
  padding-top: 3.4vw;
  clip-path: polygon(0 3.4vw, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

.sheet__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 34px 0 0;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #8e8e97;
  transition: color 0.18s ease, transform 0.18s ease;
}
.socials a:hover { color: var(--red); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Meta strip */
.metastrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #e4e4e8;
  border-bottom: 1px solid #e4e4e8;
  margin: 26px 0 0;
}

.metastrip__item {
  padding: 22px 24px;
  border-right: 1px solid #e4e4e8;
}
.metastrip__item:first-child { padding-left: 0; }
.metastrip__item:last-child { border-right: 0; }

.metastrip__label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.metastrip__value {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.15;
}
.metastrip__value small {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted-2);
  margin-top: 4px;
}

/* =========================================================
   Sections
   ========================================================= */

.section { padding: 74px 0; }
.section--tight { padding: 54px 0; }
.section--paper { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--dark { background: var(--ink-2); color: #e8e8ec; }

.section-head { margin-bottom: 34px; max-width: 780px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--red);
  flex: none;
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  color: var(--text);
}

.section--dark .section-head h2,
.section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow { color: var(--red); }
.section--dark .lede { color: #b9b9c3; }

.lede {
  font-size: 20px;
  line-height: 1.65;
  color: #3a3a42;
  margin-top: 18px;
  font-weight: 500;
}

/* =========================================================
   Video / first look
   ========================================================= */

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  border-top: 3px solid var(--red);
}
.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  color: var(--muted-2);
  font-size: 14px;
}
.video-meta strong { color: var(--text); font-weight: 600; }

/* =========================================================
   Scene gallery
   ========================================================= */

.scene-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #000;
  grid-column: span 2;
  aspect-ratio: 16 / 9;
  border: 1px solid #e2e2e6;
}
.scene--wide { grid-column: span 3; }

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
.scene:hover img { transform: scale(1.045); }

.scene figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 18px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.scene figcaption span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #b9b9c2;
  margin-top: 3px;
}

.scene figcaption strong {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #b9b9c2;
  margin-top: 3px;
}

/* =========================================================
   Share button
   ========================================================= */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  background: none;
  border: 1px solid #dcdce1;
  color: #5d5d67;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.share-btn:hover { color: var(--red); border-color: var(--red); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* =========================================================
   Main trailer (self-hosted)
   ========================================================= */

.trailer {
  position: relative;
  background: #000;
  border-top: 3px solid var(--red);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  line-height: 0;
}

.trailer__video {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 536;
  object-fit: cover;
  background: #000;
}

.trailer__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  color: #fff;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s ease;
}
.trailer__play:hover { background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3)); }
.trailer__play[hidden] { display: none; }

.trailer__play-icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}
.trailer__play-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-36%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
}
.trailer__play:hover .trailer__play-icon { transform: scale(1.07); background: var(--red-dark); }

.trailer__play-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* =========================================================
   Scene clips (auto-playing)
   ========================================================= */

.clip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.clip {
  margin: 0;
  background: #0b0b0d;
  border: 1px solid #e2e2e6;
  overflow: hidden;
}
.clip--wide { grid-column: span 2; }

.clip__frame {
  position: relative;
  aspect-ratio: 1280 / 536;
  background: #000;
}
.clip__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}

.clip figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px 13px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
}
.clip figcaption span:last-child {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #9a9aa4;
  flex: none;
}

/* =========================================================
   Screenshot gallery
   ========================================================= */

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

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #2c2c33;
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 670;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.shot:hover img { transform: scale(1.035); opacity: 0.85; }

.shot__zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.shot:hover .shot__zoom,
.shot:focus-visible .shot__zoom { opacity: 1; }

/* =========================================================
   Posters
   ========================================================= */

.poster-slider { position: relative; }

.poster-slider__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.poster-slider__count {
  margin: 0;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}
.poster-slider__count [data-slider-current] { color: var(--text); }
.poster-slider__sep { margin: 0 7px; color: var(--red); }

.poster-slider__nav { display: flex; gap: 8px; }

.slider-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #2c2c33;
  background: #0b0b0d;
  color: #fff;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.slider-btn:hover { background: var(--red); border-color: var(--red); }
.slider-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.slider-btn[aria-disabled="true"]:hover { background: #0b0b0d; border-color: #2c2c33; }
.slider-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.poster-track {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.poster-track::-webkit-scrollbar { display: none; }

.poster-slide { scroll-snap-align: start; min-width: 0; }

.poster-item { margin: 0; }

.poster-item__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.poster-item__btn img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid #e2e2e6;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.poster-item__btn:hover img {
  transform: translateY(-4px);
  box-shadow: 0 26px 40px -30px rgba(0, 0, 0, 0.7);
}

.poster-item figcaption { padding-top: 12px; }
.poster-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}
.poster-item figcaption span {
  display: block;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 3px;
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 64px 72px;
  background: rgba(6, 6, 7, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }

.lightbox__figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  margin: 0 auto;
  border: 1px solid #2a2a31;
  background: #000;
}
.lightbox__cap {
  margin-top: 14px;
  color: #c9c9d2;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }

.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

body.has-lightbox { overflow: hidden; }

.shot:focus-visible,
.poster-item__btn:focus-visible,
.trailer__play:focus-visible,
.share-btn:focus-visible,
.lightbox button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* =========================================================
   Story layout
   ========================================================= */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: start;
}

.prose p { color: #33333b; margin-bottom: 1.2em; }
.prose h3 {
  font-size: 27px;
  margin: 34px 0 12px;
  color: var(--text);
}
.prose h3:first-child { margin-top: 0; }
.prose strong { color: #111; }

.pull {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--red);
  background: var(--paper-2);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  color: #22222a;
}

.poster-card {
  border: 1px solid #e2e2e6;
  background: #fff;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.55);
}
.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.poster-card__body { padding: 18px 20px 22px; }
.poster-card__title {
  font-family: var(--font-head);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.poster-card__meta {
  font-size: 13.5px;
  color: var(--muted-2);
  margin: 4px 0 14px;
}
.poster-card .btn { width: 100%; text-align: center; }

.chip {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.chip--gold { color: #8a6d0a; background: #fff8e1; }
.chip--green { color: var(--green-dim); background: #eef7f1; }
.chip--red { color: var(--red-dark); background: #fdeceb; }

/* =========================================================
   Cast
   ========================================================= */

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e2e2e6;
  border-left: 1px solid #e2e2e6;
}

.cast-item {
  padding: 18px 20px;
  border-right: 1px solid #e2e2e6;
  border-bottom: 1px solid #e2e2e6;
  transition: background 0.18s ease;
}
.cast-item:hover { background: var(--paper-2); }

.cast-item__actor {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.15;
}
.cast-item__role {
  display: block;
  font-size: 13.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

/* =========================================================
   Download / status
   ========================================================= */

.download-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.status-card {
  position: relative;
  border: 1px solid #35353d;
  background: linear-gradient(160deg, #202026 0%, #151518 60%);
  padding: 30px;
}
.status-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.status-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.status-card__row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.14);
}
.status-card h3 {
  font-size: 30px;
  color: #fff;
  margin-bottom: 12px;
}
.status-card p { color: #b6b6c0; font-size: 15.5px; }

.status-card__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid #2c2c34;
}
.status-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #2c2c34;
  font-size: 14.5px;
  color: #c9c9d2;
}
.status-card__list b {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: #fff;
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(236, 29, 36, 0.08);
  border: 1px solid rgba(236, 29, 36, 0.35);
  font-size: 14px;
  line-height: 1.6;
  color: #ffd9da;
}
.notice b { color: #fff; }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #2c2c34;
}
.spec-list li {
  padding: 16px 0;
  border-bottom: 1px solid #2c2c34;
  color: #b9b9c3;
  font-size: 15px;
}
.spec-list b {
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 3px;
}

.dark-heading {
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.subheading {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq { max-width: 900px; }

.faq details {
  border-bottom: 1px solid #e0e0e5;
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid #e0e0e5; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 0 22px;
  color: #3c3c45;
  font-size: 16px;
  max-width: 780px;
}

/* =========================================================
   Related
   ========================================================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 22px;
  border: 1px solid #e2e2e6;
  background: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.related-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.55);
}
.related-card__year {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 600;
}
.related-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 8px 0 18px;
  color: var(--text);
}
.related-card__arrow {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  position: relative;
  padding: 66px 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(10, 10, 11, 0.78) 55%, rgba(10, 10, 11, 0.55) 100%),
    url("../img/avengers-doomsday-doctor-doom-armor.jpg") center 30% / cover no-repeat;
  color: #fff;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid #24242a;
}
.cta-band h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  color: #fff;
  max-width: 620px;
}
.cta-band p {
  max-width: 520px;
  color: #c4c4cd;
  margin-top: 14px;
}
.cta-band .hero__actions { margin-top: 26px; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: #080809;
  color: #9b9ba5;
  font-size: 14px;
  padding: 56px 0 30px;
  border-top: 1px solid #1c1c21;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand__main {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.footer-brand__sub {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}
.footer-brand p { margin-top: 16px; max-width: 320px; line-height: 1.65; }

.footer-col h3 {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { transition: color 0.18s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #1c1c21;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: #77777f;
  line-height: 1.6;
}
.footer-bottom p { margin: 0; max-width: 780px; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */

.page-hero {
  position: relative;
  padding: 64px 0 78px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.45) 100%),
    url("../img/avengers-doomsday-key-art.jpg") center 45% / cover no-repeat;
  color: #fff;
  border-bottom: 3px solid var(--red);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5a5b0;
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #5b5b66; }

.page-hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  max-width: 780px;
  color: #fff;
}
.page-hero .lede { color: #c7c7d0; max-width: 640px; }

.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.page-hero__tags .chip {
  color: #dcdce4;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

/* =========================================================
   Legal pages
   ========================================================= */

.page-hero--legal {
  padding: 54px 0 60px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(4, 8, 5, 0.86) 58%, rgba(4, 8, 5, 0.55) 100%),
    url("../img/avengers-doomsday-key-art.jpg") center 42% / cover no-repeat;
}

.legal-updated {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa79d;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
}

.legal-nav a {
  padding: 9px 14px;
  border: 1px solid #e2e2e6;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4a54;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.legal-nav a:hover { border-color: var(--ink); color: var(--ink); }
.legal-nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.legal-body { max-width: 790px; }

.legal-body h2 {
  font-size: 25px;
  margin: 36px 0 12px;
  color: var(--text);
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li { color: #33333b; }
.legal-body p { margin-bottom: 1.1em; }
.legal-body ul {
  margin: 0 0 1.3em;
  padding-left: 20px;
}
.legal-body li { margin-bottom: 0.5em; }
.legal-body strong { color: #111; }
.legal-body a {
  color: #a3121b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--red);
  background: var(--paper-2);
}
.legal-note p { margin: 0; }

.legal-foot {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #e4e4e8;
  font-size: 13.5px;
  color: #6e6e78;
}
.legal-foot p { color: #6e6e78; margin: 0; }

/* Details table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.data-table caption {
  text-align: left;
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 10px;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e2e6;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  width: 34%;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b4b55;
  background: #fafafa;
}
.data-table td { color: #2c2c34; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 0 0 26px 62px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.steps li b {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.steps li p { color: #3c3c45; font-size: 15.5px; margin: 0; }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

section[id] { scroll-margin-top: 112px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 18px; }
.mt-2 { margin-top: 32px; }
.muted { color: var(--muted-2); }
.small { font-size: 14px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .scene img, .related-card { transition: none; }
  .site-header { transition: none; }
  .poster-track { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .story { grid-template-columns: 1fr; gap: 36px; }
  .poster-card { max-width: 340px; }
  .download-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .poster-track { grid-auto-columns: calc((100% - 18px) / 2); }
}

@media (max-width: 860px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .topbar__link { padding: 0 12px; font-size: 11.5px; }
  .brand { min-width: 0; padding: 0 16px; }
  .brand__main { font-size: 18px; }
  .brand__sub { font-size: 8.5px; letter-spacing: 0.26em; }

  .nav-toggle { display: block; }
  .mainnav {
    height: auto;
    display: none;
    padding: 10px 0 16px;
    border-top: 1px solid #1f1f23;
  }
  .mainnav.is-open { display: block; }
  .mainnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mainnav a {
    padding: 12px 24px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }
  .mainnav a:hover, .mainnav a[aria-current="page"] { border-left-color: var(--red); border-bottom: 0; }

  .hero { min-height: 0; padding: 56px 0 96px; }
  .hero h1 { font-size: clamp(40px, 11vw, 62px); }
  .hero__text { font-size: 16px; }

  .metastrip { grid-template-columns: 1fr 1fr; }
  .metastrip__item { border-bottom: 1px solid #e4e4e8; }
  .metastrip__item:nth-child(2) { border-right: 0; }
  .metastrip__item:nth-child(3) { padding-left: 0; }
  .metastrip__item:nth-child(n+3) { border-bottom: 0; }

  .section { padding: 54px 0; }
  .scene-grid { grid-template-columns: 1fr 1fr; }
  .scene, .scene--wide { grid-column: span 1; }
  .related-grid { grid-template-columns: 1fr; }

  .sheet__top { padding-top: 20px; }
  .socials { margin-left: auto; }

  .clip-grid { grid-template-columns: 1fr; }
  .clip--wide { grid-column: auto; }
  .poster-track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .trailer__play-icon { width: 72px; height: 72px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .topbar__side--left .topbar__link:last-child { display: none; }
  .topbar__link { padding: 0 10px; font-size: 11px; letter-spacing: 0.1em; }
  .brand__main { font-size: 16px; }

  .hero__actions { gap: 12px; }
  .btn { padding: 13px 24px; font-size: 13.5px; }

  .scene-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head h2 { font-size: 34px; }
  .hero h1 span { font-size: 0.4em; letter-spacing: 0.22em; }
  .status-card { padding: 22px; }

  .trailer__play-icon { width: 62px; height: 62px; }
  .trailer__play-icon::after { border-width: 11px 0 11px 18px; }
  .trailer__play-label { font-size: 12px; letter-spacing: 0.2em; }

  .clip__frame { aspect-ratio: 16 / 9; }
  .shot-grid { grid-template-columns: 1fr; }
  .poster-track { grid-auto-columns: 82%; gap: 12px; }
  .slider-btn { width: 40px; height: 40px; font-size: 19px; }
  .poster-slider__bar { margin-bottom: 12px; }

  .legal-nav { gap: 6px; padding-top: 20px; }
  .legal-nav a { padding: 8px 10px; font-size: 10.5px; letter-spacing: 0.1em; }
  .legal-body h2 { font-size: 22px; margin-top: 30px; }
  .lightbox { padding: 66px 12px 18px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__nav { width: 38px; height: 38px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__figure img { max-height: calc(100vh - 150px); }
}
