* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e5edf8;
  background: #020617;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
  background: #0f172a;
}

button,
input {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #06111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #22d3ee;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #e2e8f0;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: #020617;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
}

.mobile-nav-link.is-active {
  color: #22d3ee;
}

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

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(34, 211, 238, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 50%, rgba(2, 6, 23, 0.3) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: min(720px, calc(100% - 48px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.hero p,
.page-hero p,
.detail-info .lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 999px;
  padding: 5px 10px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.5);
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 18px 35px rgba(34, 211, 238, 0.26);
}

.btn-ghost {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.62);
}

.btn-soft {
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.28);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 46px;
  background: #22d3ee;
}

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

.home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 26px;
}

.home-intro h2,
.section-heading h2,
.content-panel h2,
.info-panel h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.home-intro p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #94a3b8;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 34px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 0 52px 0 18px;
  color: #e2e8f0;
  outline: none;
  background: rgba(2, 6, 23, 0.62);
}

.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-box span {
  position: absolute;
  right: 18px;
  top: 50%;
  color: #67e8f9;
  transform: translateY(-50%);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 8px 13px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #06111f;
  border-color: #22d3ee;
  background: #22d3ee;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 44px 0 22px;
}

.section-heading span {
  color: #22d3ee;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading a {
  color: #67e8f9;
  font-weight: 800;
}

.section-heading.tight {
  margin-top: 0;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.95));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

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

.card-compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.1) brightness(0.9);
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111f;
  background: #22d3ee;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #06111f;
  background: linear-gradient(135deg, #facc15, #fb923c);
  font-size: 12px;
  font-weight: 900;
}

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

.meta-line {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: #0f172a;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.62;
}

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

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

.category-tile span,
.category-tile em {
  display: block;
  color: #a5f3fc;
  font-size: 12px;
  font-style: normal;
}

.category-tile strong {
  display: block;
  margin: 4px 0 6px;
  color: #fff;
  font-size: 24px;
}

.category-tile em {
  display: -webkit-box;
  overflow: hidden;
  color: #cbd5e1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-box {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.sticky-box {
  position: sticky;
  top: 92px;
}

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

.scroll-list {
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.48);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.rank-row span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #06111f;
  background: #22d3ee;
  font-weight: 900;
}

.rank-row strong {
  color: #f8fafc;
}

.rank-row em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 44px;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.22), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, 0.18), transparent 28%),
    linear-gradient(180deg, #020617, #0f172a);
}

.simple-hero h1,
.category-hero h1 {
  max-width: 780px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.76);
}

.overview-image {
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
}

.overview-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 6px 0 8px;
  color: #f8fafc;
}

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

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-list a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.26);
  font-size: 12px;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(4px) saturate(1.15);
  transform: scale(1.05);
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.58)),
    linear-gradient(0deg, #020617, transparent 55%);
}

.detail-content {
  position: relative;
  z-index: 2;
  padding: 42px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.player-section {
  padding-top: 42px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: brightness(0.76);
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.28), rgba(2, 6, 23, 0.68));
}

.player-icon,
.player-cover strong {
  position: relative;
  z-index: 2;
}

.player-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.36);
  font-size: 30px;
}

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

.detail-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  padding-top: 34px;
}

.content-panel,
.info-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
}

.content-panel p,
.info-panel dd {
  color: #cbd5e1;
}

.content-panel p {
  margin: 14px 0 0;
  font-size: 16px;
}

.info-panel {
  grid-row: span 2;
}

.info-panel dl {
  margin: 12px 0 0;
}

.info-panel dt {
  margin-top: 14px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
}

.info-panel dd {
  margin: 4px 0 0;
}

.empty-state {
  display: none;
  margin: 22px 0 0;
  padding: 20px;
  border-radius: 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  text-align: center;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: #020617;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 600px;
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: #64748b;
  font-size: 13px;
}

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

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

  .sticky-box {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    bottom: 68px;
  }

  .hero-control {
    display: none;
  }

  .home-intro,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .detail-poster {
    width: min(260px, 78vw);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-shell,
  .filter-panel,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

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

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-content {
    left: 16px;
    width: calc(100% - 32px);
  }

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

  .detail-content {
    padding-top: 28px;
  }

  .player-icon {
    width: 64px;
    height: 64px;
  }
}
