/* ============================================
   Marty Supreme — NYC Drive-In Screening
   marty-supreme.avi.nyc
   ============================================ */

:root {
  --bg-top: #08111f;
  --bg-bottom: #02060d;
  --neon: #8fd3ff;
  --neon-soft: rgba(143, 211, 255, 0.22);
  --text: #f4efe6;
  --muted: #cdbfa8;
  --metal: #8e98a7;
  --velvet: #291722;
  --dash: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.13);
  --shadow: 0 20px 80px rgba(0,0,0,0.55);
  --max-width: 1200px;
  --gold: #ffcc8a;
  --gold-bright: #ffd98c;
  --cream: #fff5e4;
  --warm-glow: rgba(255, 203, 112, 0.8);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 12%, rgba(77, 114, 170, 0.25), transparent 30%),
    linear-gradient(to bottom, var(--bg-top) 0%, #040915 38%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Stars ── */

.stars,
.stars::before,
.stars::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.65;
}

.stars {
  background-image:
    radial-gradient(2px 2px at 12% 24%, rgba(255,255,255,0.85) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(255,255,255,0.8) 50%, transparent 52%),
    radial-gradient(2px 2px at 84% 36%, rgba(255,255,255,0.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 30% 10%, rgba(255,255,255,0.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(255,255,255,0.65) 50%, transparent 52%),
    radial-gradient(2px 2px at 20% 44%, rgba(255,255,255,0.55) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 92% 14%, rgba(255,255,255,0.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 62% 8%, rgba(255,255,255,0.5) 50%, transparent 52%);
}

.stars::before {
  opacity: 0.35;
  transform: scale(1.2);
  background-image:
    radial-gradient(1.5px 1.5px at 18% 60%, rgba(255,255,255,0.8) 50%, transparent 52%),
    radial-gradient(2px 2px at 76% 58%, rgba(255,255,255,0.5) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 42% 68%, rgba(255,255,255,0.6) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 88% 72%, rgba(255,255,255,0.65) 50%, transparent 52%);
}

.stars::after {
  opacity: 0.2;
  transform: scale(1.45);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 80%, rgba(255,255,255,0.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 36% 88%, rgba(255,255,255,0.45) 50%, transparent 52%),
    radial-gradient(2px 2px at 70% 82%, rgba(255,255,255,0.55) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 92% 90%, rgba(255,255,255,0.45) 50%, transparent 52%);
}

/* ── Page Layout ── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Hero / Marquee ── */

.hero {
  position: relative;
  padding: 32px 20px 12px;
}

.marquee {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px 24px 8px 8px;
  background:
    linear-gradient(to bottom, rgba(68, 27, 29, 0.96), rgba(28, 11, 15, 0.97)),
    repeating-linear-gradient(to right, transparent 0 24px, rgba(255,255,255,0.05) 24px 25px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 102, 0.15), transparent 35%),
    linear-gradient(to bottom, rgba(255,255,255,0.03), transparent 26%);
  pointer-events: none;
}

.marquee-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.bulbs {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 8px;
  padding: 12px 14px 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.bulbs span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--gold-bright);
  box-shadow:
    0 0 12px var(--warm-glow),
    0 0 24px rgba(255, 203, 112, 0.45),
    inset 0 1px 1px rgba(255,255,255,0.6);
  animation: pulse 3.2s infinite ease-in-out;
}

.bulbs span:nth-child(odd) { animation-delay: 0.22s; }
.bulbs span:nth-child(3n) { animation-delay: 0.6s; }

.marquee-title {
  text-align: center;
  padding: 18px 20px 26px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: #ffd79d;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow:
    0 0 20px rgba(255, 224, 167, 0.18),
    0 3px 0 rgba(63,25,11,0.35),
    0 16px 40px rgba(0,0,0,0.4);
}

.subtitle {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ── Screen Area ── */

.lot {
  position: relative;
  padding: 18px 20px 80px;
}

.lot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 14%, rgba(1,3,7,0.95) 100%),
    linear-gradient(to right, transparent 0 5%, rgba(255,255,255,0.07) 5.2%, transparent 5.4%, transparent 12%, rgba(255,255,255,0.05) 12.2%, transparent 12.4%);
  opacity: 0.75;
  pointer-events: none;
}

.screen-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  position: relative;
}

.screen-legs {
  position: absolute;
  inset: auto 0 -42px 0;
  height: 76px;
  pointer-events: none;
}

.screen-legs::before,
.screen-legs::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 88px;
  background: linear-gradient(to bottom, #77808d, #3a4048);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.screen-legs::before { left: 10%; transform: skewX(-6deg); }
.screen-legs::after { right: 10%; transform: skewX(6deg); }

.screen-frame {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(145deg, #d9dde3, #5f6672 38%, #2b313b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -6px 16px rgba(0,0,0,0.25),
    0 32px 80px rgba(0,0,0,0.55);
}

.screen-bezel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #010204;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
}

.screen-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.16), transparent 18%, transparent 78%, rgba(255,255,255,0.05)),
    linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 20%, transparent 76%, rgba(255,255,255,0.03));
  z-index: 3;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

/* ── Info Panels ── */

.info-row {
  width: min(100%, var(--max-width));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 18px 18px 16px;
}

.panel h2,
.panel h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffe1a7;
  font-weight: 700;
  font-family: inherit;
}

.panel p {
  margin: 0;
  color: #efe4d1;
  line-height: 1.7;
  font-size: 0.98rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.meta-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d8be96;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 0.98rem;
  color: white;
  font-weight: 600;
}

/* ── Buttons ── */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(to bottom, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  color: white;
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  background: linear-gradient(to bottom, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
}

.button.primary {
  color: #08111f;
  background: linear-gradient(to bottom, #ffe4b0, #f6bf68);
  border-color: rgba(255,221,153,0.7);
  box-shadow: 0 10px 26px rgba(246, 191, 104, 0.22);
}

.button.primary:hover {
  background: linear-gradient(to bottom, #ffebbf, #f8c87b);
}

.speaker-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: #d6c7b0;
  opacity: 0.88;
}

/* ── Cars ── */

.cars {
  width: min(100%, var(--max-width));
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.car {
  position: relative;
  width: min(20vw, 180px);
  height: 72px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45));
}

.car.small { width: min(16vw, 140px); height: 58px; }

.car-body {
  position: absolute;
  inset: auto 0 14px 0;
  height: 34px;
  border-radius: 14px 20px 10px 10px;
  background: linear-gradient(to bottom, #121722, #05080d);
  border: 1px solid rgba(255,255,255,0.08);
}

.car-top {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 38px;
  height: 20px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(to bottom, #1d2330, #0b0e15);
  border: 1px solid rgba(255,255,255,0.08);
}

.wheel {
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: #040404;
  border-radius: 50%;
  border: 2px solid #3a404d;
}

.wheel.left { left: 16px; }
.wheel.right { right: 16px; }

.headlight {
  position: absolute;
  width: 12px;
  height: 8px;
  bottom: 25px;
  border-radius: 8px;
  background: #fff1be;
  box-shadow: 0 0 14px rgba(255, 233, 159, 0.55);
}

.headlight.left { left: -2px; }
.headlight.right { right: -2px; }

/* ── Footer ── */

.footer {
  width: min(100%, var(--max-width));
  margin: 34px auto 0;
  padding: 0 4px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--gold);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  margin-top: 10px;
}

/* ── Animations ── */

@keyframes pulse {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .info-row {
    grid-template-columns: 1fr;
  }

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

  .cars {
    gap: 8px;
  }

  .car:nth-child(4),
  .car:nth-child(5) {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 20px;
  }

  .marquee-top {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .screen-frame {
    padding: 10px;
  }

  .panel {
    padding: 16px 14px;
  }

  .cars {
    justify-content: center;
  }

  .car:nth-child(3),
  .car:nth-child(4),
  .car:nth-child(5) {
    display: none;
  }

  .footer {
    font-size: 0.76rem;
  }
}

/* ── Accessibility ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
