body {
  background: #f9fafb;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ea580c;
  background: #fff7ed;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.mobile-link {
  padding: 12px 14px;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding-top: 48px;
  padding-bottom: 72px;
  color: #fff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: #f97316;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.hero-content h1,
.page-hero h1 {
  max-width: 840px;
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  margin-top: 18px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.quick-search button,
.filter-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.quick-search button,
.filter-search button {
  color: #fff;
  background: #f97316;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.primary-btn,
.ghost-btn {
  padding: 13px 26px;
}

.primary-btn:hover,
.quick-search button:hover,
.filter-search button:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.32);
}

.ghost-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.76);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #f97316;
}

.home-search {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

.home-search-box,
.filter-panel,
.category-card,
.detail-content,
.player-section,
.content-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.home-search-box {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  padding: 26px;
}

.home-search-box h2 {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.home-search-box p {
  margin-top: 6px;
  color: #6b7280;
}

.quick-search,
.filter-search {
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-search input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 16px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.quick-search input:focus,
.filter-search input:focus,
.filter-select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.quick-search button,
.filter-search button {
  min-width: 92px;
  padding: 0 18px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 42px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.content-section {
  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: #1f2937;
}

.section-heading h3 {
  font-size: 22px;
  font-weight: 900;
  color: #374151;
}

.section-heading p {
  margin-top: 4px;
  color: #6b7280;
}

.text-link {
  color: #ea580c;
  font-weight: 800;
}

.text-link:hover {
  color: #c2410c;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

.movie-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.movie-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: #fed7aa;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 10;
}

.movie-card.small .poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link img,
.latest-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.latest-row:hover .latest-thumb img {
  transform: scale(1.05);
}

.type-badge,
.rank-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.type-badge {
  right: 10px;
  top: 10px;
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.score-badge {
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(249, 115, 22, 0.92);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 900;
  color: #111827;
  line-height: 1.3;
}

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

.card-meta {
  margin-top: 7px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.card-desc {
  display: -webkit-box;
  margin-top: 9px;
  min-height: 42px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags,
.detail-tags,
.footer-tags,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.detail-tags a,
.inline-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ea580c;
  font-size: 12px;
  font-weight: 700;
  background: #fff7ed;
}

.category-panel {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.category-feature {
  margin-top: 26px;
}

.category-feature:first-of-type {
  margin-top: 0;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 14px;
}

.latest-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.latest-info h3 {
  font-size: 18px;
  font-weight: 900;
}

.latest-info h3 a:hover {
  color: #ea580c;
}

.latest-info p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inline-meta {
  margin-top: 12px;
}

.page-hero {
  padding: 88px 0;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12 45%, #dc2626);
}

.page-hero.small {
  padding: 72px 0;
}

.ranking-bg {
  background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.85), transparent 26%), linear-gradient(135deg, #111827, #3f1d12 55%, #991b1b);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.filter-panel {
  padding: 22px;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 18px;
  color: #6b7280;
  text-align: center;
  background: #fff;
}

.empty-state.show {
  display: block;
}

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

.category-card {
  padding: 26px;
}

.category-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #111827;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  color: #ea580c;
}

.category-card p {
  margin-top: 12px;
  color: #4b5563;
  line-height: 1.7;
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  font-size: 13px;
  background: #f3f4f6;
}

.category-preview-links a:hover {
  color: #ea580c;
  background: #fff7ed;
}

.detail-hero {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(135deg, #111827, #431407 60%, #7f1d1d);
}

.detail-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.detail-intro h1 {
  margin-top: 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 840px;
  margin-top: 18px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fed7aa;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.11);
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding: 18px;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #fff;
  font-size: 30px;
  background: #f97316;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.35);
}

.player-cover strong {
  font-size: 20px;
}

.detail-stack {
  padding-top: 36px;
}

.detail-content {
  padding: 30px;
}

.detail-content h2 {
  margin-top: 24px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  margin-top: 12px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding: 30px;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-footer strong {
  color: #111827;
  font-size: 18px;
}

.site-footer p {
  margin-top: 6px;
  color: #6b7280;
}

.footer-tags a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #4b5563;
  font-weight: 700;
  background: #f3f4f6;
}

.footer-tags a:hover {
  color: #ea580c;
  background: #fff7ed;
}

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

  .movie-grid.four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

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

  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-search-box,
  .detail-layout,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }

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

  .movie-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-content {
    padding-bottom: 66px;
  }

  .hero-control {
    display: none;
  }

  .home-search {
    margin-top: 0;
  }

  .home-search-box,
  .content-section,
  .filter-panel,
  .detail-content,
  .related-section {
    border-radius: 18px;
    padding: 18px;
  }

  .quick-search,
  .filter-search,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid.three,
  .movie-grid.four,
  .movie-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .latest-row {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }

  .latest-thumb {
    aspect-ratio: 3 / 4;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc,
  .card-tags {
    display: none;
  }
}
