* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#app.exiting {
  opacity: 0;
  pointer-events: none;
}

#topbar {
  flex: 0 0 auto;
  padding: 36px 24px 8px;
  text-align: center;
}

#site-title {
  margin: 0 0 4px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

#stage {
  flex: 1 1 auto;
  padding: 24px 24px 64px;
}

.movie-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}

/* ---------- Movie icons (filmstrip cards) ---------- */

.movie-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease;
}

.movie-card:hover,
.movie-card:focus-visible {
  transform: translateY(-4px);
}

.filmstrip {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #1c1c1c;
  border-radius: 6px;
  padding: 0 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.sprockets {
  flex: 0 0 14px;
  width: 14px;
  background-image: radial-gradient(circle, #000000 42%, transparent 44%);
  background-size: 100% 20px;
  background-repeat: repeat-y;
  background-position: center top;
}

.thumb {
  flex: 1 1 auto;
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.movie-title {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

/* ---------- Exit icon ---------- */

.exit-card .filmstrip {
  background: none;
  box-shadow: none;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 0 14px;
}

.exit-card .exit-symbol {
  font-size: 32px;
  line-height: 1;
  color: #ffffff;
}

.exit-card .movie-title {
  color: #ffffff;
}

/* ---------- Video overlay ---------- */

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-player {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

@media (max-width: 640px) {
  #site-title {
    font-size: 24px;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }

  .thumb {
    height: 100px;
  }
}
