:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --blue: #1d4ed8;
  --cyan: #0891b2;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  font-size: 16px;
  line-height: 1.65;
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 650;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(14, 116, 144, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #172554 0%, #1e293b 46%, #164e63 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.24), transparent 28%),
    radial-gradient(circle at 76% 20%, rgba(249, 115, 22, 0.16), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(29, 78, 216, 0.22), transparent 30%);
  animation: glowMove 12s ease-in-out infinite alternate;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 36%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  padding-bottom: 86px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(165, 243, 252, 0.22);
}

.hero h1,
.hero h2 {
  max-width: 720px;
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

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

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

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

.hero-tags span,
.tag-row span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #334155;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
}

.btn.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.btn.light {
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 126px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dots button.is-active {
  width: 52px;
  background: #ffffff;
}

.hero-cards-wrap {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: -92px auto 64px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.hero-mini {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: 0.25s ease;
}

.hero-mini:hover {
  transform: translateY(-6px);
}

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

.hero-mini span {
  display: block;
  padding: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.section {
  margin-bottom: 68px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

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

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(8, 145, 178, 0.86)),
    #0f172a;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.category-tile h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  z-index: 1;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #dbeafe;
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 22px;
  font-weight: 850;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--soft);
  font-size: 16px;
  transition: 0.25s ease;
}

.search-panel input:focus {
  border-color: #38bdf8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chips button {
  height: 38px;
  border: 0;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  background: var(--soft);
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.movie-grid.large {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  background: rgba(15, 23, 42, 0.35);
  transition: 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 12px;
  font-weight: 850;
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 a:hover {
  color: var(--blue);
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 82px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: 0.24s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #bae6fd;
}

.rank-index {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 18px;
  font-weight: 900;
}

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

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-info .meta-pills {
  margin-top: 8px;
}

.rank-cta {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 62px 0 34px;
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.2), transparent 26%),
    linear-gradient(135deg, #eff6ff, #ffffff 56%, #ecfeff);
  border-bottom: 1px solid var(--line);
}

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

.page-hero h1 {
  max-width: 820px;
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 18px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-card,
.content-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.24)),
    rgba(2, 6, 23, 0.2);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.36);
  font-size: 30px;
  padding-left: 4px;
}

.detail-body {
  padding: 24px;
}

.detail-body h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-body .summary-line {
  color: var(--muted);
  font-size: 18px;
}

.content-panel {
  padding: 24px;
  margin-top: 22px;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.side-panel {
  display: grid;
  gap: 18px;
}

.side-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-card > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.side-card-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--soft);
  transition: 0.22s ease;
}

.compact-card:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
}

.compact-card img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: start;
  flex-wrap: wrap;
}

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

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

@keyframes glowMove {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(4%, -3%, 0) scale(1.05);
  }
}

@media (max-width: 1024px) {
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .side-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
  }

  .brand-text strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    text-align: center;
  }

  .hero {
    height: 660px;
  }

  .hero-slide img {
    width: 100%;
    opacity: 0.38;
  }

  .hero-copy {
    padding-bottom: 160px;
  }

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

  .hero-dots {
    bottom: 122px;
  }

  .hero-cards-wrap {
    margin-top: -136px;
  }

  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-main {
    padding-top: 28px;
  }

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

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

  .movie-grid,
  .movie-grid.large,
  .category-grid,
  .related-grid,
  .side-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 46px 68px 1fr;
  }

  .rank-index {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }

  .rank-row img {
    width: 68px;
    height: 90px;
  }

  .rank-cta {
    grid-column: 2 / 4;
  }

  .footer-inner {
    flex-direction: column;
  }
}
