:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --amber: #f59e0b;
  --green: #16a34a;
  --dark: #0f172a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  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;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon,
.footer-logo span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #0f172a);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  color: var(--dark);
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  position: relative;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  padding: 22px 0;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

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

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

.mobile-panel {
  display: none;
  padding: 8px 18px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
  background: #eff6ff;
  color: var(--blue);
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.mobile-cats a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
}

.main {
  min-height: 64vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 55%, #020617);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.2);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 88px 22px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

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

.poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.poster-caption strong {
  display: block;
  font-size: 24px;
}

.poster-caption small {
  color: #cbd5e1;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.section {
  padding: 56px 0;
}

.section.light {
  background: var(--surface-soft);
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
}

.section-title p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster::after {
  content: "▶";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.62);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.poster b,
.poster i {
  position: absolute;
  z-index: 3;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-style: normal;
}

.poster b {
  left: 10px;
  background: rgba(2, 6, 23, 0.72);
}

.poster i {
  right: 10px;
  background: var(--blue);
}

.card-body {
  padding: 17px;
}

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

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

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
}

.meta-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #475569;
  font-size: 12px;
}

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

.category-card {
  min-height: 148px;
  padding: 22px;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0f766e, #0f172a);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #7c3aed, #0f172a);
}

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

.category-card p {
  margin: 0 0 12px;
  color: #dbeafe;
  font-size: 14px;
}

.category-card span {
  color: white;
  font-weight: 800;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.search-box {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.search-box span {
  color: #334155;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #f8fafc;
  font-size: 15px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #475569;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 700;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: white;
  background: var(--blue);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 110px 56px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--dark);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

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

.rank-row strong {
  color: var(--amber);
  text-align: right;
}

.breadcrumb {
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  padding: 28px 0 54px;
  color: white;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.28), transparent 28%), linear-gradient(135deg, #020617, #1e293b);
}

.detail-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 260px;
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-title h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.detail-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-section {
  padding: 48px 0;
  background: #020617;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: black;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: rgba(2, 6, 23, 0.42);
  cursor: pointer;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.38);
  font-size: 32px;
}

.play-cover.is-hidden {
  display: none;
}

.player-message {
  min-height: 24px;
  margin-top: 14px;
  color: #cbd5e1;
  text-align: center;
}

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

.article-box,
.side-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.article-box {
  padding: 28px;
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-box p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 16px;
}

.side-box {
  padding: 20px;
}

.side-box .rank-list {
  grid-template-columns: 1fr;
}

.side-box .rank-row {
  grid-template-columns: minmax(0, 1fr) 64px;
}

.side-box .rank-row .rank-num,
.side-box .rank-row .rank-kind {
  display: none;
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: white;
}

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
}

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

.site-footer p,
.site-footer ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #94a3b8;
  font-size: 14px;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  padding: 18px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.hidden-card {
  display: none !important;
}

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

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

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

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

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

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

  .menu-button {
    display: block;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero-track,
  .hero-content {
    min-height: 740px;
  }

  .hero-content {
    padding: 48px 18px 86px;
    gap: 28px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    margin: 24px 0;
  }

  .btn {
    width: 100%;
  }

  .card-grid,
  .category-grid,
  .rank-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px minmax(0, 1fr) 48px;
  }

  .rank-kind {
    display: none;
  }

  .section {
    padding: 38px 0;
  }

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

  .article-box {
    padding: 20px;
  }
}
