:root {
  --page-bg: #f6f9ff;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text: #122033;
  --muted: #65758a;
  --line: rgba(99, 115, 138, 0.18);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 24px 70px rgba(15, 37, 66, 0.14);
  --soft-shadow: 0 14px 38px rgba(15, 37, 66, 0.10);
  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:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.15), transparent 32rem),
    radial-gradient(circle at 92% 14%, rgba(6, 182, 212, 0.18), transparent 30rem),
    linear-gradient(135deg, #f9fbff 0%, #eef7ff 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-miss {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 37, 66, 0.08);
}

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

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-link {
  white-space: nowrap;
  color: #526276;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eef6ff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 18px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 28px 72px;
}

.hero-section {
  min-height: 85vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 34px;
}

.hero-intro,
.page-hero,
.detail-copy,
.article-section,
.ranking-panel,
.category-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-intro {
  border-radius: 32px;
  padding: clamp(26px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.hero-intro h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-intro p,
.page-hero p,
.detail-copy p,
.article-section p,
.category-overview-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-buttons,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.25s ease;
}

.primary-button,
.section-more {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.24);
}

.ghost-button,
.text-link {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.09);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.search-panel {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.70);
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  color: #526276;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  background: #eef6ff;
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-card {
  position: relative;
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  isolation: isolate;
}

.hero-card img,
.category-tile img,
.category-cover img,
.poster img,
.wide-rank-cover img,
.detail-poster img {
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  transition: transform 0.7s ease;
}

.hero-card:hover img,
.category-tile:hover img,
.poster:hover img,
.category-cover:hover img,
.wide-rank-cover:hover img,
.detail-poster:hover img {
  transform: scale(1.08);
}

.hero-shade,
.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.05));
  z-index: 1;
}

.hero-content,
.category-tile-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  color: #ffffff;
  padding: 26px;
}

.hero-label {
  width: max-content;
  color: #cffafe;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-content strong {
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1.05;
}

.hero-content em,
.category-tile-copy em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.7;
}

.hero-action {
  width: max-content;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}

.content-section {
  margin-top: 46px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.06em;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  box-shadow: var(--soft-shadow);
}

.category-tile-copy strong {
  font-size: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.is-hidden {
  display: none;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #718197;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(37, 99, 235, 0.08);
}

.movie-card h3,
.wide-rank-copy h2 {
  margin: 12px 0 8px;
  line-height: 1.25;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(6, 182, 212, 0.11);
}

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

.ranking-panel {
  position: sticky;
  top: 102px;
  border-radius: 30px;
  padding: 22px;
}

.ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ranking-head h2 {
  margin: 0;
  font-size: 28px;
}

.ranking-head a {
  color: var(--blue);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.07);
  transition: all 0.2s ease;
}

.rank-item:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.rank-num {
  color: var(--blue);
  font-weight: 900;
  font-size: 20px;
}

.rank-item:hover .rank-num,
.rank-item:hover .rank-meta {
  color: #ffffff;
}

.rank-title {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  margin-top: 28px;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 62px);
}

.slim-hero {
  max-width: 980px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
}

.category-cover {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mini-links a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #155e75;
  background: rgba(6, 182, 212, 0.11);
  font-weight: 800;
  font-size: 13px;
}

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

.wide-rank {
  display: grid;
  grid-template-columns: 76px 118px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.wide-rank-num {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 22px;
  padding: 16px 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.wide-rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  box-shadow: var(--shadow);
}

.detail-copy {
  border-radius: 30px;
  padding: clamp(26px, 5vw, 60px);
}

.lead-text {
  font-size: 20px;
}

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

.detail-meta span {
  color: #0f172a;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.09);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 520px;
  background: #050b17;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  min-height: 520px;
  background: #050b17;
}

.watch-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.48), transparent 24rem);
}

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.34);
}

.watch-overlay strong {
  font-size: 24px;
}

.article-section {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 46px);
}

.article-section h2 {
  margin: 18px 0 8px;
  font-size: 30px;
}

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

.next-links a {
  border-radius: 22px;
  padding: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: var(--soft-shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 900;
  color: var(--blue);
}

@media (max-width: 1280px) {
  .hero-section,
  .split-section,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 520px;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    padding: 0 18px;
  }

  main {
    padding: 0 18px 54px;
  }

  .hero-grid,
  .category-overview-grid,
  .next-links {
    grid-template-columns: 1fr;
  }

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

  .category-cover {
    min-height: 220px;
  }

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

  .wide-rank {
    grid-template-columns: 56px 88px 1fr;
  }

  .detail-poster {
    min-height: 430px;
  }

  .player-shell,
  .movie-player {
    min-height: 360px;
  }
}

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

  .brand-subtitle {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-card {
    min-height: 420px;
  }

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

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wide-rank-num {
    width: max-content;
    padding: 10px 14px;
  }

  .wide-rank-cover {
    max-width: 180px;
  }
}
