:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --text: #f8fafc;
  --line: rgba(34, 211, 238, 0.18);
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.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);
}

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

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.3);
  font-size: 16px;
}

.brand.small .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  color: var(--soft);
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--soft);
  border-radius: 999px;
}

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

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

.mobile-link {
  padding: 12px 14px;
}

.hero-slider {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.78)),
    linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.12) 58%, rgba(2, 6, 23, 0.56));
}

.hero-content {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--soft);
  font-weight: 800;
  box-shadow: 0 12px 42px rgba(2, 6, 23, 0.26);
  transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.72);
  color: #fff;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03121d;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 22px;
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.35);
}

.hero-dots button.active {
  background: var(--cyan);
}

.hero-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(14px);
}

.hero-search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #fff;
  background: transparent;
}

.hero-search-form button {
  border: 0;
}

main {
  padding-bottom: 36px;
}

.section {
  padding: 70px 0 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 900;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(96, 165, 250, 0.06)),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
}

.category-tile h2,
.category-tile h3 {
  margin: 0;
  font-size: 24px;
}

.category-tile p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile span {
  display: inline-flex;
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(15, 23, 42, 0.86);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-card:hover .poster img {
  transform: scale(1.05);
  filter: saturate(1.14);
}

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--cyan);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 50px 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.44);
}

.rank-index {
  color: var(--amber);
  font-weight: 1000;
  font-size: 20px;
}

.rank-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
}

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 42px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.14), transparent 30rem);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
}

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

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

.search-panel {
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 900;
}

.search-panel input {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.18);
  outline: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.64);
  color: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-bar button {
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(2, 6, 23, 0.35);
  color: var(--soft);
  font-weight: 800;
}

.filter-bar button.active,
.filter-bar button:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.56);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.1);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.7));
}

.detail-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-info p {
  max-width: 800px;
  margin: 18px 0 0;
  color: #dbeafe;
  line-height: 1.9;
  font-size: 18px;
}

.player-card,
.detail-article,
.related-box {
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 20px;
}

.player-card h2,
.detail-article h2,
.related-box h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.62));
}

.player-overlay.hidden {
  display: none;
}

.play-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.34);
  font-size: 26px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-article {
  padding: 26px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--soft);
  line-height: 2;
  font-size: 16px;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.related-box {
  padding: 20px;
  position: sticky;
  top: 96px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
}

.related-card:hover {
  background: rgba(34, 211, 238, 0.08);
}

.related-card img {
  width: 62px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-card strong {
  display: block;
  line-height: 1.4;
}

.related-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-brand p,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  font-size: 14px;
}

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

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

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

  .related-box {
    position: static;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 100px 0 72px;
  }

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

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

  .hero-search-form {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search-form input {
    min-height: 44px;
  }

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

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

  .section-header {
    display: block;
  }

  .detail-grid {
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: center;
  }

  .detail-info p {
    font-size: 15px;
  }

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

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

  .card-body {
    padding: 12px;
  }

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

  .card-body p {
    display: none;
  }

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

  .detail-poster {
    width: 160px;
  }
}
