:root {
  --blue-900: #0f172a;
  --blue-800: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --teal-500: #14b8a6;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-950: #020617;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.brand-name {
  font-size: 21px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gray-700);
}

.mobile-panel {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--blue-600);
  background: #eff6ff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-600), var(--teal-500));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 28%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 24%), linear-gradient(rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.08));
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 92px 24px 82px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 56px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.5s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #eff6ff;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 26px 0 0;
}

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  background: #eff6ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 13px 24px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.primary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ghost-button {
  padding: 12px 24px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
  transform: rotate(1.5deg);
}

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

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72));
}

.hero-poster-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange-500);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-controls {
  position: absolute;
  left: 24px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.stats-strip {
  max-width: 1100px;
  margin: -38px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats-strip div {
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.stats-strip strong {
  display: block;
  color: var(--blue-700);
  font-size: 22px;
}

.stats-strip span {
  color: var(--gray-500);
}

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

.alt-section {
  max-width: none;
  background: var(--white);
}

.alt-section > .section-heading,
.alt-section > .category-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading.slim {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.68));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--orange-500);
  background: var(--white);
  font-weight: 900;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: var(--orange-500);
}

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

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

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.category-tile {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--white), #eff6ff);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 9px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.ranking-head a {
  color: var(--blue-600);
  font-weight: 800;
}

.ranking-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ranking-box li a {
  display: grid;
  grid-template-columns: 30px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.ranking-box li a:hover {
  background: var(--gray-50);
}

.rank-num {
  color: var(--orange-500);
  font-size: 22px;
  font-weight: 900;
}

.ranking-box img {
  width: 62px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-600));
}

.orange-hero {
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 78px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

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

.category-overview {
  display: grid;
  gap: 42px;
}

.category-overview-block {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(10px);
  transform: scale(1.05);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.76));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 70px;
}

.detail-inner .breadcrumb {
  justify-content: flex-start;
}

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

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

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

.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #e0f2fe;
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 0 24px;
}

.detail-meta div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
}

.detail-meta dt {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 800;
}

.large-tags {
  margin-bottom: 26px;
}

.watch-section {
  background: var(--gray-900);
  padding: 42px 24px;
}

.watch-shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.34);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--orange-500);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.42));
}

.video-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  font-size: 30px;
  box-shadow: var(--shadow-lg);
}

.watch-shell.is-playing .video-overlay {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  color: var(--white);
  text-align: center;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 900;
}

.story-card p {
  margin: 0;
  color: var(--gray-700);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
}

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

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

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

.footer-brand {
  color: var(--white);
  font-size: 19px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--gray-400);
}

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

.site-footer a:hover {
  color: #93c5fd;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 18px;
  }

  .hero-slide,
  .detail-layout,
  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    min-height: 360px;
  }

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

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

  .ranking-box {
    position: static;
  }
}

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

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

  .hero-inner {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-slide {
    gap: 34px;
  }

  .hero-controls {
    position: static;
    margin-top: 28px;
  }

  .stats-strip,
  .filter-panel,
  .footer-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 0;
    padding-top: 24px;
  }

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

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

  .detail-layout {
    gap: 28px;
  }

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .hero-inner,
  .content-section,
  .page-hero-inner,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.02em;
  }

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

  .watch-section {
    padding-left: 10px;
    padding-right: 10px;
  }
}
