:root {
  --bg: #020617;
  --bg-soft: #071126;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(56, 189, 248, 0.22);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --pink: #f472b6;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.26), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.15), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #071126 45%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.45);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00111a;
  background: linear-gradient(135deg, var(--sky), var(--cyan), var(--amber));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, #7dd3fc, #22d3ee, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.menu-link,
.mobile-menu-link {
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.menu-link:hover {
  background: rgba(56, 189, 248, 0.11);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-search {
  position: relative;
}

.search-input,
.quick-search-box input,
.filter-panel input,
.filter-panel select {
  width: 260px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus,
.quick-search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 0.94);
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(460px, calc(100vw - 32px));
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  display: none;
}

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

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-result:hover {
  background: rgba(56, 189, 248, 0.12);
}

.search-result img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.mobile-menu {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

.mobile-menu-link {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-menu-link:hover {
  background: rgba(56, 189, 248, 0.12);
}

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 72px);
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 54px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.9) 100%),
    radial-gradient(circle at 70% 34%, rgba(14, 165, 233, 0.28), transparent 36rem),
    radial-gradient(circle at 28% 72%, rgba(251, 191, 36, 0.11), transparent 24rem);
  z-index: -2;
}

.hero-track {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeRise 0.5s ease both;
}

.hero-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(14, 165, 233, 0.35);
  transform: perspective(1100px) rotateY(8deg) rotateX(2deg);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72));
  z-index: 1;
}

.hero-media img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0f172a;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.chip-row span {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.36);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, var(--sky), var(--cyan), var(--amber));
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

.ghost-button,
.section-more {
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

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

.content-section,
.quick-search-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.quick-search-card,
.section-heading,
.filter-panel,
.text-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.52));
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.26);
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.quick-search-card h2,
.section-heading h2,
.text-panel h2 {
  margin: 8px 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.quick-search-box input {
  width: min(430px, 100%);
}

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

.section-heading p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 26px 60px rgba(8, 47, 73, 0.36);
}

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

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.9));
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 10px;
  top: 10px;
  color: #00111a;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #e0f2fe;
  background: rgba(2, 132, 199, 0.84);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.38);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

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

.movie-meta,
.movie-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 112px 1fr;
}

.movie-card-compact .poster-link img {
  height: 100%;
}

.movie-card-compact .chip-row {
  margin-top: 12px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 26px;
  background: #0f172a;
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
  opacity: 0.42;
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.94));
}

.category-tile div,
.category-overview-card div {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p,
.sample-titles {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 14px;
}

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

.category-overview-card {
  min-height: 260px;
}

.sample-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sample-titles span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(56, 189, 248, 0.13);
}

.subpage-main {
  padding-top: 42px;
}

.page-hero,
.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.52)),
    radial-gradient(circle at right top, rgba(56, 189, 248, 0.28), transparent 34rem);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(28px, 5vw, 64px);
}

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

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

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px;
}

.filter-panel input {
  flex: 1 1 260px;
  width: auto;
}

.filter-panel select {
  width: 180px;
}

.detail-hero {
  padding: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.44);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #f8fafc;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #00111a;
  background: linear-gradient(135deg, var(--sky), var(--cyan), var(--amber));
  box-shadow: 0 0 46px rgba(56, 189, 248, 0.44);
  font-size: 30px;
}

.play-text {
  font-size: 18px;
  font-weight: 900;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 8px;
}

.detail-info h1 {
  font-size: clamp(30px, 4.8vw, 58px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.text-panel {
  padding: 26px;
}

.text-panel p {
  color: #cbd5e1;
  line-height: 2;
  font-size: 16px;
}

.meta-panel {
  grid-column: 1 / -1;
}

.meta-panel dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.meta-panel div {
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(8, 47, 73, 0.18);
}

.meta-panel dt {
  color: #7dd3fc;
  font-size: 13px;
}

.meta-panel dd {
  margin: 8px 0 0;
  color: #f8fafc;
  font-weight: 750;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.96));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0;
}

.footer-inner p {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  max-width: 480px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slider {
    min-height: auto;
    padding: 34px 0 76px;
  }

  .hero-slide,
  .detail-layout,
  .detail-content,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 360px;
    margin: 0 auto;
    transform: none;
  }

  .quick-search-card,
  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-search-box,
  .quick-search-box input,
  .section-more {
    width: 100%;
  }

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

  .movie-card-compact {
    grid-template-columns: 96px 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .quick-search-section,
  .page-hero,
  .detail-hero,
  .footer-inner,
  .footer-bottom,
  .mobile-menu {
    width: min(100% - 22px, 1240px);
  }

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

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

  .hero-copy p,
  .page-hero p,
  .detail-line {
    font-size: 15px;
  }

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

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

  .movie-card:not(.movie-card-compact) .poster-link img {
    height: 100%;
  }

  .filter-panel select {
    width: 100%;
  }

  .movie-video {
    min-height: 220px;
  }

  .meta-panel dl {
    grid-template-columns: 1fr;
  }
}
