* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #e2e8f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #22d3ee;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #cbd5e1;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.22), transparent 30%), linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.46)), linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 88px 0 84px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.inner-hero span,
.section-heading span,
.panel-title span,
.search-band span,
.detail-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  padding: 7px 11px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.45);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.global-search button,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button,
.global-search button {
  border: 0;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.28);
}

.ghost-button,
.panel-more {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
}

.primary-button:hover,
.ghost-button:hover,
.global-search button:hover,
.panel-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(14, 165, 233, 0.22);
}

.hero-poster {
  position: relative;
  height: 500px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.46), 0 0 60px rgba(34, 211, 238, 0.12);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), transparent 45%);
}

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

.hero-dots button {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  cursor: pointer;
}

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

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  position: relative;
  z-index: 8;
}

.search-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.global-search {
  display: flex;
  gap: 12px;
}

.global-search input,
.filter-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.82);
}

.global-search input:focus,
.filter-row input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.category-strip {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.category-strip a:hover {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.58);
  transform: translateY(-2px);
}

.section-block {
  margin-top: 72px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
}

.section-heading h2,
.panel-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #94a3b8;
}

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

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

.movie-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), 0 0 32px rgba(34, 211, 238, 0.08);
}

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

.poster-link img {
  transition: transform 0.45s ease, opacity 0.3s ease;
}

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

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #020617;
  background: #22d3ee;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.34);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  color: #020617;
  background: linear-gradient(135deg, #facc15, #fb7185);
  font-size: 13px;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: #22d3ee;
}

.movie-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

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

.tag-row span {
  padding: 5px 8px;
  font-size: 11px;
}

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

.ranking-panel,
.content-panel,
.prose-panel,
.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.ranking-panel {
  padding: 24px;
  margin-top: 72px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.38);
  transform: translateX(3px);
}

.rank-row strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #020617;
  background: #22d3ee;
  font-size: 13px;
}

.rank-row img {
  width: 52px;
  height: 72px;
  border-radius: 12px;
}

.rank-row b {
  display: block;
  color: #e2e8f0;
  font-size: 14px;
}

.rank-row em {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.panel-more {
  width: 100%;
  margin-top: 18px;
}

.inner-hero {
  padding: 86px 0 66px;
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 36%), linear-gradient(135deg, #020617, #0f172a 56%, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.inner-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

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

.category-card {
  display: grid;
  gap: 18px;
  min-height: 280px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.6));
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 110px;
}

.category-card-images img {
  border-radius: 16px;
}

.category-card span {
  color: #22d3ee;
  font-weight: 800;
}

.category-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: #94a3b8;
}

.filter-panel {
  margin-top: 54px;
  padding: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  margin-bottom: 26px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-buttons button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  border-color: rgba(34, 211, 238, 0.62);
  color: #22d3ee;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

.detail-bg {
  opacity: 0.28;
  filter: blur(1px) saturate(1.2);
}

.detail-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.56)), linear-gradient(0deg, #020617, transparent 48%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #22d3ee;
}

.breadcrumb em {
  color: #e2e8f0;
  font-style: normal;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.detail-info h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-main {
  margin-top: 44px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #e2e8f0;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.92));
  cursor: pointer;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
}

.player-cover strong {
  font-size: 20px;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.content-panel,
.prose-panel {
  margin-top: 34px;
  padding: 34px;
}

.content-panel h2,
.prose-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.content-panel p,
.prose-panel p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 17px;
}

.content-panel p:last-child,
.prose-panel p:last-child {
  margin-bottom: 0;
}

.rank-page-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

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

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-content,
  .two-column-section,
  .rank-page-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .ranking-panel {
    margin-top: 28px;
  }

  .sticky-panel {
    position: static;
    max-height: none;
  }

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

  .detail-layout {
    grid-template-columns: 240px 1fr;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-wrap {
    height: 64px;
  }

  .brand {
    font-size: 21px;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    display: flex;
    align-items: flex-end;
    padding: 84px 0 90px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p,
  .inner-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .search-band,
  .filter-row,
  .search-page-row {
    grid-template-columns: 1fr;
  }

  .global-search {
    flex-direction: column;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

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

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

  .content-panel,
  .prose-panel,
  .filter-panel,
  .ranking-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .player-shell {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .inner-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
