:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --text: #111827;
  --muted: #64748b;
  --panel: #ffffff;
  --line: rgba(148, 163, 184, 0.25);
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --emerald: #10b981;
  --teal: #14b8a6;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f8fafc;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 55%, #0f172a);
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.3);
}

.nav-shell {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-links a,
.mobile-menu a,
.mobile-cats a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover,
.mobile-cats a:hover {
  color: #fb923c;
}

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

.nav-search input,
.quick-search input,
.page-search input,
.filter-panel input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  min-width: 230px;
}

.nav-search input::placeholder,
.quick-search input::placeholder,
.page-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.nav-search button,
.quick-search button,
.page-search button,
.hot-link,
.btn-primary,
.btn-ghost {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-search button:hover,
.quick-search button:hover,
.page-search button:hover,
.hot-link:hover,
.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
}

.mobile-menu {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 14px;
  flex-direction: column;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 10px;
}

.hero-carousel {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(236, 72, 153, 0.25), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.28));
}

.hero-inner {
  position: absolute;
  inset: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 22px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 60px;
  color: white;
}

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

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker,
.section-head span,
.rank-title span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: white;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.hero-kicker strong {
  color: #fde68a;
  font-size: 18px;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.95;
  margin: 0 0 24px;
  letter-spacing: -0.04em;
}

.hero-copy p {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 30px;
  backdrop-filter: blur(14px);
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fb923c;
}

.quick-panel,
.section-wrap,
.split-section,
.category-band,
.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 22px;
}

.quick-panel {
  margin-top: -56px;
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
}

.quick-panel h2,
.quick-panel p {
  margin: 0;
}

.quick-panel h2 {
  font-size: 30px;
}

.quick-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.quick-search {
  display: flex;
  gap: 10px;
  background: #0f172a;
  padding: 8px;
  border-radius: 999px;
}

.quick-search input {
  min-width: 280px;
}

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

.section-head h2,
.rank-title h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--orange);
  font-weight: 900;
}

.section-head.light {
  color: white;
}

.section-head.light a {
  color: #fed7aa;
}

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

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

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

.movie-card {
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.card-score {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fde68a;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-content h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 10px 0 8px;
}

.card-content h3 a:hover {
  color: var(--orange);
}

.card-content p {
  color: #475569;
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row span {
  background: #f1f5f9;
  color: #475569;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-large .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.soft-bg {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-radius: 34px;
}

.dark-section {
  max-width: none;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  color: white;
}

.dark-section .movie-grid,
.dark-section .section-head {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.category-band {
  max-width: none;
  background: linear-gradient(135deg, #0f172a, #111827 45%, #831843);
  color: white;
}

.category-band .section-head,
.category-grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-tile,
.category-card a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-card a:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
}

.category-tile span,
.category-number {
  font-weight: 900;
  color: #fed7aa;
}

.category-tile strong,
.category-card h2 {
  font-size: 24px;
  margin: 0;
}

.category-tile em,
.category-card p {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.rank-page-list {
  background: #0f172a;
  color: white;
  padding: 24px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  font-weight: 900;
  color: #fb923c;
}

.rank-item img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  display: grid;
  gap: 6px;
}

.rank-copy strong {
  line-height: 1.35;
}

.rank-copy em {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
}

.rank-score {
  color: #fde68a;
  font-weight: 900;
}

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

.page-hero {
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
  padding: 46px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.36), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin: 16px 0 12px;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  font-size: 18px;
}

.page-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px;
  backdrop-filter: blur(16px);
}

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

.category-card a {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

.category-preview {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.category-preview img {
  width: 64px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
  background: #f1f5f9;
  color: #0f172a;
  min-width: 320px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tags button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff7ed;
  color: #c2410c;
  cursor: pointer;
  font-weight: 800;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  margin: 10px 0 28px;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 36px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.28), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 18px 0;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
  max-width: 860px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
}

.detail-play-link {
  display: inline-flex;
  margin-top: 28px;
}

.player-section {
  padding: 38px 0 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 36px 80px rgba(2, 6, 23, 0.36);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.34);
  font-size: 34px;
  padding-left: 5px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: 28px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

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

.content-card {
  background: white;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  color: #475569;
  line-height: 1.9;
  margin: 0;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  color: white;
  background: linear-gradient(135deg, #020617, #0f172a);
  margin-top: 42px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}

.footer-grid h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  margin: 10px 0;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 30px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner,
  .split-section,
  .detail-hero,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .quick-search {
    width: 100%;
  }

  .quick-search input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 20px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-inner {
    padding-top: 58px;
  }

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

  .hero-copy p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .quick-panel,
  .section-wrap,
  .split-section,
  .category-band,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .all-grid,
  .compact-grid,
  .category-overview-grid,
  .rank-page-list,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel input {
    min-width: 0;
    width: 100%;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 26px;
  }

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

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