:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(30, 64, 175, 0.34);
  --line-hot: rgba(34, 211, 238, 0.48);
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --orange: #f97316;
  --pink: #db2777;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 22px 60px rgba(8, 47, 73, 0.32);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 38rem),
    linear-gradient(180deg, #020617 0%, #0f1d48 46%, #020617 100%);
}

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

img {
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(16px);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.32);
  font-weight: 900;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-subtitle {
  color: #67e8f9;
  font-size: 12px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d1d5db;
  font-weight: 600;
}

.site-nav a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.mobile-panel a:hover {
  color: var(--cyan);
}

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

.header-search {
  position: relative;
  width: 250px;
}

.header-search input,
.search-field,
.filter-input,
.filter-select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  padding: 10px 44px 10px 16px;
}

.header-search input:focus,
.search-field:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
  background: rgba(15, 23, 42, 0.94);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.45);
  color: var(--cyan);
}

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

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  color: #d1d5db;
  font-weight: 650;
}

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

.hero-track {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.88) 42%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.26) 40%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 70px 0;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 47, 73, 0.36);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  color: var(--cyan);
  font-size: clamp(25px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.hero-desc {
  max-width: 700px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

.hero-meta,
.movie-meta,
.card-meta,
.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 26px 0 34px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #cffafe;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
}

.badge-hot {
  color: #fed7aa;
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(124, 45, 18, 0.36);
}

.hero-actions,
.section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 780;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.28);
}

.btn-ghost {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.65);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(34, 211, 238, 0.22);
}

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

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

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

.section {
  padding: 70px 0;
}

.section-alt {
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.18), transparent);
  border-top: 1px solid rgba(30, 64, 175, 0.18);
  border-bottom: 1px solid rgba(30, 64, 175, 0.18);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2,
.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title .spark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.24);
}

.section-link {
  color: var(--cyan);
  font-weight: 750;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-hot);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.24);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 15%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.48));
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster img,
.rank-card:hover .poster img,
.related-card:hover .poster img {
  transform: scale(1.06);
}

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

.card-body {
  padding: 17px;
}

.card-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--cyan);
}

.card-desc {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.32);
  color: #bfdbfe;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  padding: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.32));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hot);
}

.category-card h2,
.category-card h3 {
  font-size: 24px;
  font-weight: 850;
}

.category-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 14px 0 20px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hot);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.18);
}

.rank-card .poster {
  height: 100%;
  aspect-ratio: auto;
}

.rank-no {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.25);
}

.rank-body {
  padding: 20px 20px 20px 0;
}

.page-hero {
  padding: 68px 0 42px;
}

.page-hero p {
  max-width: 780px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
  margin-top: 16px;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.filter-input,
.filter-select,
.search-field {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
  padding: 42px 0 72px;
}

.player-card,
.detail-card,
.related-panel {
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  z-index: 3;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-button {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  color: var(--text);
  font-size: 32px;
  padding-left: 5px;
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.34);
}

.detail-card {
  padding: 28px;
  margin-top: 22px;
}

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

.breadcrumb a {
  color: #67e8f9;
}

.detail-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.movie-meta {
  margin: 18px 0 22px;
  color: var(--muted);
}

.info-line {
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.18), transparent);
  padding: 16px 18px;
  color: #a5f3fc;
  line-height: 1.75;
  margin: 22px 0;
}

.detail-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}

.detail-section h2 {
  font-size: 23px;
  font-weight: 850;
  margin-bottom: 12px;
}

.detail-section p {
  color: #d1d5db;
  line-height: 1.9;
}

.related-panel {
  position: sticky;
  top: 100px;
  padding: 20px;
}

.related-panel h2 {
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 16px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(30, 64, 175, 0.22);
}

.related-card .poster {
  aspect-ratio: auto;
  min-height: 116px;
}

.related-body {
  padding: 12px 12px 12px 0;
}

.related-body h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.related-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.96));
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 26px;
  padding: 42px 0;
}

.footer h3 {
  color: var(--text);
  font-weight: 800;
  margin-bottom: 14px;
}

.footer p,
.footer li {
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(30, 64, 175, 0.22);
  font-size: 13px;
}

.empty-results {
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}

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

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

  .related-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

  .rank-card {
    grid-template-columns: 128px 1fr;
  }

  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .rank-card {
    grid-template-columns: 120px 1fr;
  }

  .card-body,
  .detail-card {
    padding: 18px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
