body {
  min-height: 100vh;
  background: #fafaf9;
  color: #292524;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.10), transparent 34rem),
    linear-gradient(180deg, #fafaf9 0%, #f5f5f4 48%, #fafaf9 100%);
}

.site-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 16px 30px rgba(185, 28, 28, 0.28);
}

.site-nav-link {
  color: #57534e;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: #dc2626;
}

.site-search-form {
  position: relative;
}

.site-search-input,
.page-filter-input {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 0.8rem;
  background: #fafaf9;
  color: #292524;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-search-input {
  min-width: 16rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
}

.page-filter-input {
  max-width: 20rem;
  padding: 0.75rem 1rem;
}

.site-search-input:focus,
.page-filter-input:focus {
  border-color: #ef4444;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(27rem, 88vw);
  max-height: 30rem;
  overflow: auto;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(28, 25, 23, 0.16);
  z-index: 70;
  padding: 0.5rem;
}

.search-result-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 0.85rem;
  transition: background 160ms ease, transform 160ms ease;
}

.search-result-item:hover {
  background: #fff1f2;
  transform: translateY(-1px);
}

.search-result-item img {
  width: 4.5rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.65rem;
  background: #1c1917;
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: block;
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 35rem;
  overflow: hidden;
  background: #1c1917;
}

@media (min-width: 768px) {
  .hero-section {
    height: 80vh;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1000ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6500ms ease;
}

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.55) 33%, rgba(12, 10, 9, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.25rem 3.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 4rem 4rem 5.5rem;
  }
}

.hero-copy {
  max-width: 48rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.36);
}

.hero-title {
  margin-top: 1.2rem;
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 4.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 42rem;
  margin-top: 1rem;
  color: #e7e5e4;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn-primary,
.btn-secondary,
.btn-light,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-primary {
  padding: 0.85rem 1.3rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 18px 36px rgba(185, 28, 28, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(185, 28, 28, 0.32);
}

.btn-secondary,
.btn-light {
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-light {
  border-color: #e7e5e4;
  color: #44403c;
  background: #ffffff;
}

.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.btn-light:hover {
  background: #fff1f2;
  color: #b91c1c;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.hero-control:hover {
  background: rgba(239, 68, 68, 0.84);
}

.hero-control--prev {
  left: 1.5rem;
}

.hero-control--next {
  right: 1.5rem;
}

@media (min-width: 768px) {
  .hero-control {
    display: inline-flex;
  }
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
  z-index: 25;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ef4444;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title h2,
.section-title h1 {
  color: #292524;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-kicker {
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #eeeae7;
  box-shadow: 0 12px 34px rgba(41, 37, 36, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card a:hover {
  transform: translateY(-4px);
  border-color: #fecaca;
  box-shadow: 0 22px 50px rgba(41, 37, 36, 0.13);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1c1917;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.movie-card a:hover .movie-poster img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 54%);
}

.movie-badge,
.movie-type-badge {
  position: absolute;
  top: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.55rem;
  border-radius: 0.55rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.movie-badge {
  left: 0.75rem;
  background: #ef4444;
}

.movie-type-badge {
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 0.9rem;
}

.movie-card-title {
  color: #292524;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card-text {
  margin-top: 0.45rem;
  color: #78716c;
  font-size: 0.9rem;
  line-height: 1.6;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.movie-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 0.75rem;
  font-weight: 700;
}

.movie-card--list a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: stretch;
}

.movie-card--list .movie-poster {
  aspect-ratio: 4 / 3;
  height: 100%;
}

.movie-card--list .movie-card-body {
  padding: 1rem 1rem 1rem 0;
}

.category-card {
  overflow: hidden;
  border-radius: 1.2rem;
  background: #ffffff;
  border: 1px solid #eeeae7;
  box-shadow: 0 18px 42px rgba(41, 37, 36, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(41, 37, 36, 0.13);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 9rem;
  background: #1c1917;
}

.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.filter-button {
  border: 1px solid #e7e5e4;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  color: #57534e;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: #ef4444;
  background: #fff1f2;
  color: #dc2626;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem 5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #eeeae7;
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.07);
}

.rank-number {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  font-weight: 900;
}

.rank-item img {
  width: 5rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #1c1917;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #78716c;
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: #dc2626;
}

.player-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #0c0a09;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.76));
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 5;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-play-icon {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 18px 46px rgba(239, 68, 68, 0.42);
  font-size: 2rem;
  transform: scale(1);
  transition: transform 180ms ease, background 180ms ease;
}

.player-overlay:hover .player-play-icon {
  transform: scale(1.08);
  background: #dc2626;
}

.detail-poster {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #1c1917;
  box-shadow: 0 20px 54px rgba(41, 37, 36, 0.18);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.prose-card {
  border-radius: 1.2rem;
  background: #ffffff;
  border: 1px solid #eeeae7;
  box-shadow: 0 18px 42px rgba(41, 37, 36, 0.08);
}

.prose-card p {
  color: #57534e;
  line-height: 1.9;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: #78716c;
  background: #ffffff;
  border: 1px solid #eeeae7;
}

@media (max-width: 767px) {
  .site-search-input {
    min-width: 0;
  }

  .movie-card--list a,
  .rank-item {
    grid-template-columns: 5.25rem 1fr;
  }

  .rank-number {
    display: none;
  }
}
