:root {
  --site-orange: #f97316;
  --site-red: #dc2626;
  --site-ink: #111827;
  --site-muted: #6b7280;
  --site-soft: #fff7ed;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f9fafb;
  color: var(--site-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-main {
  padding-top: 5rem;
}

.site-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.mobile-menu {
  display: none;
}

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

.site-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(110deg, #ea580c 0%, #dc2626 48%, #db2777 100%);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.28;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.22), transparent 32%), rgba(0, 0, 0, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 3rem;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.hero-summary {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  line-height: 1.85;
  max-width: 46rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 1rem 1.55rem;
  font-weight: 800;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-button.primary {
  background: #fff;
  color: #ea580c;
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(14px);
}

.hero-poster-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.36);
  background: rgba(255,255,255,0.1);
}

.hero-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.04));
}

.hero-poster-meta {
  position: absolute;
  z-index: 2;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.55);
}

.hero-dot.is-active {
  width: 2.1rem;
  background: #fff;
}

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

.section-heading h2,
.section-heading h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: #ea580c;
}

.movie-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.movie-cover.wide {
  aspect-ratio: 16 / 9;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.24);
}

.movie-rank {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 14px 24px rgba(220, 38, 38, 0.25);
}

.movie-info {
  padding: 1rem;
}

.movie-info h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.movie-info p {
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.8rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 650;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 30rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.16), transparent);
}

.feature-content {
  position: absolute;
  z-index: 2;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
}

.category-tile {
  position: relative;
  display: block;
  min-height: 13rem;
  border-radius: 1.5rem;
  padding: 1.4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.18);
}

.category-tile h2,
.category-tile h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.6rem;
}

.category-tile p {
  color: #6b7280;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.no-results {
  display: none;
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #020617;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18));
}

.play-overlay span:first-child {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.35);
}

.player-shell.is-playing .play-overlay {
  display: none;
}

.detail-card {
  background: #fff;
  border-radius: 1.3rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 750;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.breadcrumb a:hover {
  color: #ea580c;
}

.rank-list-item {
  display: grid;
  grid-template-columns: auto 5.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border-radius: 1.2rem;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.rank-list-item img {
  width: 5.5rem;
  height: 7.4rem;
  border-radius: 0.9rem;
  object-fit: cover;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.line-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hero-poster-card {
    max-width: 18rem;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-list-item {
    grid-template-columns: auto 4.5rem minmax(0, 1fr);
  }

  .rank-list-item .rank-extra {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding-top: 4rem;
  }

  .site-hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-button {
    justify-content: center;
  }
}
