:root {
  color-scheme: light;
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --indigo-50: #eef2ff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --amber: #f59e0b;
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.24);
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--cyan-50), var(--blue-50) 48%, var(--indigo-50));
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

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

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate-950);
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 16px 28px rgba(8, 145, 178, 0.24);
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--slate-900);
  background: rgba(6, 182, 212, 0.12);
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 40%, rgba(6, 182, 212, 0.22), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 68vh;
  align-items: center;
  padding: 88px 0;
}

.hero-panel {
  width: min(720px, 100%);
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.badge-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-wrap: balance;
}

.hero-text {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.25);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: var(--shadow-md);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.44);
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.quick-cats {
  padding: 30px 0;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius-full);
  color: var(--slate-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.pill:hover,
.pill.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  transform: translateY(-2px);
}

.section {
  padding: 68px 0;
}

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

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan-600);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--slate-950);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.8;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: var(--shadow-lg);
}

.card-link {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.78));
}

.card-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: var(--white);
  background: rgba(6, 182, 212, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  min-width: 38px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 950;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--slate-950);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.card-text {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(150px, 0.5fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-900);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.94), rgba(37, 99, 235, 0.94));
  box-shadow: var(--shadow-md);
}

.category-card::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-card p {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.category-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-full);
  color: var(--slate-950);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 30px 0 18px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 700;
}

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

.page-hero {
  padding: 58px 0 34px;
}

.page-title {
  margin: 0;
  color: var(--slate-950);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.page-desc {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.82;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 68px;
}

.detail-main,
.detail-side,
.content-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.detail-main {
  overflow: hidden;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--slate-950);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: rgba(2, 6, 23, 0.68);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.play-button {
  position: relative;
  z-index: 5;
  display: inline-flex;
  min-width: 148px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: var(--shadow-lg);
  font-weight: 950;
}

.play-button::before {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
  content: "";
}

.detail-body {
  padding: 28px;
}

.detail-title {
  margin: 0 0 16px;
  color: var(--slate-950);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.tag {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-full);
  color: var(--cyan-600);
  background: rgba(6, 182, 212, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: var(--slate-950);
  font-size: 24px;
  font-weight: 950;
}

.article-block p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.side-cover {
  overflow: hidden;
  border-radius: 22px;
  background: var(--slate-900);
}

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

.meta-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--slate-600);
  font-size: 14px;
}

.meta-item strong {
  color: var(--slate-950);
  text-align: right;
}

.footer {
  padding: 42px 0;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

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

.empty-state {
  display: none;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  color: var(--slate-600);
  text-align: center;
  font-weight: 800;
}

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

.hidden-by-filter {
  display: none !important;
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
  }

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

  .nav-link {
    justify-content: center;
  }

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

  .hero-content {
    padding: 64px 0 92px;
  }

  .hero-dots {
    right: 20px;
    left: 20px;
    justify-content: center;
  }

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

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

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

  .detail-body {
    padding: 22px;
  }
}
