:root {
  --bg: #f8fafc;
  --bg-soft: #eef6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0284c7;
  --brand-2: #2563eb;
  --brand-3: #06b6d4;
  --dark: #0f172a;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand {
  font-size: 22px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-weight: 650;
  font-size: 15px;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #eef6ff;
  color: var(--brand);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.32), transparent 30%),
    linear-gradient(120deg, #0284c7 0%, #2563eb 54%, #06b6d4 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%);
  background-size: 64px 64px;
}

.hero-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 20px 112px;
}

.hero-slider {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #cffafe;
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e0f2fe;
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: 13px;
}

.hero-section .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  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: var(--brand);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.20);
}

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

.btn.soft {
  color: #ecfeff;
  background: rgba(15, 23, 42, 0.22);
}

.hero-poster,
.poster-frame,
.rank-poster,
.overview-cover,
.detail-poster {
  position: relative;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(135deg, #0ea5e9, #1d4ed8 55%, #06b6d4);
}

.hero-poster::after,
.poster-frame::after,
.rank-poster::after,
.overview-cover::after,
.detail-poster::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 14px 14px 14px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.45);
  z-index: 1;
}

.hero-poster img,
.poster-frame img,
.rank-poster img,
.overview-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
  transform: rotate(2deg);
}

.hero-poster img {
  transition: transform 0.35s ease;
}

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

.hero-dots {
  position: absolute;
  left: 20px;
  bottom: 58px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

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

.stats-strip {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: -58px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 112px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--brand);
  font-size: 24px;
  margin-bottom: 5px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px 0;
}

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

.section-heading h2,
.panel-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more,
.text-link,
.panel-title a,
.rank-category {
  color: var(--brand);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(145deg, #0ea5e9, #1d4ed8 62%, #06b6d4);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  font-size: 30px;
  margin-bottom: 8px;
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 22px;
}

.category-card em {
  position: relative;
  z-index: 2;
  display: block;
  font-style: normal;
  color: #cffafe;
  margin-top: 4px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  font-size: 14px;
  color: #e0f2fe;
}

.category-card img {
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 130px;
  height: 178px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.28;
  transform: rotate(10deg);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  transition: transform 0.28s ease;
}

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

.year-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.card-meta a,
.card-meta span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-meta a {
  color: var(--brand);
  background: #e0f2fe;
  font-weight: 800;
}

.movie-card h3 {
  margin: 12px 0 8px;
  line-height: 1.35;
  font-size: 17px;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
  color: var(--brand);
}

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

.card-tags {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.ranking-panel {
  position: sticky;
  top: 88px;
  border-radius: var(--radius);
  background: #0f172a;
  color: #e2e8f0;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-title a {
  color: #7dd3fc;
}

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

.ranking-panel li a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #7dd3fc;
  font-weight: 900;
}

.ranking-panel strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-panel em {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.cta-band,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(125, 211, 252, 0.28), transparent 30%),
    linear-gradient(120deg, #0284c7, #2563eb 64%, #06b6d4);
  color: #ffffff;
}

.cta-band {
  max-width: 1180px;
  margin: 72px auto 0;
  border-radius: 30px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.cta-band p {
  margin: 0;
  color: #e0f2fe;
}

.page-hero {
  padding: 82px 20px;
}

.page-hero > div,
.detail-hero > div,
.detail-grid,
.breadcrumb {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1,
.detail-info h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-info p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: var(--text);
  background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.13);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.quick-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--brand);
  background: #e0f2fe;
  font-weight: 800;
  font-size: 14px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.overview-cover {
  min-height: 190px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}

.overview-cover img {
  border-radius: 14px;
}

.category-overview-card span {
  color: var(--brand);
  font-weight: 800;
}

.category-overview-card h2 {
  margin: 8px 0 8px;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 120px 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.rank-poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: var(--brand);
  font-weight: 900;
  font-size: 20px;
}

.rank-info h2 {
  margin: 8px 0;
  font-size: 24px;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-hero {
  padding: 34px 20px 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #dbeafe;
  margin-bottom: 34px;
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 800;
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.detail-info .tag-cloud {
  margin: 18px 0 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.20);
}

.detail-section {
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.player-card {
  padding: 16px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.media-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 142px;
  height: 142px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.96), rgba(37, 99, 235, 0.90));
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.34);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.player-wrap.is-started .player-start {
  opacity: 0;
  pointer-events: none;
}

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

.text-panel {
  padding: 26px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: #475569;
}

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

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

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

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 6px 0;
  }

  .hero-shell {
    padding: 58px 20px 96px;
  }

  .hero-slider {
    min-height: 690px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    max-width: 280px;
    justify-self: center;
  }

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

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

  .filter-bar,
  .article-section,
  .footer-grid,
  .detail-grid,
  .rank-card,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .cta-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .quick-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .quick-links a {
    width: 100%;
  }

  .stats-strip,
  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 50px;
  }

  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rank-card {
    gap: 12px;
  }

  .rank-poster {
    width: 120px;
  }
}
