:root {
  color-scheme: light;
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f0fdfa;
  --secondary-500: #14b8a6;
  --secondary-600: #0d9488;
  --accent-100: #ffedd5;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #78716c;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 18px 34px rgba(15, 23, 42, 0.10);
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --radius-3xl: 1.8rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--neutral-900);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(20, 184, 166, 0.12), transparent 32rem),
    var(--neutral-50);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 229, 228, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  padding: 0.65rem 1rem;
  color: var(--neutral-700);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-700);
  background: var(--primary-100);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--neutral-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--neutral-900);
  border-radius: 99px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 28px auto 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--neutral-900);
  box-shadow: var(--shadow-soft);
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 4.5rem 7rem;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.68) 52%, rgba(28, 25, 23, 0.28)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 60%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary-600);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7dd3fc;
}

.hero h1 {
  max-width: 780px;
  margin: 0.9rem 0 1rem;
  color: white;
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.13rem;
  line-height: 1.9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost.light {
  color: var(--primary-700);
  background: var(--primary-100);
  border-color: var(--primary-100);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-3xl);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

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

.hero-poster span {
  display: block;
  padding: 1rem;
  color: white;
  font-weight: 800;
  text-align: center;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 4.5rem;
  bottom: 2.8rem;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2.2rem;
  background: white;
}

.hero-search-card {
  position: absolute;
  z-index: 6;
  right: 2rem;
  bottom: 2rem;
  width: min(420px, calc(100% - 4rem));
  padding: 1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-2xl);
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(18px);
}

.hero-search-card strong {
  display: block;
  margin-bottom: 0.7rem;
}

.hero-search-card form,
.search-box {
  display: flex;
  gap: 0.65rem;
}

.hero-search-card input,
.search-box input {
  flex: 1;
  width: 100%;
  border: 1px solid rgba(231, 229, 228, 0.82);
  border-radius: 999px;
  padding: 0.82rem 1rem;
  outline: none;
  background: white;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-card input:focus,
.search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.hero-search-card button,
.search-box button {
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  color: white;
  background: var(--primary-600);
  cursor: pointer;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.hero-quick-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

.content-section,
.category-block,
.article-section,
.player-section,
.search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 4rem auto 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-head h2,
.page-hero h1,
.article-section h2,
.player-section h2 {
  margin: 0.3rem 0 0;
  color: var(--neutral-900);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--neutral-500);
  line-height: 1.8;
}

.section-link {
  color: var(--primary-700);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.74);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: var(--shadow-card);
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-50));
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.52), transparent);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  display: grid;
  min-width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.movie-card-content {
  padding: 1rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--neutral-500);
  font-size: 0.8rem;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.4rem;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 3.1rem;
  margin: 0.45rem 0;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.2rem;
  margin: 0 0 0.85rem;
  overflow: hidden;
  color: var(--neutral-500);
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.is-compact .movie-card-content {
  padding: 0.85rem;
}

.is-compact h2 {
  min-height: auto;
  font-size: 1rem;
}

.is-compact p {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  padding: 1.35rem;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile::before,
.category-block-head::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.86), rgba(2, 132, 199, 0.58));
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
  color: white;
}

.category-tile span {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong {
  max-width: 90%;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.page-main,
.detail-main {
  padding-top: 2rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius-3xl);
  color: white;
  background: linear-gradient(135deg, var(--neutral-900), var(--primary-700));
  isolation: isolate;
}

.page-hero h1,
.page-hero p,
.page-hero .section-kicker {
  color: white;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.search-panel {
  padding: 1rem;
  border: 1px solid rgba(231, 229, 228, 0.86);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  color: var(--neutral-700);
  background: var(--neutral-100);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  background: var(--primary-600);
}

.category-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1.25fr;
  gap: 1.25rem;
  align-items: stretch;
}

.category-block-head {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 410px;
  padding: 1.6rem;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.category-block-head span,
.category-block-head h2,
.category-block-head p {
  color: white;
}

.category-block-head h2 {
  margin: 0.35rem 0;
  font-size: 2.1rem;
  line-height: 1.1;
}

.category-block-head p {
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.4rem 0 1.3rem;
  color: var(--neutral-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-3xl);
  background:
    linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(3, 105, 161, 0.84)),
    var(--neutral-900);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

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

.detail-info {
  align-self: center;
  color: white;
}

.detail-info .section-kicker,
.detail-info h1 {
  color: white;
}

.detail-info h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.detail-meta-grid span {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.player-section {
  scroll-margin-top: 88px;
}

.player-section h2,
.article-section h2 {
  margin-bottom: 1rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: black;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden,
.player-overlay[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  position: relative;
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  box-shadow: 0 20px 42px rgba(14, 165, 233, 0.35);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: 0.8rem solid transparent;
  border-bottom: 0.8rem solid transparent;
  border-left: 1.22rem solid white;
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  pointer-events: none;
}

.article-section {
  padding: 2rem;
  border: 1px solid rgba(231, 229, 228, 0.82);
  border-radius: var(--radius-2xl);
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.article-section p {
  margin: 0 0 1.3rem;
  color: var(--neutral-700);
  font-size: 1.03rem;
  line-height: 2;
}

.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 1.8rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--neutral-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-logo,
.site-footer h2 {
  color: white;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

[data-card].is-hidden {
  display: none;
}

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 3rem 2rem 13rem;
  }

  .hero-poster {
    display: none;
  }

  .hero-dots {
    left: 2rem;
    bottom: 8rem;
  }

  .category-block,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .category-block-head {
    min-height: 280px;
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
  }

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

  .hero {
    min-height: 720px;
    border-radius: var(--radius-2xl);
  }

  .hero-slide {
    padding: 2rem 1.25rem 13.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero-search-card {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .hero-search-card form,
  .search-box {
    flex-direction: column;
  }

  .hero-search-card button,
  .search-box button {
    min-height: 2.8rem;
  }

  .hero-dots {
    left: 1.25rem;
    bottom: 9.4rem;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .category-block,
  .article-section,
  .player-section,
  .search-panel {
    margin-top: 2.6rem;
  }

  .detail-hero {
    padding: 1.1rem;
  }

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

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