
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --background: #080808;
  --cream: #F4EADD;
  --champagne: #BFA58B;
  --muted: #B8ADA1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 7%;
  border-bottom: 1px solid #24201D;
}

header h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--champagne);
}

.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 10%;
}

.hero h2 {
  max-width: 720px;
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 400;
  line-height: 0.98;
}

.hero p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.hero-buttons a {
  padding: 15px 24px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.primary-button {
  background: var(--cream);
  color: var(--background);
}

.primary-button:hover {
  background: var(--champagne);
}

.secondary-button {
  border: 1px solid var(--champagne);
  color: var(--cream);
}

.secondary-button:hover {
  background: #211B17;
}

@media (max-width: 650px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero {
    min-height: 65vh;
    padding: 70px 7%;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }
}
/* Homepage: text on left, posters on right */
.hero-layout {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  min-height: 75vh;
  padding: 50px 5%;
  gap: 20px;
}

.hero-layout .hero {
  padding: 0;
  min-width: 0;
}

.hero-layout .film-gallery {
  padding: 0;
  min-width: 0;
  overflow: visible;
}

.hero-layout .film-posters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-layout .film-card {
  flex: 1;
  min-width: 0;
  max-width: 130px;
  aspect-ratio: 2 / 3;
}

/* Stack the layout on smaller screens */
@media (max-width: 800px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 50px 7%;
    gap: 45px;
  }

  .hero-layout .film-gallery {
    overflow: hidden;
  }
}
/* Fix oversized homepage posters */
.hero-layout {
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  box-sizing: border-box;
  max-width: 100%;
}

.hero-layout .film-gallery,
.hero-layout .film-posters {
  min-width: 0;
  max-width: 100%;
}

.hero-layout .film-posters {
  width: 100%;
  flex-wrap: nowrap;
}

.hero-layout .film-card {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 130px;
  height: auto;
  aspect-ratio: 2 / 3;
}

.hero-layout .film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout .film-card {
    flex: 0 0 42%;
    width: auto;
  }
}
/* Homepage visual refinements — desktop */
@media (min-width: 801px) {
  .hero-layout {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  }

  .hero-layout .hero h2 {
    font-size: clamp(52px, 5.5vw, 82px);
  }

  .hero-layout .film-card {
    max-width: 155px;
  }
}
/* Rotating featured film */
.hero-layout .film-card {
  position: relative;
  transition: transform 0.8s ease;
}

.hero-layout .film-card.featured {
  transform: scale(1.18);
  z-index: 2;
}
/* Give all five posters breathing room */
.hero-layout .film-posters {
  gap: 28px;
}
/* DISCOVERY INTRO */

.discovery-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 8%;
  background: #11100F;
  text-align: center;
}

.discovery-intro {
  max-width: 680px;
}

.discovery-intro .eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #B9A58D;
  margin-bottom: 30px;
}

.discovery-intro h2 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: #F4EADD;
  margin-bottom: 25px;
}

.discovery-intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: #AAA29A;
  max-width: 480px;
  margin: 0 auto 35px;
}

.start-discovery {
  background: #F4EADD;
  color: #11100F;
  border: none;
  padding: 16px 36px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.start-discovery:hover {
  background: #D7C4A9;
}
/* AFTERLOGUE — EDITORIAL DISCOVERY SECTION */

.discovery-section {
  min-height: 85vh;
  padding: 100px 7%;
  display: block;
  text-align: left;
  background: #11100f;
}

.discovery-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 7%;
  max-width: 1400px;
  margin: 0 auto;
}

.discovery-copy,
.discovery-visual {
  min-width: 0;
}

.discovery-copy .section-kicker,
.discovery-copy .section-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b9a58d;
}

.discovery-copy .section-kicker {
  margin-bottom: 16px;
}

.discovery-copy .section-label {
  margin-bottom: 35px;
}

.discovery-copy h2 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  color: #f4eadd;
  margin-bottom: 28px;
}

.discovery-copy .discovery-text {
  color: #aaa29a;
  font-size: 15px;
  line-height: 1.8;
  max-width: 440px;
  margin: 0 0 30px;
}

.discovery-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #b9a58d;
  font-size: 12px;
  margin-bottom: 28px;
}

.still-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.still-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.still-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  color: #aaa29a;
  font-size: 11px;
  line-height: 1.5;
}

.still-number {
  white-space: nowrap;
  color: #b9a58d;
}

@media (max-width: 800px) {
  .discovery-shell {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .discovery-section {
    padding: 75px 7%;
  }
}
/* Editorial details */

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.reading-time svg {
  flex-shrink: 0;
}

.still-identification {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

<p class="film-title">Carnival of Souls (1962)</p> 
  color: #f4eadd;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.3px;
}
/* Editorial section divider */
.editorial-divider {
  padding: 24px 7% 30px;
  background: #11100f;
  color: #b9a58d;
}

.editorial-divider-top,
.editorial-divider-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.editorial-divider-top {
  padding-bottom: 18px;
  border-bottom: 1px solid #51483e;
  font-size: 10px;
  letter-spacing: 2px;
}

.editorial-divider-bottom {
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #f4eadd;
}

.editorial-divider-bottom span:last-child {
  font-size: 20px;
  color: #b9a58d;
}

@media (max-width: 600px) {
  .editorial-divider-top {
    font-size: 9px;
    letter-spacing: 1px;
  }
}
/* Refine editorial divider */
.editorial-divider {
  width: 100%;
  box-sizing: border-box;
  padding: 30px 7%;
  background: #11100f;
}

.editorial-divider-top,
.editorial-divider-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.editorial-divider-top {
  padding-bottom: 18px;
  border-bottom: 1px solid #51483e;
}

.editorial-divider-bottom {
  padding-top: 18px;
}

@media (max-width: 600px) {
  .editorial-divider-top,
  .editorial-divider-bottom {
    flex-wrap: wrap;
  }
}
/* AFTERLOGUE — THE LOG */

.log-page {
  min-height: 100vh;
  padding: 90px 8% 120px;
  max-width: 1500px;
  margin: 0 auto;
}

.log-eyebrow {
  color: #B9A58D;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.log-page h2 {
  font-family: Georgia, serif;
  font-weight: 400;
 font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.12;
  color: #F4EADD;
  max-width: 850px;
  margin-bottom: 25px;
}

.log-description {
  color: #AAA29A;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 55px;
}

.log-divider {
  height: 1px;
  background: #51483E;
  width: 100%;
  margin-bottom: 22px;
}

.log-instruction {
  color: #B9A58D;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* AFTERLOGUE — FILM SELECTION GRID */

.log-film-section {
  margin-top: 45px;
}

.log-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.log-section-heading h3 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #F4EADD;
}

.log-section-heading span {
  font-size: 11px;
  letter-spacing: 2px;
  color: #B9A58D;
}

.log-film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 24px;
  width: 100%;
}

.log-film-card {
  min-width: 0;
}

.log-poster-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #24211E;
  border: 1px solid #51483E;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #B9A58D;
  font-family: Georgia, serif;
  font-size: 32px;
  box-sizing: border-box;
}

.log-film-card h4 {
  font-family: Georgia, serif;
  color: #F4EADD;
  font-size: 17px;
  font-weight: 400;
  margin-top: 13px;
}

.log-film-card p {
  color: #AAA29A;
  font-size: 12px;
  margin-top: 5px;
}

@media (max-width: 800px) {
  .log-film-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .log-film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
}
/* Movie artwork inside the Log cards */
.log-poster-placeholder {
  overflow: hidden;
}

.log-poster-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Refine Log page spacing */
.log-page {
  padding-top: 55px;
}

.log-page h2 {
  margin-bottom: 16px;
}

.log-description {
  margin-bottom: 30px;
}

.log-film-section {
  margin-top: 28px;
}
/* Refine Log page proportions */
.log-page {
  padding-top: 35px;
}

.log-page h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  margin-bottom: 12px;
}

.log-description {
  margin-bottom: 22px;
}

.log-film-section {
  margin-top: 22px;
}

/* Compact layout for phones */
@media (max-width: 600px) {
  .log-page {
    padding: 30px 5% 70px;
  }

  .log-page h2 {
    font-size: clamp(30px, 7vw, 38px);
    line-height: 1.12;
  }

  .log-eyebrow {
    margin-bottom: 18px;
  }

  .log-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .log-film-section {
    margin-top: 22px;
  }
}
/* AFTERLOGUE — MOBILE HOMEPAGE */

@media (max-width: 650px) {

  .hero-layout {
    display: block;
    min-height: 0;
    padding: 40px 6% 55px;
  }

  .hero-layout .hero {
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0 0 35px;
    display: block;
  }

  .hero-layout .hero h2 {
    font-size: clamp(42px, 10vw, 56px);
    line-height: 1.08;
  }

  .hero-layout .film-gallery {
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .hero-layout .film-posters {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    padding: 18px 4px;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
  }

  .hero-layout .film-card {
    flex: 0 0 38%;
    width: auto;
    max-width: none;
    scroll-snap-align: center;
  }

  .hero-layout .film-card:first-child,
  .hero-layout .film-card:last-child {
    transform: none;
  }

  .hero-layout .film-card.featured {
    transform: scale(1.06);
    margin: 0;
  }

  .start-discovery {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* AFTERLOGUE — COMPACT MOBILE LOG */

@media (max-width: 600px) {
  .log-page {
    min-height: auto;
    padding: 20px 6% 65px;
  }

  .log-eyebrow {
    margin-bottom: 12px;
  }

  .log-page h2 {
    font-size: 32px;
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .log-description {
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .log-divider {
    margin-bottom: 14px;
  }

  .log-film-section {
    margin-top: 20px;
  }

  .log-section-heading {
    margin-bottom: 18px;
  }
}
/* AFTERLOGUE — POSTER RATING OVERLAY */

.log-poster-placeholder {
  position: relative;
  overflow: hidden;
}

.rating-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 12px;
  box-sizing: border-box;
  background: rgba(12, 11, 10, 0.82);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rating-overlay p {
  color: #F4EADD;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 8px;
}

.rating-overlay button {
  width: 100%;
  max-width: 150px;
  padding: 9px 7px;
  border: 1px solid #B9A58D;
  border-radius: 30px;
  background: rgba(244, 234, 221, 0.08);
  color: #F4EADD;
  font-size: 12px;
  cursor: pointer;
}

.rating-overlay button:hover {
  background: #F4EADD;
  color: #11100F;
}

/* Reveal options on desktop hover */
.log-poster-placeholder:hover .rating-overlay,
.log-poster-placeholder:focus-within .rating-overlay {
  opacity: 1;
  visibility: visible;
}

.rating-check {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 3;

  color: #F4EADD;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .rating-overlay {
    gap: 6px;
    padding: 10px;
  }

  .rating-overlay button {
    padding: 8px 5px;
    font-size: 11px;
  }
}
/* Keep rating options hidden after a film is rated */

.log-poster-placeholder.is-rated .rating-overlay,
.log-poster-placeholder.is-rated:hover .rating-overlay,
.log-poster-placeholder.is-rated:focus-within .rating-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Thin centered checkmark */

.rating-check svg {
  display: block;
  width: 52px;
  height: 52px;
}
/* Saved impression beneath the checkmark */

.rating-choice {
  position: absolute;
  top: calc(50% + 37px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  color: #F4EADD;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
/* Clickable Afterlogue logo */

.logo-link {
  color: inherit;
  text-decoration: none;
}

.logo-link:hover {
  color: #F4EADD;
}

.logo-link:focus-visible {
  outline: 1px solid #B9A58D;
  outline-offset: 5px;
}
/* AFTERLOGUE — MOBILE TAP RATINGS */

@media (hover: none) {
  .log-poster-placeholder.is-open:not(.is-rated) .rating-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
/* AFTERLOGUE — EDIT SAVED IMPRESSIONS */

.rating-back {
  position: absolute;
  top: calc(50% + 73px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;

  padding: 8px 20px;
  border: 1px solid #F4EADD;
  border-radius: 30px;

  background: rgba(17, 16, 15, 0.75);
  color: #F4EADD;

  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Show Go back when hovering over a rated poster */
@media (hover: hover) {
  .log-poster-placeholder.is-rated:hover .rating-back,
  .rating-back:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Show Go back when tapping a rated poster */
@media (hover: none) {
  .log-poster-placeholder.is-rated.is-open .rating-back {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
/* AFTERLOGUE — CONTINUE BUTTON */

.log-continue-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px 20px 50px;
}

.log-continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  padding: 16px 42px;

  border: 1px solid #B9A58D;
  border-radius: 50px;

  background: transparent;
  color: #F4EADD;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;

  transition: background 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
}

.log-continue-button:hover {
  background: #F4EADD;
  color: #11100F;
  transform: translateY(-2px);
}

.log-continue-button span {
  font-size: 19px;
  line-height: 1;
}
/* AFTERLOGUE — DISCOVERY PAGE */

.discover-page {
  width: 100%;
  min-height: 75vh;
  box-sizing: border-box;
  padding: 85px 8% 100px;
  color: #F4EADD;
}

.discover-intro {
  max-width: 850px;
}

.discover-eyebrow {
  margin: 0 0 34px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #B9A58D;
}

.discover-intro h1 {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1px;
}

.discover-description {
  max-width: 580px;
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: #B9AFA5;
}

/* Fix the Discovery page logo */

.site-header .logo {
  color: #F4EADD;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

/* MOBILE */

@media (max-width: 768px) {
  .discover-page {
    min-height: 70vh;
    padding: 65px 6% 80px;
  }

  .discover-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 28px;
  }

  .discover-intro h1 {
    font-size: 42px;
    line-height: 1.15;
  }

  .discover-description {
    font-size: 15px;
    line-height: 1.7;
  }
}
/* DISCOVERY PAGE — LOGO SIZE */

.site-header .logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px !important;
  font-weight: 400;
  color: #F4EADD;
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header .logo {
    font-size: 42px !important;
  }
}
/* AFTERLOGUE — DISCOVERY SELECTIONS */

.discovery-selections {
  margin-top: 35px;
  padding-bottom: 60px;
}

.discovery-section-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid #51463D;
}

.discovery-section-header p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: #B9A58D;
}

.discovery-section-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: #F4EADD;
}

.discovery-results {
  margin-top: 35px;
}

/* MOBILE */

@media (max-width: 768px) {
  .discovery-selections {
    margin-top: 30px;
    padding-bottom: 40px;
  }

  .discovery-section-header h2 {
    font-size: 18px;
  }
}
/* DISCOVERY — IMPRESSION COUNT */

.discovery-count {
  margin-top: 20px;
  color: #B9AFA5;
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.7;
}

/* AFTERLOGUE — FULL-WIDTH CATEGORY SELECTOR */

.discovery-category-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
  padding: 5px;
  box-sizing: border-box;
  background: transparent;
  border-radius: 40px;
}

.discovery-category {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  padding: 15px 20px;

  border: none;
  border-radius: 40px;
  background: transparent;
  color: #F4EADD;

  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;

  transition: background 0.25s ease, color 0.25s ease;
}

/* Champagne pill appears on hover */

.discovery-category:hover {
  background: rgba(185, 165, 141, 0.35);
  color: #F4EADD;
}

/* Selected category */

.discovery-category.active {
  background: rgba(185, 165, 141, 0.5);
  color: #F4EADD;
}
/* AFTERLOGUE — ACCOUNT PAGE */

.signup-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 85px 24px 100px;
  box-sizing: border-box;
  color: #F4EADD;
}

.signup-container {
  width: 100%;
  max-width: 430px;
}

.signup-eyebrow {
  margin: 0 0 22px;
  color: #B9A58D;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-align: center;
}

.signup-container h1 {
  margin: 0 0 16px;
  color: #F4EADD;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  text-align: center;
}

.signup-description {
  margin: 0 0 36px;
  color: #B9AFA5;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.signup-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-social {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #71665A;
  border-radius: 40px;
  background: transparent;
  color: #F4EADD;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.signup-social:hover {
  background: rgba(185, 165, 141, 0.2);
}

.signup-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
  color: #B9AFA5;
  font-size: 12px;
  white-space: nowrap;
}

.signup-divider::before,
.signup-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #51463D;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#signup-form label {
  color: #F4EADD;
  font-size: 12px;
}

#signup-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #71665A;
  border-radius: 8px;
  box-sizing: border-box;
  background: #1C1B1A;
  color: #F4EADD;
  font-size: 14px;
}

#signup-form input:focus {
  outline: 1px solid #B9A58D;
}

.signup-submit {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #F4EADD;
  border-radius: 40px;
  background: #F4EADD;
  color: #11100F;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.signup-submit:hover {
  background: #D6C8B7;
}

.signup-login {
  margin-top: 28px;
  color: #B9AFA5;
  font-size: 13px;
  text-align: center;
}

.signup-login a {
  color: #F4EADD;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#signup-message {
  color: #B9A58D;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* MOBILE */

@media (max-width: 768px) {
  .signup-page {
    padding: 55px 22px 75px;
  }

  .signup-container h1 {
    font-size: 28px;
  }
}

/* AFTERLOGUE — DISCOVERY POSTER CARDS */

.discovery-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.discovery-card {
  min-width: 0;
}

.discovery-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid #B9A58D;
  border-radius: 6px;
  background: #24211F;
  color: #F4EADD;
  cursor: pointer;
  text-align: center;
}

.discovery-artwork-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  font-family: Georgia, serif;
  font-size: 22px;
}

.discovery-reason {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(12, 11, 10, 0.82);
  color: #F4EADD;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.discovery-reason-label {
  font-size: 11px;
  letter-spacing: 2px;
}

.discovery-reason-text {
  font-size: 14px;
  line-height: 1.6;
}

.discovery-poster:hover .discovery-reason,
.discovery-poster:focus-visible .discovery-reason,
.discovery-poster.is-open .discovery-reason {
  opacity: 1;
  visibility: visible;
}

.discovery-card h3 {
  margin: 12px 0 4px;
  font-family: Georgia, serif;
  font-size: 17px;
}

.discovery-year {
  margin: 0;
  font-size: 12px;
  color: #B9AFA5;
}

@media (max-width: 650px) {
  .discovery-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .discovery-artwork-placeholder {
    font-size: 17px;
  }

  .discovery-reason {
    padding: 12px;
  }

  .discovery-reason-text {
    font-size: 12px;
  }
}

/* AFTERLOGUE — MOBILE POSTER INTERACTION */

@media (hover: none) {
  .discovery-poster:hover .discovery-reason,
  .discovery-poster:focus-visible .discovery-reason {
    opacity: 0;
    visibility: hidden;
  }

  .discovery-poster.is-open .discovery-reason {
    opacity: 1;
    visibility: visible;
  }
}

/* Hide placeholder title while explanation is open */
.discovery-poster.is-open .discovery-artwork-placeholder {
  opacity: 0;
}

@media (hover: hover) {
  .discovery-poster:hover .discovery-artwork-placeholder {
    opacity: 0;
  }
}

/* AFTERLOGUE — DISCOVERY POSTER SIZE */

.discovery-results {
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  gap: 24px;
  margin-top: 35px;
}

.discovery-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
}

@media (max-width: 650px) {
  .discovery-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-content: center;
  }
}
/* AFTERLOGUE — REAL DISCOVERY POSTERS */

.discovery-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discovery-poster {
  position: relative;
}

.discovery-poster .discovery-reason {
  z-index: 2;
}

/* AFTERLOGUE — FIVE POSTER DISCOVERY ROW */

@media (min-width: 651px) {
  .discovery-results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }
}

/* AFTERLOGUE — DISCOVER AGAIN BUTTON */

.discover-again-button {
  display: block;
  width: fit-content;
  margin: 48px auto 0;
  padding: 14px 30px;

 background: transparent;
border: 1px solid #e8dfcc;
border-radius: 999px;
color: #e8dfcc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.discover-again-button:hover {
  background: #e8dfcc;
  color: #171715;
}

/* AFTERLOGUE — DISCOVERY CARD REFINEMENTS */

.discovery-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin: 12px 0 4px;
  color: #F4EADD;
}

.discovery-year {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #B9AFA5;
}

@media (min-width: 651px) {
  .discovery-results {
    gap: 32px;
  }
}

/* AFTERLOGUE — PERSONAL LOG */

.personal-log {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 30px 120px;
}

.personal-log-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #d9c6ab;
  margin-bottom: 24px;
}

.personal-log-title {
  font-family: Georgia, serif;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 400;
  color: #f5f1e8;
  margin: 0 0 18px;
}

.personal-log-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #b9afa5;
  max-width: 480px;
}

.personal-log-divider {
  height: 1px;
  background: rgba(232, 223, 204, 0.3);
  margin: 45px 0 30px;
}

.personal-log-tabs {
  display: flex;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid rgba(232, 223, 204, 0.15);
}

.personal-log-tab {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 18px;
  color: #938b80;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.personal-log-tab:hover,
.personal-log-tab.active {
  color: #f5f1e8;
}

.personal-log-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e8dfcc;
}

.personal-log-panel {
  padding-top: 40px;
  color: #b9afa5;
  font-family: 'Inter', sans-serif;
}

.personal-log-panel[hidden] {
  display: none;
}

@media (max-width: 650px) {
  .personal-log {
    padding: 60px 22px 90px;
  }

  .personal-log-tabs {
    gap: 26px;
  }
}

/* AFTERLOGUE — WATCHED POSTER GALLERY */

#watched {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 22px;
  align-items: start;
}

#watched > p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #e8dfcc;
}

#watched > p img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 4px;
}

@media (max-width: 650px) {
  #watched {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}

#watched[hidden] {
  display: none;
}

/* AFTERLOGUE — WATCHED CARD TYPOGRAPHY */

.watched-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #f5f1e8;
  margin-bottom: 6px;
}

.watched-impression {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #d9c6ab;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* AFTERLOGUE — LOG CATEGORY SELECTOR */

.log-category-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.log-category-btn {
  background: transparent;
  border: 1px solid rgba(232, 223, 204, 0.4);
  border-radius: 999px;
  padding: 10px 22px;

  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #e8dfcc;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.log-category-btn:hover,
.log-category-btn.active {
  background: #e8dfcc;
  color: #171715;
}

/* AFTERLOGUE — WATCHED RELEASE YEARS */

.watched-year {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: #a99f94;
  margin-bottom: 6px;
}

/* AFTERLOGUE — DISCOVERY BOOKMARK */

.discovery-bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 8px;
  margin-top: 10px;

  background: transparent;
  border: none;
  border-radius: 50%;
  color: #a99f94;

  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.discovery-bookmark:hover {
  color: #e8dfcc;
  transform: translateY(-2px);
}

.discovery-bookmark:focus-visible {
  outline: 1px solid #e8dfcc;
  outline-offset: 3px;
}

/* AFTERLOGUE — ALIGN DISCOVERY CARD DETAILS */


/* Keep titles and years together,
   with bookmarks aligned below */

.discovery-card {
  display: flex;
  flex-direction: column;
}

.discovery-card h3 {
  min-height: 0;
}

.discovery-bookmark {
  margin-top: auto;
}
#watched > p[hidden],
#watchlist > p[hidden] {
  display: none !important;
}

/* AFTERLOGUE — WATCHLIST POSTER GALLERY */

#watchlist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 22px;
  align-items: start;
}

#watchlist > p {
  margin: 0;
  min-width: 0;
  font-family: 'Inter', sans-serif;
}

#watchlist > p img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

@media (max-width: 650px) {
  #watchlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}

#watchlist[hidden],
#watchlist > p[hidden] {
  display: none !important;
}

/* AFTERLOGUE — LOG TAB BUBBLES */

.personal-log-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 223, 204, 0.15);
}

.personal-log-tab {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  color: #e8dfcc;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Remove original underline */
.personal-log-tab.active::after {
  display: none;
}

/* Bubble appears on hover or when selected */
.personal-log-tab:hover,
.personal-log-tab.active {
  background: #a69a82;
  color: #171715;
}

@media (max-width: 650px) {
  .personal-log-tabs {
    gap: 4px;
  }

  .personal-log-tab {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* AFTERLOGUE — LONG TRANSLUCENT LOG TABS */

.personal-log-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 0;
}

.personal-log-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #e8dfcc;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.personal-log-tab:hover,
.personal-log-tab.active {
  background: rgba(190, 177, 151, 0.38);
  color: #f5e9d0;
}

.personal-log-tab.active::after {
  display: none;
}

@media (max-width: 650px) {
  .personal-log-tabs {
    gap: 8px;
  }

  .personal-log-tab {
    padding: 8px 5px;
    font-size: 12px;
  }
}

/* AFTERLOGUE — MEMBER HOME HEADINGS */

.discover-intro h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.discovery-section-header h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}


/* AFTERLOGUE — HOME TYPOGRAPHY */

.discover-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.discovery-section-header h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

/* AFTERLOGUE — ACCOUNT DROPDOWN */

.site-header nav {
  align-items: center;
}

.account-menu {
  position: relative;
  color: #F4EADD;
}

.account-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  list-style: none;
  cursor: pointer;
  color: #F4EADD;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:hover {
  color: #BFA58B;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 1000;
  width: 280px;
  max-width: calc(100vw - 30px);
  padding: 24px;
  background: #212228;
  border: 1px solid #51483E;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.account-heading {
  margin: 0 0 10px;
  font-size: 17px;
  color: #F4EADD;
}

#account-email {
  margin: 0 0 8px;
  font-size: 12px;
  color: #B9AFA5;
  overflow-wrap: anywhere;
}

#account-status {
  margin: 0;
  font-size: 12px;
  color: #BFA58B;
}

.account-divider {
  height: 1px;
  background: #51483E;
  margin: 20px 0;
}

.account-settings {
  font-size: 13px;
  color: #B9AFA5;
}

#account-signout {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  color: #F4EADD;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

#account-signout:hover {
  color: #BFA58B;
}

@media (max-width: 650px) {
  .account-dropdown {
    right: -12px;
  }
}

/* AFTERLOGUE — ACCOUNT MENU ALIGNMENT FIX */

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav .account-menu {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-header nav .account-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  cursor: pointer;
}

.site-header nav .account-menu summary::marker {
  content: "";
}

.site-header nav .account-menu summary::-webkit-details-marker {
  display: none;
}

.site-header nav .account-menu summary svg {
  display: block;
}

.site-header nav .account-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  z-index: 1000;
  display: block;
  width: 280px;
  padding: 24px;
  background: #212228;
  border: 1px solid #51483e;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.site-header nav .account-dropdown p {
  display: block;
  margin-bottom: 12px;
}

.site-header nav .account-dropdown button {
  display: block;
  background: transparent;
  border: 0;
  color: #f4eadd;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* AFTERLOGUE — CINEMATIC LANDING PAGE */

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #080808;
}

/* Posters behind the headline */

.hero-layout .film-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero-layout .film-posters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.hero-layout .film-card,
.hero-layout .film-card.featured {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  transform: none;
  overflow: hidden;
}

.hero-layout .film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Light shading to keep text readable */

.hero-layout .film-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.40) 35%,
    rgba(0, 0, 0, 0.40) 65%,
    rgba(0, 0, 0, 0.15)
  );
  pointer-events: none;
}

.hero-layout .gallery-indicators {
  display: none;
}

/* Centered introduction */

.hero-layout .hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 680px;
  margin: 0;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-layout .hero h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  max-width: 850px;
  margin: 0 0 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-layout .hero p {
  max-width: 520px;
  margin: 0;
  color: #F4EADD;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-layout .hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-layout .hero-buttons a {
  border-radius: 999px;
  padding: 15px 28px;
}

/* Mobile layout */

@media (max-width: 650px) {
  .hero-layout {
    display: grid;
    min-height: 580px;
    padding: 0;
  }

  .hero-layout .film-posters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  .hero-layout .film-card,
  .hero-layout .film-card.featured {
    width: 100%;
    max-width: none;
    height: 100%;
    transform: none;
  }

  .hero-layout .hero {
    display: flex;
    min-height: 580px;
    margin: 0;
    padding: 65px 20px;
  }

  .hero-layout .hero h2 {
    font-size: clamp(42px, 10vw, 58px);
  }

  .hero-layout .hero-buttons {
    flex-wrap: wrap;
  }
}

/* AFTERLOGUE — CONSISTENT LOGO */

body > header {
  padding: 24px 5%;
}

body > header.site-header .logo,
body > header.site-header .logo-link,
body > header:not(.site-header) .logo-link {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: -1px;
  color: #F4EADD;
  text-decoration: none;
}

@media (max-width: 650px) {
  body > header {
    align-items: flex-start;
  }
}


/* AFTERLOGUE — CURRENT PAGE NAVIGATION */
body > header.site-header nav > a[aria-current="page"] {
  position: relative;
  color: #F4EADD;
  text-decoration: none;
}

body > header.site-header nav > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: #D4B487;
  pointer-events: none;
}

body > header.site-header nav > a[hidden] {
  display: none !important;
}
