/* ============================================
   Elk Rapids Film Festival
   A celebration of Michigan summers & cinema
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Michigan Summer Palette */
  --color-navy: #1b3a4b;          /* Deep Lake Blue */
  --color-navy-deep: #122a38;     /* Elk Lake at night */
  --color-gold: #d4953a;          /* Warm Amber - bonfire light */
  --color-gold-light: #e2ad52;    /* Festival gold */
  --color-cream: #f5efe3;         /* Sandy Beige - lakeshore sand */
  --color-cream-dark: #e5dbc8;    /* Driftwood */
  --color-lake: #2d6a7a;          /* Twilight Blue - late afternoon water */
  --color-lake-light: #4a8e9e;    /* Shallow water */
  --color-sunset: #e07850;        /* Sunset Coral */
  --color-pine: #3a6b4a;          /* Forest Pine - tree line */
  --color-text: #2a2a2a;          /* Warm charcoal */
  --color-text-light: #5c6b6e;    /* Slate */
  --color-white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* --- Login Gate --- */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.login-gate.login-gate--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      var(--color-navy-deep) 0%,
      var(--color-navy) 35%,
      var(--color-lake) 55%,
      var(--color-sunset) 80%,
      var(--color-gold) 100%
    );
}

.login-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  max-width: 440px;
  width: 100%;
}

.login-icon {
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.login-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.login-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

.login-form {
  margin-bottom: var(--space-md);
}

.login-field {
  display: flex;
  gap: 0;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.login-input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  outline: none;
}

.login-input::placeholder {
  color: #999;
}

.login-input:focus {
  background: var(--color-white);
}

.login-button {
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  background: var(--color-gold);
  color: var(--color-navy-deep);
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-button:hover {
  background: var(--color-gold-light);
}

.login-error {
  color: #ff9b8a;
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.login-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Site content locked state */
.site-content--locked {
  display: none;
}

/* --- Navigation --- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  z-index: 10;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-gold-light);
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(
      180deg,
      var(--color-navy-deep) 0%,
      var(--color-navy) 25%,
      var(--color-lake) 45%,
      #4a8e7a 55%,
      var(--color-sunset) 75%,
      var(--color-gold) 90%,
      var(--color-gold-light) 100%
    );
  color: var(--color-white);
  overflow: visible;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(224, 120, 80, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(18, 42, 56, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  padding-top: 100px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-poster {
  max-width: 500px;
  width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto var(--space-sm);
}

.hero-year {
  color: var(--color-gold-light);
  display: block;
  font-size: 1.1em;
}

.hero-dates {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.hero-theme {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
}

.hero-theme strong {
  color: var(--color-gold-light);
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--color-sunset);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(224, 120, 80, 0.3);
}

.hero-cta:hover {
  background: #c96540;
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* --- Sections --- */
.section {
  padding: var(--space-xl) 0;
}

/* --- Quick Stats --- */
.stats-section {
  position: relative;
  z-index: 1;
  background: var(--color-navy);
  padding: var(--space-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-block-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.stat-block-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 227, 0.6);
  margin-top: 8px;
}

/* --- Origin Story Preview --- */
.origin-preview {
  background: var(--color-white);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.section-title--left {
  text-align: left;
}

.origin-text .lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
}

.origin-text p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.origin-subtitle {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-lake) !important;
  font-size: 1.15rem !important;
  margin-bottom: var(--space-md) !important;
}

.origin-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.origin-milestones {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-sm);
}

.origin-milestones li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.origin-milestones li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
}

.origin-milestones li strong {
  color: var(--color-navy);
}

.btn--outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  background: transparent;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: var(--space-sm);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-cream);
}

.origin-visual {
  display: flex;
  justify-content: center;
}

.origin-card {
  background: var(--color-navy);
  color: var(--color-cream);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.origin-card-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.origin-card-dash {
  width: 40px;
  height: 3px;
  background: var(--color-sunset);
  margin: var(--space-sm) auto;
  border-radius: 2px;
}

.origin-card-text {
  font-size: 0.95rem;
  color: rgba(245, 239, 227, 0.7);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* --- Featured Quote (Homepage) --- */
.quote-feature {
  background: var(--color-navy);
  padding: var(--space-2xl) 0;
}

.quote-feature-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: var(--space-sm);
}

.quote-feature-text {
  transition: opacity 0.5s ease;
}

.quote-feature-text p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--color-cream);
  line-height: 1.8;
}

.quote-feature-attr {
  font-size: 0.9rem;
  color: rgba(245, 239, 227, 0.5);
  margin-top: var(--space-md);
}

/* --- Gallery Preview --- */
.gallery-preview {
  background: var(--color-cream);
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.gallery-preview-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-cream-dark);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.gallery-preview-item:hover {
  transform: scale(1.03);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.4s ease;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-lake);
  opacity: 0.4;
  gap: 8px;
}

.gallery-placeholder span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-preview-cta {
  text-align: center;
}

/* ============================================
   Shared Page Header (About, Archive, etc.)
   ============================================ */

.page-header {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      var(--color-navy-deep) 0%,
      var(--color-navy) 40%,
      var(--color-lake) 100%
    );
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
}

.page-header-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-header-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   About Page
   ============================================ */

/* --- Origin Story --- */
.about-origin {
  background: var(--color-white);
}

.about-origin-content {
  max-width: 720px;
  margin: 0 auto;
}

.prose .lead {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.prose p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.prose em {
  color: var(--color-lake);
}

.origin-chapter {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

/* --- How It Works --- */
.about-process {
  background: var(--color-cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
}

.process-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.process-icon {
  color: var(--color-lake);
  margin-bottom: var(--space-sm);
}

.process-step h3 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Memorable Moments --- */
.about-moments {
  background: var(--color-white);
}

.moments-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.moments-line {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-pine), var(--color-lake), var(--color-sunset));
  opacity: 0.3;
}

.moment-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
}

.moment-year-badge {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  position: relative;
}

.moment-year-badge::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-sunset);
  border-radius: 50%;
  border: 3px solid var(--color-white);
}

.moment-card {
  flex: 1;
  background: var(--color-cream);
  border-radius: 12px;
  padding: var(--space-sm) calc(var(--space-sm) * 1.5);
  border-left: 3px solid var(--color-lake);
}

.moment-card--highlight {
  background: var(--color-navy);
  border-left-color: var(--color-gold);
}

.moment-card--highlight h3 {
  color: var(--color-gold-light);
}

.moment-card--highlight p {
  color: rgba(245, 239, 227, 0.8);
}

.moment-card--future {
  border-left-color: var(--color-sunset);
  border-style: dashed;
  border-left-style: dashed;
}

.moment-card h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.moment-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Founders --- */
.about-founders {
  background: var(--color-cream);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.founder-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.founder-avatar {
  width: 144px;
  height: 240px;
  margin: 0 auto var(--space-sm);
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card h3 {
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.founder-role {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   Films Archive Page
   ============================================ */

.archive-filters-section {
  background: var(--color-white);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.archive-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.archive-search {
  max-width: 400px;
}

.archive-filter-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.form-select {
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  min-width: 160px;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-lake);
}

/* Toggle switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-input {
  display: none;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--color-cream-dark);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-input:checked + .toggle-switch {
  background: var(--color-gold);
}

.toggle-input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.toggle-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* Archive content */
.archive-content {
  background: var(--color-cream);
}

.archive-year-block {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-cream-dark);
}

.archive-year-block:last-child {
  border-bottom: none;
}

.archive-year-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.archive-year-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
}

.archive-year-theme {
  font-size: 1rem;
  color: var(--color-sunset);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.archive-year-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.archive-films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
}

.archive-film {
  text-align: center;
}

.archive-film-poster {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--color-cream-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.archive-poster-placeholder {
  color: var(--color-lake);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.winner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--color-gold);
  color: var(--color-navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hof-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  background: var(--color-pine);
  color: var(--color-cream);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.archive-year-season {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--color-lake-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.archive-film-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.archive-film-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.archive-no-results {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  padding: var(--space-lg) 0;
}

/* Hidden utility */
.archive-year-block.hidden,
.archive-film.hidden {
  display: none;
}

/* ============================================
   Gallery Page
   ============================================ */

/* --- Featured Trailer (removed) --- */

/* --- Gallery Filter Bar --- */
.gallery-filter-bar {
  background: var(--color-white);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-cream-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.gallery-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-filter-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--color-cream-dark);
  border-radius: 20px;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
  border-color: var(--color-lake);
  color: var(--color-lake);
}

.gallery-filter-btn--active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-cream);
}

/* --- Masonry Grid --- */
.gallery-masonry-section {
  background: var(--color-cream);
}

.masonry-grid {
  columns: 3;
  column-gap: var(--space-sm);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.masonry-item:hover {
  transform: scale(1.02);
}

.masonry-item .masonry-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream-dark);
  color: var(--color-lake);
  opacity: 0.4;
}

.masonry-item--tall .masonry-placeholder {
  height: 340px;
}

.masonry-item--wide .masonry-placeholder {
  height: 160px;
}

.masonry-item img,
.masonry-item video {
  width: 100%;
  display: block;
}

.masonry-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-caption {
  opacity: 1;
}

.masonry-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  pointer-events: none;
}

.masonry-item.hidden {
  display: none;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
  padding: var(--space-sm);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

.lightbox-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

/* ============================================
   Quote Wall Page
   ============================================ */

/* --- Featured Quote (Hero) --- */
.quotes-featured {
  background: var(--color-navy);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.quotes-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(212, 149, 58, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.featured-quote-card {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.featured-quote-mark {
  font-family: var(--font-display);
  font-size: 10rem;
  color: var(--color-gold);
  opacity: 0.15;
  line-height: 0.2;
  margin-bottom: var(--space-md);
  user-select: none;
}

.featured-quote-text p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--color-cream);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.featured-quote-meta {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
}

.featured-quote-person {
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.featured-quote-film {
  color: rgba(245, 239, 227, 0.5);
}

/* --- Quote Wall Section --- */
.quotes-wall-section {
  background: var(--color-cream);
  padding-bottom: var(--space-xl);
}

/* --- Quote Categories --- */
.quote-category {
  margin-bottom: var(--space-xl);
}

.quote-category:last-child {
  margin-bottom: 0;
}

.quote-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-cream);
  padding: var(--space-sm) 0;
  border-left: 3px solid transparent;
  padding-left: var(--space-sm);
}

.quote-category-title {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-navy);
  white-space: nowrap;
}

.quote-category-line {
  flex: 1;
  height: 1px;
  border-radius: 1px;
}

/* Category-specific accent colors */
.quote-category--foundations .quote-category-header { border-left-color: var(--color-navy); }
.quote-category--foundations .quote-category-line { background: linear-gradient(to right, var(--color-navy), transparent); }

.quote-category--wisdom .quote-category-header { border-left-color: var(--color-lake); }
.quote-category--wisdom .quote-category-line { background: linear-gradient(to right, var(--color-lake), transparent); }

.quote-category--topgun .quote-category-header { border-left-color: var(--color-gold); }
.quote-category--topgun .quote-category-line { background: linear-gradient(to right, var(--color-gold), transparent); }

.quote-category--ferrell .quote-category-header { border-left-color: var(--color-sunset); }
.quote-category--ferrell .quote-category-line { background: linear-gradient(to right, var(--color-sunset), transparent); }

.quote-category--oldschool .quote-category-header { border-left-color: var(--color-pine); }
.quote-category--oldschool .quote-category-line { background: linear-gradient(to right, var(--color-pine), transparent); }

.quote-category--winter .quote-category-header { border-left-color: var(--color-lake-light); }
.quote-category--winter .quote-category-line { background: linear-gradient(to right, var(--color-lake-light), transparent); }

/* --- Screenplay Page --- */
.script-page {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Script Entry (individual quote) --- */
.script-entry {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.script-entry:last-child {
  border-bottom: none;
}

/* --- Character Name (film title) --- */
.script-character {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

/* --- Dialogue (quote text) --- */
.script-dialogue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: center;
  color: var(--color-text);
  max-width: 520px;
  margin: 0 auto;
}

/* Stage direction — YouTube scene link */
.script-direction {
  display: block;
  text-align: center;
  margin-top: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.script-direction:hover {
  color: var(--color-gold);
}

/* Short quotes get bigger text */
.script-entry--short .script-dialogue {
  font-size: 1.4rem;
  line-height: 1.5;
}

/* ============================================
   Admin Panel
   ============================================ */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
}

.admin-login-inner {
  text-align: center;
  padding: var(--space-md);
}

.admin-login-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.admin-login-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.admin-header {
  background: var(--color-navy);
  padding: var(--space-sm) 0;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-cream);
}

.admin-header-actions {
  display: flex;
  gap: var(--space-sm);
}

.admin-link {
  color: rgba(245,239,227,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.admin-link:hover { color: var(--color-cream); }
.admin-link--logout { color: var(--color-sunset); }

.admin-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-cream-dark);
}

.admin-tabs {
  display: flex;
  gap: 0;
}

.admin-tab {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.admin-tab:hover { color: var(--color-navy); }

.admin-tab--active {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

.admin-main {
  background: var(--color-cream);
  min-height: 70vh;
  padding: var(--space-md) 0;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.admin-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
}

.admin-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.admin-form-section {
  background: var(--color-white);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border: 2px solid var(--color-gold);
}

.admin-form-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.admin-form-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-cream);
  gap: var(--space-sm);
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-list-item-info {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.admin-list-item-info small {
  color: var(--color-text-light);
}

.admin-list-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-btn-sm {
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--color-cream-dark);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-sm:hover {
  border-color: var(--color-lake);
  color: var(--color-lake);
}

.admin-btn-sm--danger:hover {
  border-color: var(--color-sunset);
  color: var(--color-sunset);
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  vertical-align: middle;
}

.admin-badge--gold {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}

.admin-empty {
  color: var(--color-text-light);
  font-style: italic;
  padding: var(--space-sm) 0;
}

.admin-status-row {
  padding: var(--space-xs) 0;
}

/* --- Vote Tally Dashboard --- */
.admin-tally-total {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.admin-tally-total strong {
  color: var(--color-navy);
  font-size: 1.3rem;
}

.admin-vote-tally {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-tally-row {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center;
  gap: var(--space-sm);
}

.admin-tally-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tally-bar-wrap {
  height: 24px;
  background: var(--color-cream);
  border-radius: 12px;
  overflow: hidden;
}

.admin-tally-bar {
  height: 100%;
  border-radius: 12px;
  min-width: 8px;
  transition: width 0.5s ease;
}

.admin-tally-count {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: right;
  white-space: nowrap;
}

/* --- Footer --- */
.footer {
  background: var(--color-navy-deep);
  color: rgba(250, 246, 238, 0.6);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-md);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-cream);
  margin-bottom: 4px;
}

.footer-location {
  font-size: 0.9rem;
}

.footer-details {
  text-align: right;
  font-size: 0.9rem;
}

.footer-details p {
  margin-bottom: 4px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
}

.footer-admin-link {
  display: inline-block;
  margin-top: var(--space-xs);
  color: rgba(250, 246, 238, 0.25);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-admin-link:hover {
  color: rgba(250, 246, 238, 0.6);
}

/* ============================================
   Vote Page
   ============================================ */

/* --- Vote Hero --- */
.vote-hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.vote-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      var(--color-navy-deep) 0%,
      var(--color-navy) 40%,
      var(--color-lake) 100%
    );
  z-index: 0;
}

.vote-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
}

.vote-hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.vote-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.vote-hero-theme {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-md);
}

.vote-hero-theme strong {
  color: var(--color-gold-light);
}

.vote-countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.countdown-phase-label {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  margin-bottom: 0;
}

.countdown-unit {
  text-align: center;
}

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.vote-hero-instructions {
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

.vote-hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--color-gold-light);
  margin-bottom: var(--space-xs);
}

.vote-hero-dates {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}

/* --- Nav dark variant --- */
.nav--dark {
  position: relative;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.nav-link--active {
  color: var(--color-gold-light) !important;
  border-bottom: 2px solid var(--color-gold-light);
  padding-bottom: 2px;
}

/* --- Nominees Grid --- */
.vote-nominees {
  background: var(--color-cream);
}

.nominees-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nominee-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nominee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.nominee-poster {
  aspect-ratio: 2/3;
  background: var(--color-cream-dark);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nominee-poster-placeholder {
  color: var(--color-lake);
  opacity: 0.5;
}

.nominee-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nominee-info {
  display: flex;
  flex-direction: column;
}

.nominee-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.nominee-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.nominee-synopsis {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.nominee-theme-fit {
  font-size: 0.9rem;
  color: var(--color-lake);
  font-style: italic;
  margin-bottom: var(--space-sm);
  flex: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn--vote {
  background: var(--color-navy);
  color: var(--color-cream);
  align-self: flex-start;
}

.btn--vote:hover {
  background: var(--color-lake);
  transform: translateY(-1px);
}

.nominee-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.btn--trailer {
  background: transparent;
  color: var(--color-sunset);
  border: 2px solid var(--color-sunset);
  text-decoration: none;
  text-align: center;
  align-self: flex-start;
}

.btn--trailer:hover {
  background: var(--color-sunset);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--submit {
  background: var(--color-gold);
  color: var(--color-navy-deep);
  width: 100%;
  padding: 14px;
}

.btn--submit:hover {
  background: var(--color-gold-light);
}

/* --- Modal --- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.85);
}

.modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}

.modal-content--confirmation {
  text-align: center;
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.modal-film-name {
  font-size: 1.05rem;
  color: var(--color-lake);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.confirmation-icon {
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.confirmation-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* --- Test Mode Banner --- */
.test-mode-banner {
  background: var(--color-sunset);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* --- Voter Login Panel --- */
.voter-login-section {
  padding-top: var(--space-md);
  padding-bottom: 0;
}

.voter-login-panel {
  background: var(--color-cream);
  border: 2px solid var(--color-cream-dark);
  border-radius: 12px;
  padding: var(--space-md);
  max-width: 560px;
  margin: 0 auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.voter-login-panel.voter-login--highlight {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(212, 149, 58, 0.25);
}

.voter-login-panel.voter-login--authenticated {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.voter-login-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--color-navy);
}

.voter-login-desc {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.voter-login-fields {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-end;
  flex-wrap: wrap;
}

.voter-login-fields .form-group {
  flex: 1;
  min-width: 120px;
  margin-bottom: 0;
}

.voter-login-btn {
  white-space: nowrap;
  width: auto;
  padding: 0.65rem 1.5rem;
}

.voter-login-error {
  color: var(--color-sunset);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
}

/* Voter Status Bar */
.voter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.voter-status-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.voter-status-greeting {
  color: var(--color-cream);
  font-size: 1.05rem;
}

.voter-status-count {
  color: var(--color-gold-light);
  font-size: 0.9rem;
}

.voter-logout-btn {
  width: auto;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--color-cream);
  border-color: var(--color-cream-dark);
}

.voter-logout-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Vote Button States */
.btn--vote:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-navy);
}
.btn--vote:disabled:hover {
  transform: none;
  background: var(--color-navy);
}

.btn--vote--voted {
  background: var(--color-pine) !important;
  border-color: var(--color-pine) !important;
  opacity: 1 !important;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
}

.form-group--small {
  width: 120px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.required {
  color: var(--color-sunset);
}

.optional {
  font-weight: 400;
  color: var(--color-text-light);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-lake);
}

.form-textarea {
  resize: vertical;
}

/* --- Write-in Section --- */
.vote-writein {
  background: var(--color-white);
}

.writein-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.writein-success {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: 12px;
  margin-top: var(--space-sm);
}

.writein-success p {
  color: var(--color-lake);
  font-weight: 600;
}

/* --- Suggestions List --- */
.suggestions-list {
  margin-top: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.suggestions-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.suggestion-item {
  background: var(--color-cream);
  border-radius: 10px;
  padding: var(--space-sm) calc(var(--space-sm) * 1.5);
  margin-bottom: var(--space-xs);
}

.suggestion-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-navy);
}

.suggestion-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.suggestion-item .suggestion-by {
  font-size: 0.8rem;
  color: var(--color-lake);
  margin-top: 4px;
}

/* --- Results (Voting Closed) --- */
.vote-results {
  background: var(--color-cream);
}

.results-container {
  max-width: 600px;
  margin: 0 auto;
}

.result-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.result-name {
  flex-shrink: 0;
  width: 160px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  text-align: right;
}

.result-track {
  flex: 1;
  height: 36px;
  background: var(--color-cream-dark);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.result-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-lake), var(--color-gold));
  border-radius: 8px;
  transition: width 1s ease;
  min-width: 2px;
}

.result-count {
  flex-shrink: 0;
  width: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.results-note {
  text-align: center;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: var(--space-lg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .origin-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .section-title--left {
    text-align: center;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .masonry-grid {
    columns: 2;
  }

  .script-page {
    max-width: 100%;
  }

  .script-dialogue {
    max-width: 100%;
  }

  .founders-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .moment-item {
    gap: var(--space-sm);
  }

  .moment-year-badge {
    width: 80px;
  }

  .moments-line {
    left: 40px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer-details {
    text-align: center;
  }

  .nominee-card {
    grid-template-columns: 140px 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group--small {
    width: 100%;
  }

  .result-name {
    width: 100px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .timeline-item {
    flex-direction: column;
    gap: var(--space-xs);
    padding-left: 60px;
  }

  .timeline-year {
    width: auto;
    text-align: left;
  }

  .timeline-year::after {
    right: auto;
    left: -32px;
  }

  .timeline-line {
    left: 20px;
  }

  .nominee-card {
    grid-template-columns: 1fr;
  }

  .nominee-poster {
    max-height: 200px;
    aspect-ratio: auto;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .vote-countdown {
    gap: var(--space-sm);
  }

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

  .masonry-grid {
    columns: 1;
  }

  .script-character {
    letter-spacing: 0.08em;
    font-size: 0.8rem;
  }

  .script-dialogue {
    font-size: 1rem;
  }

  .script-entry--short .script-dialogue {
    font-size: 1.2rem;
  }

  .moment-item {
    flex-direction: column;
    padding-left: 50px;
    gap: var(--space-xs);
  }

  .moment-year-badge {
    width: auto;
    text-align: left;
  }

  .moment-year-badge::after {
    right: auto;
    left: -34px;
  }

  .moments-line {
    left: 22px;
  }
}

/* ============================================
   Music Player
   ============================================ */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  background: var(--color-navy);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  font-family: var(--font-body);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  max-width: 320px;
}

.music-player--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.music-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.music-player-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  white-space: nowrap;
  line-height: 1;
}

.music-song-title {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.music-play-btn {
  background: none;
  border: 2px solid var(--color-gold);
  cursor: pointer;
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.music-play-btn:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

.music-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.music-skip-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.music-skip-btn:hover {
  opacity: 1;
}

.music-skip-btn svg {
  fill: currentColor;
}

/* Hide the YouTube iframe completely — audio only */
.music-player-iframe-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .music-player {
    bottom: 12px;
    right: 12px;
    max-width: 280px;
  }
}
