:root {
  color-scheme: light;
  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-soft: #eef7fb;
  --text: #152032;
  --muted: #607086;
  --line: rgba(30, 64, 94, 0.12);
  --sky: #38bdf8;
  --sky-strong: #0284c7;
  --amber: #f59e0b;
  --amber-soft: #fff7ed;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 38%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  font-size: 22px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.22);
}

.brand-text {
  font-size: 19px;
  background: linear-gradient(135deg, var(--sky-strong), #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(56, 189, 248, 0.13);
  color: var(--sky-strong);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #eef7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search input,
.filter-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 220px;
  padding: 10px 12px;
  color: var(--text);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  color: white;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #07111f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(2px) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.72) 48%, rgba(7, 17, 31, 0.44)), radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.28), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding: 84px 0 72px;
}

.hero-copy {
  color: white;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sky-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow,
.breadcrumb.light {
  color: #bae6fd;
}

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

.hero-copy p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
  background: rgba(224, 242, 254, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 15px 34px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

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

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.stats-strip {
  position: relative;
  z-index: 4;
  margin-top: -34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stats-strip a,
.category-card,
.movie-card,
.hot-panel,
.category-overview-card,
.ranking-row,
.text-panel,
.player-card,
.filter-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats-strip a {
  min-height: 92px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stats-strip strong {
  font-size: 34px;
  color: var(--sky-strong);
}

.stats-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section-block,
.page-main,
.detail-content {
  margin-top: 72px;
}

.no-margin {
  margin-top: 0;
}

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

.section-heading h2,
.hot-panel h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

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

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

.category-card {
  min-height: 172px;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.category-card span {
  font-weight: 900;
  font-size: 19px;
}

.category-card strong {
  color: var(--amber);
  font-size: 38px;
}

.category-card em {
  color: var(--muted);
  line-height: 1.7;
  font-style: normal;
  font-size: 13px;
}

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

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

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

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  background: #dbeafe;
}

.poster-link img {
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: var(--sky-strong);
}

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

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

.hot-panel {
  position: sticky;
  top: 98px;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.compact-heading h2 {
  font-size: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  background: rgba(240, 249, 255, 0.74);
}

.rank-item > span {
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
}

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

.rank-item strong {
  display: block;
  line-height: 1.35;
}

.rank-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.page-hero {
  padding: 58px;
  border-radius: 34px;
  background: linear-gradient(135deg, #e0f2fe, #fff7ed);
  border: 1px solid var(--line);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sample a {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--sky-strong);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  margin: 28px 0 22px;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-bar input {
  min-width: 320px;
  font-size: 15px;
}

.filter-bar span {
  color: var(--muted);
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 72px 104px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-number {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

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

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

.ranking-info p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.heat-box {
  text-align: right;
}

.heat-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.heat-box strong {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-size: 26px;
}

.detail-main {
  margin-top: 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #07111f;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.95), rgba(7, 17, 31, 0.78), rgba(7, 17, 31, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 72px;
}

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

.detail-poster img {
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy {
  color: white;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.player-card,
.text-panel {
  border-radius: var(--radius-lg);
  padding: 22px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.55));
}

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  color: white;
  font-size: 36px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 20px 44px rgba(2, 132, 199, 0.28);
}

.text-panel h2 {
  margin-bottom: 18px;
}

.text-panel p {
  color: var(--muted);
  line-height: 2;
  font-size: 16px;
}

.site-footer {
  margin-top: 86px;
  padding: 52px 0 24px;
  background: #07111f;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-text {
  color: white;
  background: none;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.9;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.09);
}

.footer-bottom {
  margin-top: 38px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

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

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .main-nav,
  .header-search {
    width: 100%;
  }

  .main-nav {
    overflow-x: auto;
  }

  .header-search input {
    min-width: 0;
    flex: 1;
  }

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

  .hero-poster {
    max-width: 320px;
  }

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

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

  .hot-panel {
    position: static;
  }

  .ranking-row {
    grid-template-columns: 60px 90px 1fr;
  }

  .heat-box {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .stats-strip,
  .category-grid,
  .movie-grid,
  .page-movie-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover img,
  .ranking-thumb img {
    max-width: 180px;
  }

  .page-hero {
    padding: 32px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input {
    min-width: 0;
  }
}
