:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

img {
  display: block;
  max-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;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e3a8a, #0f172a);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a,
.nav-dropdown button {
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown button:hover {
  color: #67e8f9;
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 10px;
  color: #0f172a;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--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 {
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
}

.dropdown-panel a:hover {
  color: #2563eb;
  background: #eff6ff;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(270px, 24vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.header-search button {
  height: 100%;
  padding: 10px 15px;
  border: 0;
  color: #0f172a;
  background: #67e8f9;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a,
.mobile-panel form {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
}

.mobile-panel button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  color: #0f172a;
  background: #67e8f9;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 48%, #0891b2 100%);
  min-height: 620px;
}

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

.hero::before {
  top: 80px;
  left: 8vw;
  width: 310px;
  height: 310px;
  background: #67e8f9;
}

.hero::after {
  right: 6vw;
  bottom: 60px;
  width: 420px;
  height: 420px;
  background: #2563eb;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: center;
  padding: 92px 0;
}

.hero-eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #a5f3fc;
  font-weight: 800;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-title span {
  color: #67e8f9;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 30px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

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

.btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.btn-light {
  color: #1e3a8a;
  background: #fff;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(30, 64, 175, 0.35);
  backdrop-filter: blur(10px);
}

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

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}

.hero-mini-grid a {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.09);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.38);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.25) 58%,
    rgba(37, 99, 235, 0.12)
  );
}

.hero-slide-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 30px;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.hero-slide-content p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #dbeafe;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.hero-dots button.is-active {
  width: 28px;
  background: #67e8f9;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #fff;
}

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

.section-green {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-link {
  flex: 0 0 auto;
  color: #2563eb;
  font-weight: 800;
}

.section-dark .section-link {
  color: #67e8f9;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

.card-wide {
  display: grid;
  grid-template-columns: 230px 1fr;
}

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

.card-wide .card-cover {
  height: 100%;
  min-height: 180px;
  aspect-ratio: auto;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.68),
    rgba(2, 6, 23, 0.02) 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: all 0.25s ease;
}

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

.card-category,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  right: 12px;
  background: rgba(37, 99, 235, 0.88);
}

.rank-badge {
  left: 12px;
  background: rgba(239, 68, 68, 0.92);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: #2563eb;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #1e40af;
  background: #dbeafe;
  font-size: 12px;
}

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

.category-tile {
  min-height: 150px;
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.category-tile:nth-child(4n) {
  background: linear-gradient(135deg, #059669, #06b6d4);
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0891b2);
  padding: 70px 0;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 200px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  outline: none;
  background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 140px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

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

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

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score {
  min-width: 90px;
  color: #ef4444;
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.detail-page {
  padding: 38px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #2563eb;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 75px rgba(2, 6, 23, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

.player-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
}

.detail-panel,
.side-panel {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.detail-title {
  margin-bottom: 18px;
}

.detail-title p {
  margin: 16px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.detail-section h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-section p {
  color: #334155;
  line-height: 1.9;
}

.poster-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-card div {
  padding: 18px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-results-note {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0 34px;
}

.site-footer p {
  max-width: 480px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

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

@media (max-width: 1060px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

  .hero {
    min-height: auto;
  }

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

  .hero-mini-grid,
  .movie-grid,
  .category-strip,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-wide,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-score {
    text-align: left;
  }

  .page-hero {
    padding: 52px 0;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .side-item {
    grid-template-columns: 84px 1fr;
  }
}

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

  .brand-mark {
    width: 32px;
    height: 32px;
  }

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

  .hero-lead {
    font-size: 17px;
  }

  .hero-feature,
  .hero-slide img {
    min-height: 350px;
  }

  .hero-slide-content {
    padding: 22px;
  }

  .hero-slide-content h2 {
    font-size: 24px;
  }
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.category-overview-card .category-tile {
  display: block;
  border-radius: 0;
  box-shadow: none;
}

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

.category-samples a {
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: #2563eb;
  background: #eff6ff;
}

@media (max-width: 760px) {
  .overview-grid,
  .category-samples {
    grid-template-columns: 1fr;
  }
}
