:root {
  --page-bg: #f9fafb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --dark: #111827;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.site-navbar {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #374151;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 32%),
              linear-gradient(135deg, #111827 0%, #1f2937 52%, #0f172a 100%);
}

.hero-bg {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: blur(10px);
  transform: scale(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.36) 100%),
              linear-gradient(0deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0) 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 22px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 42px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin-top: 22px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 700px;
  margin-top: 24px;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta,
.movie-meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-meta {
  margin-top: 24px;
  color: #e5e7eb;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.26);
}

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

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--orange-dark);
}

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

.hero-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  background: #1f2937;
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.hero-focus-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero-focus-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-focus-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.hero-focus-item img {
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-focus-item strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-focus-item em {
  display: block;
  margin-top: 2px;
  color: #d1d5db;
  font-size: 12px;
  font-style: normal;
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px 22px;
}

.section {
  margin: 26px 0 56px;
}

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

.section-title h2,
.section-title h1 {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.movie-card,
.feature-card,
.category-card,
.info-panel {
  background: var(--card-bg);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-badge,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.movie-meta-row {
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 8px;
  font-size: 12px;
}

.movie-card h3,
.feature-card h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

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

.movie-card p,
.feature-card p {
  margin-top: 9px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.feature-cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

.feature-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.feature-content {
  padding: 22px;
}

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

.category-card {
  position: relative;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.category-card h2,
.category-card h3 {
  font-size: 21px;
  font-weight: 900;
}

.category-card p {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.75;
}

.category-card .text-button {
  margin-top: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.chip-link {
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #374151;
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.chip-link:hover,
.chip-link.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.filter-panel {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-form {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.55fr));
  gap: 14px;
}

.filter-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-form input,
.filter-form select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fafb;
  color: var(--text-main);
  padding: 0 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
  background: #ffffff;
}

.movie-card.is-hidden {
  display: none;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-index {
  color: var(--orange-dark);
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  height: 58px;
  border-radius: 13px;
  object-fit: cover;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  font-size: 15px;
}

.rank-text em {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  background: linear-gradient(135deg, #fff7ed, #ffffff 54%, #fee2e2);
  border-bottom: 1px solid rgba(254, 215, 170, 0.7);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 22px 44px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 930;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.9;
}

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

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
  color: #ffffff;
  cursor: pointer;
  z-index: 2;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 20px 52px rgba(220, 38, 38, 0.38);
}

.player-overlay strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 930;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin-top: 14px;
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta span {
  background: #f3f4f6;
  color: #374151;
}

.article-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.article-section p {
  color: #374151;
  line-height: 1.95;
  margin-bottom: 14px;
}

.related-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.related-panel h2 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 16px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-card img {
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.related-card strong,
.related-card em {
  display: block;
}

.related-card strong {
  line-height: 1.35;
  font-size: 15px;
}

.related-card:hover strong {
  color: var(--orange-dark);
}

.related-card em {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 56px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(160px, 0.6fr));
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 560px;
  margin-top: 14px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-block h2 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  margin-bottom: 14px;
}

.footer-block ul {
  display: grid;
  gap: 9px;
}

.footer-block a {
  color: #d1d5db;
  font-size: 14px;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 22px 30px;
  border-top: 1px solid rgba(75, 85, 99, 0.6);
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-navbar {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
  }

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

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 0 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

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

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

  .related-panel {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 44px 18px 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .content-wrap,
  .page-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .filter-form {
    grid-template-columns: 1fr;
  }

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

  .feature-cover {
    min-height: 210px;
  }

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

  .related-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.category-samples a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1.15;
  background: #e5e7eb;
}

.category-samples img {
  height: 100%;
  object-fit: cover;
}

.category-samples span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
