:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(51, 65, 85, 0.86);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --orange: #f97316;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.site-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--yellow));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
  transition: transform 0.5s ease;
}

.site-logo:hover .site-logo-mark {
  transform: rotate(180deg);
}

.site-logo-text {
  display: grid;
  line-height: 1.05;
}

.site-logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-logo-text small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: var(--soft);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.54);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 10px;
}

.header-search button,
.big-search-form button,
.primary-button {
  border: 0;
  border-radius: 999px;
  color: #00222b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.big-search-form button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(6, 182, 212, 0.38);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
}

.mobile-nav a {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  color: var(--soft);
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--bg);
}

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

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

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%, #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  animation: slideUp 0.6s ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  font-size: 12px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.12);
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

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

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

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

.hero-mini-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  z-index: 5;
  width: 300px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.hero-mini-panel p {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
}

.hero-mini-list,
.side-list {
  display: grid;
  gap: 12px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.horizontal-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.horizontal-card strong,
.horizontal-card small {
  display: block;
}

.horizontal-card strong {
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.quick-search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
  margin: 0;
  font-size: 26px;
}

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

.big-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--border);
  outline: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.5);
  padding: 14px 16px;
}

.big-search-form button {
  padding: 0 24px;
}

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

.tinted-section {
  background: rgba(30, 41, 59, 0.24);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  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(30, 41, 59, 0.78);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

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

.poster-play {
  right: 12px;
  bottom: 12px;
  height: 34px;
  padding: 0 14px;
  color: #001018;
  background: var(--cyan);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  color: #1f1300;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.28);
}

.movie-card-body {
  padding: 15px;
}

.movie-card-body h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  margin: 10px 0 12px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-compact .movie-desc {
  -webkit-line-clamp: 2;
}

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

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

.category-card a {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.12));
}

.category-card-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 8px;
}

.category-card-content strong {
  font-size: 24px;
}

.category-card-content small {
  color: var(--soft);
  line-height: 1.6;
}

.category-card-content em {
  width: fit-content;
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.side-panel,
.info-panel,
.detail-article {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.side-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
}

.side-panel h2,
.info-panel h2,
.detail-article h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.page-hero {
  position: relative;
  padding: 86px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(6, 182, 212, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 860px;
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 52px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 60px 0 78px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--text);
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.2)),
    rgba(2, 6, 23, 0.2);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00222b;
  background: var(--cyan);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.14), 0 22px 54px rgba(6, 182, 212, 0.28);
}

.player-overlay strong {
  font-size: 18px;
}

.detail-article {
  margin-top: 24px;
  padding: 26px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--soft);
  line-height: 1.9;
  white-space: pre-line;
}

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

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

.info-panel {
  padding: 20px;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-panel dt,
.info-panel dd {
  margin: 0;
}

.info-panel dl div,
.info-panel dt + dd {
  min-width: 0;
}

.info-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.info-panel dd {
  color: var(--text);
  word-break: break-word;
}

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

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

.footer-logo {
  margin-bottom: 14px;
}

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

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

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

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-mini-panel {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero-content,
  .quick-search-panel,
  .split-section,
  .detail-layout,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: auto;
    min-height: 740px;
  }

  .hero-slide {
    position: relative;
    min-height: 740px;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content {
    padding: 74px 0 110px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 280px;
  }

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

  .side-panel {
    position: static;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-container,
  .site-header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .site-logo-text strong {
    font-size: 17px;
  }

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

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

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

  .quick-search-panel {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .big-search-form,
  .section-heading,
  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-desc,
  .tag-list {
    display: none;
  }

  .detail-hero-inner {
    padding: 34px 0 46px;
  }

  .detail-main {
    padding-top: 34px;
  }

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