:root {
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-orange-soft: #ffedd5;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #f9fafb;
  --color-dark: #111827;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 18px 44px rgba(15, 23, 42, 0.16);
  --radius-card: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.logo {
  font-size: 22px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), #fb7185);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--color-orange-soft);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-orange-dark);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 88px 0 96px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: #ffffff;
  background: var(--color-orange);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
}

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

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--color-orange);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.button-primary:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.button-ghost {
  color: var(--color-orange-dark);
  background: var(--color-orange-soft);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.78);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.main-section {
  padding: 64px 0;
}

.main-section.tight {
  padding-top: 36px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 10px 0 8px;
  color: var(--color-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.featured-card .poster {
  height: 360px;
}

.compact-card .poster {
  height: 220px;
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(0, 0, 0, 0);
  transition: 0.25s ease;
}

.movie-card:hover .poster-mask {
  background: rgba(0, 0, 0, 0.38);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 14px;
}

.rank-badge {
  left: 14px;
  background: var(--color-orange);
}

.card-body {
  padding: 16px;
}

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

.card-body h3 a:hover {
  color: var(--color-orange-dark);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.meta-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.meta-row span:first-child,
.tag-row span:first-child {
  color: var(--color-orange-dark);
  background: var(--color-orange-soft);
}

.tag-row {
  margin-top: 10px;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 68%);
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--color-dark);
  font-size: 20px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.category-card span {
  color: var(--color-orange-dark);
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.panel {
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

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

.rank-list-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  transition: 0.2s ease;
}

.rank-list-item:hover {
  border-color: #fed7aa;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.list-rank,
.list-dot {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-orange);
  border-radius: 999px;
  font-weight: 900;
}

.list-dot {
  width: 10px;
  height: 10px;
}

.rank-list-title {
  overflow: hidden;
  color: var(--color-dark);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #ffffff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.page-hero {
  padding: 72px 0 38px;
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.2), transparent 30%), linear-gradient(135deg, #fff7ed, #ffffff 45%, #f9fafb);
}

.page-title {
  max-width: 850px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-orange-dark);
  font-weight: 800;
}

.detail-hero {
  padding: 54px 0;
  color: #ffffff;
  background: #000000;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  background: #111827;
  border-radius: 22px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-title h1 {
  color: #ffffff;
  font-size: clamp(36px, 6vw, 66px);
}

.detail-title p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 800;
}

.player-wrap {
  overflow: hidden;
  position: relative;
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
  transition: opacity 0.2s ease;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-button {
  width: 84px;
  height: 84px;
  border: 0;
  color: #ffffff;
  background: var(--color-orange);
  border-radius: 999px;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.35);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: #ffffff;
  font-size: 14px;
}

.article-content {
  display: grid;
  gap: 24px;
}

.article-content h2,
.panel h2,
.panel h3 {
  margin: 0 0 14px;
  color: var(--color-dark);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.article-content p {
  margin: 0 0 12px;
  color: #374151;
  font-size: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-table div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.info-table strong {
  color: var(--color-muted);
}

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

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  color: #9ca3af;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
  }

  .hero {
    min-height: 540px;
  }

  .hero-slide img {
    min-height: 540px;
  }

  .hero-content {
    padding: 72px 0 86px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head {
    display: block;
  }

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

  .poster,
  .compact-card .poster {
    height: 210px;
  }

  .featured-card .poster {
    height: 260px;
  }

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

  .rank-list-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

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

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

@media (max-width: 460px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .poster,
  .compact-card .poster,
  .featured-card .poster {
    height: 320px;
  }
}
