html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: #1f2937;
  background: #f8fafc;
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.48);
}

.brand-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #e5e7eb;
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-link {
  min-height: 42px;
  padding: 0 18px;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

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

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

.mobile-nav-link {
  padding: 12px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(249, 115, 22, 0.35),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 30%,
      rgba(59, 130, 246, 0.28),
      transparent 25%
    ),
    linear-gradient(135deg, #1e293b 0%, #334155 46%, #7c2d12 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(78px);
  opacity: 0.25;
}

.hero::before {
  top: 80px;
  left: 80px;
  width: 280px;
  height: 280px;
  background: #f97316;
}

.hero::after {
  right: 80px;
  bottom: 60px;
  width: 360px;
  height: 360px;
  background: #2563eb;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
  padding: 88px 0 72px;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.8;
}

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

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ea580c);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.38);
}

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

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.btn-ghost {
  color: #ea580c;
  background: #fff7ed;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 640px;
  margin-top: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
}

.hero-search input {
  width: 100%;
  padding: 0 16px;
  color: #ffffff;
  outline: none;
  background: transparent;
}

.hero-search input::placeholder {
  color: #cbd5e1;
}

.hero-search button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  color: #ffffff;
  background: #f97316;
  font-weight: 800;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hero-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  color: #ffffff;
}

.hero-stat span {
  color: #cbd5e1;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.75),
    rgba(124, 45, 18, 0.6)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.05),
    rgba(15, 23, 42, 0.88)
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.hero-slide-content h2 {
  font-size: 28px;
  font-weight: 900;
}

.hero-slide-content p {
  margin-top: 10px;
  color: #e5e7eb;
  line-height: 1.7;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-slide-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  padding: 72px 0;
}

.section.white {
  background: #ffffff;
}

.section.muted {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section.dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  color: #111827;
  font-weight: 900;
}

.dark .section-heading h2 {
  color: #ffffff;
}

.section-heading p {
  margin-top: 8px;
  color: #64748b;
  font-size: 16px;
}

.dark .section-heading p {
  color: #cbd5e1;
}

.section-more {
  white-space: nowrap;
  color: #ea580c;
  font-weight: 800;
}

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

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

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

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.15);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(249, 115, 22, 0.32),
      transparent 28%
    ),
    linear-gradient(135deg, #1e293b, #7c2d12);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.74));
  opacity: 0.7;
}

.poster-frame.missing-image::before {
  content: "国产电视剧";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 80%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
}

.poster-year,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 3;
}

.poster-year {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

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

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #ea580c;
}

.movie-card p {
  min-height: 48px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

.stat-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

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

.stat-card span {
  color: #64748b;
}

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

.category-card {
  display: block;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.category-card h3 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin-top: 8px;
  color: #64748b;
}

.category-card strong {
  display: inline-block;
  margin-top: 18px;
  color: #ea580c;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.filter-search label,
.filter-controls label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-search input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.filter-search input:focus,
.filter-controls select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.filter-result {
  color: #ea580c;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 18% 25%,
      rgba(249, 115, 22, 0.3),
      transparent 28%
    ),
    linear-gradient(135deg, #1e293b, #7c2d12);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 82px 1fr auto 58px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  background: rgba(249, 115, 22, 0.22);
}

.rank-number {
  color: #fb923c;
  font-weight: 900;
}

.rank-title {
  color: #ffffff;
  font-weight: 900;
}

.rank-meta {
  color: #cbd5e1;
  font-size: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 18% 30%,
      rgba(249, 115, 22, 0.28),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a, #334155 50%, #7c2d12);
}

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

.player-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(249, 115, 22, 0.26),
      transparent 32%
    ),
    #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.16),
    rgba(15, 23, 42, 0.78)
  );
  text-align: center;
}

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

.player-button {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 22px 42px rgba(234, 88, 12, 0.42);
  font-size: 34px;
  transition: transform 0.25s ease;
}

.player-button:hover {
  transform: scale(1.06);
}

.player-status {
  min-height: 24px;
  padding: 12px 18px;
  color: #cbd5e1;
  background: #0f172a;
  font-size: 14px;
}

.detail-info-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.detail-info-card h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
  font-weight: 800;
  font-size: 13px;
}

.detail-info-card p {
  color: #e5e7eb;
  line-height: 1.8;
}

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

.article-box,
.sidebar-box {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.article-box h2,
.sidebar-box h2 {
  margin-bottom: 16px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.article-box p {
  margin-bottom: 18px;
  color: #334155;
  line-height: 1.95;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

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

.related-list a {
  display: block;
  padding: 14px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.related-list a:hover {
  color: #ea580c;
  background: #fff7ed;
}

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

.guide-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.guide-card h2 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.guide-card p {
  color: #64748b;
  line-height: 1.8;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.site-footer h2 {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f97316;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e1;
  line-height: 1.75;
}

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

.footer-note {
  color: #fb923c !important;
  font-weight: 800;
}

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

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 520px;
  }

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
  }

  .hero-search,
  .filter-panel,
  .filter-controls,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .stats-grid,
  .category-grid,
  .movie-grid.large,
  .movie-grid,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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