* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(59, 130, 246, 0.16);
  --line-strong: rgba(59, 130, 246, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --cyan: #67e8f9;
  --gold: #facc15;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.18), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(34, 211, 238, 0.13), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(59, 130, 246, 0.08);
}

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

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

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(59, 130, 246, 0.16);
  box-shadow: 0 0 34px rgba(59, 130, 246, 0.34);
}

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

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #bfdbfe;
  background: var(--blue-soft);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.nav-toggle {
  display: none;
  color: var(--text);
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

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

.mobile-menu.is-open {
  display: grid;
}

.mobile-link {
  padding: 12px 14px;
  font-weight: 650;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 70vh;
  height: 85vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-slide.is-active img {
  animation: heroZoom 8s ease forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(59, 130, 246, 0.2), transparent 22rem),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.88) 18%, rgba(15, 23, 42, 0.58) 52%, rgba(2, 6, 23, 0.42) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 84px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-tags span,
.tag-row span,
.meta-pill,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
}

.hero-tags span {
  padding: 8px 14px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero-meta {
  margin-bottom: 28px;
}

.meta-pill {
  padding: 8px 13px;
  font-size: 13px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.34);
}

.btn-secondary,
.btn-ghost {
  color: #dbeafe;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(14px);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 54px rgba(59, 130, 246, 0.24);
}

.hero-search {
  display: flex;
  width: min(520px, 100%);
  min-height: 50px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: #fff;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
}

.hero-search button {
  color: #fff;
  border: 0;
  padding: 0 18px;
  font-weight: 800;
  background: var(--blue);
  cursor: pointer;
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 88px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  background: #60a5fa;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.8);
}

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

.home-sections {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 90px;
}

.section {
  margin-bottom: 72px;
}

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

.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  letter-spacing: -0.03em;
}

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

.section-head p,
.page-title p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: #bfdbfe;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.6);
}

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

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

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

.movie-card,
.rank-card,
.category-card,
.info-panel,
.detail-panel {
  border: 1px solid rgba(71, 85, 105, 0.72);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.76));
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(12px);
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  transition: 0.25s ease;
}

.movie-card:hover,
.rank-card:hover,
.category-card:hover {
  border-color: rgba(59, 130, 246, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.13);
}

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

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

.movie-card:hover .poster-link img,
.category-card:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.86);
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.card-body h2,
.rank-card h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.rank-card h2 a:hover,
.category-card h2 a:hover {
  color: #93c5fd;
}

.card-desc,
.rank-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.65;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.rank-meta {
  color: #64748b;
  font-size: 12px;
}

.card-meta span,
.rank-meta span {
  min-width: 0;
}

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

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

.movie-card-wide {
  flex-direction: row;
}

.movie-card-wide .poster-link {
  width: 152px;
  flex: 0 0 152px;
  aspect-ratio: 2 / 3;
}

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

.category-card {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  transition: 0.25s ease;
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: #94a3b8;
  line-height: 1.7;
}

.category-card strong {
  color: #bfdbfe;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -52px;
  bottom: -64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 68%);
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  min-height: 128px;
  border-radius: 18px;
  padding: 14px;
  transition: 0.25s ease;
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-num {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #020617;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #67e8f9);
}

.filter-bar,
.search-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.filter-input,
.filter-select,
.search-panel input {
  min-height: 48px;
  color: #fff;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 14px;
  outline: 0;
  background: rgba(2, 6, 23, 0.6);
}

.filter-input,
.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
}

.filter-select {
  padding: 0 12px;
}

.search-panel button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
  cursor: pointer;
}

.page-title {
  margin-bottom: 34px;
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 56px);
}

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

.breadcrumb a {
  color: #bfdbfe;
}

.detail-page {
  padding-top: 76px;
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background: #020617;
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.16);
  opacity: 0.4;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.88) 32%, rgba(15, 23, 42, 0.64) 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
}

.detail-copy .lead {
  max-width: 760px;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.detail-tags span {
  padding: 7px 12px;
  font-size: 13px;
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.player-section {
  margin-bottom: 54px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 38px);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.6);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.16));
  cursor: pointer;
}

.player-overlay strong {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.92);
  box-shadow: 0 18px 48px rgba(59, 130, 246, 0.32);
}

.play-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(191, 219, 254, 0.42);
  box-shadow: 0 0 54px rgba(96, 165, 250, 0.44);
}

.player-frame.is-playing .player-overlay {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.detail-panel,
.info-panel {
  border-radius: 22px;
  padding: 24px;
}

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

.detail-panel p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.44);
  padding-bottom: 12px;
  color: #cbd5e1;
}

.info-list span:first-child {
  color: #64748b;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 1));
}

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

.footer-main p,
.footer-col a,
.footer-bottom {
  color: #94a3b8;
}

.footer-main p {
  max-width: 520px;
  line-height: 1.75;
}

.footer-col h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a:hover {
  color: #93c5fd;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(71, 85, 105, 0.45);
  padding: 22px 0 30px;
  font-size: 14px;
}

.empty-state {
  display: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.7);
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.1);
  }
}

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

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

  .content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    height: 760px;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 28px;
  }

  .section-head,
  .filter-bar,
  .search-panel,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-layout {
    display: grid;
  }

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

  .movie-grid,
  .movie-grid.six,
  .movie-grid.three,
  .category-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    display: grid;
  }
}

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

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

  .page-shell {
    padding-top: 96px;
  }

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

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

  .movie-grid,
  .movie-grid.six,
  .movie-grid.three,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .movie-card-wide,
  .rank-card {
    grid-template-columns: 88px 1fr;
    flex-direction: row;
  }

  .movie-card-wide .poster-link {
    width: 118px;
    flex-basis: 118px;
  }

  .rank-card {
    display: grid;
  }

  .play-mark {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
