* {
  box-sizing: border-box;
}

:root {
  --color-primary: #ea580c;
  --color-primary-dark: #c2410c;
  --color-primary-soft: #ffedd5;
  --color-accent: #facc15;
  --color-red: #dc2626;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #f9fafb;
  --color-card: #ffffff;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

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: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-red));
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--color-primary);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.page-main {
  min-height: 60vh;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #ea580c 0%, #dc2626 52%, #7c2d12 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.35), transparent 28%),
    radial-gradient(circle at 75% 16%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(100% - 32px, var(--container));
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 670px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: var(--color-accent);
}

.hero-text {
  margin: 0 0 30px;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.16);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-search {
  display: flex;
  width: min(100%, 520px);
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
}

.hero-search input,
.filter-search input,
.filter-search select {
  min-width: 0;
  border: 0;
  outline: 0;
}

.hero-search input {
  flex: 1;
  padding: 0 16px;
  color: var(--color-text);
  background: transparent;
}

.hero-search button,
.filter-search button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 800;
  cursor: pointer;
}

.hero-search button {
  min-height: 44px;
  padding: 0 18px;
}

.hero-panel {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 440px;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 35px 80px rgba(7, 7, 10, 0.34);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.78));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
}

.hero-slide h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-slide p {
  margin: 0 0 18px;
  color: #f9fafb;
  line-height: 1.7;
}

.hero-badges,
.tag-row,
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span,
.tag-row span,
.meta-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-badges span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.slider-controls {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 30px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.section {
  padding: 66px 0;
}

.section-white {
  background: #fff;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-title p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

.poster-link::after {
  content: "▶";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
  transform: scale(1);
}

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

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

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--color-primary);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row span {
  color: #9a3412;
  background: var(--color-primary-soft);
}

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

.category-card {
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-red));
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--color-primary);
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--color-muted);
  font-size: 13px;
}

.page-hero {
  padding: 62px 0 42px;
  color: #fff;
  background: linear-gradient(120deg, #111827, #7c2d12 55%, #ea580c);
}

.page-title {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.page-title h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
  color: #ffedd5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-weight: 700;
}

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

.filter-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 110px;
  gap: 12px;
}

.filter-search input,
.filter-search select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
}

.filter-search button {
  height: 46px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: #fff;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  padding: 52px 0;
  color: #fff;
  background: linear-gradient(120deg, #111827, #7c2d12 58%, #ea580c);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-title h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-title p {
  margin: 18px 0 22px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.meta-chips span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 56px 0;
  background: #0f172a;
}

.player-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

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

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.94);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.36);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.player-caption {
  padding: 18px 22px;
  color: #f9fafb;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.article-card,
.side-card {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.article-card {
  padding: 30px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
}

.side-card {
  padding: 22px;
}

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

.side-movie {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.side-movie img {
  width: 74px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.side-movie strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-movie span {
  color: var(--color-muted);
  font-size: 13px;
}

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.pagination-links a {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 800;
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-inner,
  .detail-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0;
  }

  .hero-slider {
    min-height: 420px;
  }

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

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

  .rank-meta {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
  }

  .site-logo {
    font-size: 21px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero-actions,
  .section-head,
  .pagination-links {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-search {
    display: grid;
  }

  .hero-search input {
    height: 44px;
  }

  .hero-slider {
    min-height: 380px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 24px;
  }

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .detail-poster {
    max-width: 260px;
  }

  .article-card {
    padding: 22px;
  }
}
