html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #102033;
  background: linear-gradient(180deg, #f8fcff 0%, #eef9ff 46%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 14% 12%, rgba(34, 211, 238, .24), transparent 32%),
    radial-gradient(circle at 84% 2%, rgba(59, 130, 246, .18), transparent 28%),
    linear-gradient(180deg, #f9fdff 0%, #eefaff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(14, 116, 144, .12);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -.04em;
}

.logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 34px rgba(6, 182, 212, .28);
}

.logo-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-categories a,
.site-footer a,
.section-heading a,
.breadcrumb a {
  color: #334155;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease, background .2s ease;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.nav-categories a:hover,
.section-heading a:hover,
.breadcrumb a:hover {
  color: #0891b2;
}

.nav-link.is-active {
  background: rgba(6, 182, 212, .1);
}

.nav-categories {
  display: flex;
  max-width: 420px;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}

.nav-categories a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(14, 116, 144, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: .88rem;
}

.nav-toggle {
  display: none;
  padding: 10px 15px;
  border: 1px solid rgba(14, 116, 144, .18);
  border-radius: 999px;
  color: #0e7490;
  background: rgba(236, 254, 255, .8);
  font-weight: 800;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 30%, rgba(34, 211, 238, .22), transparent 24%),
    linear-gradient(90deg, rgba(7, 17, 31, .95), rgba(7, 17, 31, .58) 46%, rgba(7, 17, 31, .82));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  gap: 54px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0891b2;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #67e8f9;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.06em;
}

.hero h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(2.65rem, 7vw, 6.8rem);
}

.hero-summary {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.18rem;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #e0fbff;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .24);
}

.btn-ghost {
  color: #e0fbff;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
}

.btn-primary:hover,
.btn-ghost:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 34px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 38px 90px rgba(0, 0, 0, .38);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 145, 178, .9);
  font-weight: 900;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
}

.hero-dots button.is-active {
  width: 34px;
  background: #22d3ee;
}

.section {
  padding: 72px 0;
}

.section-lift {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 950;
  letter-spacing: -.045em;
}

.section-heading a {
  flex: 0 0 auto;
  color: #0891b2;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, .12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  filter: saturate(1.05);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 20%, rgba(7, 17, 31, .88));
}

.category-tile span,
.category-tile small {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-tile span {
  bottom: 52px;
  font-size: 1.15rem;
  font-weight: 950;
}

.category-tile small {
  bottom: 18px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(14, 116, 144, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: .86rem;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 16px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(6, 182, 212, .58);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .12);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.movie-card:hover {
  box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, .16), rgba(37, 99, 235, .16));
}

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

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

.heat-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.heat-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(8, 145, 178, .94);
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-title {
  display: block;
  color: #0f172a;
  font-size: 1.06rem;
  font-weight: 950;
  line-height: 1.35;
  text-decoration: none;
}

.movie-title:hover {
  color: #0891b2;
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.65;
}

.movie-desc {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span,
.detail-meta span {
  padding: 6px 10px;
  color: #0e7490;
  background: rgba(207, 250, 254, .8);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 92px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 12%, rgba(34, 211, 238, .28), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0e7490 52%, #1d4ed8 100%);
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
  line-height: 1.9;
}

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

.breadcrumb a {
  color: rgba(255, 255, 255, .82);
}

.detail-hero {
  min-height: 600px;
  padding: 76px 0;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

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

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 32px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .36);
}

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

.detail-copy h1 {
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.detail-one-line {
  max-width: 860px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.16rem;
  line-height: 1.9;
}

.detail-meta {
  margin-top: 24px;
}

.player-card,
.story-card {
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, .12);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 26px 74px rgba(15, 23, 42, .1);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, .24), rgba(2, 6, 23, .78));
  font-weight: 950;
}

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

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 38px rgba(37, 99, 235, .34);
}

.player-info {
  padding: 24px;
}

.player-info h2,
.story-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 950;
}

.player-info p,
.story-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(14, 116, 144, .1);
  background: #07111f;
  color: #e2e8f0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 0;
}

.site-footer strong {
  font-size: 1.2rem;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, .68);
}

.site-footer a {
  color: #67e8f9;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

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

  .hero-grid {
    grid-template-columns: 1fr .72fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(14, 116, 144, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
  }

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

  .nav-categories {
    max-width: none;
    flex-wrap: wrap;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 72px 0 86px;
  }

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

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

  .detail-cover {
    max-width: 330px;
  }

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

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .logo-text {
    font-size: 1.12rem;
  }

  .site-nav {
    top: 68px;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -.045em;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}
