:root {
  --night-950: #020617;
  --night-900: #07111f;
  --night-850: #0a1424;
  --night-800: #111c2e;
  --night-700: #1b2a41;
  --night-500: #64748b;
  --night-300: #c7d2e4;
  --night-200: #e2e8f0;
  --white: #ffffff;
  --ocean-700: #0369a1;
  --ocean-600: #0284c7;
  --ocean-500: #0ea5e9;
  --ocean-400: #38bdf8;
  --moon-600: #7c3aed;
  --moon-500: #8b5cf6;
  --gold: #f59e0b;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--night-200);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem), linear-gradient(180deg, var(--night-950), var(--night-900) 36rem, var(--night-950));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.74));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-500), var(--moon-600));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.brand-text {
  letter-spacing: 0.02em;
}

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

.nav-link {
  padding: 9px 14px;
  color: var(--night-300);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(14, 165, 233, 0.13);
}

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

.header-search input,
.mobile-search input,
.filter-bar input {
  color: var(--white);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-700));
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.92);
}

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

.mobile-link {
  color: var(--night-200);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

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

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
}

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

.home-page {
  width: 100%;
}

.home-page .content-section,
.home-page .glow-panel {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 72px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: 560px;
  padding: 76px clamp(28px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 42px;
  background-size: cover;
  background-position: center;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ocean-300, #7dd3fc);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--night-200);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.card-meta,
.poster-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.card-meta span,
.poster-meta span {
  color: var(--night-200);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.hero-actions,
.panel-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: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  color: var(--night-200);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.52);
}

.hero-poster {
  justify-self: end;
  width: min(340px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.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,
.player-section h2,
.detail-text h2,
.glow-panel h2 {
  margin: 10px 0 0;
  color: var(--white);
  letter-spacing: -0.025em;
}

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

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

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

.category-tile {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 58, 237, 0.1)), rgba(15, 23, 42, 0.54);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.44);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(124, 58, 237, 0.16)), rgba(15, 23, 42, 0.7);
}

.category-tile span {
  display: block;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.category-tile p {
  color: var(--night-300);
  line-height: 1.7;
  margin: 0;
}

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

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

.poster-card,
.movie-card-wide,
.rank-card {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.58);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.poster-card {
  border-radius: 18px;
}

.poster-card:hover,
.movie-card-wide:hover,
.rank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  background: rgba(15, 23, 42, 0.78);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--night-800);
}

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

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

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

.poster-type {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.poster-play,
.play-dot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.9);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-body {
  padding: 14px;
}

.poster-body h2,
.wide-body h2,
.rank-content h2 {
  margin: 0;
  color: var(--white);
  font-size: 17px;
  line-height: 1.35;
}

.poster-body h2 a:hover,
.wide-body h2 a:hover,
.rank-content h2 a:hover {
  color: var(--ocean-400);
}

.poster-meta {
  margin-top: 10px;
}

.poster-meta span {
  font-size: 12px;
  color: var(--night-300);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
}

.rank-stack,
.wide-stack,
.rank-list {
  display: grid;
  gap: 14px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  border-radius: 18px;
}

.wide-cover,
.rank-cover {
  position: relative;
  overflow: hidden;
  background: var(--night-800);
}

.wide-cover {
  aspect-ratio: 16 / 10;
}

.wide-body,
.rank-content {
  padding: 16px;
}

.wide-body p,
.rank-content p {
  color: var(--night-300);
  line-height: 1.7;
  margin: 10px 0;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span {
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0;
  border-radius: 18px;
}

.rank-cover {
  aspect-ratio: 3 / 4;
}

.rank-badge {
  position: absolute;
  z-index: 5;
  left: 10px;
  top: 10px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--night-950);
  background: linear-gradient(135deg, #fde68a, var(--gold));
  border-radius: 999px;
  font-weight: 900;
}

.glow-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-text {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(124, 58, 237, 0.08)), rgba(15, 23, 42, 0.58);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.glow-panel {
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
}

.glow-panel p,
.page-hero p,
.detail-info p {
  color: var(--night-300);
  line-height: 1.8;
}

.glow-panel .panel-actions {
  justify-content: center;
}

.inner-page {
  padding-bottom: 32px;
}

.page-hero {
  padding: clamp(28px, 6vw, 58px);
  margin-bottom: 42px;
}

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

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.filter-bar input {
  width: min(520px, 100%);
  padding: 14px 16px;
}

.filter-bar a {
  color: var(--ocean-300, #7dd3fc);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--night-300);
  margin-bottom: 22px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(22px, 4vw, 42px);
  margin-bottom: 36px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: var(--night-800);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

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

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

.detail-meta {
  margin: 18px 0;
}

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

.player-section {
  padding: clamp(18px, 4vw, 34px);
  margin-bottom: 36px;
}

.player-section h2 {
  margin-bottom: 18px;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  box-shadow: 0 18px 46px rgba(14, 165, 233, 0.32);
  font-size: 30px;
}

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

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

.detail-text {
  padding: clamp(24px, 4vw, 38px);
}

.detail-text p {
  color: var(--night-200);
  line-height: 2;
  margin: 12px 0 24px;
}

.detail-text h2 {
  font-size: 26px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 36px 0 26px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--night-300);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--ocean-400);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
}

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

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

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

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

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

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

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .page-shell,
  .home-page .content-section,
  .home-page .glow-panel,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .home-hero {
    width: min(100% - 24px, 1280px);
    margin-bottom: 48px;
    border-radius: 22px;
  }

  .hero-slide {
    min-height: 650px;
    grid-template-columns: 1fr;
    align-content: end;
    padding: 72px 22px 76px;
  }

  .hero-poster {
    justify-self: start;
    width: min(230px, 62vw);
    order: -1;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

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

  .movie-card-wide {
    grid-template-columns: 140px minmax(0, 1fr);
  }

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

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

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

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

@media (max-width: 560px) {
  .brand-text {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

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

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .wide-cover {
    aspect-ratio: 16 / 9;
  }

  .poster-body h2,
  .wide-body h2,
  .rank-content h2 {
    font-size: 15px;
  }

  .poster-body {
    padding: 12px;
  }

  .rank-content {
    padding: 12px;
  }
}
