:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --brand: #10b981;
  --brand-2: #14b8a6;
  --brand-soft: rgba(16, 185, 129, 0.18);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(16, 185, 129, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(20, 184, 166, 0.12), transparent 26rem),
    linear-gradient(135deg, #0f172a 0%, #111827 42%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82));
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.38);
}

.brand-text,
.footer-logo {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #34d399, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-size: 14px;
  white-space: nowrap;
}

.nav-link,
.mobile-link,
.footer-links a {
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.mobile-link:hover,
.footer-links a:hover,
.text-link:hover,
.sample-links a:hover {
  color: #34d399;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: rgba(30, 41, 59, 0.65);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  color: var(--soft);
  padding: 10px 0;
}

main {
  padding-top: 68px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.84) 46%, rgba(15, 23, 42, 0.08) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 45%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(640px, calc(100% - 56px));
}

.eyebrow,
.section-head p,
.page-hero p {
  margin: 0 0 12px;
  color: #34d399;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: 999px;
  color: #a7f3d0;
  background: var(--brand-soft);
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 26px;
  color: white;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.34);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: var(--soft);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.search-section {
  padding-bottom: 22px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  color: #34d399;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: var(--shadow);
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-search,
.site-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.site-search {
  padding: 0 18px;
}

.site-select {
  padding: 0 14px;
}

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

.category-tile,
.category-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.48));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile {
  min-height: 150px;
  padding: 22px;
  display: grid;
  gap: 8px;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.55);
}

.category-tile span,
.category-panel span {
  color: #34d399;
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong,
.category-panel h2 {
  color: white;
  font-size: 20px;
}

.category-tile em,
.category-panel p,
.sample-links a {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}

.feature-rail {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: 0;
  background: rgba(15, 23, 42, 0.28);
}

.feature-rail .section-head {
  width: min(1180px, calc(100vw - 32px));
  padding-right: 16px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.76);
  cursor: pointer;
}

.horizontal-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 16px 14px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.horizontal-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 310px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 26px 70px rgba(16, 185, 129, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(15, 23, 42, 0.9));
}

.compact .poster-wrap {
  height: 226px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.02));
}

.card-tags {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.35);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: #34d399;
}

.card-body p {
  margin: 0 0 16px;
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.dark-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: rgba(15, 23, 42, 0.34);
}

.mosaic-grid .movie-card:first-child {
  grid-column: span 2;
}

.category-panel {
  padding: 24px;
}

.category-panel > a {
  display: grid;
  gap: 10px;
}

.sample-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 24px;
}

.slim-hero > div {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 15%, rgba(16, 185, 129, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62));
  box-shadow: var(--shadow);
}

.page-hero span {
  display: block;
  margin-top: 14px;
  max-width: 760px;
  color: var(--soft);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, #020617, transparent 55%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-poster {
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

.breadcrumb a:hover {
  color: #34d399;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one {
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.player-section {
  padding-top: 34px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 50px rgba(16, 185, 129, 0.35);
  font-size: 34px;
}

.player-wrap.ready .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

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

.text-block p {
  margin: 0;
  color: var(--soft);
  line-height: 2;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 13px;
  }

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

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

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

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

  .hero {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .filter-panel,
  .detail-text,
  .footer-grid,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    padding: 42px 0;
  }

  .detail-poster {
    width: min(280px, 82vw);
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .mosaic-grid .movie-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section,
  .page-hero,
  .detail-inner,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 15px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

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

  .section {
    padding: 48px 0;
  }

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

  .poster-wrap,
  .compact .poster-wrap {
    height: 300px;
  }

  .with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .slim-hero > div {
    padding: 28px;
  }

  .rail-item {
    flex-basis: 82vw;
  }
}
