:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --accent-50: #fff1f2;
  --accent-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, .25);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(229, 231, 235, .92);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
}

.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: var(--shadow-card);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: .75rem;
  padding: .65rem .8rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem .75rem;
}

.main-nav a {
  color: var(--gray-700);
  padding: .55rem .75rem;
  border-radius: .75rem;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 2.25rem 0;
}

.section-head {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
}

.section-desc {
  margin: .5rem 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.more-link {
  color: var(--primary-600);
  font-weight: 700;
  white-space: nowrap;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 8%, rgba(249, 115, 22, .24), transparent 28%), linear-gradient(135deg, #111827, #27160d 48%, #111827);
  color: #fff;
}

.hero-track {
  position: relative;
  min-height: clamp(34rem, 72vh, 48rem);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, .98) 0%, rgba(17, 24, 39, .78) 42%, rgba(17, 24, 39, .3) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, .85), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
  min-height: clamp(34rem, 72vh, 48rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .72fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 4rem 0 5.5rem;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .4rem;
  color: #fed7aa;
  background: rgba(249, 115, 22, .18);
  border: 1px solid rgba(251, 146, 60, .35);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .9rem;
  font-weight: 700;
}

.hero-title {
  margin: 1rem 0;
  max-width: 48rem;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-summary {
  max-width: 46rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.3rem 0 1.7rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: .45rem .75rem;
  font-size: .9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.85rem;
  border-radius: .9rem;
  border: 1px solid transparent;
  padding: .72rem 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary-500);
  box-shadow: 0 12px 30px rgba(249, 115, 22, .28);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}

.btn-light {
  color: var(--gray-900);
  background: #fff;
  border-color: var(--gray-200);
}

.hero-poster-card {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(22rem, 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
}

.hero-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
}

.hero-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  padding: 0;
  opacity: .55;
}

.hero-dot.is-active {
  width: 1.7rem;
  opacity: 1;
  background: var(--primary-500);
}

.search-panel {
  position: relative;
  z-index: 10;
  margin-top: -2.4rem;
}

.search-card {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
}

.search-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: .9rem;
  color: var(--gray-900);
  background: #fff;
  padding: .82rem 1rem;
  outline: none;
}

.search-input:focus,
.filter-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.search-results {
  display: none;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: .8rem;
}

.search-results.is-open {
  display: grid;
}

.search-result-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: .75rem;
  align-items: center;
  padding: .65rem;
  border-radius: .9rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.search-result-card img {
  width: 4rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: .55rem;
  background: var(--gray-100);
}

.search-result-card strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--gray-900);
}

.search-result-card span {
  color: var(--gray-600);
  font-size: .86rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}

.card-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray-100);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.poster-badge {
  position: absolute;
  left: .7rem;
  top: .7rem;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, .72);
  padding: .28rem .55rem;
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 1rem;
}

.movie-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-title a:hover {
  color: var(--primary-600);
}

.movie-line {
  margin: .55rem 0 0;
  color: var(--gray-600);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta {
  margin-top: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.movie-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: .28rem .55rem;
  font-size: .78rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.category-card {
  min-height: 11rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #fff, var(--primary-50));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  padding: 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 .7rem;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(15rem, 24rem) 1fr;
  gap: 1.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
}

.feature-body {
  padding: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-body h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.15;
}

.feature-body p {
  color: var(--gray-600);
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.5rem 0;
  color: var(--gray-600);
  font-size: .95rem;
}

.breadcrumb a:hover {
  color: var(--primary-600);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.5rem;
  align-items: start;
}

.detail-card,
.side-card {
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.detail-content {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-content h1 {
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.detail-content h2 {
  margin: 1.7rem 0 .75rem;
  font-size: 1.35rem;
}

.detail-content p {
  color: var(--gray-700);
  line-height: 2;
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .18));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-500);
  box-shadow: 0 16px 38px rgba(249, 115, 22, .36);
  font-size: 1.65rem;
  padding-left: .18rem;
}

.player-title {
  padding: 0 1rem;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  text-align: center;
}

.side-card {
  padding: 1rem;
}

.side-card h2 {
  margin: .2rem 0 1rem;
  font-size: 1.2rem;
}

.related-list {
  display: grid;
  gap: .85rem;
}

.related-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .75rem;
  align-items: center;
}

.related-item img {
  width: 4.5rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: .65rem;
  background: var(--gray-100);
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: .25rem;
  color: var(--gray-500);
  font-size: .85rem;
}

.filter-panel {
  margin: 1.2rem 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(8rem, 12rem));
  gap: .75rem;
}

.no-results {
  display: none;
  padding: 1rem;
  border-radius: .9rem;
  background: #fff;
  color: var(--gray-600);
  box-shadow: var(--shadow-card);
}

.no-results.is-open {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 4rem 5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .8rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-600);
  text-align: center;
}

.rank-item img {
  width: 5rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: .6rem;
  background: var(--gray-100);
}

.rank-item h2 {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
}

.rank-item p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.site-footer {
  margin-top: 4rem;
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-inner {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}

.footer-inner h2,
.footer-inner h3 {
  color: #fff;
  margin: 0 0 .75rem;
}

.footer-inner p,
.footer-inner li {
  color: #d1d5db;
  line-height: 1.85;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1rem;
  color: #9ca3af;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: .75rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-poster-card {
    justify-self: start;
    width: min(16rem, 64vw);
  }

  .feature-card,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: .85rem 1rem;
  }

  .logo-text {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-track,
  .hero-content {
    min-height: 42rem;
  }

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

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

  .movie-info {
    padding: .8rem;
  }

  .movie-line {
    -webkit-line-clamp: 3;
  }

  .rank-item {
    grid-template-columns: 3rem 4.2rem 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / 4;
  }
}
