:root,
html[data-player-browser-page-theme="light"] {
  color-scheme: light;
  --paper: #f4efe7;
  --ink: #181713;
  --muted: #706b63;
  --line: rgba(24, 23, 19, 0.16);
  --accent: #d85734;
  --copy: #37332e;
  --dek: #514d47;
  --glow: rgba(218, 139, 81, 0.16);
  --media-surface: #faf6ef;
  --media-muted: #706b63;
  --strip-surface: #ead7c1;
  --strip-ink: #43382d;
  --strip-line: rgba(92, 65, 37, 0.18);
  --photo-shadow: rgba(51, 42, 30, 0.14);
  --sponsor-start: #303b46;
  --sponsor-end: #171e26;
  --flash-surface: #ffd43b;
  --flash-ink: #111;
  --ticker-surface: #203bff;
  --native-surface: #22342f;
  --grid-surface: #111;
  --grid-second: #ff4e3a;
  --grid-third: #aef06c;
  --grid-accent-ink: #111;
  --ad-close-surface: rgba(255, 255, 255, 0.82);
  --popup-surface: #aef06c;
  --popup-ink: #111;
}

@media (prefers-color-scheme: dark) {
  html:not([data-player-browser-page-theme]) {
    color-scheme: dark;
    --paper: #0b0c0f;
    --ink: #f3efe8;
    --muted: #b7b1a8;
    --line: rgba(243, 239, 232, 0.16);
    --accent: #f08060;
    --copy: #d8d1c7;
    --dek: #c4bdb3;
    --glow: rgba(218, 139, 81, 0.06);
    --media-surface: #191b20;
    --media-muted: #b7b1a8;
    --strip-surface: #28221d;
    --strip-ink: #e5d5c2;
    --strip-line: rgba(229, 213, 194, 0.18);
    --photo-shadow: rgba(0, 0, 0, 0.38);
    --sponsor-start: #242c35;
    --sponsor-end: #11171e;
    --flash-surface: #352f18;
    --flash-ink: #f6df87;
    --ticker-surface: #1a285e;
    --native-surface: #182720;
    --grid-surface: #15171a;
    --grid-second: #4b241e;
    --grid-third: #25341d;
    --grid-accent-ink: #f3efe8;
    --ad-close-surface: rgba(24, 26, 30, 0.92);
    --popup-surface: #25341d;
    --popup-ink: #e3f2cf;
  }
}

html[data-player-browser-page-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0c0f;
  --ink: #f3efe8;
  --muted: #b7b1a8;
  --line: rgba(243, 239, 232, 0.16);
  --accent: #f08060;
  --copy: #d8d1c7;
  --dek: #c4bdb3;
  --glow: rgba(218, 139, 81, 0.06);
  --media-surface: #191b20;
  --media-muted: #b7b1a8;
  --strip-surface: #28221d;
  --strip-ink: #e5d5c2;
  --strip-line: rgba(229, 213, 194, 0.18);
  --photo-shadow: rgba(0, 0, 0, 0.38);
  --sponsor-start: #242c35;
  --sponsor-end: #11171e;
  --flash-surface: #352f18;
  --flash-ink: #f6df87;
  --ticker-surface: #1a285e;
  --native-surface: #182720;
  --grid-surface: #15171a;
  --grid-second: #4b241e;
  --grid-third: #25341d;
  --grid-accent-ink: #f3efe8;
  --ad-close-surface: rgba(24, 26, 30, 0.92);
  --popup-surface: #25341d;
  --popup-ink: #e3f2cf;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 7%, var(--glow), transparent 26rem),
    var(--paper);
  font-family: ui-serif, "Iowan Old Style", "Songti SC", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font: inherit;
}

.showcase-header {
  width: min(1220px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.showcase-brand img {
  border-radius: 9px;
}

.language-switcher {
  display: flex;
  gap: 16px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher a {
  color: var(--muted);
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  color: var(--accent);
}

.sponsor-banner,
.ad-strip,
.native-ad,
.ad-flash,
.promo-ticker,
.ad-grid,
.closing-ad,
.floating-card,
.sticky-ad,
.popup-ad {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ads-stack {
  display: grid;
  gap: 10px;
}

.sponsor-banner {
  width: min(1100px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #f8f3eb;
  background: linear-gradient(120deg, var(--sponsor-start), var(--sponsor-end));
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(30, 35, 42, 0.15);
}

.sponsor-banner div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px 14px;
}

.sponsor-banner p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.ad-kicker {
  color: #e98b68;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sponsor-banner button,
.native-ad button,
.ad-strip button,
.ad-flash button,
.closing-ad button,
.sticky-ad button,
.popup-ad button {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.ad-flash {
  width: min(1180px, calc(100% - 26px));
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto 1.1fr 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--flash-ink);
  background: var(--flash-surface);
  border: 3px solid #111;
  box-shadow: 6px 6px 0 #111;
}

.ad-flash strong {
  font-size: clamp(16px, 2.3vw, 24px);
  letter-spacing: -0.03em;
}

.ad-flash > span:not(.ad-kicker) {
  font-size: 12px;
}

.promo-ticker {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  color: white;
  background: var(--ticker-surface);
  border-block: 2px solid #0b174f;
  white-space: nowrap;
}

.promo-ticker > strong {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-ticker > div {
  display: flex;
  gap: 34px;
  min-width: max-content;
  font-size: 14px;
  font-weight: 800;
  animation: ticker-slide 12s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translateX(10vw); }
  to { transform: translateX(-45vw); }
}

.story {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 90px;
}

.story-header {
  max-width: 960px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.story h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.dek {
  max-width: 760px;
  margin: 36px auto 28px;
  color: var(--dek);
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.55;
}

.story-meta {
  display: flex;
  justify-content: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

figure {
  margin: 0;
}

.feature-media img,
.closing-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 28px 80px var(--photo-shadow);
}

figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 80px;
  max-width: 940px;
  margin: 96px auto;
}

.story-copy {
  color: var(--copy);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.8;
}

.story-copy p {
  margin: 0 0 32px;
}

.drop-cap::first-letter {
  float: left;
  margin: 10px 12px 0 0;
  color: var(--accent);
  font-size: 82px;
  line-height: 0.7;
}

.native-ad {
  align-self: start;
  padding: 26px;
  display: grid;
  gap: 16px;
  color: #f5ede1;
  background: var(--native-surface);
  border-radius: 3px;
}

.native-ad strong {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 28px;
  line-height: 1.08;
}

.native-ad p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.native-ad button {
  justify-self: start;
}

.media-pair,
.image-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.video-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--media-surface);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(20, 22, 24, 0.18);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--grid-surface);
}

.video-card figcaption {
  margin: 0;
  padding: 18px 20px 21px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: inherit;
  font-style: normal;
}

.video-card figcaption a {
  color: var(--media-muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-card figcaption a:hover,
.video-card figcaption a:focus-visible {
  color: var(--accent);
}

.image-sequence {
  margin: 112px 0 88px;
  align-items: start;
}

.collection-heading {
  margin: 112px 0 -68px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.collection-heading p {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.04em;
}

.collection-heading span {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.portrait-card {
  width: 92%;
}

.offset-card {
  width: 88%;
  margin-top: 140px;
  margin-left: auto;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ad-strip {
  margin: 0 auto 104px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  color: var(--strip-ink);
  background: var(--strip-surface);
  border: 1px solid var(--strip-line);
}

.ad-strip button {
  color: var(--strip-ink);
}

.ad-grid {
  margin: 34px 0 104px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: white;
  background: var(--grid-surface);
  box-shadow: 12px 12px 0 var(--accent);
}

.ad-grid article {
  min-height: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ad-grid article:nth-child(2) {
  color: var(--grid-accent-ink);
  background: var(--grid-second);
}

.ad-grid article:nth-child(3) {
  color: var(--popup-ink);
  background: var(--popup-surface);
}

.ad-grid article > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.ad-grid strong {
  font-size: clamp(20px, 2.8vw, 34px);
  line-height: 1;
}

.ad-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.closing-ad {
  margin-top: 72px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  color: white;
  background: var(--ticker-surface);
  border-radius: 12px;
}

.closing-ad p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.floating-card {
  position: fixed;
  bottom: 104px;
  z-index: 7000;
  width: min(220px, calc(100vw - 32px));
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  color: var(--flash-ink);
  background: var(--flash-surface);
  border: 3px solid #111;
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.92);
  animation: ad-float-in 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.floating-card-left {
  left: 18px;
  transform: rotate(-2deg);
}

.floating-card-right {
  right: 18px;
  color: var(--ink);
  background: var(--grid-second);
  transform: rotate(2deg);
}

.floating-card strong {
  font-size: 24px;
  line-height: 0.98;
}

.floating-card small {
  font-weight: 900;
}

.ad-close {
  width: 30px;
  height: 30px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  color: inherit;
  background: var(--ad-close-surface) !important;
  border: 2px solid currentColor !important;
  border-radius: 50% !important;
  font: 800 20px/1 ui-sans-serif, sans-serif;
}

.floating-card .ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.sticky-ad {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 7100;
  width: min(680px, calc(100vw - 24px));
  min-height: 70px;
  padding: 12px 52px 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  background: var(--grid-surface);
  border: 2px solid white;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.46);
  transform: translateX(-50%);
}

.sticky-ad strong {
  flex: 1;
  font-size: 14px;
}

.sticky-ad .ad-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.popup-ad-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.24);
  backdrop-filter: blur(3px);
}

.popup-ad {
  position: relative;
  width: min(430px, 100%);
  padding: 34px;
  display: grid;
  gap: 16px;
  color: var(--popup-ink);
  background: var(--popup-surface);
  border: 4px solid #111;
  box-shadow: 14px 14px 0 var(--ticker-surface);
  animation: popup-slam 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.popup-ad > strong {
  max-width: 330px;
  font-size: clamp(32px, 8vw, 54px);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.popup-ad p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.popup-ad .ad-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.popup-action {
  justify-self: start;
  color: white !important;
  background: #111 !important;
}

@keyframes ad-float-in {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes popup-slam {
  from { opacity: 0; transform: scale(0.74) rotate(-3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.closing-media figcaption {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font-style: normal;
}

.closing-media figcaption span {
  color: var(--muted);
}

footer {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 780px) {
  .sponsor-banner div {
    display: block;
  }

  .sponsor-banner p {
    margin-top: 3px;
  }

  .story {
    padding-top: 72px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-block: 72px;
  }

  .media-pair,
  .image-sequence {
    grid-template-columns: 1fr;
  }

  .portrait-card,
  .offset-card {
    width: 100%;
    margin: 0;
  }

  .image-sequence {
    gap: 42px;
    margin-block: 74px;
  }

  .ad-strip {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .ad-flash,
  .ad-grid,
  .closing-ad {
    grid-template-columns: 1fr;
  }

  .floating-card-left {
    display: none;
  }

  .floating-card-right {
    top: 116px;
    right: 12px;
    bottom: auto;
    width: 176px;
    min-height: 138px;
    padding: 18px;
  }

  .floating-card strong {
    font-size: 19px;
  }

  .sticky-ad {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .showcase-header,
  .story,
  footer {
    width: min(100% - 28px, 1220px);
  }

  .sponsor-banner {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .story-header {
    text-align: left;
  }

  .story h1 {
    font-size: 58px;
  }

  .dek {
    font-size: 19px;
  }

  .story-meta {
    justify-content: flex-start;
  }

  .story-copy {
    font-size: 19px;
  }

  .video-card figcaption,
  .closing-media figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .popup-ad {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .promo-ticker > div,
  .floating-card,
  .popup-ad {
    animation: none;
  }
}
