:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --brand: #34d399;
  --brand-dark: #059669;
  --gold: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #022c22;
  background: linear-gradient(135deg, #a7f3d0, #34d399 52%, #059669);
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.38);
}

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

.nav-links a,
.mobile-menu a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--brand);
}

.header-search {
  width: min(310px, 34vw);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  padding: 7px 12px;
}

.header-search input,
.search-panel input,
.search-panel select,
.category-filter input,
.category-filter select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input::placeholder,
.search-panel input::placeholder,
.category-filter input::placeholder {
  color: #64748b;
}

.icon-button {
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: none;
}

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

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

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

.hero {
  position: relative;
  margin: 28px auto 42px;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(6, 78, 59, 0.72));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.90), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 56px;
}

.hero-text {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.46);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-desc {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.9;
}

.meta-row,
.tag-row,
.card-meta,
.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-row {
  margin: 22px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.68);
  font-size: 13px;
}

.pill.hot {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(120, 53, 15, 0.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #052e2b;
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(16, 185, 129, 0.34);
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: none;
}

.hero-poster {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 52%);
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 36px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
}

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

.section {
  margin: 42px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.link-more {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.38);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.28), transparent 55%),
    rgba(15, 23, 42, 0.92);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: rgba(2, 6, 23, 0.64);
  overflow: hidden;
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #022c22;
  background: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #022c22;
  background: rgba(167, 243, 208, 0.92);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-play {
  transform: translateY(0);
  opacity: 1;
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.card-meta {
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #052e2b;
  background: linear-gradient(135deg, #fde68a, #34d399);
  font-weight: 900;
}

.rank-thumb {
  width: 82px;
  height: 108px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.65);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.20), transparent 50%),
    rgba(15, 23, 42, 0.86);
}

.feature-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.feature-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.inner-hero {
  margin: 30px 0;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 211, 153, 0.22), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 78, 59, 0.58));
  box-shadow: var(--shadow);
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.inner-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--soft);
  line-height: 1.9;
}

.category-filter,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.category-filter input,
.category-filter select,
.search-panel input,
.search-panel select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 32px;
  align-items: center;
  margin: 30px 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.20), transparent 28rem),
    rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(2, 6, 23, 0.7);
}

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

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

.breadcrumbs a {
  color: #a7f3d0;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-copy p {
  color: var(--soft);
  line-height: 1.9;
}

.detail-meta {
  margin: 18px 0;
}

.tag-row {
  margin-top: 18px;
}

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

.content-card,
.side-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.content-card,
.side-card {
  padding: 24px;
}

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

.content-card p,
.side-card p {
  color: var(--soft);
  line-height: 2;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-card h2 {
  padding: 22px 22px 0;
}

.player-shell {
  position: relative;
  margin: 16px 22px 22px;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.20));
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #052e2b;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.42);
}

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

.related-link {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.35);
}

.related-link img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.7);
}

.related-link strong {
  display: block;
  margin-bottom: 6px;
}

.related-link span {
  color: var(--muted);
  font-size: 13px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.search-result img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.7);
}

.search-result h3 {
  margin: 0 0 8px;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

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

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 24px;
  color: var(--muted);
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
  color: var(--text);
}

.footer p,
.footer a {
  color: var(--muted);
  line-height: 1.9;
}

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

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

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

  .hero-content,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    position: static;
  }
}

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

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

  .hero {
    min-height: auto;
    border-radius: 26px;
  }

  .hero-content {
    min-height: 700px;
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    min-height: 340px;
  }

  .hero-dots {
    left: 28px;
    bottom: 22px;
  }

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

  .category-grid,
  .category-filter,
  .search-panel,
  .detail-hero,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .search-result {
    grid-template-columns: 44px 74px 1fr;
  }

  .rank-item .btn,
  .search-result .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .page,
  .nav-wrap,
  .mobile-menu,
  .footer-wrap {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .movie-info {
    padding: 11px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .movie-info p {
    display: none;
  }

  .detail-hero,
  .inner-hero,
  .content-card,
  .side-card {
    border-radius: 22px;
  }
}
