:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #142033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --orange-500: #f97316;
  --yellow-500: #eab308;
  --white: #ffffff;
  --text: #142033;
  --muted: #64748b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  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;
  color: var(--text);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

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

.brand-text strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

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

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

.nav-link {
  color: var(--slate-200);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-400);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.12);
}

.container-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700), #164e63);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(34, 211, 238, 0.36), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 96px 0 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 22px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--slate-100);
  font-size: 13px;
  font-weight: 650;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.rank-action,
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.3);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.rank-action:hover,
.search-clear:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan-500);
  color: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.35);
}

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

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  background: var(--cyan-400);
}

.hero-rail {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: translateX(-50%);
}

.hero-mini {
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-mini img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-mini span {
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-more {
  min-height: 40px;
  padding: 0 16px;
  color: var(--cyan-700);
  background: #ecfeff;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-search {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  outline: none;
}

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

.search-clear {
  min-height: 50px;
  padding: 0 20px;
  color: var(--white);
  background: var(--slate-800);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--slate-800);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.68));
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 145, 178, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--cyan-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cyan-700);
  font-size: 12px;
  font-weight: 750;
}

.card-body h3 {
  margin: 10px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: var(--cyan-600);
}

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

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

.tag-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 650;
}

.feature-band {
  background: linear-gradient(90deg, #f1f5f9, #ecfeff);
}

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

.category-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--slate-900);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.category-card strong {
  margin-top: 18px;
  font-size: 20px;
}

.category-card em {
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  color: var(--orange-500);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 84px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-800);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 20px;
}

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

.rank-action {
  min-height: 40px;
  padding: 0 18px;
  color: var(--white);
  background: var(--cyan-600);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.3), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700), #164e63);
}

.small-hero .container-section {
  padding: 78px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.75;
}

.detail-header {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.28), transparent 26%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800), #164e63);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--slate-300);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.46);
}

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

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

.detail-line {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.75;
}

.detail-tags .tag-pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.34);
  font-size: 34px;
}

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

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

.content-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.88;
}

.site-footer {
  margin-top: 72px;
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo .brand-text strong {
  color: var(--white);
}

.footer-brand p {
  max-width: 360px;
  margin: 18px 0 0;
  line-height: 1.75;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 16px;
}

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

.footer-column a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-400);
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

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

  .menu-toggle {
    display: block;
  }

  .container-section {
    width: min(100% - 24px, 1200px);
    padding: 42px 0;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-inner {
    width: min(100% - 24px, 1200px);
    min-height: 540px;
    padding: 64px 0 220px;
  }

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

  .hero-controls {
    bottom: 176px;
  }

  .hero-rail {
    width: min(100% - 24px, 1200px);
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-mini:nth-child(n + 4) {
    display: none;
  }

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

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

  .movie-grid,
  .category-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .rank-action {
    grid-column: 2 / 4;
    width: fit-content;
  }

  .rank-thumb {
    width: 72px;
    height: 86px;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}
