:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #0d9488;
  --orange: #f97316;
  --red: #ef4444;
  --green: #22c55e;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f3f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 999px;
}

.nav-search input,
.mobile-search input,
.filter-panel input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 170px;
  color: #0f172a;
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 24px;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-link {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  border-radius: 16px;
  background: #f1f5f9;
}

.mobile-search input {
  flex: 1;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-cats a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 52%, #0f766e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 86% 30%, rgba(14, 165, 233, 0.36), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04));
}

.hero-shell {
  position: relative;
  max-width: 1180px;
  min-height: 660px;
  margin: 0 auto;
  padding: 82px 20px 94px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.section-kicker {
  color: var(--blue);
  background: #dbeafe;
}

.section-kicker.green {
  color: #15803d;
  background: #dcfce7;
}

.section-kicker.orange {
  color: #c2410c;
  background: #ffedd5;
}

.section-kicker.red {
  color: #b91c1c;
  background: #fee2e2;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-copy p {
  margin: 0;
  max-width: 640px;
  color: #e0f2fe;
  font-size: 20px;
}

.hero-tags,
.detail-tags-top,
.tag-row,
.detail-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags-top span,
.tag-row span,
.detail-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
}

.primary-btn,
.ghost-btn,
.more-link,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--blue);
  background: #fff;
  padding: 13px 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.ghost-btn {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  padding: 11px 22px;
}

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

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 12px;
}

.hero-metrics div {
  display: grid;
  gap: 2px;
}

.hero-metrics strong {
  font-size: 30px;
  line-height: 1;
}

.hero-metrics span {
  color: #bfdbfe;
  font-size: 13px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 38px 80px rgba(15, 23, 42, 0.38);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.poster-chip,
.poster-title {
  position: absolute;
  z-index: 1;
  left: 24px;
}

.poster-chip {
  top: 24px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.poster-title {
  right: 24px;
  bottom: 22px;
  font-size: 24px;
  font-weight: 950;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section-shell,
.footer-shell,
.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-panel h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 950;
  color: #0f172a;
}

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.more-link,
.text-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  padding: 10px 16px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.movie-row,
.category-overview-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.movie-row:hover,
.category-overview-card:hover,
.side-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dbeafe;
}

.card-cover img,
.row-cover img,
.category-card img,
.category-cover-stack img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-float {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.row-main h3,
.side-card h2,
.category-overview-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover,
.row-main h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--blue);
}

.card-body p,
.row-main p,
.side-card p,
.category-overview-card p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

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

.movie-row {
  display: grid;
  grid-template-columns: 146px 1fr;
  min-height: 118px;
}

.row-cover {
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.row-main {
  padding: 16px;
}

.row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.row-rank {
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 230px;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

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

.category-card span,
.category-card p {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}

.category-card span {
  bottom: 66px;
  font-size: 21px;
  font-weight: 950;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  color: #dbeafe;
  font-size: 13px;
}

.blue-band {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
}

.band-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.band-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.band-card strong {
  font-size: 26px;
}

.band-card span {
  color: #dbeafe;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2, #0f766e);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.page-hero-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: #e0f2fe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 14px;
}

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

.filter-panel {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
}

.filter-buttons button.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}

.category-cover-stack img {
  aspect-ratio: 1 / 1;
}

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

.rank-list .movie-row {
  grid-template-columns: 180px 1fr;
}

.detail-shell {
  padding-top: 34px;
}

.detail-breadcrumb {
  margin: 0 0 22px;
  color: #64748b;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.58));
  color: #fff;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
  font-size: 28px;
}

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

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

.detail-tags-top span {
  color: #0369a1;
  background: #e0f2fe;
}

.detail-panel h1 {
  margin-top: 16px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 24px;
  color: #64748b;
  font-weight: 800;
}

.text-section {
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.text-section + .text-section {
  margin-top: 22px;
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.text-section p {
  margin: 0 0 12px;
  color: #334155;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 18px;
}

.poster-side img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  margin-bottom: 14px;
}

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

.side-related-list .movie-row {
  grid-template-columns: 110px 1fr;
  min-height: 86px;
  box-shadow: none;
}

.side-related-list .row-main {
  padding: 10px;
}

.side-related-list .row-main p {
  display: none;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero-shell {
    min-height: auto;
    padding: 56px 20px 78px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    transform: none;
  }

  .card-grid-three,
  .card-grid-four,
  .row-grid,
  .rank-grid,
  .category-grid,
  .band-shell,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding: 12px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-metrics {
    gap: 16px;
  }

  .section-shell,
  .footer-shell,
  .detail-shell {
    padding: 44px 14px;
  }

  .movie-row,
  .rank-list .movie-row,
  .side-related-list .movie-row {
    grid-template-columns: 118px 1fr;
  }

  .row-main {
    padding: 12px;
  }

  .row-main p {
    display: none;
  }

  .detail-panel {
    padding: 20px;
  }
}
