:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-dark);
  background: #e0f2fe;
}

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

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--sky-dark);
  border-radius: 20px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(249, 115, 22, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.8), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 1180px;
  padding: 76px 0 96px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.24);
}

.hero h1,
.hero h2 {
  width: min(780px, 100%);
  margin: 22px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  width: min(660px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  background: #f1f5f9;
  color: #64748b;
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}

.primary-button {
  color: #fff;
  background: var(--sky);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
}

.primary-button:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.secondary-button:hover {
  color: #fff;
  background: var(--sky);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.22s ease;
}

.hero-dot.active {
  width: 42px;
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto;
  padding: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f9ff, #fff7ed);
  box-shadow: var(--shadow);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--sky-dark);
  font-weight: 800;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ffedd5);
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover {
  color: var(--sky-dark);
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-pill {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: all 0.22s ease;
}

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

.category-main-link h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-main-link p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 52px 68px 1fr 52px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

.rank-card img {
  width: 68px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-title {
  font-weight: 900;
}

.rank-score {
  color: var(--sky-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.movie-search,
.movie-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
}

.movie-search:focus,
.movie-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.55), transparent 30%),
    linear-gradient(135deg, #075985, #0f172a 68%);
}

.compact-hero,
.category-hero,
.ranking-hero {
  padding: 74px 0 62px;
}

.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-one-line {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: center;
}

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

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

.detail-score {
  top: 16px;
  right: 16px;
}

.detail-info .primary-button {
  margin-top: 24px;
}

.detail-meta span {
  color: #fff;
}

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

.player-section {
  padding-bottom: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.22), rgba(2, 6, 23, 0.74));
  cursor: pointer;
}

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

.play-icon {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--sky);
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(2, 132, 199, 0.32);
}

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

.content-panel,
.side-panel {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 24px;
  color: #334155;
}

.compact-grid {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  font-weight: 800;
}

.compact-card:hover {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.compact-card img {
  width: 62px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 86px 1fr 86px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-index {
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
  text-align: center;
}

.ranking-poster img {
  width: 86px;
  height: 116px;
  border-radius: 18px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.ranking-score {
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--sky-dark);
}

.ranking-score strong {
  font-size: 26px;
}

.ranking-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  padding: 50px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  color: #fff;
}

.footer-inner p {
  margin: 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 800;
}

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

.copyright {
  font-size: 13px;
}

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

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

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

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

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

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero-arrow {
    display: none;
  }

  .section,
  .section-soft {
    padding: 42px 0;
  }

  .section-soft {
    width: min(100% - 32px, 1180px);
    padding: 28px 18px;
  }

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

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

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

  .rank-card {
    grid-template-columns: 44px 58px 1fr;
  }

  .rank-score {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .ranking-score {
    display: none;
  }

  .ranking-poster img {
    width: 72px;
    height: 96px;
  }

  .detail-hero {
    padding: 48px 0;
  }

  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-grid-large,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

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

  .movie-card p {
    min-height: auto;
  }

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

  .content-panel,
  .side-panel {
    padding: 22px;
  }
}
