.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
  color: #fff7ed;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link,
.mobile-nav-link {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fb923c;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 21rem;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  outline: none;
  padding: 0.75rem 1rem;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.search-panel button,
.filter-bar button {
  border-radius: 0.85rem;
  background: linear-gradient(90deg, #f97316, #dc2626);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  color: #ffffff;
  font-size: 1.5rem;
}

.mobile-nav {
  display: none;
  padding: 0 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-search {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 2%, rgba(15, 23, 42, 0.86) 46%, rgba(15, 23, 42, 0.36) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

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

.hero-labels,
.hero-tags,
.hero-actions,
.movie-tags,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-labels span,
.hero-labels a,
.movie-tag,
.detail-kicker {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-labels span,
.detail-kicker {
  background: #f97316;
  color: #ffffff;
}

.hero-labels a,
.movie-tag {
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
}

.hero-copy h1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 60rem;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 42rem;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(90deg, #f97316, #dc2626);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.ghost-button {
  border: 1px solid rgba(251, 146, 60, 0.5);
  background: rgba(15, 23, 42, 0.45);
  color: #fed7aa;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

.hero-dot.is-active {
  width: 2.5rem;
  background: #f97316;
}

.content-section,
.page-main {
  padding: 4rem 0;
}

.section-gradient,
.page-main {
  background: linear-gradient(180deg, #020617, #0f172a 48%, #020617);
}

.section-dark {
  background: #0f172a;
}

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

.section-heading span,
.page-hero span {
  display: block;
  color: #fb923c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-heading a {
  color: #fb923c;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.1rem;
  background: #0f172a;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .movie-poster {
  transform: scale(1.09);
}

.movie-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.movie-type,
.movie-year,
.rank-badge {
  position: absolute;
  top: 0.7rem;
  border-radius: 0.5rem;
  padding: 0.3rem 0.55rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.movie-type {
  left: 0.7rem;
  background: #f97316;
}

.movie-year {
  right: 0.7rem;
  background: rgba(15, 23, 42, 0.86);
}

.rank-badge {
  left: 0.7rem;
  top: auto;
  bottom: 0.7rem;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.95);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.movie-card-body h3 a:hover {
  color: #fb923c;
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.3rem;
  color: #94a3b8;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  gap: 0.6rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  margin: 0.75rem 0;
}

.movie-meta span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.movie-card-compact .movie-card-body p {
  min-height: auto;
}

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

.category-card {
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.26), transparent 35%), #111827;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 146, 60, 0.55);
}

.category-card span {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.category-card strong {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
}

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

.ranking-side,
.ranking-sidebar,
.detail-side {
  position: sticky;
  top: 6rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.82);
  padding: 1.25rem;
}

.ranking-sidebar h2,
.detail-side h2 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.side-movie-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.side-movie-link:last-child {
  border-bottom: 0;
}

.side-movie-link img {
  width: 6.5rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.side-movie-info {
  min-width: 0;
}

.side-movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-movie-info em {
  display: block;
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: normal;
  margin-top: 0.25rem;
}

.side-rank {
  position: absolute;
  right: 0;
  top: 0.75rem;
  color: #fb923c;
  font-size: 0.9rem;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #94a3b8;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h2 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-grid p {
  max-width: 28rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.footer-grid a:not(.site-logo) {
  display: block;
  color: #cbd5e1;
  line-height: 2;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.back-to-top.is-visible {
  display: block;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

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

.breadcrumbs strong {
  color: #ffffff;
}

.page-hero {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 1.5rem;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 36%), linear-gradient(135deg, #111827, #020617);
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0.75rem 0 1rem;
}

.page-hero p {
  max-width: 52rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.85;
}

.filter-bar,
.search-panel {
  display: flex;
  gap: 0.8rem;
  max-width: 46rem;
  margin-top: 1.5rem;
}

.content-section-flat {
  margin: 2rem 0 4rem;
}

.category-overview-list {
  display: grid;
  gap: 1.5rem;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.82);
  padding: 1.25rem;
}

.category-overview-head h2 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.category-overview-head span {
  color: #fb923c;
  font-weight: 800;
}

.category-overview-head p {
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.search-summary {
  color: #cbd5e1;
  font-weight: 800;
  margin-bottom: 1rem;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 22rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  margin-bottom: 1.5rem;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  z-index: 2;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}

.player-start {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 24px 54px rgba(249, 115, 22, 0.34);
}

.detail-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 1rem 0;
}

.detail-meta {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.86);
  padding: 0.35rem 0.75rem;
}

.detail-tags {
  margin-bottom: 1.5rem;
}

.detail-card section {
  margin-top: 1.5rem;
}

.detail-card h2 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.detail-card p {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 1.02rem;
}

.related-section {
  margin-top: 3rem;
}

@media (max-width: 1180px) {
  .movie-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ranking-layout,
  .ranking-page-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-side,
  .ranking-sidebar,
  .detail-side {
    position: static;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .mobile-nav-link {
    display: block;
    padding: 0.9rem 0;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-carousel {
    height: 520px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .movie-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .search-panel,
  .mobile-search {
    flex-direction: column;
  }

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .page-main {
    padding: 2.5rem 0;
  }
}
