:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --purple-500: #8b5cf6;
  --text: #111827;
  --muted: #64748b;
  --card: #ffffff;
  --ring: rgba(59, 130, 246, 0.32);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.6;
}

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

img,
video {
  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, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--blue-400), #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-search input,
.mobile-search input {
  width: 230px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  color: #fff;
  background: rgba(30, 41, 59, 0.95);
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.hero-search input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px var(--ring);
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-600);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(148, 163, 184, 0.16);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-panel nav,
.mobile-search {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-950);
}

.hero-slide {
  display: none;
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 74px 0;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.hero-actions,
.detail-info .primary-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-500));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.ghost-btn {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover,
.ranking-card:hover {
  transform: translateY(-3px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.6;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: var(--blue-400);
}

.section-block {
  margin-top: 38px;
  margin-bottom: 44px;
}

.intro-panel,
.feature-card,
.detail-card,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: center;
  padding: 30px;
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

.intro-panel h2,
.section-heading h2,
.feature-card h2,
.detail-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.intro-panel p,
.feature-card p,
.detail-card p,
.page-hero p {
  color: var(--muted);
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
}

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

.section-heading.compact {
  align-items: center;
}

.text-link {
  color: var(--blue-600);
  font-weight: 800;
}

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

.category-chip {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), #1d4ed8);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip span {
  font-size: 19px;
  font-weight: 850;
}

.category-chip em {
  color: #dbeafe;
  font-style: normal;
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.meta-line {
  margin: 0 0 5px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row:hover .rank-title,
.ranking-main:hover strong {
  color: var(--blue-600);
}

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

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

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 26px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-num {
  color: var(--blue-600);
  font-weight: 900;
  font-size: 18px;
}

.rank-row img {
  width: 54px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

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

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

.feature-card {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.feature-card .primary-btn {
  margin-top: 16px;
}

.page-hero,
.detail-header {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.4), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero .container {
  padding: 78px 0 72px;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.filter-panel {
  margin-bottom: 22px;
  padding: 18px;
}

.filter-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  background: #fff;
}

.empty-state {
  display: none;
  margin-top: 14px;
  color: var(--muted);
}

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

.searchable-item.hidden {
  display: none;
}

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

.category-overview-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--muted);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 750;
}

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

.ranking-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-main {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.ranking-number {
  color: var(--blue-600);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.ranking-main img {
  width: 76px;
  height: 106px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.ranking-main strong,
.ranking-main em,
.ranking-main small {
  display: block;
}

.ranking-main strong {
  font-size: 18px;
}

.ranking-main em {
  margin: 4px 0 6px;
  color: var(--blue-600);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.ranking-main small {
  color: var(--muted);
  font-size: 14px;
}

.detail-header {
  padding: 58px 0;
}

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

.detail-cover img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.5);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.player-section {
  scroll-margin-top: 90px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  padding-left: 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-500));
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

.detail-content {
  display: grid;
  gap: 18px;
}

.detail-card {
  padding: 28px;
}

.detail-card h2 {
  font-size: 28px;
}

.site-footer {
  margin-top: 64px;
  color: #cbd5e1;
  background: var(--slate-950);
}

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

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  color: #94a3b8;
}

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

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-content,
  .intro-panel,
  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 310px;
    transform: none;
  }

  .feature-card {
    position: static;
  }

  .filter-fields {
    grid-template-columns: 1fr;
  }

  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 48px 0 76px;
  }

  .hero-summary,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .hero-search {
    display: grid;
    border-radius: 22px;
  }

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

  .section-heading,
  .rank-row {
    align-items: start;
  }

  .section-heading {
    display: grid;
  }

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

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

  .card-desc {
    min-height: 0;
  }

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

  .rank-meta {
    display: none;
  }

  .ranking-main {
    grid-template-columns: 48px 64px minmax(0, 1fr);
  }

  .ranking-number {
    font-size: 18px;
  }

  .ranking-main img {
    width: 64px;
    height: 90px;
  }

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

  .detail-header,
  .page-hero .container {
    padding: 42px 0;
  }
}
