:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --blue: #2563eb;
  --teal: #0d9488;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--orange);
}

.header-search,
.mobile-search,
.hero-search,
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-box input {
  width: 250px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-box button,
.btn,
.page-link,
.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-box button:hover,
.btn:hover,
.page-link:hover,
.filter-button:hover,
.filter-button.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.btn.secondary {
  color: var(--orange);
  background: white;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--text);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.open {
  display: grid;
  gap: 14px;
}

.page-shell,
.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #111827;
  color: white;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(249, 115, 22, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.68) 48%, rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  align-content: center;
  max-width: 900px;
  padding: 96px 0 110px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 22px;
}

.hero-search {
  width: min(560px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  width: auto;
  border: 0;
}

.hero-tags,
.detail-tags,
.movie-tags,
.quick-links,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags a,
.hero-tags span,
.detail-tags a,
.detail-tags span,
.movie-tags span,
.quick-links a {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.movie-tags span,
.detail-tags a,
.detail-tags span {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: var(--orange);
}

.feature-strip {
  position: relative;
  z-index: 4;
  margin-top: -58px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.category-tile,
.stat-card,
.content-card {
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.feature-card {
  padding: 24px;
}

.feature-card strong {
  display: block;
  color: var(--orange-dark);
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.main-content {
  padding: 80px 0;
}

.section-block {
  margin-bottom: 74px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.38);
}

.poster-frame {
  position: relative;
  display: block;
  height: 248px;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-card-wide .poster-frame {
  height: 330px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 96px 1fr;
}

.movie-card-compact .poster-frame {
  height: 120px;
}

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

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

.poster-badge,
.rank-number {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.movie-meta {
  color: #6b7280;
  font-size: 12px;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-tile strong {
  font-size: 22px;
  color: #111827;
}

.category-tile span {
  color: var(--muted);
}

.page-hero {
  color: white;
  background:
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.20), transparent 28%),
    linear-gradient(135deg, var(--orange), var(--amber));
  padding: 70px 0;
}

.page-hero.blue {
  background:
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--teal));
}

.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: white;
}

.filter-bar {
  margin-bottom: 24px;
}

.filter-button {
  color: #374151;
  background: white;
  box-shadow: var(--shadow-sm);
}

.filter-button.active {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.page-link {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  color: #374151;
  background: white;
  box-shadow: var(--shadow-sm);
}

.page-link.current {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 108px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-cover {
  width: 108px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-title h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.ranking-title p {
  margin: 0;
  color: var(--muted);
}

.ranking-meta {
  color: var(--orange-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.86);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020617;
  z-index: 2;
}

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

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.08);
}

.play-button {
  position: relative;
  z-index: 3;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.42);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.detail-copy h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-copy p {
  margin: 0 0 16px;
  color: #374151;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin-top: 0;
}

.side-list {
  display: grid;
  gap: 12px;
}

.search-panel {
  padding: 32px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.86);
  margin-bottom: 28px;
}

.search-box input {
  width: min(580px, 100%);
}

.empty-state {
  padding: 54px 24px;
  border-radius: 24px;
  background: white;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f3f4f6);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.footer-shell p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-columns {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: #4b5563;
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-content {
    padding-top: 72px;
  }

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

  .footer-columns {
    justify-content: flex-start;
  }

  .ranking-item {
    grid-template-columns: 42px 82px 1fr;
  }

  .ranking-meta {
    display: none;
  }

  .ranking-cover {
    width: 82px;
    height: 58px;
  }
}

@media (max-width: 620px) {
  .movie-grid,
  .movie-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .poster-frame {
    height: 210px;
  }

  .movie-info {
    padding: 12px;
  }

  .section-heading {
    display: grid;
  }

  .hero-search,
  .search-box {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input,
  .search-box input {
    width: 100%;
  }
}
