:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --navy: #111827;
  --slate: #64748b;
  --muted: #94a3b8;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 38%, #ffffff 100%);
  color: var(--navy);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: var(--blue);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 670px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.32), transparent 32%), linear-gradient(135deg, #1d4ed8 0%, #0f172a 74%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(37, 99, 235, 0.48), rgba(6, 182, 212, 0.12));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 670px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 62px;
  align-items: center;
  color: #ffffff;
  animation: fadeUp 0.55s ease both;
}

.hero-slide.active {
  display: grid;
}

.hero-content h1 {
  margin: 16px 0 10px;
  font-size: clamp(36px, 5.8vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 42px);
  color: #a5f3fc;
}

.hero-content p {
  max-width: 660px;
  margin: 0;
  color: #e0f2fe;
  font-size: 19px;
}

.kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #bae6fd;
}

.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 {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  background: #eff6ff;
  color: var(--blue);
}

.detail-tags span {
  background: #eff6ff;
  color: #1d4ed8;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

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

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  transform: perspective(1000px) rotateY(-7deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
}

.hero-poster img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.76));
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 50px;
  display: flex;
  gap: 10px;
}

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

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

.quick-search,
.content-section,
.detail-body {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search {
  margin-top: -44px;
  position: relative;
  z-index: 4;
}

.quick-search-inner,
.filter-panel,
.story-card,
.ranking-panel,
.category-overview {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 28px;
  padding: 28px;
  backdrop-filter: blur(18px);
}

.quick-search h2,
.section-heading h2,
.ranking-panel h2,
.story-card h2,
.category-copy h2 {
  margin: 6px 0 0;
  color: #0f172a;
  line-height: 1.15;
}

.quick-search h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.search-field,
.filter-group label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.search-field input,
.filter-group select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  padding: 0 16px;
  font: inherit;
  outline: none;
}

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

.content-section {
  padding: 74px 0 0;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--slate);
}

.single-heading {
  margin-bottom: 18px;
}

.section-more {
  min-width: max-content;
  color: var(--blue);
  background: #eff6ff;
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.small-grid,
.preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card strong {
  min-height: 44px;
  color: #111827;
  font-size: 15px;
  line-height: 1.42;
}

.card-meta,
.card-line {
  display: block;
  color: var(--slate);
  font-size: 12px;
}

.card-line {
  min-height: 38px;
}

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

.ranking-panel {
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.long-rank-list {
  max-height: 820px;
  overflow: auto;
  padding-right: 4px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

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

.rank-row img {
  width: 58px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

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

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

.category-tile {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.88));
}

.category-tile span {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: #ffffff;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 30px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.26), transparent 34%), linear-gradient(135deg, #1d4ed8, #0f172a);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.slim-hero {
  padding: clamp(42px, 6vw, 76px);
}

.page-hero h1 {
  max-width: 860px;
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
  padding: 20px;
}

.filter-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group label {
  min-width: 140px;
}

.overview-stack {
  display: grid;
  gap: 28px;
}

.category-overview {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 26px;
}

.category-copy p {
  color: var(--slate);
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.34), transparent 36%), linear-gradient(135deg, #1d4ed8, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #c4e8ff;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e0f2fe;
  font-size: 18px;
}

.detail-copy .primary-button {
  margin-top: 26px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 66px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.36);
}

.player-mask strong {
  font-size: 22px;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.story-card {
  padding: 28px;
}

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

.story-card p {
  color: #334155;
  font-size: 17px;
}

.site-footer {
  margin-top: 86px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
}

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

.footer-inner p,
.footer-inner a {
  color: #cbd5e1;
  font-size: 14px;
}

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

.footer-inner a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1040px) {
  .hero-slide,
  .split-section,
  .detail-body,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 48px 0 92px;
  }

  .hero-poster {
    transform: none;
  }

  .hero-poster img {
    height: 380px;
  }

  .ranking-panel,
  .sticky-panel {
    position: static;
  }

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

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

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

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

  .site-nav {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-shell,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
    padding: 42px 0 88px;
  }

  .hero-slide {
    gap: 30px;
  }

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

  .hero-poster img {
    height: 330px;
  }

  .hero-dots {
    bottom: 34px;
  }

  .quick-search,
  .content-section,
  .detail-body,
  .player-section,
  .detail-hero,
  .page-hero {
    width: min(100% - 24px, 1180px);
  }

  .quick-search-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .small-grid,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .card-line,
  .tag-row {
    display: none;
  }

  .detail-hero,
  .slim-hero {
    padding: 24px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-icon {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }

  .footer-inner {
    padding: 38px 0;
  }
}
