:root {
  --bg: #fff7f5;
  --primary: #4A77B1;
  --muted: #3d4c59;
  --max-width: 1080px;
}

/* Reset */

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", "Inter", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  background-color: var(--bg);
  color: #333333;
}

html[lang="zh-CN"] body {
  font-family: "Noto Serif SC", "Noto Serif", "Times New Roman", serif;
  font-weight: 300;
}


/* 1. Nav (same as Archive) */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-brand a {
  text-decoration: none;
  color: #333333;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 12px;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  margin-right: 20px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #222222;
  font-family: "Noto Serif", "Noto Serif SC", "Times New Roman", serif;
  font-weight: 400;
}

.lang-switch-handle {
  text-align: right;
  font-size: 0.95em;
}

.lang-switch-handle a {
  background: none;
  border: none;
  padding: 0 0 4px;
  font: inherit;
  color: inherit !important;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-decoration: none !important;
}

.lang-switch-handle a:visited,
.lang-switch-handle a:hover,
.lang-switch-handle a:active {
  color: inherit !important;
}

.lang-switch-handle a.active {
  color: #111111 !important;
  border-bottom-color: #f2d400 !important;
}

.lang-switch-handle a:focus-visible {
  outline: 2px solid #f2d400;
  outline-offset: 2px;
}

.lang-sep {
  color: currentColor;
  opacity: 0.6;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--primary);
  background: transparent;
  padding: 4px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  color: var(--primary);
}

/* main layout */

main {
  padding-top: 60px; /* room for fixed nav */
}

/* 2. Hero */

.event-hero {
  background: linear-gradient(270deg, #4a77b1, #6d9fd8);
  color: #ffffff;
  padding: 70px 0 70px;
}

.event-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  color: #dde9ff;
  text-decoration: none;
  font-family: "Noto Sans SC", "Inter", sans-serif;
}

.back-link:hover {
  color: #ffffff;
}

.event-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1.4fr);
  gap: 40px;
  align-items: center;
}

.event-hero-text h1 {
  font-family: "Noto Sans SC", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 10px;
}

.event-hero-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  font-family: "Noto Sans SC", "Inter", sans-serif;
}

html[lang="zh-CN"] .back-link,
html[lang="zh-CN"] .event-hero-text h1,
html[lang="zh-CN"] .event-hero-text p {
  font-family: "Noto Serif SC", "Noto Serif", "Times New Roman", serif;
  font-weight: 300;
}

.event-hero-image {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}

.event-hero-image img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* 3. Independent intro */

.event-intro {
  padding: 60px 0 100px;
  background-color: var(--bg);
}

.event-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
}

.event-intro-inner p {
  font-size: 16px;
  color: #787878;
  line-height: 1.9;
}

/* 4. Main body with carousel */

.event-body {
  padding: 18px 0 60px;
  background-color: var(--bg);
}

.event-body-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* left: text block (stays in place) */

.film-info h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  margin-left: 32px;
  margin-top: 20px;
}

.film-meta,
.film-cast {
  font-size: 14px;
  color: #878787;
  line-height: 2;
  margin-bottom: 4px;
  margin-left: 32px;
}

.film-title,
.film-meta,
.film-cast {
  white-space: pre-line;
}

/* text fade animation */

.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

/* right: carousel + description */

.film-visual {
  position: relative;
  max-width: 480px;
}

/* arrows */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  z-index: 3;
}

.carousel-arrow.left {
  left: 8px;
}

.carousel-arrow.right {
  right: 8px;
}

.carousel-arrow:hover {
  color: #8c8c8c;
}

/* carousel window */

.carousel-window {
  width: 100%;
  position: relative; 
  aspect-ratio: 16 / 9;      /* fixed 16:9 */
  overflow: hidden;
  /* border-radius: 6px; */
  background-color: #e0e0e0;
}

/* track moves horizontally */

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  padding-top: 56.25%; /* 16:9 */
  position: relative;
  background-color: #e0e0e0;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dots */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d0d0d0;
  cursor: pointer;
}

.dot.active {
  background-color: #8c8c8c;
}

/* description aligned with image block */

.film-description {
  margin-top: 60px;
  font-size: 16px;
  color: #787878;
  line-height: 1.8;
  text-align: left;
}

/* 5. Contact + footer (same as Archive) */

.archive-contact {
  padding: 52px 0 40px;
  background-color: #f5fafc;
}

.archive-contact-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.contact-divider {
  width: 72px;
  height: 2px;
  background-color: #d0d8e0;
  margin: 0 auto 18px;
}

.archive-contact p {
  font-size: 13px;
  color: #7a828c;
  margin-bottom: 16px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border-radius: 999px;
  border: 1px solid #b6c5d4;
  font-size: 12px;
  color: #4a77b1;
  background-color: #ffffff;
}

#footer {
  border-top: 1px solid #e6eaee;
  padding: 20px 0 22px;
  background-color: #f6f8fa;
  text-align: center;
  font-size: 12px;
  color: #9aa1aa;
}

/* Back to top */

#to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f7fa);
  box-shadow: 0 6px 18px rgba(40, 60, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.25s ease;
}

#to-top.show {
  opacity: 1;
  transform: none;
}

#to-top::after {
  content: "↑";
  font-weight: 700;
  color: var(--primary);
}

/* Responsive */

@media (max-width: 720px) {
  .site-header {
    padding: 10px 14px;
  }

  .lang-switch {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 14px;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(34, 34, 34, 0.06);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .event-hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-hero-image {
    max-width: none;
    margin: 0;
  }

  .event-intro-inner,
  .event-body-inner {
    padding: 0 18px;
  }

  .event-body-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .carousel-arrow.left {
    left: 4px;
  }

  .carousel-arrow.right {
    right: 4px;
  }
}
