@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Special+Elite&family=Inter:wght@400;600;700;900&display=swap');

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.top-ad {
  padding: 0;
  display: flex;
  justify-content: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.top-ad .adsbygoogle {
  width: 100%;
  max-width: 970px;
}

.top-ad.top-ad-filled {
  padding: 0.5rem 1rem 0;
  max-height: 400px;
  opacity: 1;
}

/* ── ad banner ── */
.ad-banner {
  background: var(--surface2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── blockbuster header ── */
.bb-header {
  background: var(--blue);
  position: relative;
  overflow: visible;
  z-index: 10;
}

.bb-header::before {
  content: '';
  display: block;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px, var(--yellow) 24px,
    var(--blue) 24px, var(--blue) 48px
  );
}

.bb-header::after {
  content: '';
  display: block;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px, var(--yellow) 24px,
    var(--blue) 24px, var(--blue) 48px
  );
}

.bb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.bb-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--yellow);
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

.bb-logo span {
  display: block;
  font-size: 0.35em;
  letter-spacing: 0.3em;
  color: rgba(255,215,0,0.7);
  margin-top: -4px;
}

.bb-back {
  font-family: 'Special Elite', cursive;
  font-size: 1.2rem;
  color: var(--yellow);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.bb-back:hover { opacity: 1; }

.bb-subheader {
  background: var(--yellow);
  color: var(--blue);
  text-align: center;
  padding: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  position: relative;
  z-index: 1;
}

/* ── main content ── */
.store-floor {
  max-width: 520px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header-line {
  flex: 1;
  height: 2px;
  background: var(--yellow);
  opacity: 0.3;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
}

/* ── vhs card ── */
.vhs-card {
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.4);
  animation: fadeUp 0.5s ease both;
  position: relative;
}

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

.staff-pick {
  position: absolute;
  top: 1rem;
  left: -8px;
  background: var(--yellow);
  color: var(--blue);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem 0.25rem 1rem;
  z-index: 10;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

.staff-pick::before {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  border-top: 6px solid var(--yellow-dark);
  border-left: 8px solid transparent;
}

.poster-wrap {
  position: relative;
  height: 610px;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .poster-wrap {
    height: 488px;
  }
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 60%,
    rgba(0,0,0,0.7) 85%,
    var(--surface) 100%
  );
  pointer-events: none;
}

.rating-sticker {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--blue);
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  z-index: 5;
  gap: 1px;
  text-decoration: none;
}

.rating-sticker .imdb-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: #000;
  color: #f5c518;
  padding: 1px 3px;
  border-radius: 2px;
  line-height: 1.4;
}

/* ── card body ── */
.card-body { padding: 1.5rem; }

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  margin-bottom: 0.3rem;
}

.meta {
  font-family: 'Special Elite', cursive;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.meta span + span::before { content: ' · '; }

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.genre-tag {
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--yellow);
}

.overview {
  font-family: 'Special Elite', cursive;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--overview-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--card-border);
}

.rental-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-family: 'Special Elite', cursive;
  font-size: 0.85rem;
  color: var(--text);
}

/* ── watch button — colour set per page via --cta-color / --cta-dark ── */
.watch-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 3px;
  border: 3px solid var(--cta-color);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: var(--cta-color);
  color: #fff;
  box-shadow: 4px 4px 0 var(--cta-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}

.watch-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--cta-dark); }
.watch-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--cta-dark); }

/* ── footer ── */
footer {
  text-align: center;
  padding: 1rem 2rem;
  font-family: 'Special Elite', cursive;
  font-size: 1.2rem;
  color: var(--yellow);
  border-top: 1px solid var(--card-border);
}

.state-msg { text-align: center; padding: 4rem 1rem; color: var(--muted); }
