:root {
  color-scheme: light;
  --page-bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --line-soft: #e2e8f0;
  --card-bg: #ffffff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --cyan-400: #22d3ee;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #052e2b;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-400));
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
  font-weight: 900;
}

.brand-name {
  font-size: 1.26rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  color: #e2e8f0;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #34d399;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.header-search {
  margin-left: auto;
  width: min(310px, 32vw);
  position: relative;
}

.header-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  outline: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  padding: 11px 92px 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder,
.filter-input::placeholder {
  color: #94a3b8;
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  background: rgba(15, 23, 42, 0.9);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #052e2b;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 12px 0 18px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #e2e8f0;
  padding: 11px 4px;
  border-radius: 12px;
}

.mobile-menu a:hover {
  color: #34d399;
  background: rgba(148, 163, 184, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.26), transparent 28%), linear-gradient(110deg, #020617 0%, #064e3b 48%, #020617 100%);
  min-height: 640px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.18) contrast(1.06);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.44) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.54fr);
  gap: 44px;
  align-items: center;
  padding: 96px 0 82px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 8px 13px;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.38);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 14px;
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.85rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
  color: #f8fafc;
}

.hero p {
  max-width: 730px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #042f2e;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  box-shadow: 0 18px 30px rgba(16, 185, 129, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(226, 232, 240, 0.32);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(52, 211, 153, 0.76);
  color: #a7f3d0;
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(16px);
}

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

.hero-poster-content {
  padding: 20px;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.92rem;
}

.hero-meta {
  color: #cbd5e1;
  margin: 12px 0 0;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 52px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.section.dark-cta {
  color: #ffffff;
  background: linear-gradient(120deg, #059669, #0891b2);
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.section-subtitle {
  margin-top: 10px;
  max-width: 720px;
  color: #64748b;
  line-height: 1.8;
}

.view-more {
  color: #059669;
  font-weight: 850;
  white-space: nowrap;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.movie-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #0f172a, #065f46);
}

.movie-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-thumb img {
  transform: scale(1.07);
  filter: saturate(1.15);
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.84) 100%);
  transition: opacity 0.25s ease;
}

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 10px;
  color: #052e2b;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.3);
}

.movie-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-line {
  display: -webkit-box;
  margin: 11px 0 0;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.68;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #047857;
  background: #d1fae5;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.horizontal .movie-thumb img {
  height: 100%;
  aspect-ratio: auto;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 94px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #042f2e;
  background: linear-gradient(135deg, #fbbf24, #34d399);
  font-weight: 950;
}

.rank-poster {
  width: 94px;
  height: 126px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.35), transparent 30%), linear-gradient(135deg, #0f172a, #065f46);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.2);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.65rem;
  font-weight: 950;
}

.category-card p,
.category-card ul {
  position: relative;
  z-index: 1;
  color: #cbd5e1;
  line-height: 1.75;
}

.category-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 24px 0 30px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-input,
.filter-select {
  color: #0f172a;
  background: #f8fafc;
  padding-right: 16px;
}

.filter-select {
  min-width: 180px;
  border-radius: 16px;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 0.92rem;
  margin: 26px 0 18px;
}

.breadcrumb a {
  color: #059669;
  font-weight: 800;
}

.detail-hero {
  padding: 34px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.25), transparent 32%), linear-gradient(115deg, #020617, #064e3b 52%, #0f172a);
}

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

.player-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.46);
}

.video-wrap {
  position: relative;
  background: #000000;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.video-overlay[hidden] {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #042f2e;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.38);
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
  transform: scale(1.07);
  box-shadow: 0 24px 56px rgba(16, 185, 129, 0.48);
}

.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: #cbd5e1;
  background: #020617;
}

.detail-info {
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 28px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(14px);
}

.detail-info img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
  background: #0f172a;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 5vw, 3.35rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-meta {
  color: #cbd5e1;
  margin-bottom: 16px;
}

.detail-copy {
  color: #e2e8f0;
  line-height: 1.86;
}

.article-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 1.65rem;
  font-weight: 950;
  color: #0f172a;
}

.article-card p {
  color: #475569;
  line-height: 1.95;
  margin: 0 0 16px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.footer-grid h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: #94a3b8;
  line-height: 1.85;
}

.footer-grid a:hover {
  color: #34d399;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 0.92rem;
}

[data-filter-card].is-hidden,
[data-search-item].is-hidden {
  display: none !important;
}

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

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

  .hero-poster {
    max-width: 360px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    height: 64px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    gap: 28px;
    padding: 62px 0 84px;
  }

  .hero-poster {
    max-width: 300px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head,
  .filter-bar {
    display: block;
  }

  .filter-select {
    width: 100%;
    margin-top: 12px;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    width: max-content;
  }

  .rank-poster {
    width: 72px;
    height: 98px;
  }

  .movie-card.horizontal {
    grid-template-columns: 112px minmax(0, 1fr);
  }

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

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

  .brand-name {
    font-size: 1.08rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
