*,
*::before,
*::after {
  box-sizing: border-box;
}

: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;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #38bdf8;
  --orange: #fb923c;
  --violet: #a78bfa;
  --yellow: #facc15;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(8, 145, 178, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.15), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

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

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong,
.footer-brand {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.76));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0 96px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-kicker::before {
  content: "◆";
  color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.7));
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--soft);
  font-size: clamp(15px, 2vw, 18px);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
}

.hero-tags span,
.detail-tags span {
  list-style: none;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  color: white;
  background: rgba(15, 23, 42, 0.7);
  font-weight: 800;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.26);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.18);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 38px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-control {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 22px;
  transition: 0.25s ease;
}

.hero-control:hover {
  background: rgba(34, 211, 238, 0.24);
}

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

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

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

.main-space {
  padding: 64px 0;
}

.page-hero {
  padding: 76px 0 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0));
}

.page-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--soft);
}

.section {
  margin-bottom: 70px;
}

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

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

.accent-orange .section-kicker {
  color: var(--orange);
}

.accent-violet .section-kicker {
  color: var(--violet);
}

.accent-yellow .section-kicker {
  color: var(--yellow);
}

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

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

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

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

.card-link {
  display: block;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.12), transparent 46%),
    #0f172a;
}

.card-large .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 44%);
  opacity: 0.82;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.badge-left {
  left: 12px;
}

.badge-right {
  right: 12px;
}

.play-mark {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  color: white;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.36);
  transition: 0.25s ease;
}

.card-link:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 24px;
  min-height: 218px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.52)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 18rem);
  transition: 0.25s ease;
}

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

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

.category-card p {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--soft);
}

.category-preview {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.category-preview img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0f172a;
}

.search-panel {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 30px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.7);
}

.search-input,
.year-filter {
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.74);
  outline: none;
  font: inherit;
}

.search-input {
  flex: 1;
  padding: 0 16px;
}

.year-filter {
  width: 170px;
  padding: 0 12px;
}

.search-input:focus,
.year-filter:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09);
}

.breadcrumb {
  margin: 30px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 800;
}

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

.detail-main,
.detail-side,
.info-panel {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.18);
}

.detail-main {
  overflow: hidden;
}

.detail-cover-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28rem),
    rgba(2, 6, 23, 0.28);
}

.detail-cover-head img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-title h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.detail-title p {
  margin: 0 0 16px;
  color: var(--soft);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #e0f2fe;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.21);
  font-weight: 800;
  font-size: 13px;
}

.player-wrap {
  padding: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.18);
}

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

.player-play {
  position: absolute;
  inset: auto auto 22px 22px;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.35);
  transition: 0.25s ease;
}

.video-shell.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

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

.detail-copy {
  padding: 8px 24px 26px;
}

.detail-copy h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.detail-copy p {
  margin: 0;
  color: var(--soft);
}

.detail-side {
  padding: 20px;
}

.side-title {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
  transition: 0.25s ease;
}

.side-item:hover {
  background: rgba(34, 211, 238, 0.09);
}

.side-item img {
  height: 94px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.footer-grid p {
  color: var(--muted);
  max-width: 460px;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 6px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 13px;
}

.is-hidden {
  display: none !important;
}

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

  .category-grid,
  .detail-layout,
  .detail-cover-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: 2;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 66px;
  }

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

  .nav-links {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero-carousel {
    min-height: 72vh;
  }

  .hero-content {
    padding: 80px 0 86px;
  }

  .hero-controls {
    right: 16px;
    bottom: 24px;
  }

  .hero-dots {
    left: 16px;
    bottom: 42px;
    transform: none;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p {
    font-size: 13px;
  }

  .search-panel {
    flex-direction: column;
  }

  .year-filter {
    width: 100%;
  }

  .detail-cover-head {
    padding: 16px;
  }

  .detail-cover-head img {
    max-width: 220px;
  }

  .player-wrap,
  .detail-copy {
    padding: 16px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.wide {
    grid-template-columns: 1fr;
  }

  .brand-text strong {
    font-size: 20px;
  }
}
