:root {
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.08);
  --purple: #a855f7;
  --purple-dark: #7e22ce;
  --pink: #ec4899;
  --orange: #f97316;
  --gold: #eab308;
  --cyan: #06b6d4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.32), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.26), transparent 32rem),
    linear-gradient(135deg, #111827 0%, #0f172a 42%, #581c87 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(22px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 16px 34px rgba(168, 85, 247, 0.38);
}

.brand-text {
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.hero {
  padding: 34px 0 20px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(88, 28, 135, 0.76));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68), rgba(88, 28, 135, 0.7)),
    radial-gradient(circle at 76% 20%, rgba(236, 72, 153, 0.36), transparent 26rem);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.2);
  opacity: 0.38;
  transform: scale(1.1);
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fbcfe8;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  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: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(236, 72, 153, 0.25));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4.2;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

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

.panel-section {
  padding-top: 30px;
}

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

.section-heading h2,
.hot-panel h2,
.page-hero h1,
.detail-main h1,
.text-panel h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-heading h2,
.hot-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-link,
.hot-panel a {
  color: #fbcfe8;
  font-weight: 800;
}

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

.category-tile,
.category-panel,
.hot-panel,
.player-card,
.text-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-tile {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, background 0.24s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover,
.small-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.filter-bar {
  display: flex;
  gap: 14px;
  margin: 0 0 22px;
}

.search-box,
.select-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.select-box {
  flex: 0 0 240px;
}

.search-box span,
.select-box span {
  color: #fbcfe8;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.select-box select option {
  color: #0f172a;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(236, 72, 153, 0.22));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.score-badge,
.detail-poster span,
.rank-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fef08a, var(--gold));
  font-weight: 900;
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 48px;
  height: 32px;
  border-radius: 999px;
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-line a,
.detail-meta a {
  color: #fbcfe8;
}

.movie-card h3 {
  margin: 10px 0 9px;
  font-size: 20px;
  line-height: 1.32;
}

.movie-card p,
.category-panel p,
.rank-info p,
.page-hero p,
.text-panel p,
.lead {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p {
  min-height: 74px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

.hot-panel-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

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

.small-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.22s ease, background 0.22s ease;
}

.small-card img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.24));
}

.small-card strong,
.small-card em {
  display: block;
}

.small-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.small-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.32), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(88, 28, 135, 0.64));
  box-shadow: var(--shadow);
}

.mini-hero {
  padding: 52px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

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

.category-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  transition: transform 0.22s ease;
}

.category-panel-title {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 900;
}

.category-panel ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-panel li a {
  color: rgba(255, 255, 255, 0.78);
}

.rank-section {
  padding-top: 30px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 150px minmax(0, 1fr) 76px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-num {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fbcfe8;
  font-weight: 900;
  font-size: 20px;
}

.rank-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.22));
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rank-info p {
  margin: 0 0 10px;
}

.rank-score {
  width: 60px;
  height: 44px;
  border-radius: 999px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-bottom: 1px solid var(--line);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.74), rgba(88, 28, 135, 0.68)),
    radial-gradient(circle at 76% 20%, rgba(236, 72, 153, 0.28), transparent 25rem);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.1);
  opacity: 0.36;
  transform: scale(1.12);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbcfe8;
}

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

.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.2));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 58px;
  height: 40px;
  border-radius: 999px;
}

.detail-main h1 {
  margin-top: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.lead {
  max-width: 760px;
  margin: 20px 0;
  font-size: 19px;
}

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

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.player-card,
.text-panel {
  border-radius: var(--radius-xl);
}

.player-card {
  padding: 12px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.4);
  font-weight: 900;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.text-panel {
  padding: 28px;
}

.text-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0 0 22px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
}

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

.footer-inner strong {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
}

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

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

.is-filtered-out {
  display: none !important;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero-shell {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero-poster {
    width: min(290px, 78vw);
    margin: 0 auto;
  }

  .hero-dots {
    left: 36px;
    bottom: 28px;
  }

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

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

  .hot-panel {
    position: static;
  }

  .detail-poster {
    width: min(320px, 82vw);
  }

  .rank-item {
    grid-template-columns: 54px 120px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / 4;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section,
  .page-hero,
  .detail-wrap,
  .footer-inner,
  .hero-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-shell {
    min-height: 680px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px 22px 64px;
  }

  .hero h1,
  .detail-main h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .hero p,
  .page-hero p,
  .lead {
    font-size: 16px;
  }

  .mini-hero {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .section-heading,
  .filter-bar,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .select-box {
    flex-basis: auto;
  }

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

  .rank-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-cover {
    grid-column: 1 / 3;
  }

  .rank-info,
  .rank-score {
    grid-column: 1 / 3;
  }

  .detail-grid {
    margin-top: 26px;
  }

  .detail-wrap {
    padding-top: 24px;
  }
}
