:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --text-main: #111827;
  --text-soft: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 66px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.3);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-links a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #fff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(37, 99, 235, 0.25), transparent 32%),
    linear-gradient(135deg, #020617, #172554 54%, #0f172a);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.6), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 92px 22px 120px;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.32);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: 21px;
  line-height: 1.85;
}

.hero-actions,
.hero-meta,
.search-row,
.section-head,
.card-meta,
.tags,
.pager,
.rank-row,
.breadcrumb,
.detail-meta,
.player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.36);
}

.btn.secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.meta-pill,
.tag,
.year-badge,
.region-badge,
.type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.meta-pill {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

main {
  min-height: 60vh;
}

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

.section {
  padding: 64px 0;
}

.section.white {
  background: #fff;
}

.section.dark {
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), #172554, var(--slate-900));
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

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

.section-desc {
  margin: 10px 0 0;
  color: var(--text-soft);
  max-width: 780px;
  line-height: 1.8;
}

.dark .section-desc {
  color: #cbd5e1;
}

.search-panel {
  margin-top: -56px;
  position: relative;
  z-index: 10;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(20px);
}

.search-row input,
.search-row select {
  min-height: 46px;
  flex: 1 1 210px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--text-main);
  background: #fff;
}

.search-row input:focus,
.search-row select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

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

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

.movie-card,
.category-card,
.rank-card,
.info-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

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

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

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 60%);
  transition: opacity 0.22s ease;
}

.movie-card:hover .cover::after,
.rank-card:hover .cover::after {
  opacity: 1;
}

.year-badge,
.region-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  color: #fff;
}

.year-badge {
  right: 12px;
  background: rgba(2, 6, 23, 0.75);
}

.region-badge,
.type-badge {
  left: 12px;
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 850;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--cyan-500);
}

.card-desc {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #64748b;
  font-size: 13px;
  justify-content: space-between;
}

.tags {
  margin-top: 14px;
  gap: 8px;
}

.tag {
  padding: 5px 9px;
  color: #0369a1;
  background: #e0f2fe;
}

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

.category-card {
  padding: 24px;
  min-height: 180px;
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), #1d4ed8 58%, var(--cyan-500));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
}

.category-card p {
  margin: 0 0 18px;
  color: #dbeafe;
  line-height: 1.7;
}

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

.rank-row {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.rank-row img {
  width: 108px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row h3 {
  margin: 0 0 6px;
}

.rank-row p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 26%),
    linear-gradient(90deg, var(--slate-900), #172554, var(--slate-900));
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #93c5fd;
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.player-card,
.detail-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  font-size: 30px;
  box-shadow: 0 20px 55px rgba(6, 182, 212, 0.4);
  cursor: pointer;
}

.detail-body {
  padding: 28px;
}

.detail-body h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.detail-body h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-body p {
  color: #334155;
  line-height: 1.9;
  margin: 0 0 14px;
}

.detail-meta {
  color: #64748b;
  margin-bottom: 18px;
}

.side-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.side-content {
  padding: 22px;
}

.side-content h2 {
  margin: 0 0 14px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: #e0f2fe;
  transform: translateX(4px);
}

.related-item img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.related-item strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), #020617);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

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

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 14px;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 22px 24px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 12px 22px 18px;
    background: var(--slate-800);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }

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

  .grid,
  .grid.small,
  .category-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .hero-content {
    min-height: 590px;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 18px;
  }

  .container {
    width: min(100% - 30px, 1200px);
  }

  .hero-content {
    padding: 76px 16px 110px;
  }

  .hero p {
    font-size: 17px;
  }

  .grid,
  .grid.small,
  .category-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }

  .rank-row {
    align-items: flex-start;
  }

  .rank-row img {
    width: 90px;
  }

  .detail-body,
  .side-content {
    padding: 20px;
  }
}
