:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --dark: #0f172a;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.dropdown-trigger:hover,
.nav-link.is-active {
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 188px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #475569;
  font-weight: 700;
}

.dropdown-panel a:hover {
  color: var(--blue);
  background: #eff6ff;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
  border-radius: 99px;
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.88), rgba(14, 116, 144, 0.68), rgba(15, 23, 42, 0.16));
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% 20%;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.36), transparent 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  color: #a5f3fc;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #e0f2fe;
  font-size: 20px;
}

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

.primary-button,
.secondary-button,
.card-action,
.rank-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.secondary-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover,
.card-action:hover,
.rank-score:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.22);
}

.hero-search {
  margin-top: 34px;
  display: flex;
  max-width: 640px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
}

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

.hero-search button {
  border: 0;
  border-radius: 13px;
  padding: 12px 20px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.hero-feature {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  color: var(--ink);
}

.feature-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card-body {
  padding: 22px;
}

.feature-kicker,
.section-kicker,
.detail-kicker {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h2,
.section-heading h1,
.section-heading h2,
.detail-info h1,
.content-block h2 {
  margin: 6px 0 10px;
  line-height: 1.2;
  font-weight: 950;
}

.feature-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.feature-mini {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.feature-mini img {
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.feature-mini strong {
  display: block;
  line-height: 1.35;
}

.feature-mini span {
  color: #bfdbfe;
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

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

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

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

.section-heading h1,
.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
}

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

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

.category-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

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

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 20px;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.movie-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-score {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

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

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.movie-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.card-action {
  width: 100%;
  margin-top: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero {
  padding: 72px 0 46px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.25), transparent 35%), linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0891b2);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 28px 0 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: #f8fafc;
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  font-weight: 950;
}

.rank-thumb img {
  width: 86px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.rank-score {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-hero {
  padding: 56px 0;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.32), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 64px);
}

.detail-info p {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  margin: 22px 0 28px;
}

.detail-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.player-section {
  padding: 64px 0;
  background: #0f172a;
  color: #ffffff;
}

.player-section .section-inner {
  max-width: 1080px;
}

.player-section h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.44), rgba(37, 99, 235, 0.22));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
  font-size: 18px;
  font-weight: 950;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
}

.content-block {
  padding: 64px 0;
  background: #ffffff;
}

.content-card {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  font-size: 30px;
}

.content-card p {
  color: #334155;
  font-size: 17px;
}

.related-section {
  padding: 64px 0 84px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.no-results {
  display: none;
  padding: 32px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.no-results.is-visible {
  display: block;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

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

.footer-brand p,
.footer-column a {
  color: #94a3b8;
}

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

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-column a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px;
  color: #94a3b8;
  text-align: center;
}

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 800px) {
  .header-inner {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link,
  .dropdown-trigger {
    justify-content: flex-start;
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 0 12px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

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

  .hero-search {
    flex-direction: column;
  }

  .hero-search input {
    min-height: 44px;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .footer-inner,
  .filter-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 310px;
  }

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

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

  .rank-score {
    grid-column: 2 / -1;
    width: max-content;
  }

  .rank-thumb img {
    width: 70px;
    height: 94px;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 18px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-copy p,
  .detail-info p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .movie-grid {
    gap: 16px;
  }

  .content-card {
    padding: 24px;
  }
}
