:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: #111827;
  --panel-soft: rgba(17, 24, 39, 0.72);
  --line: #1f2937;
  --line-strong: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #10b981;
  --accent-strong: #059669;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(3, 7, 18, 0.86);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #00150f;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.32);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d1d5db;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.10);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.92);
  color: var(--text);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.96);
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #d1d5db;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.10);
}

.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(31, 41, 55, 0.74);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-slide.is-active .hero-bg {
  animation: slowZoom 9s ease forwards;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.86) 42%, rgba(3, 7, 18, 0.24) 100%),
    linear-gradient(0deg, var(--bg), rgba(3, 7, 18, 0.08) 42%);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.5fr);
  gap: 40px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #00150f;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.62);
}

.btn-ghost:hover {
  border-color: rgba(16, 185, 129, 0.44);
  color: var(--accent);
}

.hero-card {
  align-self: end;
  margin-bottom: 60px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0f172a;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.hero-dot {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.38);
}

.hero-dot.is-active {
  background: var(--accent);
}

.search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel input,
.search-box input,
.search-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: #0b1220;
  color: var(--text);
  padding: 0 16px;
}

.search-panel input:focus,
.search-box input:focus,
.search-box select:focus {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.10);
}

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

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

.section-kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0b1220;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.poster.landscape {
  aspect-ratio: 16 / 9;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.movie-card:hover .poster {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.72);
  color: #d1fae5;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.movie-card h3 {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--accent);
}

.card-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.42), transparent);
}

.feature-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
}

.feature-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feature-body p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

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

.category-tile {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.13), rgba(15, 23, 42, 0.78)),
    var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0b1220;
}

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

.rank-info h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto 0;
  padding: 52px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.86)),
    var(--panel);
  box-shadow: var(--shadow);
}

.page-title h1 {
  max-width: 900px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-top: 28px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #d1d5db;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16, 185, 129, 0.10);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  color: #00150f;
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.32);
}

.detail-info {
  margin-top: 28px;
}

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

.breadcrumb a {
  color: #d1d5db;
}

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

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

.meta-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.72);
  font-size: 13px;
}

.tag {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.10);
}

.content-box {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.74);
}

.content-box.accent {
  border-left: 4px solid var(--accent);
}

.content-box h2 {
  margin: 0 0 12px;
  color: #a7f3d0;
  font-size: 22px;
}

.content-box p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.74);
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0b1220;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item h3 {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.45;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: none;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.72);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.64);
}

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

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: #a7f3d0;
  font-size: 18px;
}

.footer-inner p,
.footer-inner a {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-links {
  display: grid;
  gap: 8px;
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.10);
  }
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    height: auto;
    min-height: 610px;
  }

  .hero-content {
    align-items: end;
    padding: 86px 0 86px;
  }

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

  .search-panel {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .section {
    padding-top: 56px;
  }

  .section-head {
    display: block;
  }

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

  .feature-grid,
  .rank-list,
  .footer-inner,
  .search-box {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

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

  .detail-layout {
    width: min(100% - 24px, 1180px);
  }

  .content-box {
    padding: 20px;
  }
}
