/* MIDNIGHT REWIND — VHS Horror Film Festival */

@import url("https://fonts.googleapis.com/css2?family=Creepster&family=Bungee+Shade&family=VT323&family=Oswald:wght@400;500;600;700&display=swap");

:root {
  --black: #08000a;
  --near-black: #12040f;
  --panel: #170a16;
  --neon-red: #ff163d;
  --neon-red-soft: #ff163d99;
  --magenta: #ff2fb0;
  --cyan: #2bf5ff;
  --chrome-light: #eef4f7;
  --chrome-mid: #9fb1bb;
  --chrome-dark: #445059;
  --text: #ece4e6;
  --text-dim: #b9a8b0;
  --border: #3a1530;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Oswald", sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Grain + scanline atmosphere ---------- */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: grain-shift 0.6s steps(4) infinite;
  opacity: 0.5;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(1px, 1px); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 199;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(8, 0, 10, 0.96), rgba(8, 0, 10, 0.85));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(3px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  padding-right: 90px; /* keep top-right clear for platform sound button */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: "Bungee Shade", cursive;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red), 0 0 22px var(--neon-red-soft);
  white-space: nowrap;
}

.logo span {
  color: var(--chrome-light);
  text-shadow: 0 0 10px var(--cyan), 2px 0 0 var(--magenta), -2px 0 0 var(--cyan);
}

.site-header nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--chrome-light);
  border-color: var(--magenta);
  text-shadow: 0 0 8px var(--magenta);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "VT323", monospace;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--neon-red);
  color: var(--black);
  box-shadow: 0 0 14px var(--neon-red-soft), 0 0 30px rgba(255, 22, 61, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff3f5f;
  box-shadow: 0 0 20px var(--neon-red), 0 0 44px rgba(255, 22, 61, 0.55);
}

.btn-ghost {
  border-color: var(--magenta);
  color: var(--chrome-light);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 47, 176, 0.15);
  box-shadow: 0 0 14px rgba(255, 47, 176, 0.45);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 0, 10, 0.55) 0%,
    rgba(8, 0, 10, 0.35) 40%,
    rgba(8, 0, 10, 0.92) 100%
  ),
  linear-gradient(90deg, rgba(255, 22, 61, 0.22), transparent 40%, rgba(255, 47, 176, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 900px;
}

.eyebrow {
  font-family: "VT323", monospace;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  margin: 0 0 0.5rem;
}

.hero-title {
  font-family: "Bungee Shade", cursive;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  color: var(--chrome-light);
  text-shadow: 2px 0 0 var(--magenta), -2px 0 0 var(--cyan), 0 0 28px rgba(255, 22, 61, 0.6);
  animation: flicker 4.5s infinite;
}

.hero-title span {
  color: var(--neon-red);
  text-shadow: 2px 0 0 var(--cyan), -2px 0 0 var(--magenta), 0 0 30px var(--neon-red);
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; }
  20% { opacity: 0.65; }
  22% { opacity: 0.9; }
  81% { opacity: 0.75; }
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 1.4rem;
}

.hero-meta {
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--chrome-mid);
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tracking-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.5) 0px,
    rgba(255, 255, 255, 0.5) 2px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.25;
  mix-blend-mode: overlay;
  animation: track-roll 6s linear infinite;
  z-index: 2;
}

@keyframes track-roll {
  0% { top: -5%; opacity: 0; }
  4% { opacity: 0.35; }
  10% { opacity: 0; }
  100% { top: 105%; opacity: 0; }
}

/* ---------- Sections ---------- */

section {
  padding: 4.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.intro {
  text-align: center;
  max-width: 720px;
}

.intro p {
  font-size: 1.15rem;
  color: var(--text-dim);
}

.section-title {
  font-family: "Creepster", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--neon-red);
  text-shadow: 0 0 12px var(--neon-red-soft), 0 0 30px rgba(255, 22, 61, 0.35);
  letter-spacing: 0.03em;
  margin: 0 0 2.5rem;
}

/* ---------- Film cards ---------- */

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.film-card {
  background: linear-gradient(180deg, var(--panel), var(--near-black));
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.film-card:hover,
.film-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--neon-red);
  box-shadow: 0 12px 34px rgba(255, 22, 61, 0.28);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 0.4s;
}

.film-card:hover .poster-frame img {
  transform: scale(1.05);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 0, 10, 0.85) 0%, transparent 35%);
}

.rating-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(8, 0, 10, 0.85);
  border: 1px solid var(--neon-red);
  color: var(--chrome-light);
  font-family: "VT323", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-shadow: 0 0 6px var(--neon-red);
  z-index: 2;
}

.film-body {
  padding: 1.3rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.film-title {
  font-family: "Creepster", cursive;
  font-size: 1.6rem;
  color: var(--chrome-light);
  margin: 0;
  letter-spacing: 0.02em;
}

.film-tagline {
  font-style: italic;
  color: var(--magenta);
  font-size: 0.95rem;
  margin: 0;
}

.film-meta {
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  color: var(--chrome-mid);
  letter-spacing: 0.05em;
  margin: 0;
}

.film-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0.2rem 0 0;
}

.skulls {
  font-size: 0.95rem;
  color: var(--neon-red);
  letter-spacing: 0.15em;
}

.skull-off {
  color: var(--chrome-dark);
  text-shadow: none;
}

/* ---------- CTA strip ---------- */

.cta-strip {
  text-align: center;
  background: linear-gradient(90deg, rgba(255, 22, 61, 0.12), rgba(255, 47, 176, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  padding: 3rem 1.5rem;
}

.cta-strip p {
  font-family: "VT323", monospace;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--chrome-light);
  margin: 0 0 1.2rem;
}

/* ---------- Page banner (schedule / tickets) ---------- */

.page-banner {
  padding: 5.5rem 1.5rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(255, 22, 61, 0.18), transparent 60%), var(--black);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-family: "Bungee Shade", cursive;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--chrome-light);
  text-shadow: 2px 0 0 var(--magenta), -2px 0 0 var(--cyan), 0 0 24px rgba(255, 22, 61, 0.5);
  margin: 0 0 0.6rem;
}

.page-banner p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Schedule ---------- */

.day-block {
  margin-bottom: 3.5rem;
}

.day-title {
  font-family: "Creepster", cursive;
  font-size: 1.7rem;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(43, 245, 255, 0.45);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--panel);
}

.schedule-table caption {
  text-align: left;
  font-family: "VT323", monospace;
  color: var(--text-dim);
  padding: 0.6rem 1rem 0;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.schedule-table thead th {
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-red);
  background: rgba(255, 22, 61, 0.08);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background: rgba(255, 47, 176, 0.06);
}

.time-cell {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  color: var(--chrome-light);
  white-space: nowrap;
}

.screen-tag {
  display: inline-block;
  font-family: "VT323", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
}

/* ---------- Tickets ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.tier-card {
  background: linear-gradient(180deg, var(--panel), var(--near-black));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tier-card:hover,
.tier-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--magenta);
  box-shadow: 0 12px 34px rgba(255, 47, 176, 0.25);
}

.tier-card.featured {
  border-color: var(--neon-red);
  box-shadow: 0 0 24px rgba(255, 22, 61, 0.3);
}

.tier-flag {
  position: absolute;
  top: -12px;
  right: 1.2rem;
  background: var(--neon-red);
  color: var(--black);
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.tier-name {
  font-family: "Creepster", cursive;
  font-size: 1.5rem;
  color: var(--chrome-light);
  margin: 0;
}

.tier-price {
  font-family: "VT323", monospace;
  font-size: 2.2rem;
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red-soft);
  margin: 0;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-dim);
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tier-card ul li::before {
  content: "▸ ";
  color: var(--cyan);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.9rem;
}

.faq summary {
  cursor: pointer;
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--chrome-light);
}

.faq summary:hover {
  color: var(--magenta);
}

.faq details[open] summary {
  color: var(--neon-red);
}

.faq p {
  color: var(--text-dim);
  margin: 0.7rem 0 0.2rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer .footer-logo {
  font-family: "Bungee Shade", cursive;
  font-size: 1.1rem;
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-soft);
  margin-bottom: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .header-inner {
    padding-right: 70px;
  }

  .site-header nav {
    gap: 1rem;
  }

  section {
    padding: 3rem 1.2rem;
  }
}
