:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --orange-500: #f97316;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background:
    radial-gradient(circle at 12% 3%, rgba(34, 211, 238, 0.16), transparent 26rem),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, #eef8ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan-400), #60a5fa);
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.48);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(90deg) scale(1.04);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--cyan-400), #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-400);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.header-search input {
  width: 210px;
  padding: 9px 14px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  transition: width 0.25s ease;
}

.header-search input:focus {
  width: 280px;
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  cursor: pointer;
}

.header-search button {
  padding: 9px 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
  border: 0;
  border-radius: 12px;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.08);
}

.hero-overlay,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 75% 28%, rgba(34, 211, 238, 0.24), transparent 28rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.64));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 78px 0 110px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #cffafe;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.18);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1,
.search-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 19px;
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.42), rgba(96, 165, 250, 0.18));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--cyan-400);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 5;
}

.stats-strip a {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.stats-strip strong {
  color: var(--cyan-400);
  font-size: 27px;
}

.stats-strip span {
  color: rgba(226, 232, 240, 0.82);
}

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

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

.section-head h2,
.story-block h2,
.related-block h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 31px;
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.section-more {
  color: #0369a1;
  background: #e0f2fe;
}

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

.category-tile {
  min-height: 190px;
  padding: 26px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.34), transparent 9rem),
    linear-gradient(135deg, var(--slate-900), #0e7490);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  display: block;
  font-size: 23px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-top: 16px;
  color: var(--cyan-400);
  font-size: 42px;
}

.category-tile small {
  display: block;
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.7;
}

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

.list-grid {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.38s ease;
}

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

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  border-radius: 999px;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), #ef4444);
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.32);
}

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

.movie-card h3,
.compact-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p,
.compact-card p {
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.movie-card p {
  min-height: 74px;
  font-size: 14px;
}

.meta-line {
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 9px;
  color: #94a3b8;
}

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

.tag-row span {
  color: #0e7490;
  background: #ecfeff;
}

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

.wide-rank {
  grid-template-columns: repeat(2, 1fr);
}

.compact-card {
  display: flex;
  gap: 16px;
  min-height: 142px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
  box-shadow: var(--shadow-card);
}

.compact-thumb {
  position: relative;
  flex: 0 0 110px;
  overflow: hidden;
  border-radius: 15px;
  background: #dbeafe;
}

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

.compact-body {
  min-width: 0;
  padding: 5px 0;
}

.compact-body p {
  font-size: 14px;
}

.page-hero,
.search-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), #164e63);
}

.page-hero,
.search-hero {
  padding: 78px 16px;
  text-align: center;
}

.page-hero h1,
.search-hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p,
.search-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.search-page-form {
  display: flex;
  width: min(760px, 100%);
  margin: 28px auto 0;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 17px 22px;
  border: 0;
  outline: 0;
}

.search-page-form button {
  padding: 0 30px;
}

.search-summary {
  min-height: 32px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.page-link,
.page-ellipsis {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  color: var(--slate-700);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.page-link.is-current,
.page-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.detail-hero {
  padding: 80px 0 70px;
  min-height: 520px;
}

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

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.detail-cover {
  padding: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.detail-category {
  display: inline-flex;
  padding: 8px 13px;
  color: #cffafe;
  font-weight: 900;
  background: rgba(8, 145, 178, 0.28);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
}

.detail-info h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 70px);
}

.detail-one-line {
  max-width: 850px;
  margin: 20px 0 0;
  color: rgba(226, 232, 240, 0.94);
  font-size: 20px;
  line-height: 1.85;
}

.detail-meta {
  margin-top: 22px;
}

.large-tags span {
  color: #cffafe;
  background: rgba(14, 116, 144, 0.28);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

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

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

.video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.64));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  color: #00111a;
  font-size: 38px;
  background: linear-gradient(135deg, var(--cyan-400), #93c5fd);
  border-radius: 999px;
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.5);
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  padding: 50px 0 80px;
}

.story-block,
.related-block {
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.story-block h2:not(:first-child) {
  margin-top: 30px;
}

.story-block p {
  margin: 14px 0 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 2;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-brand {
  color: var(--cyan-400);
  font-size: 24px;
}

.site-footer p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 17px;
}

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

.site-footer a:hover {
  color: var(--cyan-400);
}

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

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .mobile-panel {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    padding: 20px;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.32);
  }

  body.menu-open .mobile-panel {
    display: grid;
    gap: 15px;
  }

  .mobile-panel a {
    padding: 10px 0;
    color: #fff;
  }

  .mobile-search {
    display: flex;
    overflow: hidden;
    background: #fff;
    border-radius: 999px;
  }

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

  .mobile-search button {
    padding: 0 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-poster {
    width: min(320px, 70vw);
  }

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

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

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

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 48px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-strip,
  .category-grid,
  .movie-grid,
  .list-grid,
  .rank-list,
  .wide-rank {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-info h1 {
    font-size: 38px;
  }

  .detail-one-line {
    font-size: 17px;
  }

  .video-player {
    border-radius: 18px;
  }

  .compact-card {
    min-height: 126px;
  }

  .compact-thumb {
    flex-basis: 92px;
  }

  .search-page-form {
    border-radius: 22px;
  }

  .search-page-form input {
    padding: 15px;
  }

  .search-page-form button {
    padding: 0 18px;
  }
}
