:root {
  --blue-950: #0b1f55;
  --blue-900: #0f2d75;
  --blue-800: #1747a6;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --slate-950: #07111f;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: #f8fafc;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 700;
  transition: 0.22s ease;
}

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

.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-900);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
}

.mobile-nav.open {
  display: flex;
}

.hero-section {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 48%, #07111f 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-carousel {
  position: relative;
  max-width: 1240px;
  min-height: 640px;
  margin: 0 auto;
  padding: 92px 24px 110px;
}

.hero-slide {
  position: absolute;
  inset: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 58px;
  align-items: center;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 60px -20px 60px auto;
  width: 58%;
  border-radius: 48px;
  background-image: linear-gradient(90deg, rgba(7, 17, 31, 0.76), rgba(7, 17, 31, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.08);
  opacity: 0.42;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue-700);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h2 + .hero-text,
.hero-copy h1 + h2 {
  margin-top: 16px;
}

.hero-copy h1 + h2 {
  color: #dbeafe;
  font-size: clamp(28px, 4vw, 48px);
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(239, 246, 255, 0.92);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.filter-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.tag-row span,
.filter-pills a {
  color: var(--blue-800);
  background: #eff6ff;
  border-color: #dbeafe;
}

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

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

.primary-button {
  color: var(--blue-700);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.16);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 34px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

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

.section-heading a {
  color: var(--blue-700);
  font-weight: 900;
}

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

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

.category-card {
  display: grid;
  gap: 16px;
  min-height: 210px;
  padding: 18px;
  border-radius: 28px;
  color: var(--slate-900);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 6px;
}

.category-thumbs img {
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.category-thumbs img:first-child {
  height: 118px;
  grid-row: span 2;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.7;
}

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

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

.category-movie-grid {
  margin-top: 26px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.44), transparent);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3,
.ranking-item h3 {
  margin: 10px 0 8px;
  color: var(--slate-950);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card p,
.ranking-item p {
  margin: 0 0 14px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.7;
}

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

.compact-card h3 {
  font-size: 16px;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-panel,
.info-card,
.search-panel,
.player-card,
.article-section,
.ranking-list {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.ranking-list .ranking-item:first-child,
.ranking-panel .ranking-item:first-of-type {
  border-top: 0;
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  font-weight: 900;
}

.rank-thumb img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-page .ranking-list {
  padding: 14px 24px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.small-hero {
  padding: 78px 24px;
}

.small-hero > div {
  max-width: 1240px;
  margin: 0 auto;
}

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

.small-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.search-panel {
  padding: 24px;
}

.search-label {
  display: block;
  margin-bottom: 12px;
  color: var(--slate-950);
  font-size: 18px;
  font-weight: 900;
}

.search-control {
  display: flex;
  gap: 10px;
}

.search-control input {
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 16px;
  outline: none;
}

.search-control input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.search-control button {
  min-width: 86px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: var(--blue-700);
  font-weight: 900;
  cursor: pointer;
}

.result-message {
  margin: 16px 0 0;
  color: var(--slate-500);
  font-weight: 700;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stacked-sections {
  display: grid;
  gap: 42px;
}

.category-row {
  min-width: 0;
}

.detail-hero {
  min-height: 620px;
  background-image: linear-gradient(90deg, rgba(7, 17, 31, 0.92), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.42)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.42), transparent 35%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-cover {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 840px;
  margin: 22px 0 0;
  color: #e0f2fe;
  font-size: 20px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 22px;
}

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

.content-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-shell {
  position: relative;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue-700);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.article-section {
  padding: 28px;
}

.article-section h2,
.info-card h2 {
  margin: 0 0 16px;
  color: var(--slate-950);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.article-section p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 2;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.info-card {
  padding: 24px;
}

.info-card dl,
.info-card dd {
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.info-card dd {
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.5;
}

.site-footer {
  color: #cbd5e1;
  background: #07111f;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.footer-inner p {
  max-width: 760px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 24px 0;
}

.footer-links a {
  color: #dbeafe;
  font-weight: 800;
}

.copyright {
  margin-bottom: 0;
  color: #94a3b8;
}

[hidden] {
  display: none !important;
}

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

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

  .ranking-panel,
  .detail-aside {
    position: static;
  }
}

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

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

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

  .hero-carousel {
    min-height: 760px;
    padding: 56px 20px 120px;
  }

  .hero-slide {
    inset: 0 20px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slide::before {
    inset: auto -30px 50px;
    width: auto;
    height: 44%;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }

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

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

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

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

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .small-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-text,
  .detail-one-line,
  .small-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .search-control {
    flex-direction: column;
  }

  .search-control button {
    min-height: 48px;
  }

  .section-wrap {
    padding: 48px 16px;
  }

  .small-hero {
    padding: 58px 16px;
  }

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

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

  .detail-inner {
    padding: 36px 16px 56px;
  }

  .article-section,
  .info-card,
  .search-panel {
    padding: 20px;
  }
}
