:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --radius: 1rem;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--slate-50), #ffffff 42%, #f8fbff);
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 80rem;
  margin: 0 auto;
  min-height: 4.25rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 1.12rem;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a,
.mobile-menu a {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.mobile-menu {
  display: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--slate-200);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
}

.mobile-menu a:hover {
  background: var(--slate-100);
}

.hero {
  position: relative;
  min-height: 600px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(120deg, #2563eb 0%, #06b6d4 54%, #14b8a6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 34%), radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.16), transparent 30%), rgba(0, 0, 0, 0.25);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 600px;
  padding: 3.5rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0faff;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-title span {
  display: block;
  color: #cffafe;
}

.hero-desc {
  margin-top: 1.4rem;
  color: #ecfeff;
  font-size: 1.2rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: #ecfeff;
}

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

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
}

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

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 25rem;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
  transform: translateZ(0);
}

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

.hero-card img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.35) 55%, transparent);
}

.hero-card h2 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 900;
}

.hero-card p {
  color: #cffafe;
  line-height: 1.7;
}

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  justify-content: center;
}

.hero-dots button {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 2rem;
  background: #ffffff;
}

.section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-soft {
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.76), rgba(207, 250, 254, 0.76));
}

.section-wide {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-head {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.2);
}

.section-icon.green {
  background: linear-gradient(135deg, var(--green), #059669);
}

.section-icon.blue {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.link-more {
  color: var(--primary);
  font-weight: 800;
}

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

.movie-grid.compact {
  gap: 1rem;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.badge {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.94);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 900;
}

.year-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(2, 6, 23, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.8rem;
  height: 2.8rem;
  transform: translate(-50%, -50%) scale(0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mini {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.38;
  font-weight: 850;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  min-height: 2.65rem;
  margin: 0 0 0.75rem;
  color: var(--slate-500);
  font-size: 0.82rem;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--slate-500);
  font-size: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  color: var(--primary);
  background: #dbeafe;
  font-weight: 800;
}

.page-hero {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid var(--slate-200);
}

.page-title {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.page-title p {
  max-width: 48rem;
  margin-top: 1rem;
  color: var(--slate-500);
  font-size: 1.05rem;
  line-height: 1.8;
}

.filter-scope {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0 0.9rem;
  color: var(--slate-900);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

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

.category-card {
  display: block;
  padding: 1.35rem;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.category-card p {
  color: var(--slate-500);
  line-height: 1.7;
  font-size: 0.92rem;
}

.category-card ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--slate-700);
  font-size: 0.86rem;
}

.category-block + .category-block {
  margin-top: 4rem;
}

.ranking-list {
  display: grid;
  gap: 1rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 4rem 7rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
}

.rank-info h2 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.rank-info p {
  color: var(--slate-500);
  line-height: 1.7;
}

.rank-score {
  min-width: 6rem;
  text-align: right;
  color: var(--primary);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #1d4ed8, #0891b2 48%, #0f766e);
  color: #ffffff;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.18), transparent 30%), rgba(2, 6, 23, 0.26);
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.cover-card {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.28);
}

.cover-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: #cffafe;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 750;
}

.detail-one-line {
  max-width: 56rem;
  color: #ecfeff;
  font-size: 1.1rem;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.watch-section,
.story-section,
.related-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 0;
}

.watch-section h2,
.story-section h2,
.related-section h2 {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.24);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020617;
  pointer-events: auto;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.1);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.18));
}

.big-play {
  position: relative;
  z-index: 2;
  width: 5.5rem;
  height: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.story-card {
  display: grid;
  gap: 1.4rem;
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.story-card p {
  color: var(--slate-700);
  font-size: 1rem;
  line-height: 1.95;
}

.site-footer {
  margin-top: 5rem;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner p,
.footer-inner a {
  color: #cbd5e1;
}

.footer-inner h2,
.footer-inner h3 {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-button {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-card {
    min-height: 20rem;
  }

  .hero-card img {
    height: 20rem;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .cover-card {
    max-width: 18rem;
  }

  .rank-card {
    grid-template-columns: 3.5rem 5rem minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
  }

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

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

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

  .hero-title {
    font-size: 2.55rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .card-body {
    padding: 0.8rem;
  }

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

  .section,
  .section-wide,
  .filter-scope,
  .watch-section,
  .story-section,
  .related-section {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .rank-card {
    grid-template-columns: 2.8rem 4.5rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .rank-number {
    width: 2.5rem;
    height: 2.5rem;
  }
}
