:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --amber-400: #fbbf24;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

img.image-missing {
  opacity: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand span:last-child,
.footer-brand span:last-child {
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan-400), #60a5fa);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.38);
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--cyan-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 30%), #020617;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.46) 48%, rgba(2, 6, 23, 0.18) 100%),
    radial-gradient(circle at 20% 70%, rgba(6, 182, 212, 0.34), transparent 36%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.4);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

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

.hero-meta,
.detail-meta,
.card-meta {
  color: #64748b;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  color: #f8fafc;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
}

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

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

.button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.3);
  background: rgba(15, 23, 42, 0.54);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.52);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.78);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 28%, rgba(6, 182, 212, 0.32), transparent 32%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #111827 100%);
}

.page-hero h1,
.detail-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.section {
  padding: 58px 0;
}

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

.section-title h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 32px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: -6px;
  background: var(--cyan-500);
}

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

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

.feature-grid .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

.movie-row {
  display: flex;
  gap: 22px;
  padding-bottom: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.movie-row .movie-card {
  flex: 0 0 245px;
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 28% 22%, rgba(34, 211, 238, 0.28), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.feature-grid .movie-card:first-child .poster-frame {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-frame img,
.compact-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.badge,
.year-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.badge {
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  background: rgba(6, 182, 212, 0.92);
}

.year-pill {
  top: 12px;
  right: 12px;
  padding: 7px 9px;
  background: rgba(2, 6, 23, 0.76);
}

.play-float {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #001018;
  background: rgba(103, 232, 249, 0.92);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.32;
}

.card-body h3 a:hover {
  color: #0891b2;
}

.card-meta {
  margin: 0 0 10px;
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.search-panel {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

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

.empty-state {
  margin: 36px 0 0;
  padding: 28px;
  border-radius: 18px;
  color: #475569;
  text-align: center;
  background: #ffffff;
}

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

.category-tile {
  display: block;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.18), transparent 35%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-900);
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 78px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-num {
  color: #0891b2;
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-text strong,
.rank-text em,
.rank-text small {
  display: block;
}

.rank-text strong {
  margin-bottom: 6px;
  color: var(--slate-900);
  font-size: 17px;
}

.rank-text em {
  display: -webkit-box;
  overflow: hidden;
  color: #475569;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-text small {
  margin-top: 8px;
  color: #64748b;
}

.rank-score {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
  background: #0f172a;
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.detail-tags .tag {
  color: #a5f3fc;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(8, 47, 73, 0.62);
}

.player-section {
  padding: 52px 0 24px;
  background: #020617;
}

.player-section h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.18), transparent 28%),
    #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(2, 6, 23, 0.26));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan-400), #60a5fa);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.36);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.content-card {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.compact-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #0f172a;
}

.compact-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.compact-info strong {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-900);
}

.compact-info em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0 28px;
}

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 17px;
}

.footer-grid a {
  display: block;
  margin: 0 0 10px;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    height: 78vh;
    min-height: 560px;
  }

  .hero-content {
    bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .feature-grid,
  .movie-grid,
  .rank-list,
  .category-grid,
  .footer-grid,
  .detail-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid .movie-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-grid {
    align-items: start;
  }

  .detail-poster {
    max-width: 260px;
  }

  .section-title {
    display: block;
  }
}

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

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .page-hero,
  .detail-hero {
    padding: 48px 0;
  }

  .movie-row .movie-card {
    flex-basis: 220px;
  }

  .rank-item a {
    grid-template-columns: 38px 64px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .content-card {
    padding: 22px;
  }
}
