:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0f766e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-700);
  font-weight: 600;
}

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  padding: 10px 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-800);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-950), var(--teal));
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(16, 185, 129, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.66) 42%, rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 110px 0 96px;
  color: var(--white);
}

.hero-kicker,
.card-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--white);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.search-form button {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.28);
}

.primary-button:hover,
.search-form button:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px) scale(1.02);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

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

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel,
.category-strip,
.content-section,
.split-section,
.detail-layout,
.related-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  position: relative;
  z-index: 5;
  margin-top: -35px;
}

.search-form {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  outline: 0;
  padding: 13px 18px;
  color: var(--slate-900);
  background: var(--slate-50);
}

.search-form input:focus {
  border-color: rgba(5, 150, 105, 0.7);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.category-strip,
.content-section,
.split-section {
  padding: 64px 0 0;
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--slate-600);
}

.text-link {
  color: var(--emerald-dark);
  font-weight: 800;
}

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

.category-pill {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: var(--white);
  padding: 18px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
  color: var(--emerald-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-pill span {
  font-size: 18px;
  font-weight: 800;
}

.category-pill small {
  color: var(--slate-500);
}

.movie-grid,
.feature-grid,
.showcase-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.feature-card,
.category-showcase,
.detail-card,
.side-card,
.rank-panel,
.showcase-panel {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--slate-800), var(--teal));
}

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

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

.play-float {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.92);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: scale(1);
}

.rank-badge,
.heat-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  padding: 6px 9px;
  text-align: center;
  background: rgba(2, 6, 23, 0.75);
}

.heat-badge {
  right: 10px;
  top: 10px;
  padding: 6px 10px;
  background: rgba(5, 150, 105, 0.85);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.card-body .card-category {
  color: var(--emerald-dark);
  background: #d1fae5;
  padding: 4px 10px;
}

.card-body h2,
.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.meta-line span,
.detail-meta span {
  border-radius: 999px;
  background: var(--slate-100);
  padding: 4px 9px;
}

.feature-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.feature-card a,
.feature-card img {
  width: 100%;
  height: 100%;
}

.feature-card img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.feature-overlay span {
  width: fit-content;
  border-radius: 999px;
  background: var(--emerald);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.feature-overlay h3 {
  margin: 14px 0 8px;
  font-size: 25px;
  line-height: 1.2;
}

.feature-overlay p {
  margin: 0;
  color: #dbeafe;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding-bottom: 72px;
}

.rank-panel,
.showcase-panel,
.detail-card,
.side-card {
  padding: 28px;
}

.rank-list,
.showcase-list,
.side-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  border-radius: 16px;
  background: var(--slate-50);
  padding: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #ecfdf5;
  transform: translateX(3px);
}

.rank-row > span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--white);
  font-weight: 900;
}

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

.rank-row small {
  color: var(--slate-500);
}

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

.category-showcase {
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 20px;
}

.showcase-title {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 900;
}

.category-showcase p {
  margin: 0 0 16px;
  color: var(--slate-600);
  font-size: 14px;
}

.page-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.3), transparent 28%),
    linear-gradient(135deg, var(--emerald), var(--teal));
  color: var(--white);
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 82px;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #dcfce7;
  font-size: 18px;
}

.detail-main {
  background: var(--slate-50);
}

.player-section {
  background: var(--slate-950);
}

.player-shell {
  position: relative;
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000000;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle, rgba(5, 150, 105, 0.22), transparent 30%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.26));
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.95);
  box-shadow: 0 22px 48px rgba(5, 150, 105, 0.34);
  font-size: 36px;
  transform: translateX(3px);
}

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

.player-status {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--white);
  padding: 8px 14px;
  font-size: 14px;
  pointer-events: none;
}

.player-status:empty {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 28px;
  padding: 34px 0 0;
}

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

.breadcrumb a {
  color: var(--emerald-dark);
  font-weight: 700;
}

.detail-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-header img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--slate-800), var(--teal));
  box-shadow: var(--soft-shadow);
}

.detail-header h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.lead-text {
  margin: 18px 0;
  border-left: 4px solid var(--emerald);
  background: #ecfdf5;
  border-radius: 0 16px 16px 0;
  padding: 16px;
  color: var(--slate-700);
  font-weight: 600;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 6px 11px;
  font-size: 14px;
}

.text-block {
  border-top: 1px solid var(--slate-200);
  margin-top: 28px;
  padding-top: 24px;
}

.text-block h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: var(--slate-700);
  white-space: pre-line;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.prev-next a {
  border-radius: 16px;
  background: var(--slate-50);
  padding: 14px;
  color: var(--emerald-dark);
  font-weight: 800;
}

.related-section {
  padding-bottom: 76px;
}

.site-footer {
  margin-top: 30px;
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
  padding: 44px 0;
}

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

.footer-inner p {
  max-width: 560px;
  margin: 14px 0 0;
}

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

.footer-links a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

.is-filtered-out {
  display: none !important;
}

.empty-result {
  grid-column: 1 / -1;
  border-radius: 18px;
  background: var(--white);
  padding: 26px;
  color: var(--slate-600);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

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

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

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

  .menu-button {
    display: flex;
  }

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

  .hero-control {
    display: none;
  }

  .search-form,
  .section-heading,
  .footer-inner,
  .detail-header,
  .prev-next {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    display: grid;
  }

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

  .detail-header {
    display: grid;
  }

  .detail-header img {
    width: min(210px, 70%);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .search-panel,
  .category-strip,
  .content-section,
  .split-section,
  .detail-layout,
  .related-section,
  .page-hero-inner,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

  .hero-content {
    width: min(100% - 22px, 1280px);
  }

  .movie-grid,
  .ranking-grid,
  .feature-grid,
  .showcase-grid,
  .category-grid,
  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 360px;
  }

  .rank-panel,
  .showcase-panel,
  .detail-card,
  .side-card {
    padding: 20px;
  }

  .play-overlay span {
    width: 76px;
    height: 76px;
  }
}
