:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --muted-dark: #94a3b8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --orange: #ea580c;
  --green: #16a34a;
  --purple: #7c3aed;
  --line: #e2e8f0;
  --dark: #020617;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  opacity: 0.82;
  transition: opacity 0.3s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(37, 99, 235, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.70) 42%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 45%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
  padding-top: 120px;
  padding-bottom: 92px;
  color: #fff;
}

.hero-tags,
.tag-cloud,
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-cloud a,
.quick-filters button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-content h1 {
  max-width: 900px;
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.30);
}

.btn.secondary {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.ghost.light {
  color: #fff;
}

.btn.full {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.search-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 24px;
  align-items: center;
  padding: 26px 0;
}

.search-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.global-search,
.filter-input-wrap {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.global-search input,
.filter-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 10px;
}

.global-search button,
.filter-input-wrap button,
.quick-filters button {
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}

.global-search button,
.filter-input-wrap button {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.section-block {
  padding: 58px 0;
}

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

.section-heading h2,
.ranking-panel h2,
.story-card h2,
.category-overview-head h2,
.sitemap-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--primary);
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.orange {
  color: var(--orange);
}

.eyebrow.green {
  color: var(--green);
}

.eyebrow.purple {
  color: var(--purple);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 99, 235, 0.35), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b 52%, #312e81);
}

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

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

.movie-badge,
.movie-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(8px);
}

.movie-badge {
  left: 12px;
}

.movie-year {
  right: 12px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.38);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 17px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-info h3 a:hover {
  color: var(--primary);
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card {
  display: block;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), transparent 32%),
    #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card > span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

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

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.story-card,
.next-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.rank-list,
.ranking-panel ol {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.rank-no {
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 850;
}

.rank-item p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-item span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.page-main {
  min-height: 60vh;
}

.page-hero.small {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 16%, rgba(96, 165, 250, 0.32), transparent 28%),
    linear-gradient(135deg, #020617 0%, #172554 55%, #312e81 100%);
}

.page-hero.small p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.page-hero.small h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.category-overview-list {
  display: grid;
  gap: 26px;
  padding: 56px 0;
}

.category-overview-card {
  padding: 28px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.category-overview-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-tools {
  margin-bottom: 28px;
}

.filter-input-wrap {
  max-width: 760px;
  margin-bottom: 14px;
  border-radius: 18px;
}

.quick-filters button {
  color: var(--primary);
  background: var(--primary-soft);
}

.filter-empty {
  display: none;
  margin: 22px 0 0;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fff;
}

.filter-empty.show {
  display: block;
}

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

.detail-main {
  background: #fff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 56px;
  color: #fff;
  background: #020617;
}

.detail-bg,
.detail-bg-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  filter: blur(2px);
}

.detail-bg-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.52)),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.detail-wrap {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 30px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.35), transparent 26%),
    rgba(2, 6, 23, 0.24);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: #bfdbfe;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.detail-one-line {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
}

.info-list dt {
  color: var(--muted-dark);
}

.info-list dd {
  margin: 0;
  color: #fff;
  font-weight: 750;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 48px 0 8px;
}

.story-card {
  padding: 30px;
}

.story-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.tag-cloud a {
  color: var(--primary);
  background: var(--primary-soft);
}

.next-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 18px;
}

.next-panel a {
  display: block;
  padding: 14px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}

.sitemap-list {
  display: grid;
  gap: 26px;
  padding: 50px 0;
}

.sitemap-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.sitemap-section ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sitemap-section a:hover {
  color: var(--primary);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.site-footer a:hover {
  color: #60a5fa;
}

@media (max-width: 1024px) {
  .movie-grid.four-cols,
  .category-grid,
  .sitemap-section ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-panel,
  .next-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-control {
    display: none;
  }

  .search-panel,
  .footer-grid,
  .rank-page .rank-list.large {
    grid-template-columns: 1fr;
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .movie-grid.two-cols,
  .category-grid,
  .sitemap-section ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-head {
    flex-direction: column;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .movie-grid.two-cols,
  .category-grid,
  .sitemap-section ul {
    grid-template-columns: 1fr;
  }

  .global-search,
  .filter-input-wrap {
    border-radius: 20px;
    flex-direction: column;
  }

  .global-search button,
  .filter-input-wrap button {
    width: 100%;
  }

  .section-block {
    padding: 42px 0;
  }

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