:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --panel-deep: #020617;
  --line: #1f2937;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --teal: #14b8a6;
  --danger: #f87171;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.18), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--emerald-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #022c22;
  background: linear-gradient(135deg, var(--emerald-light), var(--teal));
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-size: 15px;
}

.nav-links a,
.mobile-panel a,
.site-footer a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.site-footer a:hover {
  color: var(--emerald-light);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.85);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--soft);
}

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

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide,
.hero-slide img,
.hero-layer {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-layer {
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.86) 42%, rgba(3, 7, 18, 0.2) 100%), linear-gradient(0deg, rgba(3, 7, 18, 0.96), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 86px 0 72px;
  max-width: 1180px;
}

.eyebrow,
.section-title p,
.search-band p,
.page-hero p {
  margin: 0 0 10px;
  color: var(--emerald-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.hero-main-title {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #ecfdf5, var(--emerald-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  max-width: 620px;
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 800;
}

.hero-summary {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 18px;
}

.hero-meta,
.info-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.info-pills span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(6, 78, 59, 0.24);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.26);
}

.btn-ghost {
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.72);
}

.btn-plain {
  color: var(--soft);
}

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

.hero-dots button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.hero-dots button.is-active {
  color: #052e2b;
  border-color: transparent;
  background: linear-gradient(135deg, var(--emerald-light), var(--teal));
}

.section {
  padding: 72px 0;
}

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

.section-title h2,
.search-band h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-title a {
  color: var(--emerald-light);
  font-weight: 700;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: 24px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(6, 78, 59, 0.18));
  box-shadow: var(--shadow);
}

.slim-search {
  margin-top: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
}

.search-box span {
  color: var(--emerald-light);
  font-size: 24px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.search-box input::placeholder {
  color: #6b7280;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card:hover .poster {
  border-color: rgba(52, 211, 153, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 28px 52px rgba(16, 185, 129, 0.14);
}

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

.card-copy {
  display: block;
  padding: 10px 2px 0;
}

.card-copy strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
  transition: color 0.2s ease;
}

.movie-card:hover .card-copy strong {
  color: var(--emerald-light);
}

.card-copy em,
.card-copy span,
.mini-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.category-tile {
  padding: 22px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(6, 78, 59, 0.16));
  box-shadow: var(--shadow);
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.category-head span {
  font-size: 24px;
  font-weight: 850;
}

.category-head strong {
  color: var(--emerald-light);
  font-size: 14px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(31, 41, 55, 0.85);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.48);
}

.mini-card span {
  grid-row: span 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel-deep);
}

.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-section {
  padding-top: 32px;
}

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #052e2b;
  background: linear-gradient(135deg, var(--emerald-light), var(--teal));
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.page-hero {
  padding: 76px 0 28px;
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.small-actions {
  margin-top: 22px;
}

.detail-hero {
  padding: 38px 0 0;
}

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

.breadcrumb a {
  color: var(--emerald-light);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 22px;
  background: black;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #052e2b;
  background: linear-gradient(135deg, var(--emerald-light), var(--teal));
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease;
}

.player-start:hover span {
  transform: scale(1.08);
}

.player-card.is-playing .player-start {
  display: none;
}

.detail-side {
  padding: 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 22px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--panel-deep);
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.detail-copy {
  padding-top: 34px;
}

.detail-copy h1 {
  margin-bottom: 14px;
}

.lead-text {
  max-width: 920px;
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 19px;
}

.tag-list {
  margin-top: 14px;
}

.story-block {
  max-width: 920px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.story-block h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 24px;
}

.story-block h2 + p {
  margin-top: 0;
}

.story-block p {
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 17px;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin-top: 22px;
}

.next-links a {
  padding: 16px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 16px;
  color: #d1fae5;
  background: rgba(6, 78, 59, 0.18);
}

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

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner div {
  display: flex;
  gap: 18px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  .detail-side {
    display: none;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-wrap,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-layer {
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.78) 62%, rgba(3, 7, 18, 0.28) 100%);
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 98px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 28px;
  }

  .search-band {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding: 18px;
  }

  .section {
    padding: 46px 0;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .movie-grid,
  .ranking-grid,
  .ranking-grid-large,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tile-list,
  .next-links {
    grid-template-columns: 1fr;
  }

  .story-block {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .footer-inner div {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .featured-grid,
  .movie-grid,
  .ranking-grid,
  .ranking-grid-large,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
