:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --green: #10b981;
  --orange: #f97316;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-text {
  font-size: 21px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 15px;
}

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

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--panel-soft);
  color: var(--text);
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.55), transparent 34%), linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 48%, #0f172a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 630px;
  margin: 0 auto;
  padding: 74px 24px 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 50px;
  align-items: center;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: #bfdbfe;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
}

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

.btn,
.btn-ghost,
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 760;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

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

.btn-ghost {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-small {
  padding: 8px 12px;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
}

.hero-feature {
  position: relative;
  min-height: 510px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.hero-card-body {
  padding: 26px;
}

.hero-card-body h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-card-body p {
  margin: 0;
  color: #dbeafe;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: flex;
  gap: 9px;
}

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

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

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

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

.hero-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
  font-size: 13px;
}

.section,
.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

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

.section-head p,
.page-head p,
.category-brief {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.section-kicker,
.page-kicker {
  color: var(--blue);
  background: var(--blue-soft);
}

.feature-strip {
  background: #ffffff;
}

.feature-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-item,
.category-tile,
.info-card,
.search-panel,
.rank-item,
.detail-panel,
.player-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.feature-item {
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  font-size: 22px;
}

.feature-item h3,
.category-tile h3,
.info-card h3,
.detail-panel h2,
.player-panel h2 {
  margin: 0 0 8px;
}

.feature-item p,
.category-tile p,
.info-card p,
.detail-panel p {
  margin: 0;
  color: var(--muted);
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.08));
}

.category-tile:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile h3,
.category-tile p,
.category-tile span {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.54), transparent 56%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-poster::after {
  opacity: 1;
}

.card-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: #ef4444;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

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

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.alt-bg {
  background: #eef2ff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  font-size: 18px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 15px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-content h2,
.rank-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 0;
  color: #64748b;
  font-size: 14px;
}

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

.filter-row,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  margin: 22px 0 28px;
}

.search-panel {
  padding: 20px;
}

.filter-input,
.filter-select,
.search-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.filter-input,
.search-input {
  padding: 0 16px;
}

.filter-select {
  padding: 0 14px;
}

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

.empty-state {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.player-panel {
  overflow: hidden;
}

.player-heading {
  padding: 24px 24px 0;
}

.player-heading h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.video-box {
  position: relative;
  margin: 0;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.15));
  cursor: pointer;
}

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

.player-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.96);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-panels {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.detail-panel {
  padding: 24px;
}

.detail-panel h2 {
  font-size: 24px;
}

.sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.poster-box {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.poster-box img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.info-card {
  padding: 22px;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  color: #475569;
  font-size: 14px;
}

.info-list strong {
  color: #0f172a;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  padding: 6px 10px;
  color: #1e40af;
  background: #dbeafe;
}

.related-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.search-note {
  color: var(--muted);
  margin-top: 10px;
}

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

  .hero-feature {
    min-height: 540px;
  }

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

@media (max-width: 760px) {
  .site-nav {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 18px 58px;
    gap: 34px;
  }

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

  .hero-card img {
    height: 260px;
  }

  .hero-stats,
  .feature-grid,
  .category-grid,
  .movie-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .page-section,
  .feature-grid,
  .detail-hero,
  .related-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .page-head {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 44px 88px 1fr;
  }

  .rank-meta {
    grid-column: 3;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-stats,
  .feature-grid,
  .category-grid,
  .movie-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    min-height: 500px;
  }

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-cover {
    display: none;
  }

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

  .info-list div {
    grid-template-columns: 1fr;
  }
}

.mini-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #334155;
  font-size: 14px;
}

.mini-links a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mini-links a:hover {
  color: var(--blue);
}
.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

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

.footer-list a {
  color: #cbd5e1;
}

.footer-list a:hover {
  color: #60a5fa;
}

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

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
