* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --amber-400: #fbbf24;
  --red-500: #ef4444;
  --pink-500: #ec4899;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 52%, #fffbeb 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 34px rgba(2, 6, 23, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

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

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

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

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 10px 14px;
}

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

.hero-track {
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: center;
  gap: 42px;
  padding: 72px max(32px, calc((100vw - 1180px) / 2)) 88px;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.45)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 18%, rgba(249, 115, 22, 0.35), transparent 32%), radial-gradient(circle at 85% 68%, rgba(236, 72, 153, 0.28), transparent 34%);
  pointer-events: none;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.pill-cloud,
.detail-meta,
.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions {
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #020617);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

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

.quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.quick-search-card,
.quick-category-card,
.category-card,
.text-panel,
.side-panel,
.ranking-card {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.quick-search-card,
.quick-category-card,
.category-card,
.text-panel,
.side-panel,
.ranking-card {
  padding: 26px;
}

.quick-search-card h2,
.quick-category-card h2,
.section-heading h2,
.ranking-head h2,
.text-panel h2,
.side-panel h2 {
  margin: 0;
  color: var(--slate-900);
}

.quick-search-card p,
.quick-category-card p,
.section-heading p,
.category-card p,
.text-panel p {
  color: var(--slate-600);
  line-height: 1.8;
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-weight: 700;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.pill-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--slate-800);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pill-cloud a:hover {
  transform: translateY(-2px);
  background: #ffedd5;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--orange-600), var(--red-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.small-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.92));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover,
.text-link:hover {
  color: var(--orange-600);
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.gradient-section {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.86), rgba(254, 243, 199, 0.84));
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ranking-card {
  position: sticky;
  top: 88px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ranking-head a {
  color: var(--orange-600);
  font-weight: 800;
}

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

.ranking-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.ranking-card li span,
.rank-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  font-size: 13px;
  font-weight: 900;
}

.ranking-card li a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-card li em {
  color: var(--orange-600);
  font-style: normal;
  font-weight: 900;
}

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

.category-tile,
.category-card {
  display: grid;
  gap: 12px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--white), #fff7ed);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile strong,
.category-card h2 {
  color: var(--slate-900);
  font-size: 22px;
}

.category-tile span,
.category-card p {
  color: var(--slate-600);
  line-height: 1.7;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background: radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.42), transparent 32%), linear-gradient(115deg, var(--slate-950), var(--slate-800));
}

.compact-hero {
  padding: 86px 0;
}

.compact-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.compact-hero p:not(.eyebrow) {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.page-actions {
  margin-top: 24px;
}

.listing-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 78px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 16px;
  border-radius: 20px;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-poster {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info p {
  margin: 4px 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.rank-score {
  color: var(--orange-600);
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-600);
}

.detail-hero {
  padding: 62px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #020617);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

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

.large-tags {
  margin-top: 16px;
}

.player-section {
  padding: 48px 0 20px;
  background: #020617;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.64));
}

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.45);
  font-size: 34px;
}

.play-overlay.hidden {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.text-panel h2,
.side-panel h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--slate-900);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.back-to-top.visible {
  display: inline-grid;
  place-items: center;
}

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

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

  .menu-toggle {
    display: block;
  }

  .site-header.menu-open .mobile-nav {
    display: block;
  }

  .hero-slide,
  .quick-grid,
  .two-column-layout,
  .detail-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    padding: 52px 24px 86px;
  }

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

  .ranking-card {
    position: static;
  }

  .listing-tools {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 38px 64px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-copy p,
  .detail-one-line,
  .compact-hero p:not(.eyebrow) {
    font-size: 16px;
  }

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

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

  .movie-card h2 {
    font-size: 16px;
  }

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

  .compact-hero,
  .detail-hero {
    padding: 56px 0;
  }
}

.sitemap-list {
  columns: 4 220px;
  margin: 0;
  padding-left: 18px;
}

.sitemap-list li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.sitemap-list a:hover {
  color: var(--orange-600);
}
