:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --orange: #f97316;
  --red: #ef4444;
  --green: #16a34a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.28), transparent 32%),
              radial-gradient(circle at 88% 80%, rgba(37, 99, 235, 0.38), transparent 34%),
              linear-gradient(135deg, #0f172a 0%, #1e3a8a 47%, #0891b2 100%);
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-glow-one {
  top: 6%;
  left: 5%;
  background: #22d3ee;
}

.hero-glow-two {
  right: 8%;
  bottom: 8%;
  background: #60a5fa;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  position: absolute;
  inset: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.eyebrow {
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.hero-copy p,
.page-hero p {
  max-width: 780px;
  margin: 0 0 26px;
  color: rgba(219, 234, 254, 0.94);
  font-size: 18px;
}

.hero-tags,
.meta-row,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.meta-row span,
.detail-meta span,
.rank-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.ghost-dark-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.hero-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.34);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(30, 64, 175, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
}

.ghost-dark-btn {
  color: var(--blue-dark);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.38);
  transform: perspective(1200px) rotateY(-4deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster::after,
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.72));
}

.hero-poster:hover img,
.poster-link:hover img {
  transform: scale(1.07);
}

.hero-play,
.play-badge,
.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
}

.hero-play {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  width: 70px;
  height: 70px;
  font-size: 30px;
}

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

.hero-dots:empty {
  display: none;
}

.hero-dots button {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #67e8f9;
}

.hero-search,
.page-search {
  margin-top: 28px;
  max-width: 720px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-search label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.hero-search div {
  display: flex;
  gap: 10px;
}

.hero-search input,
.page-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.page-search {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.section {
  padding: 72px 0;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.fresh-section {
  background: linear-gradient(135deg, #ecfdf5, #eef2ff);
}

.category-section {
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.dark-rank-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
}

.dark-rank-section .section-title-row p,
.dark-rank-section .section-more {
  color: #bfdbfe;
}

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

.section-title-row h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-title-row p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card,
.rank-item,
.category-overview-card,
.side-card,
.detail-article {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  font-size: 22px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge,
.rank-cover:hover + div .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.corner-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.movie-info {
  padding: 18px;
}

.movie-info h3,
.rank-item h3,
.category-overview-card h2 {
  margin: 0 0 10px;
  line-height: 1.35;
}

.movie-info h3 {
  font-size: 18px;
}

.movie-info h3 a:hover,
.rank-item h3 a:hover,
.category-overview-card h2 a:hover,
.text-link:hover {
  color: var(--blue);
}

.movie-info p,
.rank-item p,
.category-overview-card p,
.detail-article p,
.side-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.meta-row span,
.detail-meta span,
.rank-meta span,
.tag-row span {
  color: #475569;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wide-card {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.wide-card .poster-link {
  height: 100%;
  aspect-ratio: auto;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.dark-rank-section .rank-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.rank-cover {
  position: relative;
  display: block;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-meta strong {
  color: #f59e0b;
}

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

.category-tile {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-tile.blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.category-tile.red { background: linear-gradient(135deg, #ef4444, #ec4899); }
.category-tile.green { background: linear-gradient(135deg, #16a34a, #10b981); }
.category-tile.orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.category-tile.purple { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.category-tile.pink { background: linear-gradient(135deg, #db2777, #f43f5e); }
.category-tile.teal { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.category-tile.gold { background: linear-gradient(135deg, #d97706, #f59e0b); }
.category-tile.cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.category-tile.slate { background: linear-gradient(135deg, #334155, #0f172a); }

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background: radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.25), transparent 32%),
              linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0e7490);
}

.small-hero,
.category-hero,
.search-hero,
.rank-hero {
  padding: 64px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(219, 234, 254, 0.84);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 18px;
}

.cover-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  min-height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
}

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

.text-link {
  display: inline-flex;
  gap: 6px;
  color: var(--blue);
  font-weight: 900;
}

.all-list {
  align-items: stretch;
}

.detail-hero {
  padding: 36px 0 54px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #0e7490);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
}

.player-card {
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
  z-index: 2;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  color: var(--blue);
  font-size: 34px;
}

.detail-side {
  display: grid;
  gap: 16px;
}

.detail-poster {
  width: 100%;
  height: 378px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.detail-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-radius: 24px;
  color: #facc15;
  font-size: 38px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.side-card {
  padding: 28px;
}

.detail-article h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-article h2,
.side-card h2,
.site-footer h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-article h2:first-of-type,
.side-card h2:first-child {
  margin-top: 0;
}

.detail-tags {
  margin: 18px 0 26px;
}

.lead-text {
  font-size: 18px;
  font-weight: 800;
  color: #334155 !important;
}

.side-btn {
  width: 100%;
  margin-top: 12px;
}

.site-footer {
  padding: 48px 0 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 12px 0 0;
}

.site-footer a:hover {
  color: #67e8f9;
}

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

[data-card][hidden] {
  display: none !important;
}

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

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

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

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .detail-side {
    grid-template-columns: 220px 1fr;
  }

  .detail-poster {
    height: 280px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero-section {
    padding: 42px 0 36px;
  }

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

  .hero-slide {
    display: none;
    position: static;
  }

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

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

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

  .hero-search div,
  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .wide-grid,
  .rank-grid,
  .full-rank,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .detail-poster {
    display: none;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 520px) {
  .rank-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .rank-cover {
    height: 86px;
  }

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