:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --blue: #2563eb;
  --gold: #eab308;
  --danger: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34rem), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(51, 65, 85, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.26);
  color: #fff;
  font-size: 18px;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(51, 65, 85, 0.82);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-nav input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  border-radius: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.header-search button,
.mobile-nav button,
.primary-btn,
.ghost-btn,
.rank-action,
.play-start {
  border: 0;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-nav button,
.primary-btn,
.play-start {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #fff;
}

.header-search button {
  padding: 10px 15px;
}

.header-search button:hover,
.mobile-nav button:hover,
.primary-btn:hover,
.play-start:hover,
.rank-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
  border: 0;
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.75);
}

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

.mobile-nav a,
.mobile-nav form {
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  width: 100%;
  padding: 10px 12px;
}

.mobile-nav button {
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 72vh;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)), linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 710px;
  padding: 70px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(16px, 2.1vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-meta span,
.meta-pill,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  color: #dbeafe;
  border: 1px solid rgba(51, 65, 85, 0.92);
}

.hero-meta span {
  padding: 7px 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

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

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #475569;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: var(--cyan);
}

.main-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 78px;
}

.page-hero {
  padding: 54px 0 32px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.62);
  background: radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.16), transparent 36rem);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.page-hero h1,
.detail-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

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

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

.section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 7px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #67e8f9;
  font-weight: 700;
  min-width: max-content;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 28px 70px rgba(6, 182, 212, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-wrap img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-wrap img,
.rank-item:hover .rank-cover img {
  transform: scale(1.08);
}

.poster-wrap::after,
.rank-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--gold);
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.32);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover {
  color: #67e8f9;
}

.meta-line,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card p {
  margin: 9px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.feature-panel {
  padding: 28px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  box-shadow: var(--shadow);
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 16rem), rgba(15, 23, 42, 0.88);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.78);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
}

.category-card span {
  color: #67e8f9;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-bar input {
  min-width: min(430px, 100%);
  flex: 1;
  padding: 12px 14px;
}

.filter-bar select {
  min-width: 160px;
  padding: 12px 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.76);
}

.rank-cover {
  position: relative;
  display: block;
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 20px;
  font-weight: 900;
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 8px;
  color: #cbd5e1;
}

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 42px;
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.5);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(51, 65, 85, 0.82);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-start {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 0 20px 55px rgba(6, 182, 212, 0.36);
}

.detail-info,
.side-card,
.story-card {
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
}

.detail-info {
  padding: 24px;
  margin-top: 24px;
}

.detail-info h2,
.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-info p,
.story-card p,
.side-card p {
  margin: 0;
  color: #cbd5e1;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.fact-grid div {
  padding: 13px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.76);
}

.fact-grid strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.fact-grid span {
  display: block;
  margin-top: 5px;
  font-weight: 800;
}

.story-card {
  padding: 24px;
  margin-top: 24px;
}

.story-card p + h2 {
  margin-top: 24px;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.side-card .movie-card {
  margin-top: 14px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.62);
}

.side-link:hover {
  background: rgba(30, 41, 59, 0.94);
}

.side-link img {
  width: 62px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.side-link strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.side-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  color: #64748b;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .desktop-nav,
  .brand-text small {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-copy {
    padding: 92px 0 96px;
  }

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

  .category-grid,
  .footer-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-number {
    position: absolute;
    margin: 8px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .rank-action {
    grid-column: 2;
    width: 100%;
  }

  .rank-cover {
    width: 78px;
  }
}

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

  .hero-actions {
    display: grid;
  }

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

  .movie-card h3 {
    min-height: auto;
  }

  .filter-bar select {
    width: 100%;
  }
}
