:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fef3c7;
  --red: #dc2626;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

img {
  display: block;
  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: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 21px;
  color: #111827;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--brand);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 0 18px;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.25), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.18), transparent 32%),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef2f2 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  left: -120px;
  top: 110px;
  background: #f59e0b;
}

.hero::after {
  right: -80px;
  bottom: 80px;
  background: #ef4444;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 46px;
  min-height: 560px;
  animation: fadeUp 0.55s ease both;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  color: #111827;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 strong {
  display: block;
  color: var(--brand);
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 18px;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
.btn-outline,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.3);
}

.btn:hover,
.btn-outline:hover,
.btn-light:hover {
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--brand);
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.btn-light {
  color: var(--brand-dark);
  background: #ffffff;
}

.hero-media {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  background: #111827;
}

.hero-poster img {
  height: 520px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.74));
}

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
}

.hero-poster-info strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-poster-info span {
  display: inline-flex;
  padding: 5px 10px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  font-size: 13px;
}

.hero-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.hero-thumb {
  flex: 0 0 122px;
  padding: 6px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-thumb.active {
  border-color: var(--brand);
}

.hero-thumb img {
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

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

.hero-tags {
  margin: 18px 0 24px;
}

.hero-tags span,
.tag-row span,
.meta-pill span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
}

.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border: 1px solid #fed7aa;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  color: var(--brand);
  background: #ffedd5;
  border-radius: 999px;
  font-size: 24px;
}

.stat-card strong {
  display: block;
  font-size: 22px;
  color: #111827;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

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

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

.section-more {
  color: var(--brand);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: #fbbf24;
  box-shadow: var(--shadow);
}

.card-poster {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: #111827;
}

.movie-grid.featured .card-poster {
  height: 300px;
}

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

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--red);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card-body h2 a:hover {
  color: var(--brand);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.category-band {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #ea580c 50%, #dc2626);
}

.category-band .section-heading h2,
.category-band .section-heading p {
  color: #ffffff;
}

.category-band .section-heading > span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.22);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.category-card span {
  display: inline-flex;
  color: #ffffff;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: #fbbf24;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.compact-card img {
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.compact-rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  border-radius: 999px;
  font-weight: 900;
}

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

.compact-card strong {
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 78px 0 54px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.26), transparent 30%),
    linear-gradient(135deg, #fff7ed, #ffffff);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 880px;
  margin-top: 16px;
  font-size: clamp(34px, 4vw, 56px);
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 20;
  margin: -28px auto 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 14px;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.filter-empty {
  display: none;
  margin: 16px 0 0;
  padding: 14px;
  color: #92400e;
  background: #fffbeb;
  border-radius: 14px;
}

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

.detail-hero {
  padding: 56px 0 36px;
  background: linear-gradient(135deg, #111827, #1f2937 50%, #92400e);
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-1deg);
}

.detail-poster img {
  height: 520px;
  object-fit: cover;
}

.detail-title .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.detail-title h1 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
}

.detail-title p {
  max-width: 760px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

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

.player-shell {
  padding: 64px 0 28px;
  background: #0f172a;
}

.player-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.player-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(0, 0, 0, 0.7));
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover .cover-title {
  max-width: 80%;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  text-align: center;
}

.player-cover .cover-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.35);
  font-size: 32px;
}

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

.article-panel,
.side-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.article-panel p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 16px;
}

.article-panel .meta-pill {
  margin-bottom: 22px;
}

.side-panel {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 108px;
}

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

.side-list .compact-card {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 10px;
}

.side-list .compact-rank {
  display: none;
}

.side-list .compact-card img {
  height: 68px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 46%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding: 58px 0 40px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-slide.active,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 64px;
  }

  .hero-poster img,
  .detail-poster img {
    height: 420px;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

  .brand-copy em {
    display: none;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-poster {
    min-height: 340px;
  }

  .hero-poster img,
  .detail-poster img {
    height: 360px;
  }

  .hero-slide.active,
  .movie-grid,
  .movie-grid.featured,
  .category-grid,
  .stats-grid,
  .compact-list,
  .footer-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filter-panel {
    position: static;
    margin: -18px auto 26px;
  }

  .card-poster,
  .movie-grid.featured .card-poster {
    height: 280px;
  }

  .article-panel,
  .side-panel {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
