* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.26);
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --slate: #0f172a;
  --soft: 0 20px 60px rgba(15, 23, 42, 0.10);
  --card: 0 18px 38px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 44%, #eef4ff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #1d4ed8;
  background: #dbeafe;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 10px;
  background: #1e3a8a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
  color: #1d4ed8;
  background: #dbeafe;
}

.quick-cats {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.quick-cats a:hover {
  color: #1d4ed8;
  background: #dbeafe;
}

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

.hero {
  position: relative;
  margin: 28px auto 34px;
  min-height: 600px;
  border-radius: 34px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.hero-slide {
  display: none;
  min-height: 600px;
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  display: block;
}

.hero-content {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: end;
  gap: 32px;
  padding: 56px;
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.36), transparent 20rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.22) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 13px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 999px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-ghost {
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section-head .btn-ghost {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}


.hero-panel {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.hero-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.hero-mini {
  display: grid;
  gap: 12px;
}

.hero-mini a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-mini a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-thumb {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
}

.hero-mini strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 14px;
}

.hero-mini em {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

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

.hero-dot {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.search-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 26px 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--card);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  outline: none;
  background: #ffffff;
}

.search-box input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.section {
  margin: 36px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h1,
.section h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 800px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-color: #1e293b;
  background-position: center;
  background-size: cover;
}

.poster-link b,
.poster-link span {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.poster-link b {
  left: 12px;
  background: #2563eb;
}

.poster-link .rank-no {
  background: #0f172a;
}

.poster-link span {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: #2563eb;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 10px 0;
  color: #64748b;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.card-body p {
  min-height: 66px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 9px;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 188px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.24), transparent 8rem),
    #ffffff;
  box-shadow: var(--card);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: #2563eb;
  font-weight: 900;
}

.rank-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card);
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #eff6ff;
  transform: translateX(4px);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #0f172a;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
}

.rank-cover {
  width: 54px;
  height: 72px;
  border-radius: 13px;
  background-color: #1e293b;
  background-position: center;
  background-size: cover;
}

.rank-text strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
}

.rank-text em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.rank-score {
  padding: 7px 10px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  margin: 30px 0 46px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  color: #64748b;
  font-size: 13px;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.player-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--card);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.36), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.82));
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.42);
  cursor: pointer;
}

.play-button::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 27px;
  width: 0;
  height: 0;
  border-left: 24px solid #ffffff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.detail-title {
  padding: 24px;
}

.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-title p {
  margin: 14px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}

.info-card {
  margin-top: 22px;
  padding: 24px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

.info-card p {
  margin: 0 0 16px;
  color: #334155;
  line-height: 1.9;
}

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

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #334155;
}

.meta-list strong {
  color: #0f172a;
}

.side-poster {
  min-height: 430px;
  border-radius: 28px;
  background-color: #1e293b;
  background-position: center;
  background-size: cover;
  box-shadow: var(--soft);
}

.side-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--card);
}

.side-box h2,
.side-box h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-box .rank-item {
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 9px;
}

.side-box .rank-index {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-radius: 11px;
}

.side-box .rank-cover,
.side-box .rank-score {
  display: none;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pager a {
  padding: 12px 16px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  font-weight: 900;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 480px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 15px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 24px;
  border: 1px dashed #bfdbfe;
  border-radius: 22px;
  color: #475569;
  background: #eff6ff;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1060px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-panel {
    max-width: 560px;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand-copy em {
    display: none;
  }

  .hero {
    margin-top: 18px;
    min-height: 540px;
    border-radius: 24px;
  }

  .hero-slide,
  .hero-content {
    min-height: 540px;
  }

  .hero-content {
    padding: 30px;
    align-items: center;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(34px, 13vw, 54px);
  }

  .hero p {
    font-size: 15px;
  }

  .hero-panel {
    display: none;
  }

  .hero-dots {
    left: 30px;
  }

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

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

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

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

  .detail-layout {
    gap: 18px;
  }

  .side-poster {
    min-height: 360px;
  }

  .rank-item {
    grid-template-columns: 40px 46px 1fr;
  }

  .rank-score {
    display: none;
  }

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

@media (max-width: 420px) {
  main,
  .header-inner,
  .quick-cats,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content {
    padding: 24px;
  }

  .card-body p {
    min-height: auto;
  }
}
