* {
  box-sizing: border-box;
}

:root {
  --bg: #030712;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.84);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --border: rgba(103, 232, 249, 0.20);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.18), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(20, 184, 166, 0.16), transparent 34%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 82%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand span:last-child,
.footer-brand strong {
  background: linear-gradient(90deg, #67e8f9, #5eead4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
}

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

.desktop-nav a,
.search-open,
.mobile-nav a {
  border: 0;
  color: var(--muted-strong);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.search-open:hover,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--cyan);
}

.search-open {
  padding: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.header-search {
  display: none;
  padding: 0 0 18px;
}

.header-search.is-open {
  display: block;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.site-search-form {
  display: flex;
  gap: 10px;
}

.site-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input {
  min-height: 44px;
  padding: 0 16px;
}

.site-search-form input::placeholder,
.filter-panel input::placeholder {
  color: rgba(203, 213, 225, 0.54);
}

.site-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.site-search-form button,
.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.site-search-form button,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-dark), var(--teal));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(103, 232, 249, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  width: fit-content;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.10);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 660px;
  padding: 70px 0 96px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 340px;
  gap: 48px;
  align-items: center;
}

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

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-one-line,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.16);
  font-size: 12px;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 44px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.quick-search-section {
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.quick-search-card,
.filter-panel,
.content-card,
.sidebar-card {
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.content-card h2,
.sidebar-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.large-search input {
  min-height: 54px;
}

.large-search button {
  min-height: 54px;
  padding: 0 28px;
}

.section-block {
  padding: 76px 0 0;
}

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

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

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid rgba(103, 232, 249, 0.20);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.06);
}

.category-strip a:hover {
  color: #ffffff;
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(8, 145, 178, 0.28);
}

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

.category-tile {
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(103, 232, 249, 0.20);
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, 0.5);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 8px;
  color: #67e8f9;
}

.category-tile em {
  margin-top: 28px;
  color: var(--muted-strong);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(103, 232, 249, 0.42);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
}

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-card__poster img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 18, 0.58);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__overlay {
  opacity: 1;
}

.play-pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-pill {
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-dark), var(--teal));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 30px;
  padding: 0 10px;
  color: #02111a;
  background: linear-gradient(135deg, #67e8f9, #5eead4);
  font-size: 12px;
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: #67e8f9;
  font-size: 12px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 60px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card--compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card--compact .movie-card__body {
  padding: 14px;
}

.movie-card--compact h3 {
  min-height: auto;
}

.movie-card--compact p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
  padding: 96px 0 86px;
  background-position: center;
  background-size: cover;
}

.slim-hero {
  background:
    linear-gradient(120deg, rgba(3, 7, 18, 0.98), rgba(8, 145, 178, 0.40)),
    radial-gradient(circle at 84% 10%, rgba(34, 211, 238, 0.2), transparent 36%);
}

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

.breadcrumb a {
  color: #67e8f9;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 30px;
  padding: 22px;
}

.filter-panel label span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-panel select option {
  color: #111827;
}

.filter-count {
  color: #67e8f9;
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
}

.category-overview-cover {
  overflow: hidden;
  border-radius: 18px;
}

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

.category-overview-card h2 {
  margin: 0 0 10px;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

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

.detail-content,
.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-section {
  scroll-margin-top: 90px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-launch {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.56), rgba(8, 145, 178, 0.18));
  cursor: pointer;
}

.player-shell.is-playing .player-launch {
  display: none;
}

.play-circle {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-dark), var(--teal));
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

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

.content-card p {
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.9;
}

.info-list {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 18px 0 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.info-list a {
  color: var(--cyan);
}

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

.sitemap-section {
  padding: 22px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
}

.sitemap-section h2 {
  margin: 0 0 16px;
  color: #ffffff;
}

.sitemap-list {
  display: grid;
  gap: 9px;
  max-height: 520px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.sitemap-list a {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--muted-strong);
}

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

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

.site-footer {
  margin-top: 86px;
  padding: 54px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  gap: 32px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 780px;
  }

  .hero-content,
  .quick-search-card,
  .detail-hero-grid,
  .detail-layout,
  .footer-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

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

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

@media (max-width: 580px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .hero-carousel,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    padding-top: 54px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-one-line,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--compact,
  .category-overview-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .site-search-form {
    flex-direction: column;
  }

  .page-hero,
  .detail-hero {
    padding: 64px 0;
  }
}
