:root {
  --bg: #f0f9ff;
  --bg-soft: #e0f2fe;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --brand: #0284c7;
  --brand-strong: #2563eb;
  --brand-soft: #bae6fd;
  --shadow: 0 18px 45px rgba(14, 116, 144, 0.14);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button, input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.72);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.26);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #e0f2fe;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0f9ff;
  color: #075985;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide.active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 32%, rgba(14, 165, 233, 0.52), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.38) 48%, rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 44%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: 24px;
  bottom: 76px;
  max-width: 760px;
  color: #ffffff;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.22);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

.hero-meta,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-meta span,
.detail-meta-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-actions,
.quick-links,
.footer-links,
.tag-cloud,
.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-btn {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.primary-btn:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--brand);
  color: #ffffff;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.left {
  left: 24px;
}

.hero-arrow.right {
  right: 24px;
}

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

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

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

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.top-space {
  padding-top: 34px;
}

.content-section {
  margin: 60px 0;
}

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

.section-head h2,
.page-title-card h1,
.side-panel h2,
.detail-info-block h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head p,
.page-title-card p,
.side-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  min-width: max-content;
  background: #e0f2fe;
  color: #075985;
}

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

.small-grid {
  gap: 18px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(186, 230, 253, 0.74);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 165, 233, 0.34);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #bae6fd, #dbeafe 48%, #e0f2fe);
}

.card-cover.wide {
  aspect-ratio: 16 / 10;
}

.cover-img,
.card-cover img,
.rank-cover img,
.detail-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card:hover .cover-img,
.category-card:hover img {
  transform: scale(1.08);
}

.image-off {
  opacity: 0;
}

.corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 132, 199, 0.88);
  backdrop-filter: blur(10px);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.2);
}

.card-body {
  padding: 18px;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3,
.rank-info h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.tag-row {
  margin-top: 14px;
  gap: 8px;
}

.tag-row span,
.tag-cloud span,
.tag-cloud a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
  background: #e0f2fe;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
}

.rail-card {
  width: 320px;
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.featured-band {
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.92), rgba(219, 234, 254, 0.92));
  box-shadow: var(--shadow);
}

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

.side-panel,
.page-title-card,
.search-panel,
.article-card,
.detail-info-block,
.player-card,
.detail-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(186, 230, 253, 0.74);
  box-shadow: var(--shadow-soft);
}

.side-panel,
.page-title-card,
.search-panel,
.article-card,
.detail-info-block {
  padding: 30px;
}

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

.category-link-grid a,
.quick-links a,
.filter-chip {
  padding: 12px 14px;
  border-radius: 16px;
  color: #075985;
  font-weight: 800;
  background: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-link-grid a:hover,
.quick-links a:hover,
.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  transform: translateY(-1px);
}

.category-preview {
  margin: 26px 0 38px;
}

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

.category-title-row h3 {
  margin: 0;
  font-size: 24px;
}

.category-title-row a {
  color: var(--brand);
  font-weight: 800;
}

.list-stack {
  display: grid;
  gap: 18px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card.horizontal .card-cover {
  height: 100%;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(186, 230, 253, 0.74);
  box-shadow: var(--shadow-soft);
}

.compact-rank .rank-item {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #bae6fd, #eff6ff);
}

.rank-number {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.heat-score {
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  color: #075985;
  font-weight: 900;
  background: #e0f2fe;
}

.page-title-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
}

.page-title-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.26), transparent 70%);
}

.page-title-card h1 {
  margin-top: 18px;
}

.search-panel {
  margin: 28px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
}

.search-panel h2 {
  margin: 14px 0 0;
  font-size: 24px;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-row {
  grid-column: 1 / -1;
}

.filter-chip {
  border: 0;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.18));
}

.category-card img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.category-hero-card .quick-links {
  margin-top: 20px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-card {
  padding: 12px;
}

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

.video-element {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

.player.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #0f172a;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 45px rgba(14, 165, 233, 0.26);
}

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

.detail-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #bae6fd, #dbeafe);
}

.detail-card .detail-meta-list {
  margin: 16px 0 2px;
}

.detail-card .detail-meta-list span {
  color: #075985;
  background: #e0f2fe;
  border-color: rgba(14, 165, 233, 0.18);
}

.detail-info-block {
  margin-top: 28px;
}

.detail-info-block h1 {
  margin: 18px 0 14px;
}

.lead-text {
  margin: 0;
  color: #334155;
  font-size: 19px;
  line-height: 1.9;
}

.tag-cloud {
  margin-top: 20px;
}

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

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #334155;
  line-height: 2;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(186, 230, 253, 0.74);
  background: rgba(255, 255, 255, 0.72);
}

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

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  justify-content: end;
  align-content: start;
  max-width: 480px;
}

.footer-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 700;
}

.footer-bottom {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .two-column,
  .detail-top {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 24px;
    bottom: 72px;
  }

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

  .hero-arrow {
    display: none;
  }

  .page-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1280px);
  }

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

  .section-head,
  .footer-inner {
    display: grid;
  }

  .search-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }

  .movie-card.horizontal,
  .rank-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .rank-item .heat-score {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
    padding: 0 14px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-meta span {
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .featured-band,
  .page-title-card,
  .search-panel,
  .side-panel,
  .article-card,
  .detail-info-block {
    padding: 22px;
    border-radius: 22px;
  }

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

  .detail-card img {
    max-height: 520px;
  }

  .rank-info p,
  .movie-card p {
    -webkit-line-clamp: 2;
  }
}
