:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 42%, #eef7fb);
  font-family: 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 {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
  max-width: 1240px;
  height: 78px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--white);
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.38);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--cyan-400);
  font-size: 12px;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.82);
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 14px;
  padding: 10px 15px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #0f172a;
}

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

.mobile-link {
  display: block;
  padding: 11px 12px;
  border-radius: 13px;
  color: #cbd5e1;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--cyan-400);
  background: rgba(148, 163, 184, 0.12);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input {
  width: 100%;
}

.main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 16%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(135deg, #020617, #0f2a57 54%, #075985);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72) 48%, rgba(8, 47, 73, 0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 680px;
  margin: 0 auto;
  padding: 80px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
}

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

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.5);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #cffafe;
  font-size: clamp(17px, 2.2vw, 23px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f172a;
  background: #e0f7fb;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #dffcff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-link,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 12px 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  padding: 12px 22px;
  color: #ecfeff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(2, 6, 23, 0.45);
  transform: rotate(1.5deg);
}

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

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.35);
}

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

.hero-dots button {
  width: 40px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.section {
  padding: 72px 22px;
}

.section.alt {
  background: linear-gradient(180deg, #ffffff, #f1f8fb);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

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

.section-head h2,
.page-title h1 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.section-link,
.filter-btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 10px 16px;
  color: #0e7490;
  background: #ecfeff;
}

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

.category-tile {
  position: relative;
  min-height: 172px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.category-tile::after {
  content: "▶";
  position: absolute;
  right: 18px;
  bottom: 6px;
  font-size: 76px;
  opacity: 0.12;
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  opacity: 0.9;
}

.g1 { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.g2 { background: linear-gradient(135deg, #f97316, #dc2626); }
.g3 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.g4 { background: linear-gradient(135deg, #059669, #0d9488); }
.g5 { background: linear-gradient(135deg, #111827, #475569); }
.g6 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.g7 { background: linear-gradient(135deg, #ea580c, #b91c1c); }
.g8 { background: linear-gradient(135deg, #0891b2, #4f46e5); }
.g9 { background: linear-gradient(135deg, #ca8a04, #ea580c); }
.g10 { background: linear-gradient(135deg, #334155, #0f172a); }

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

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

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

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

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(15, 23, 42, 0.18));
  transition: opacity 0.25s ease;
}

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

.play-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.corner-label,
.year-label,
.rank-num {
  position: absolute;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.corner-label {
  top: 10px;
  right: 10px;
}

.year-label {
  left: 10px;
  bottom: 10px;
}

.rank-num {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  margin: 0 0 7px;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: #0891b2;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 11px;
  color: var(--slate-600);
  font-size: 13px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 12px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-item:hover {
  border-color: rgba(6, 182, 212, 0.42);
}

.rank-item span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
  grid-column: 3;
}

.page-hero {
  padding: 72px 22px 36px;
  color: var(--white);
  background: radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.22), transparent 34%),
    linear-gradient(135deg, #020617, #0f172a 48%, #164e63);
}

.page-title {
  max-width: 1240px;
  margin: 0 auto;
}

.page-title h1,
.page-title p {
  color: var(--white);
}

.page-title p {
  color: #cffafe;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #020617, #0f172a 44%, #075985);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(2px) saturate(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.68));
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 68px 22px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(2, 6, 23, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  color: #a5f3fc;
  font-size: 14px;
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #dffcff;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  padding: 48px 22px;
  background: #020617;
}

.player-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.45);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.28);
}

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

.player-cover button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 24px 50px rgba(6, 182, 212, 0.34);
  font-size: 32px;
  cursor: pointer;
}

.content-section {
  padding: 54px 22px;
}

.detail-content {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.text-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
}

.search-empty {
  display: none;
  padding: 30px;
  border-radius: 20px;
  color: var(--slate-600);
  background: #f8fafc;
  text-align: center;
}

.search-empty.is-visible {
  display: block;
}

.site-footer {
  padding: 46px 22px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 20px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

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

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 16px;
}

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

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

@media (max-width: 960px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 54px;
  }

  .hero-poster {
    width: min(320px, 70vw);
    margin: 0 auto;
  }

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

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

  .detail-poster {
    width: min(320px, 80vw);
  }

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

@media (max-width: 720px) {
  .header-inner {
    height: 70px;
    padding: 0 16px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .section {
    padding: 50px 16px;
  }

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

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    min-height: 720px;
    padding: 42px 16px 78px;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-dots {
    bottom: 22px;
  }

  .page-hero {
    padding: 48px 16px 28px;
  }

  .detail-inner {
    padding: 42px 16px;
  }

  .player-section,
  .content-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
