.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.9) 0%, rgba(8, 10, 14, 0.45) 55%, rgba(8, 10, 14, 0.2) 100%),
    radial-gradient(circle at 75% 10%, #26334d 0%, #141a24 52%);
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-large {
  min-height: 420px;
}

.hero-compact {
  min-height: 220px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 17, 21, 0.65) 100%);
  pointer-events: none;
}

[data-hero] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.5) 46%, rgba(8, 10, 14, 0.24) 74%, rgba(8, 10, 14, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.18) 0%, rgba(8, 10, 14, 0.7) 100%);
}

[data-title-hero] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.68) 45%, rgba(8, 10, 14, 0.35) 72%, rgba(8, 10, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.12) 0%, rgba(8, 10, 14, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
}

.hero p {
  margin: 0.5rem 0;
  color: #d6dcea;
  line-height: 1.5;
}

.hero-meta {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.purchase-error-banner {
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(230, 88, 88, 0.15);
  border: 1px solid rgba(255, 128, 128, 0.45);
  color: #ffd8d8;
}

.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.trailer-modal[hidden] {
  display: none !important;
}

.trailer-modal.is-hidden {
  display: none !important;
}

.trailer-dialog {
  width: min(100%, 980px);
  background: #0f141d;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
}

.trailer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

#trailerPlayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
}

@media (max-width: 760px) {
  .hero-content {
    padding: 1.2rem;
  }

  .hero-large {
    min-height: 340px;
  }
}
