:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --radius: 22px;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 34%, #f8fafc 100%);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.28);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  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;
  letter-spacing: 0.04em;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #0369a1;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.12);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #ffffff;
}

.nav-link {
  position: relative;
  font-weight: 650;
  opacity: 0.92;
  padding: 25px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: 50%;
  min-width: 180px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 650;
}

.dropdown-panel a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 300px;
}

.nav-search input,
.filter-tools input,
.filter-tools select {
  border: 1px solid rgba(148, 163, 184, 0.45);
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.nav-search input {
  width: 100%;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px 0 0 999px;
}

.nav-search button {
  height: 38px;
  border: 0;
  padding: 0 16px;
  border-radius: 0 999px 999px 0;
  color: #075985;
  font-weight: 800;
  cursor: pointer;
  background: #ffffff;
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-track,
.hero-slide {
  min-height: 76vh;
}

.hero-slide {
  display: none;
  background-size: cover;
  background-position: center;
  align-items: center;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 82px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow,
.page-hero .eyebrow {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(186, 230, 253, 0.3);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.info-chips,
.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hero-tags span,
.tag-row span,
.info-chips span,
.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

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

.text-link {
  color: #0369a1;
  background: #e0f2fe;
}

.hero-poster {
  display: block;
  min-height: 520px;
  border-radius: 34px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.5);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.015);
}

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

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

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1;
}

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

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

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

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

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

.section-title {
  margin-bottom: 28px;
}

.section-title span {
  color: #0284c7;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-title p,
.category-overview-card p,
.story-panel p,
.detail-copy .lead-text {
  color: var(--muted);
  line-height: 1.85;
}

.center-title {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  display: block;
  aspect-ratio: 2 / 3;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span,
.movie-meta-line a {
  white-space: nowrap;
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover,
.category-overview-card h2 a:hover {
  color: #0284c7;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.55em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.78;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: #075985;
  background: #e0f2fe;
}

.ranking-card,
.story-panel,
.related-panel,
.filter-panel,
.ranking-section {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ranking-card {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.small-title h2 {
  font-size: 26px;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-list li span {
  color: #0284c7;
  font-size: 20px;
  font-weight: 900;
}

.ranking-list li a {
  overflow: hidden;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list li em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card strong {
  font-size: 26px;
}

.category-card span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #0ea5e9 78%, #2563eb);
}

.page-hero {
  padding: 92px max(16px, calc((100% - 1180px) / 2)) 76px;
}

.slim-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
}

.category-hero {
  min-height: 310px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.category-cover {
  min-height: 190px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}

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

.filter-panel {
  padding: 28px;
}

.filter-tools {
  display: flex;
  gap: 14px;
  margin: 22px 0 28px;
}

.search-tools {
  margin-top: 0;
}

.filter-tools input,
.filter-tools select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
}

.filter-tools input {
  flex: 1;
}

.filter-tools select {
  min-width: 170px;
}

.pill-row {
  margin-bottom: 10px;
}

.pill-link {
  color: #075985;
  background: #e0f2fe;
}

.pill-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.detail-hero {
  min-height: 650px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 34px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
}

.detail-copy h1 {
  max-width: 820px;
}

.detail-copy .lead-text {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.info-chips {
  margin: 24px 0;
}

.info-chips span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
  margin-bottom: 28px;
}

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

.player-block {
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  z-index: 2;
}

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.45);
  padding-left: 6px;
}

.player-wrap.is-playing .player-cover {
  display: none;
}

.story-panel,
.related-panel {
  padding: 30px;
}

.story-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.story-panel p + h2 {
  margin-top: 28px;
}

.ranking-layout {
  display: grid;
  gap: 34px;
}

.ranking-section {
  padding: 30px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.rank-num {
  color: #0284c7;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  width: 88px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.rank-row h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.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;
  gap: 34px;
}

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

.site-footer p {
  max-width: 440px;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 22px 16px;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    padding: 10px 0;
  }

  .nav-link::after,
  .dropdown-panel {
    display: none;
  }

  .nav-search {
    min-width: 0;
    width: 100%;
  }

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

  .hero-poster {
    min-height: 420px;
    transform: none;
  }

  .ranking-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .navbar,
  .section-wrap,
  .detail-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero,
  .hero-track,
  .hero-slide {
    min-height: auto;
  }

  .hero-content {
    padding: 58px 0 86px;
    gap: 32px;
  }

  .hero-poster {
    min-height: 340px;
    border-radius: 26px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .page-hero {
    padding: 62px 16px 58px;
  }

  .section-wrap {
    padding: 44px 0;
  }

  .filter-panel,
  .story-panel,
  .related-panel,
  .ranking-section {
    padding: 18px;
    border-radius: 24px;
  }

  .filter-tools {
    flex-direction: column;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 12px;
  }

  .category-overview-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .category-cover,
  .rank-cover {
    width: 100%;
  }

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

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

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
