* {
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #3b82f6;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 20px;
  color: var(--white);
}

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

.nav-link {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(34, 211, 238, 0.12);
}

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

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  height: 78vh;
  min-height: 620px;
  overflow: hidden;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-fade {
  position: absolute;
  inset: 0;
}

.hero-fade-bottom {
  background: linear-gradient(to top, var(--bg) 0%, rgba(15, 23, 42, 0.72) 36%, transparent 72%);
}

.hero-fade-left {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.42) 44%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 110px 0 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-eyebrow,
.section-kicker,
.category-label {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 14px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  padding: 6px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

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

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

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

.button-primary {
  color: #03111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.24);
}

.button-soft {
  color: var(--white);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(226, 232, 240, 0.18);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.32);
}

.hero-dot.is-active {
  background: var(--cyan);
}

.hero-search,
.page-search {
  position: absolute;
  z-index: 3;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 96px;
  width: min(420px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input,
.page-search input,
.filter-bar input {
  width: 100%;
  min-width: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0 12px;
}

.hero-search input::placeholder,
.page-search input::placeholder,
.filter-bar input::placeholder {
  color: #64748b;
}

.hero-search button,
.page-search button {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: #041018;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.content-section,
.page-hero,
.breadcrumb,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 56px 0;
}

.intro-panel {
  margin-top: -36px;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(15, 23, 42, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.intro-copy h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.prose-card h2 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.intro-copy p:last-child,
.page-hero p,
.prose-card p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
}

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

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

.card-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #001018;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #001018;
  background: rgba(34, 211, 238, 0.92);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-top: 12px;
  gap: 8px;
}

.card-meta span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.tag-row span {
  padding: 4px 8px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  font-size: 12px;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 100%;
  padding: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin-top: 10px;
  color: var(--white);
  font-size: 22px;
}

.category-card p,
.category-overview-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-thumbs,
.category-overview-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.category-overview-thumbs {
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 16px;
}

.category-thumbs img,
.category-overview-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.rank-section {
  padding: 44px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

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

.wide-rank {
  grid-template-columns: 1fr;
}

.rank-link {
  display: grid;
  grid-template-columns: auto 62px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  transform: translateX(4px);
  background: rgba(34, 211, 238, 0.08);
}

.rank-number {
  width: 42px;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-link img {
  width: 62px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong {
  display: block;
  color: var(--white);
  font-size: 16px;
}

.rank-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.rank-heat {
  color: var(--cyan);
  font-weight: 800;
}

.page-hero {
  position: relative;
  margin-top: 34px;
  padding: 54px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 260px;
}

.category-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-search {
  position: static;
  width: min(420px, 100%);
  margin: 0;
}

.filter-panel {
  padding-top: 34px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.search-wide {
  align-items: stretch;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-button.active,
.filter-button:hover {
  color: #021018;
  background: var(--cyan);
}

.empty-state {
  display: none;
  margin: 36px 0 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 34px;
  align-items: end;
  margin-top: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 26rem),
    rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

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

.detail-one-line {
  max-width: 800px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin: 18px 0 24px;
}

.player-section {
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  border: 0;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-ring {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.24);
}

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

.prose-card {
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.prose-card h2 {
  font-size: 26px;
}

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

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

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

.footer-links a:hover {
  color: var(--cyan);
}

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
  }

  .hero-carousel {
    min-height: 720px;
    height: auto;
  }

  .hero-content {
    padding: 120px 0 250px;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    bottom: 82px;
    width: auto;
  }

  .intro-panel,
  .category-hero,
  .footer-inner,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .rank-section,
  .page-hero,
  .detail-hero {
    padding: 24px;
  }

  .rank-link {
    grid-template-columns: auto 54px 1fr;
  }

  .rank-heat {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 17px;
  }

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

  .hero-meta span,
  .detail-meta span {
    font-size: 12px;
  }

  .hero-search,
  .page-search {
    border-radius: 20px;
  }

  .hero-search button,
  .page-search button {
    padding: 10px 14px;
  }
}
