:root {
  --bg: #f3f6fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #607086;
  --line: #d7dfeb;
  --teal: #08766f;
  --red: #a83f4c;
  --gold: #b9872d;
  --navy: #142234;
  --soft: #e8f1f1;
  --shadow: 0 20px 46px rgba(18, 31, 48, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 223, 235, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 900;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.header-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.header-nav a:last-child {
  background: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.news-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(135deg, #142234 0%, #08766f 58%, #b9872d 150%);
}

.news-hero::after {
  content: "NEWS";
  position: absolute;
  right: 7vw;
  bottom: 20px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10rem;
  font-weight: 900;
  line-height: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 22, 36, 0.94), rgba(12, 22, 36, 0.74) 48%, rgba(12, 22, 36, 0.2)),
    linear-gradient(180deg, rgba(12, 22, 36, 0.05), rgba(12, 22, 36, 0.76));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 98px 18px 60px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 4rem;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(168, 63, 76, 0.34);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 18px 76px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-title span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

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

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

.news-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.news-card-meta span {
  color: var(--red);
}

.news-card h3 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.news-card h3 a {
  text-decoration: none;
}

.news-card h3 a:hover,
.news-card h3 a:focus-visible {
  color: var(--teal);
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.news-card .read-link {
  margin-top: auto;
}

.page-banner {
  background: var(--navy);
  color: #fff;
}

.page-banner-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 18px 64px;
}

.page-banner h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1.04;
}

.page-banner p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.6;
}

.stories-page {
  background: #0b0f14;
  color: #f3f6fb;
}

.stories-page .site-header {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 20, 0.94);
}

.stories-page .brand,
.stories-page .header-nav a {
  color: #fff;
}

.library-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #111923;
}

.library-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 15, 20, 0.97) 0%, rgba(11, 15, 20, 0.82) 38%, rgba(11, 15, 20, 0.22) 78%, rgba(11, 15, 20, 0.58) 100%), linear-gradient(0deg, rgba(11, 15, 20, 0.88), transparent 55%);
}

.library-hero-slideshow,
.library-hero-slide {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-hero-slideshow {
  overflow: hidden;
  background: #111923;
}

.library-hero-slide {
  opacity: 0;
  object-position: center 28%;
  animation: library-hero-fade 40s linear infinite;
  animation-delay: var(--slide-delay);
  transform: scale(1.04);
}

@keyframes library-hero-fade {
  0%, 12% { opacity: 0; }
  16%, 29% { opacity: 0.72; }
  33%, 100% { opacity: 0; }
}

.library-hero-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 18px 70px;
}

.library-hero h1 {
  max-width: 650px;
  margin: 0 0 16px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1.02;
}

.library-hero p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.6;
}

.cover-carousel {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 4px;
}

.cover-carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.cover-carousel-heading .eyebrow {
  margin-bottom: 7px;
}

.cover-carousel-heading h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.cover-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 178px;
  gap: 15px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #e50914 #151d27;
}

.cover-carousel-track .poster-card {
  scroll-snap-align: start;
}

.netflix-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 86px;
}

.netflix-shell .layout {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.netflix-shell .ad-slot {
  border-color: rgba(255, 255, 255, 0.18);
  background: #151d27;
}

.netflix-shell .ad-slot strong {
  color: #fff;
}

.story-row {
  margin: 30px 0 42px;
}

.story-row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.story-row-heading .eyebrow {
  margin-bottom: 7px;
}

.story-row-heading h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.story-row-heading > span {
  color: #aab6c4;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.poster-card {
  position: relative;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease;
}

.poster-card:hover,
.poster-card:focus-visible {
  z-index: 2;
  transform: translateY(-6px) scale(1.025);
  outline: none;
}

.poster-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: #151d27;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.poster-card-image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.poster-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  border-radius: 4px;
  background: #e50914;
  padding: 5px 7px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.poster-card-title {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
}

.poster-card-meta {
  display: block;
  margin-top: 5px;
  color: #9da9b7;
  font-size: 0.76rem;
}

.story-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(18, 31, 48, 0.17);
}

.story-image-link {
  display: block;
}

.story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 18px;
}

.story-card small {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 9px 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
}

.story-card h3 a {
  text-decoration: none;
}

.story-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.56;
}

.chapter-list {
  display: grid;
  gap: 10px;
}

.chapter-row {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, padding 160ms ease;
}

.chapter-row:hover,
.chapter-row:focus-visible {
  border-color: rgba(8, 118, 111, 0.42);
  background: rgba(232, 241, 241, 0.72);
  padding: 12px 10px 0;
  outline: none;
}

.chapter-row strong {
  color: var(--navy);
}

.chapter-row span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.read-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.story-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 22, 36, 0.93), rgba(12, 22, 36, 0.74) 54%, rgba(12, 22, 36, 0.2)),
    linear-gradient(180deg, rgba(12, 22, 36, 0.08), rgba(12, 22, 36, 0.78));
}

.story-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 98px 18px 58px;
  color: #fff;
}

.story-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: 3.45rem;
  line-height: 1.04;
}

.story-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.65;
}

.story-reader {
  min-width: 0;
}

.poster-frame {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.poster-frame img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: top center;
}

.story-section {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 26px;
  margin-bottom: 26px;
}

.story-section h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.16;
}

.story-section p {
  margin: 0 0 17px;
  color: #263247;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.72;
}

.story-section .lead {
  color: var(--navy);
  font-size: 1.48rem;
  font-weight: 700;
}

.story-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.story-pagination > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story-pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.story-pagination a {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.story-pagination a:hover,
.story-pagination a:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  outline: none;
}

.image-note,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.image-note {
  margin: 0 0 18px;
  border-left: 5px solid var(--gold);
}

.image-note strong,
.side-panel > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.image-note span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.side-panel {
  box-shadow: 0 12px 30px rgba(18, 31, 48, 0.08);
}

.mobile-chapter-panel {
  display: none;
  margin: 0 0 26px;
}

.ad-slot {
  width: 100%;
  min-height: 112px;
  margin: 26px 0;
  border: 1px dashed rgba(96, 112, 134, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 241, 241, 0.96), rgba(255, 255, 255, 0.94));
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--navy);
}

.ad-rail {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 20px;
}

.ad-rail .ad-slot {
  min-height: 300px;
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .netflix-shell .layout {
    grid-template-columns: 1fr;
  }

  .poster-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
  }

  .poster-card {
    scroll-snap-align: start;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .layout {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 0 12px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .header-nav a:first-child {
    display: none;
  }

  .header-nav a {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
  }

  .news-hero {
    min-height: 390px;
  }

  .library-hero {
    min-height: 500px;
  }

  .library-hero-content {
    position: relative;
    z-index: 1;
    padding: 82px 12px 54px;
  }

  .library-hero h1 {
    max-width: 330px;
    font-size: 2.55rem;
  }

  .netflix-shell {
    padding: 22px 12px 64px;
  }

  .poster-row {
    grid-template-columns: repeat(4, 154px);
    gap: 12px;
    margin-right: -12px;
  }

  .story-row-heading h2 {
    font-size: 1.45rem;
  }

  .news-hero::after {
    right: 12px;
    font-size: 5rem;
  }

  .hero-content {
    padding: 86px 12px 44px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .page-banner-content {
    padding: 54px 12px 48px;
  }

  .page-banner h1 {
    font-size: 2.35rem;
  }

  .story-hero {
    min-height: auto;
  }

  .story-hero-content {
    padding: 82px 12px 38px;
  }

  .story-hero h1 {
    font-size: 1.84rem;
    line-height: 1.08;
  }

  .story-hero p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.58;
  }

  .shell {
    padding: 24px 12px 64px;
  }

  .section-title {
    display: block;
  }

  .section-title h2 {
    margin-top: 8px;
    font-size: 1.75rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    grid-template-columns: 1fr;
  }

  .mobile-chapter-panel {
    display: block;
  }

  .ad-rail .side-panel {
    display: none;
  }

  .story-section h2 {
    font-size: 1.62rem;
  }

  .story-section p,
  .story-section .lead {
    font-size: 1.13rem;
    line-height: 1.68;
  }
}
