: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;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --cyan-500: #06b6d4;
  --cyan-50: #ecfeff;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 45%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(20, 184, 166, 0.16);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--slate-900);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.25);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal-700);
  background: rgba(20, 184, 166, 0.10);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.10);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--slate-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(20, 184, 166, 0.12);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 650;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: var(--white);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-badges span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.88);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.18);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.32);
}

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

.primary-button:hover {
  background: var(--teal-600);
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px 70px;
}

.content-stack {
  display: grid;
  gap: 64px;
}

.content-section {
  scroll-margin-top: 86px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.search-panel {
  margin: 0 0 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 184, 166, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.search-label {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
}

.site-search {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 14px;
  outline: 0;
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.92);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(20, 184, 166, 0.20);
  border-radius: 999px;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-weight: 750;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: var(--teal-500);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
  display: grid;
  height: 100%;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-900);
}

.movie-card-tall .card-cover {
  aspect-ratio: 3 / 4;
}

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

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

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

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span:first-child,
.detail-meta span:first-child {
  color: var(--teal-700);
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 750;
}

.horizontal-strip {
  display: flex;
  gap: 18px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.compact-card {
  position: relative;
  width: 290px;
  min-width: 290px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
  background: var(--slate-900);
}

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

.compact-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.08));
}

.compact-overlay strong {
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
}

.compact-overlay em {
  margin-top: 4px;
  color: #67e8f9;
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

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

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.90), rgba(13, 148, 136, 0.20));
}

.category-card-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.category-card-copy strong {
  color: var(--white);
  font-size: 22px;
}

.category-card-copy em {
  color: #d1fae5;
  line-height: 1.7;
  font-style: normal;
}

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

.ranking-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.ranking-item a {
  min-height: 112px;
  padding: 12px;
  display: grid;
  grid-template-columns: 54px 144px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.ranking-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
  font-weight: 900;
}

.ranking-item img {
  width: 144px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ranking-copy strong {
  color: var(--slate-900);
  font-size: 18px;
}

.ranking-copy em {
  color: var(--teal-700);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.ranking-copy span {
  color: var(--slate-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-600);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side,
.detail-box {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.detail-main {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 22px 22px 0 0;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.24));
  cursor: pointer;
}

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

.player-cover span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  font-size: 30px;
  box-shadow: 0 20px 45px rgba(20, 184, 166, 0.36);
}

.player-loading {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.68);
  font-size: 13px;
}

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

.detail-copy {
  padding: 26px;
}

.detail-copy h1 {
  margin: 12px 0 12px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

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

.detail-article {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.detail-article h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 22px;
}

.detail-article p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.95;
}

.detail-side {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.detail-side h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 22px;
}

.side-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-link:hover {
  background: var(--slate-100);
}

.side-link img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  color: var(--slate-900);
  line-height: 1.45;
}

.side-link span {
  display: block;
  margin-top: 5px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 800;
}

.no-results {
  display: none;
  padding: 26px;
  border-radius: 18px;
  text-align: center;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.76);
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  margin-top: 56px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #134e4a 52%, #164e63);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-logo {
  color: var(--white);
}

.footer-group h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-group a:hover {
  color: #5eead4;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(94, 234, 212, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 60px;
    padding: 0 14px;
  }

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

  .mobile-panel.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 0 18px 86px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-arrow {
    top: auto;
    bottom: 78px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .page-shell {
    padding: 30px 14px 54px;
  }

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

  .compact-card {
    width: 240px;
    min-width: 240px;
  }

  .ranking-item a {
    grid-template-columns: 44px 92px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-item img {
    width: 92px;
    height: 62px;
  }

  .ranking-copy span {
    display: none;
  }

  .side-link {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .side-link img {
    width: 96px;
    height: 62px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
