:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: #e5e7eb;
  --white: #ffffff;
  --dark: #0f172a;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  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.6;
}

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

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

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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-size: 21px;
  color: #1f2937;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

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

.nav-link {
  padding: 9px 16px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-dark);
  background: #ecfeff;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #334155;
  border-radius: 999px;
}

.sub-nav {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(248, 250, 252, 0.82);
}

.sub-nav-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
}

.sub-nav-inner a {
  flex: 0 0 auto;
  padding: 7px 14px;
  color: #64748b;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.sub-nav-inner a:hover {
  color: var(--teal-dark);
  background: #ffffff;
}

.hero-section {
  position: relative;
  padding: 78px 0 54px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #eff6ff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow.one {
  width: 300px;
  height: 300px;
  left: 5%;
  top: 12%;
  background: #2dd4bf;
}

.hero-glow.two {
  width: 420px;
  height: 420px;
  right: 3%;
  bottom: 3%;
  background: #38bdf8;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-topline,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-topline span,
.eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
}

.hero-section h1 {
  max-width: 940px;
  margin: 22px 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-intro {
  max-width: 760px;
  margin: 0 0 32px;
  color: #475569;
  font-size: 20px;
}

.hero-stage {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.hero-desc {
  margin: 0;
  color: #475569;
  font-size: 18px;
}

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

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  padding: 6px 11px;
}

.card-meta span {
  padding: 4px 9px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.26);
}

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

.ghost-btn,
.section-link {
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid #ccfbf1;
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.25);
  background: #dbeafe;
}

.hero-art img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-art:hover img {
  transform: scale(1.05);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.78), transparent 60%);
}

.hero-art-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  background: #ffffff;
  color: var(--teal-dark);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  opacity: 0.5;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.section-block {
  padding: 58px 0;
}

.gray-block {
  background: #f1f5f9;
}

.soft-block {
  margin-bottom: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 10px 0 0;
  line-height: 1.15;
}

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

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

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

.feature-strip a {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-strip a:hover,
.movie-card:hover,
.category-tile:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.feature-strip strong {
  font-size: 19px;
}

.feature-strip span {
  color: var(--muted);
}

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

.category-tile {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 26px;
  background: #cbd5e1;
  box-shadow: var(--shadow);
}

.category-tile img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.tile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.1));
}

.tile-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
}

.tile-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
}

.tile-copy small {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent);
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.card-body h2 a:hover {
  color: var(--teal-dark);
}

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

.compact-card .card-body p {
  display: none;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.empty-state {
  padding: 42px;
  text-align: center;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.45), transparent 28%), linear-gradient(135deg, #0f172a, #134e4a 54%, #155e75);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 34px;
  align-items: center;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
}

.category-poster-stack img {
  height: 240px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
}

.category-poster-stack img:nth-child(2) {
  height: 300px;
}

.category-poster-stack img:nth-child(3) {
  height: 210px;
}

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

.ranking-list,
.rank-panel {
  display: grid;
  gap: 10px;
}

.ranking-list a,
.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-list span,
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.ranking-list strong,
.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list em,
.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.spotlight-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.spotlight-card img {
  height: 360px;
  object-fit: cover;
}

.spotlight-card div {
  padding: 24px;
}

.spotlight-card p {
  color: var(--muted);
}

.rank-panel .rank-row {
  grid-template-columns: 54px 76px minmax(0, 1fr) 80px;
  padding: 12px;
}

.rank-row img {
  width: 76px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 6px;
}

.rank-copy small {
  color: var(--muted);
}

.detail-hero {
  padding: 36px 0 56px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 22%, rgba(20, 184, 166, 0.55), transparent 30%), linear-gradient(135deg, #020617, #0f172a 46%, #134e4a);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
}

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

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

.detail-poster img {
  height: 420px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 32px 72px rgba(2, 6, 23, 0.45);
}

.detail-copy h1 {
  font-size: clamp(34px, 6vw, 62px);
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.detail-meta span,
.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta,
.large-tags {
  margin: 18px 0;
}

.player-section {
  background: #020617;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.32), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 24px 48px rgba(20, 184, 166, 0.32);
  font-size: 38px;
}

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

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

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.content-card p {
  color: #475569;
  font-size: 17px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 32px;
  padding: 46px 0;
}

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

.site-footer p {
  max-width: 440px;
  color: #94a3b8;
}

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

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

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

  .hero-slide,
  .ranking-layout,
  .category-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 820px;
  }

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

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

  .mobile-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-section {
    padding: 48px 0 38px;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-stage {
    min-height: 780px;
  }

  .hero-slide {
    gap: 24px;
  }

  .hero-art,
  .hero-art img {
    min-height: 320px;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .feature-strip,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster img {
    height: auto;
    max-height: 520px;
  }

  .rank-panel .rank-row {
    grid-template-columns: 42px 60px minmax(0, 1fr);
  }

  .rank-panel .rank-row em {
    display: none;
  }

  .rank-row img {
    width: 60px;
    height: 78px;
  }

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

  .play-cover span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
