:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.76);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --hot: #fb7185;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 165, 233, 0.23), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(244, 63, 94, 0.14), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.86);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.hero-slider,
.page-hero,
.content-section,
.detail-shell,
.breadcrumbs {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 45%, #fb7185 100%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
}

.brand-text,
.footer-brand {
  font-size: 1.22rem;
}

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

.site-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: white;
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  background: rgba(15, 23, 42, 0.9);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: white;
}

.hero-wrap {
  position: relative;
  padding: 28px 0 36px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 36px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 44%, rgba(2, 6, 23, 0.46) 100%),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: radial-gradient(circle at 22% 25%, rgba(56, 189, 248, 0.23), transparent 28rem);
}

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

.hero-copy h1,
.hero-copy h2 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.card-meta span,
.detail-meta span,
.rank-meta span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.56);
  font-size: 0.82rem;
}

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

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

.btn-primary {
  color: #00111f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 52%, #fb7185);
  box-shadow: 0 16px 42px rgba(14, 165, 233, 0.28);
}

.btn-ghost,
.section-more {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.7);
}

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

.hero-poster {
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.54);
}

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

.hero-tools {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.62);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.4);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--accent);
}

.content-section,
.page-hero,
.detail-shell {
  padding: 48px 0;
}

.page-hero {
  display: grid;
  gap: 18px;
  padding-top: 54px;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.08rem;
}

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

.section-heading h2,
.filter-panel h2,
.detail-block h2,
.player-section h2 {
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  padding: 5px 11px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.44);
}

.movie-card.is-hidden {
  display: none;
}

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

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

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

.poster-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.82));
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  color: white;
  background: rgba(14, 165, 233, 0.88);
  font-size: 0.75rem;
  font-weight: 900;
}

.rank-badge {
  right: 12px;
  left: auto;
  background: rgba(245, 158, 11, 0.92);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #00111f;
  background: #e0f2fe;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
}

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

.card-body h3 {
  margin: 0;
  color: white;
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #7dd3fc;
}

.card-body p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

.card-meta {
  gap: 6px;
}

.card-meta span {
  padding: 2px 7px;
  font-size: 0.72rem;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 3px 8px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.72rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.2);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.72fr));
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: white;
  outline: none;
  background: rgba(2, 6, 23, 0.5);
  padding: 0 12px;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.11);
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.22);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.92));
}

.category-card-content {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.32);
}

.rank-number {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 950;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.rank-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs {
  padding-top: 24px;
  color: #94a3b8;
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #7dd3fc;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 32px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.75)),
    var(--detail-bg);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

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

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 780px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 1.06rem;
}

.player-section,
.detail-block {
  margin-top: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.22);
}

.player-stage {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.62));
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: #00111f;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8);
  box-shadow: 0 16px 52px rgba(14, 165, 233, 0.38);
  font-size: 2rem;
}

.player-stage.is-playing .player-start {
  display: none;
}

.detail-block p {
  color: #cbd5e1;
  font-size: 1.02rem;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.notice-empty {
  display: none;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.notice-empty.is-visible {
  display: block;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.62);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 22px;
}

.footer-inner p,
.copyright {
  max-width: 640px;
  margin: 10px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5);
}

.copyright {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  font-size: 0.9rem;
}

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

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

  .hero-poster {
    display: none;
  }
}

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

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.96);
  }

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

  .hero-slider {
    min-height: 560px;
    border-radius: 28px;
  }

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

  .filter-panel,
  .detail-hero,
  .detail-columns,
  .footer-inner,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .hero-slider,
  .page-hero,
  .content-section,
  .detail-shell,
  .breadcrumbs {
    width: min(100% - 20px, 1200px);
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.45rem;
  }

  .hero-tools {
    right: 16px;
    bottom: 16px;
  }

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

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

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

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