:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --pink: #f472b6;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
  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(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.16));
}

button,
input {
  font: inherit;
}

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

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

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

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

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: white;
  background: rgba(15, 23, 42, 0.88);
  border-radius: 12px;
  padding: 10px 13px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

.hero-section {
  position: relative;
  min-height: 720px;
  padding: 56px 16px 34px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 12% -12% auto;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-frame {
  position: relative;
  width: min(1180px, 100%);
  min-height: 620px;
  margin: 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.72)),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.36), transparent 28rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), transparent 38%, rgba(244, 114, 182, 0.08));
  pointer-events: none;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
  padding: 58px;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  padding: 7px 12px;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.search-link,
.text-button,
.clear-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.ghost-button,
.search-link,
.clear-filter {
  min-height: 48px;
  padding: 0 20px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.search-link:hover,
.text-button:hover,
.clear-filter:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.6);
  transform: rotate(2deg);
}

.hero-poster::after,
.card-cover::after,
.horizontal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.78));
}

.hero-play,
.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}

.hero-play {
  width: 82px;
  height: 82px;
  font-size: 28px;
}

.hero-controls {
  position: absolute;
  left: 58px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.hero-dot.active {
  width: 36px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.search-panel {
  margin-top: 24px;
  margin-bottom: 54px;
}

.search-shell {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.search-shell label {
  display: block;
  margin-bottom: 12px;
  color: #e0f2fe;
  font-weight: 800;
}

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

.site-search {
  width: 100%;
  min-height: 50px;
  color: white;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  outline: 0;
  padding: 0 16px;
}

.site-search:focus {
  border-color: rgba(34, 211, 238, 0.56);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.content-section {
  margin-bottom: 72px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.rank-aside h2 {
  margin: 12px 0 0;
  color: white;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.section-heading p,
.page-hero p,
.rank-aside p,
.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  transform: scale(1.04);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.6;
}

.category-tile:hover img {
  opacity: 0.58;
  transform: scale(1.12);
}

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

.movie-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(15, 23, 42, 0.82);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-cover img {
  transition: transform 0.45s ease;
}

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

.play-hover {
  width: 58px;
  height: 58px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.card-body h3 a:hover,
.horizontal-info h3 a:hover,
.text-button:hover {
  color: #67e8f9;
}

.card-body p {
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
}

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

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.56);
  transition: transform 0.25s ease, background 0.25s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  background: rgba(15, 23, 42, 0.86);
}

.horizontal-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}

.horizontal-title-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.horizontal-info h3 {
  margin: 0;
  color: white;
  font-size: 17px;
  font-weight: 850;
}

.horizontal-info p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-number {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-weight: 900;
}

.rank-aside {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.full-button {
  width: 100%;
  margin: 18px 0;
}

.page-main {
  padding-top: 42px;
}

.page-hero {
  padding: 54px;
  margin-bottom: 38px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.28), transparent 25rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.86));
  box-shadow: var(--shadow);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.category-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 150px;
}

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

.category-overview-card h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

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

.text-button {
  color: #67e8f9;
  font-weight: 850;
}

.category-filter-panel {
  margin-top: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.filter-chips button {
  min-height: 34px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0 12px;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: white;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.14);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-main {
  padding-top: 30px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 32px;
  padding: 30px;
  background:
    radial-gradient(circle at 88% 20%, rgba(34, 211, 238, 0.16), transparent 28rem),
    rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.62);
}

.detail-info h1 {
  font-size: clamp(34px, 6vw, 62px);
}

.detail-one-line {
  margin: 18px 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta-grid span {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.38);
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  scroll-margin-top: 96px;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.64));
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  font-size: 30px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.4);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 72px;
}

.text-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.62);
}

.text-panel h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.text-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.95;
  white-space: pre-line;
}

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

.compact-card .card-body h3 {
  font-size: 15px;
}

.compact-card .card-body p {
  display: none;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.66);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #cbd5e1;
}

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

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

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

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

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

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

  .rank-aside {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-section {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-frame,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px;
  }

  .hero-poster {
    transform: none;
    max-height: 520px;
  }

  .hero-controls {
    left: 30px;
    bottom: 22px;
  }

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

  .detail-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .page-hero,
  .detail-hero,
  .search-shell,
  .text-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

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

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