:root {
  --deep-950: #000d12;
  --deep-900: #00141a;
  --deep-850: #001d28;
  --deep-800: #002840;
  --deep-700: #00395a;
  --ocean-400: #1ab1ff;
  --ocean-500: #0099e6;
  --ocean-600: #0079b8;
  --ocean-700: #005580;
  --teal-400: #1ee4c2;
  --teal-500: #00b394;
  --text-main: #f5fbff;
  --text-soft: #b8d8e8;
  --text-muted: #7ca6bb;
  --card: rgba(0, 40, 64, 0.78);
  --card-strong: rgba(0, 26, 38, 0.92);
  --border: rgba(26, 177, 255, 0.18);
  --shadow-ocean: 0 18px 45px rgba(0, 153, 230, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(26, 177, 255, 0.16), transparent 35rem),
    radial-gradient(circle at 90% 10%, rgba(0, 179, 148, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--deep-900) 0%, var(--deep-950) 70%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(0, 20, 26, 0.96), rgba(0, 40, 64, 0.94), rgba(0, 26, 38, 0.96));
  box-shadow: var(--shadow-ocean);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ocean-400), var(--teal-500));
  box-shadow: 0 10px 26px rgba(0, 153, 230, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

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

.nav-links a,
.mobile-menu a {
  color: var(--text-soft);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: white;
}

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

.header-search input,
.mobile-menu input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: white;
  background: rgba(0, 20, 26, 0.82);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-menu input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--ocean-400);
  box-shadow: 0 0 0 4px rgba(26, 177, 255, 0.12);
}

.header-search button,
.mobile-menu button,
.primary-btn,
.ghost-btn,
.section-link,
.category-panel-head a,
.category-overview-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-menu button,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
  box-shadow: 0 12px 30px rgba(0, 153, 230, 0.25);
}

.header-search button,
.mobile-menu button {
  padding: 12px 16px;
}

.primary-btn {
  padding: 13px 22px;
}

.ghost-btn,
.section-link,
.category-panel-head a,
.category-overview-card em {
  color: var(--ocean-400);
  background: rgba(26, 177, 255, 0.12);
  border: 1px solid rgba(26, 177, 255, 0.18);
  padding: 12px 18px;
}

.header-search button:hover,
.mobile-menu button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.category-panel-head a:hover,
.category-overview-card:hover em {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 153, 230, 0.28);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  color: white;
  background: rgba(26, 177, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0, 20, 26, 0.96);
}

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

.mobile-menu form {
  display: flex;
  gap: 10px;
}

.hero {
  position: relative;
  min-height: 720px;
  height: 92vh;
  overflow: hidden;
  margin-top: 76px;
  background: var(--deep-900);
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 13, 18, 0.96) 0%, rgba(0, 20, 26, 0.78) 48%, rgba(0, 13, 18, 0.28) 100%),
    linear-gradient(0deg, var(--deep-950) 0%, transparent 45%),
    radial-gradient(circle at 22% 30%, rgba(26, 177, 255, 0.18), transparent 30rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 60px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--ocean-400);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-tags,
.detail-tags,
.movie-tags,
.genre-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span,
.genre-line span,
.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #c9f7ff;
  background: rgba(26, 177, 255, 0.13);
  border: 1px solid rgba(26, 177, 255, 0.16);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(26, 177, 255, 0.22);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 20, 26, 0.5));
}

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

.hero-dots button {
  width: 16px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(184, 216, 232, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 42px;
  background: var(--ocean-400);
}

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

.content-section {
  padding: 58px 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 10%, rgba(26, 177, 255, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(0, 40, 64, 0.86), rgba(0, 20, 26, 0.94));
  box-shadow: var(--shadow-ocean);
}

.compact-hero {
  padding: 46px;
}

.page-hero h1,
.section-head h2,
.detail-copy h1,
.detail-text h2 {
  margin: 0;
  line-height: 1.15;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  color: var(--text-soft);
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--ocean-400);
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0, 40, 64, 0.82), rgba(0, 20, 26, 0.92));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 177, 255, 0.44);
  box-shadow: 0 24px 50px rgba(0, 153, 230, 0.18);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(0, 20, 26, 0.9);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 13, 18, 0.88));
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: white;
  background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.02rem;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--ocean-400);
}

.movie-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(184, 216, 232, 0.45);
}

.movie-tags span {
  padding: 4px 8px;
  font-size: 0.72rem;
}

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

.category-panel,
.category-overview-card,
.filter-panel,
.detail-text article {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.category-panel {
  padding: 22px;
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-panel h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.category-panel p,
.category-overview-card small {
  color: var(--text-soft);
  margin: 0;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0, 20, 26, 0.54);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: rgba(26, 177, 255, 0.1);
  transform: translateX(4px);
}

.mini-card img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card small {
  color: var(--text-muted);
  margin-top: 2px;
}

.category-overview-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 177, 255, 0.42);
}

.thumb-stack {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.34;
}

.thumb-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 13, 18, 0.2), rgba(0, 13, 18, 0.96));
}

.category-overview-card strong,
.category-overview-card small,
.category-overview-card em {
  position: relative;
  z-index: 2;
}

.category-overview-card strong {
  font-size: 1.5rem;
}

.category-overview-card em {
  width: fit-content;
  font-style: normal;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 26px;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 54px 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0, 40, 64, 0.62);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(4px);
  border-color: rgba(26, 177, 255, 0.42);
  background: rgba(0, 85, 128, 0.32);
}

.rank-num {
  color: var(--ocean-400);
  font-size: 1.22rem;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-body strong,
.rank-body small {
  display: block;
}

.rank-body small {
  color: var(--text-muted);
  margin-top: 3px;
}

.rank-arrow {
  color: var(--teal-400);
  font-weight: 900;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 10%, rgba(26, 177, 255, 0.14), transparent 30rem),
    linear-gradient(135deg, rgba(0, 40, 64, 0.86), rgba(0, 20, 26, 0.94));
  box-shadow: var(--shadow-ocean);
  padding: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 3;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.12rem;
  margin: 18px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  border: 1px solid rgba(26, 177, 255, 0.22);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: white;
  background: radial-gradient(circle at center, rgba(0, 153, 230, 0.28), rgba(0, 0, 0, 0.58));
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 1.08rem;
}

.player-start[hidden],
.player-shell.is-playing .player-start {
  display: none;
}

.player-start-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
  box-shadow: 0 14px 38px rgba(0, 153, 230, 0.36);
  padding-left: 5px;
}

.detail-text article {
  padding: 30px;
}

.detail-text h2 {
  font-size: 1.55rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.detail-text h2 + p {
  color: var(--text-soft);
  margin-top: 0;
}

.genre-line {
  margin-top: 20px;
}

.empty-state {
  text-align: center;
  color: var(--text-soft);
  padding: 38px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 20, 26, 0.54);
}

.site-footer {
  margin-top: 40px;
  padding: 38px 0 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 20, 26, 0.98));
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.footer-grid strong {
  font-size: 1.25rem;
}

.footer-grid p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.js-filter-item.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .nav-links,
  .header-search {
    display: none;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 60px;
    padding-bottom: 96px;
  }

  .hero-poster {
    width: min(330px, 78vw);
    transform: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell,
  .mobile-menu,
  .footer-copy {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    height: 68px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .hero {
    margin-top: 68px;
    min-height: 690px;
  }

  .hero-content {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 15vw, 4.2rem);
  }

  .content-section {
    padding: 42px 0;
  }

  .compact-hero,
  .detail-layout,
  .detail-text article {
    padding: 22px;
  }

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

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

  .movie-card p,
  .movie-tags {
    display: none;
  }

  .rank-row a {
    grid-template-columns: 42px 46px 1fr;
  }

  .rank-row img {
    width: 46px;
    height: 62px;
  }

  .rank-arrow {
    display: none;
  }

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

  .mobile-menu form {
    flex-direction: column;
  }
}
