:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-900: #0c4a6e;
  --amber-300: #fcd34d;
  --amber-400: #f59e0b;
  --amber-500: #d97706;
  --warm-50: #fafaf9;
  --warm-100: #f5f5f4;
  --warm-200: #e7e5e4;
  --warm-300: #d6d3d1;
  --warm-500: #78716c;
  --warm-700: #44403c;
  --warm-800: #292524;
  --warm-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--warm-900);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #f5f5f4 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.35);
}

.brand-text {
  font-size: 21px;
  color: var(--warm-900);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--warm-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-700);
  background: var(--sky-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--warm-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--warm-800);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 18px;
  background: var(--warm-50);
}

.hero-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.45), transparent 34%), linear-gradient(135deg, var(--sky-900), #020617 72%);
  box-shadow: var(--shadow-xl);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-image.image-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(720px, 88%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  color: #ffffff;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 22px 0 10px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.12;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-tags,
.tag-row,
.detail-meta,
.inline-links,
.category-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.inline-links a,
.category-pill-row a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.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: 0 18px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn.soft,
.btn.ghost-dark {
  color: var(--sky-700);
  background: var(--sky-50);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-panel {
  min-height: 560px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff, var(--sky-50));
  box-shadow: var(--shadow-md);
}

.hero-panel h2,
.search-card h2,
.section-heading h2,
.content-panel h2 {
  margin: 0;
  color: var(--warm-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-panel p {
  color: var(--warm-500);
}

.hero-rank-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hero-rank-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--warm-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-rank-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-rank-link span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--sky-600);
  font-weight: 900;
}

.hero-rank-link strong {
  display: block;
  color: var(--warm-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-rank-link em {
  color: var(--warm-500);
  font-size: 13px;
  font-style: normal;
}

.panel-link,
.section-heading a {
  display: inline-flex;
  align-items: center;
  color: var(--sky-700);
  font-weight: 850;
}

.panel-link {
  margin-top: 22px;
}

.search-section,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-content-grid,
.next-prev,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-section,
.content-section,
.player-section {
  padding: 34px 0;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 540px);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-200);
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 140px;
  gap: 10px;
}

.site-search,
.filter-select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--warm-200);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--warm-800);
  background: var(--warm-50);
  outline: none;
}

.site-search:focus,
.filter-select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

.section-heading.light h2,
.section-heading.light a,
.section-heading.light .section-kicker {
  color: #ffffff;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(231, 229, 228, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.movie-card[hidden] {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.7), transparent 26%), linear-gradient(135deg, var(--sky-700), var(--warm-900));
}

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

.poster-link:hover img {
  transform: scale(1.06);
}

.poster-link img.image-missing,
.detail-poster img.image-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.poster-link img:not(.image-missing) + .poster-fallback,
.detail-poster img:not(.image-missing) + .poster-fallback {
  opacity: 0;
}

.rank-badge,
.rank-number,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
}

.rank-badge,
.rank-number {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.32);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--warm-500);
  font-size: 13px;
  font-weight: 750;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--warm-900);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--warm-500);
  font-size: 14px;
}

.tag-row span {
  color: var(--sky-700);
  background: var(--sky-50);
}

.compact-card .movie-card-body {
  padding: 14px;
}

.compact-card h3 {
  font-size: 16px;
}

.compact-card p {
  min-height: 44px;
  font-size: 13px;
}

.category-band {
  margin: 30px 0;
  padding: 56px 0;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-900));
}

.category-band > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-pill-row {
  margin-top: 20px;
}

.category-pill-row a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.alt-bg {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, var(--sky-50), #ffffff);
}

.alt-bg .section-heading,
.alt-bg .movie-grid {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  margin-top: 28px;
  padding: 54px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: radial-gradient(circle at top right, rgba(252, 211, 77, 0.38), transparent 28%), linear-gradient(135deg, var(--warm-900), var(--sky-900));
  color: #ffffff;
  box-shadow: var(--shadow-xl);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.inline-links {
  margin-top: 20px;
}

.inline-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

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

.category-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--warm-200);
  box-shadow: var(--shadow-sm);
}

.category-card-main {
  display: block;
}

.category-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--sky-600);
  font-weight: 900;
}

.category-card h3 {
  margin: 16px 0 8px;
  font-size: 25px;
  line-height: 1.2;
}

.category-card p {
  margin: 0;
  color: var(--warm-500);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-50);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--warm-500);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--sky-700);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  margin-top: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--sky-50));
  border: 1px solid var(--warm-200);
  box-shadow: var(--shadow-md);
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.72), transparent 26%), linear-gradient(135deg, var(--sky-700), var(--warm-900));
  box-shadow: var(--shadow-md);
}

.poster-fallback.large {
  font-size: 40px;
}

.detail-info {
  align-self: center;
}

.detail-one-line {
  margin: 18px 0;
  color: var(--warm-700);
  font-size: 19px;
}

.detail-meta span {
  color: var(--warm-800);
  background: var(--warm-100);
}

.detail-tags {
  margin-top: 18px;
}

.video-player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

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

.play-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.32);
  font-size: 28px;
}

.video-player-card.is-ready .play-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 34px 0;
}

.content-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--warm-200);
  box-shadow: var(--shadow-sm);
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.genre-row {
  margin-top: 16px;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 20px;
}

.next-prev a {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--sky-700);
  background: #ffffff;
  border: 1px solid var(--warm-200);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0 24px;
  color: var(--warm-300);
  background: var(--warm-900);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-shell p {
  max-width: 560px;
  color: var(--warm-300);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 18px;
  align-content: start;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(214, 211, 209, 0.16);
  color: var(--warm-500);
  text-align: center;
}

@media (max-width: 1080px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    width: 100%;
    padding: 34px;
  }

  .hero-dots {
    left: 34px;
  }

  .search-card,
  .detail-hero,
  .detail-content-grid,
  .footer-shell,
  .category-grid,
  .next-prev {
    grid-template-columns: 1fr;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 34px;
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .hero-wrap,
  .search-section,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-content-grid,
  .next-prev,
  .breadcrumb,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-carousel {
    min-height: 640px;
  }

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

  .hero-content {
    padding: 26px;
  }

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

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

  .detail-hero,
  .search-card,
  .content-panel,
  .category-card {
    padding: 20px;
  }
}
