:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5edf8;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #fb923c;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 4%, rgba(34, 211, 238, 0.16), transparent 30rem),
    radial-gradient(circle at 78% 12%, rgba(59, 130, 246, 0.18), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.28);
}

.logo-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a,
.mobile-panel a {
  color: #dbeafe;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: white;
  background: rgba(51, 65, 85, 0.92);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-size: 1.25rem;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 6px;
}

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

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 48px;
  min-height: 580px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-track {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  padding: 84px 0 44px 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 1.05rem;
  margin: 22px 0 0;
}

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

.hero-meta {
  margin-top: 20px;
}

.pill,
.tag,
.heat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.86rem;
}

.heat-pill {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.26);
  background: rgba(251, 146, 60, 0.12);
}

.hero-actions,
.section-head,
.form-row,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.95);
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 22px 46px rgba(59, 130, 246, 0.32);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 58px;
  bottom: 36px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

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

.section {
  margin: 48px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

.section-title span:first-child {
  color: var(--cyan);
}

.section-desc,
.page-desc {
  color: var(--muted);
  line-height: 1.85;
  margin: 10px 0 0;
}

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

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

.movie-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster img {
  transform: scale(1.07);
  opacity: 0.82;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 55%);
  opacity: 0.92;
}

.play-float {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
}

.play-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.32);
  font-size: 1.2rem;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.38;
  min-height: 2.76em;
  color: white;
}

.card-line {
  min-height: 3.6em;
  color: #b6c2d2;
  margin: 12px 0;
  line-height: 1.8;
  font-size: 0.92rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.category-box,
.search-box,
.content-panel,
.rank-row {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92));
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.category-box {
  padding: 22px;
  min-height: 166px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-box:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-box h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.category-box p {
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
  font-size: 0.94rem;
}

.search-box {
  padding: 18px;
  margin: 26px 0;
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.form-row .input {
  flex: 1 1 320px;
}

.form-row .select {
  flex: 0 1 170px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 78px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(34, 211, 238, 0.18));
  color: #fed7aa;
}

.rank-thumb {
  width: 78px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.rank-main h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.06rem;
}

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

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto;
  padding: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 28rem);
  box-shadow: var(--shadow);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: 26px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  z-index: 3;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.26)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 20rem);
}

.player-cover.is-hidden {
  display: none;
}

.big-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 58px rgba(34, 211, 238, 0.36);
  font-size: 1.85rem;
}

.player-info {
  padding: 22px;
}

.content-panel {
  padding: 24px;
}

.content-panel h2,
.content-panel h3 {
  margin: 0 0 14px;
  color: white;
}

.content-panel p {
  color: #cbd5e1;
  line-height: 1.95;
  margin: 0 0 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer {
  margin-top: 70px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(2, 6, 23, 0.86));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

  .hero {
    min-height: 640px;
    border-radius: 24px;
  }

  .hero-content {
    width: calc(100% - 34px);
    padding: 54px 0 90px 24px;
  }

  .hero-dots {
    left: 24px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 42px 68px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / 4;
    justify-self: start;
  }

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

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

  .hero {
    min-height: 600px;
    margin-top: 18px;
  }

  .hero h1,
  .page-title {
    font-size: 2rem;
  }

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

  .card-body h3 {
    min-height: auto;
  }

  .form-row {
    align-items: stretch;
  }

  .form-row .input,
  .form-row .select {
    flex-basis: 100%;
  }
}
