:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-light: #ecfeff;
  --gold: #facc15;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
  font-size: 15px;
}

.nav-toggle {
  display: none;
  color: #fff;
  font-size: 24px;
  border: 0;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-links a {
  color: #dbeafe;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #67e8f9;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #1e293b;
  color: #94a3b8;
}

.top-search input {
  width: 100%;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

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

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

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: #fff;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 28px;
  color: #cbd5e1;
}

.hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.28);
}

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

.btn-ghost {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  font-size: 26px;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--cyan);
}

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

.main-space {
  padding: 56px 0 24px;
}

.section {
  margin-bottom: 68px;
}

.section-panel {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f1f5f9, #ecfeff);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.section-dark {
  padding: 34px;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.28), transparent 42%), #0f172a;
  box-shadow: var(--shadow);
}

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

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-dark .section-title p {
  color: #cbd5e1;
}

.title-icon {
  width: 8px;
  height: 30px;
  display: inline-block;
  border-radius: 10px;
  background: var(--cyan);
  margin-right: 12px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.card-small .poster-wrap {
  height: 180px;
}

.card-large .poster-wrap {
  height: 330px;
}

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

.movie-card-link:hover img {
  transform: scale(1.08);
}

.poster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-layer {
  opacity: 1;
}

.play-badge {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.3);
}

.corner-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(236, 254, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body h3 {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta-row span:first-child {
  color: #d97706;
  font-weight: 800;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile strong {
  font-size: 24px;
  margin-bottom: 10px;
}

.category-tile p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
}

.category-tile span {
  color: var(--cyan-dark);
  font-weight: 800;
}

.year-lane {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.year-stamp {
  text-align: right;
  color: #67e8f9;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.compact-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.compact-card span {
  display: block;
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  display: block;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 64px 0 28px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #111827 56%, #164e63);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

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

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.filter-bar button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #0f172a;
  background: #e0f2fe;
  font-weight: 800;
}

.filter-bar button.is-active {
  color: #fff;
  background: var(--cyan-dark);
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #020617;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), rgba(0, 0, 0, 0.55));
}

.player-button {
  position: absolute;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.35);
  font-size: 30px;
  padding-left: 5px;
}

.detail-content,
.side-panel {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
}

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

.info-item {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
}

.info-item b {
  display: block;
  color: #0f172a;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.tags span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-weight: 750;
  font-size: 13px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

.side-link:hover {
  transform: translateY(-2px);
  background: #ecfeff;
}

.side-link img {
  width: 74px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

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

.side-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cyan-dark);
  font-weight: 900;
}

.rank-row img {
  width: 86px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.rank-row h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.rank-score {
  color: #d97706;
  font-size: 22px;
  font-weight: 900;
}

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

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 36px;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

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

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

.cover-empty {
  opacity: 0.18;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 23, 42, 0.98);
  }

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

  .top-search {
    min-width: 100%;
  }

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

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

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 24px, 1200px);
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    min-height: 68vh;
  }

  .main-space {
    padding-top: 36px;
  }

  .section-panel,
  .section-dark,
  .detail-content,
  .side-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .poster-wrap,
  .card-small .poster-wrap,
  .card-large .poster-wrap {
    height: 230px;
  }

  .year-lane {
    grid-template-columns: 1fr;
  }

  .year-stamp {
    text-align: left;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 68px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-row img {
    width: 68px;
    height: 88px;
  }

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

@media (max-width: 440px) {
  .movie-grid,
  .movie-grid.large-grid,
  .compact-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }
}

.region-stack {
  display: grid;
  gap: 34px;
}

.lane-title {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  color: #334155;
  font-size: 22px;
  font-weight: 850;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}

.sample-links a {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  white-space: nowrap;
  text-overflow: ellipsis;
}
