:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.86);
  --card-strong: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --sky: #38bdf8;
  --sky-strong: #0ea5e9;
  --violet: #6366f1;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 12%, rgba(99, 102, 241, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  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;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  color: white;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
}

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

.brand-copy strong {
  color: white;
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: white;
  background: rgba(56, 189, 248, 0.12);
}

.top-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.list-filter input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: white;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 230px;
  padding: 10px 16px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--sky-strong), var(--violet));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.26);
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.list-filter input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 3px;
  margin: 5px 0;
}

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

.mobile-nav.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  margin-top: 6px;
}

.mobile-search {
  margin: 10px 0 12px;
}

.mobile-search input {
  padding: 11px 16px;
}

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

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

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

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.03);
}

.hero-bg {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.35), transparent 42%),
    radial-gradient(circle at 72% 32%, rgba(99, 102, 241, 0.34), transparent 30rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  color: white;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-copy .one-line {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: #020617;
  background: white;
}

.btn.primary:hover {
  color: white;
  background: linear-gradient(135deg, var(--sky-strong), var(--violet));
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(14, 165, 233, 0.72);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

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

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

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 8;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search input,
.search-page-form input {
  min-height: 48px;
  padding: 13px 18px;
}

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

.quick-links a {
  color: #cbd5e1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
}

.content-section {
  padding: 58px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #7dd3fc;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.46);
  box-shadow: 0 28px 60px rgba(14, 165, 233, 0.14);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(99, 102, 241, 0.22)),
    linear-gradient(135deg, #1e293b, #020617);
}

.movie-poster {
  display: block;
  aspect-ratio: 2 / 3;
}

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

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

.movie-card:hover .poster-image {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.85) 100%);
}

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

.movie-info {
  padding: 18px;
}

.movie-meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
}

.movie-meta-row span,
.detail-meta span {
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.26);
}

.movie-info h3 {
  margin: 12px 0 8px;
  color: white;
  font-size: 19px;
  line-height: 1.25;
}

.movie-info h3 a:hover,
.rank-copy h2 a:hover,
.detail-nav-links a:hover {
  color: #7dd3fc;
}

.movie-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.tag-cloud span {
  color: #dbeafe;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  padding: 5px 10px;
  font-size: 13px;
}

.small-tags {
  margin-top: 14px;
}

.hero-tags {
  margin-top: 2px;
}

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

.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.86));
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.48);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.78), rgba(99, 102, 241, 0.78));
}

.category-tile span {
  color: white;
  font-weight: 800;
}

.category-tile strong {
  color: #bae6fd;
  font-size: 26px;
}

.page-hero {
  padding: 72px 0 20px;
}

.small-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-card a {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.64));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.48);
}

.category-card span {
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: #7dd3fc;
  font-size: 40px;
  line-height: 1;
}

.category-card p,
.category-card em {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.list-filter {
  margin-bottom: 24px;
}

.list-filter input {
  min-height: 50px;
  padding: 14px 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 116px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--sky-strong), var(--violet));
  font-weight: 900;
  font-size: 20px;
}

.rank-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
}

.rank-copy h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 22px;
}

.rank-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.search-page-form {
  width: min(720px, 100%);
  margin-top: 20px;
}

.search-summary {
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-hero {
  padding: 42px 0 36px;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.58));
  border-bottom: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 26px;
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-el {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: white;
  background: rgba(2, 6, 23, 0.55);
}

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

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.78) 70%);
}

.big-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-strong), var(--violet));
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.38);
  font-size: 32px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #9ca3af;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #7dd3fc;
}

.detail-copy h1 {
  font-size: clamp(34px, 4vw, 56px);
}

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

.detail-content {
  display: grid;
  gap: 22px;
  padding-top: 48px;
}

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

.text-card h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-nav-links a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  color: #dbeafe;
  font-weight: 700;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.7);
}

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

.footer-brand {
  color: white;
  font-size: 22px;
}

.site-footer p,
.site-footer h2 {
  margin: 8px 0 0;
}

.site-footer p {
  color: var(--muted);
}

.site-footer h2 {
  color: white;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  color: #cbd5e1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.footer-links a:hover {
  color: white;
  border-color: rgba(56, 189, 248, 0.48);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

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

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

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

  .header-inner {
    min-height: 66px;
  }

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .hero-search,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .four-cols,
  .three-cols,
  .category-card-grid,
  .detail-nav-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 54px 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }

  .rank-copy h2 {
    font-size: 18px;
  }

  .rank-copy p {
    display: none;
  }

  .detail-hero {
    padding-top: 24px;
  }

  .text-card {
    padding: 22px;
  }
}

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

  .movie-grid {
    gap: 16px;
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
