:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.16);
  --accent-strong: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.10), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

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

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

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

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
  color: white;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

.brand-text {
  font-size: 1.15rem;
}

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

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input {
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.64);
  color: white;
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
  min-width: 170px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  background: var(--accent);
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

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

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.24)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 72px 0 110px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 13px;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #e0f2fe;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.hero-category-strip {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-category-strip a {
  flex: 0 0 auto;
  color: var(--muted-strong);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.content-section,
.page-hero,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.wide-section {
  padding-top: 68px;
}

.panel-section,
.ranking-preview,
.text-panel {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.panel-section,
.ranking-preview {
  border-radius: 28px;
  padding: 34px;
}

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

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

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

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

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.86)),
    rgba(15, 23, 42, 0.86);
  transition: transform 0.2s ease, border 0.2s ease;
}

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

.category-name {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-text {
  color: var(--muted-strong);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  padding: 6px 10px;
  font-size: 0.82rem;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.46);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.7);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

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

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.92);
  color: white;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

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

.movie-title {
  display: block;
  font-weight: 900;
  font-size: 1.04rem;
  line-height: 1.35;
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-item img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  color: var(--muted);
}

.footer-brand {
  color: white;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted-strong);
}

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

.compact-hero,
.category-hero,
.search-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

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

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 86px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  padding: 12px;
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: #7dd3fc;
  font-weight: 900;
}

.ranking-poster img {
  width: 86px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info a {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.ranking-info p,
.ranking-info span {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.big-search {
  margin-top: 22px;
}

.big-search input {
  min-width: min(520px, 58vw);
  border-radius: 18px;
  padding: 16px 18px;
}

.big-search button {
  border-radius: 18px;
  padding: 16px 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: end;
  padding: 68px 0 34px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  gap: 9px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #7dd3fc;
}

.detail-meta {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.player-section {
  padding: 10px 0 42px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: black;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.18));
  border: 0;
  cursor: pointer;
}

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

.video-play-button {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.95);
  color: white;
  font-size: 2rem;
  box-shadow: 0 22px 52px rgba(14, 165, 233, 0.38);
}

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

.text-panel {
  border-radius: 24px;
  padding: 28px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.text-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

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

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .mobile-link {
    display: block;
  }

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

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

  .detail-hero {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 1rem;
  }

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

  .hero-content {
    padding: 78px 0 140px;
  }

  .hero-category-strip {
    bottom: 18px;
  }

  .hero-dots {
    bottom: 86px;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .full-category-grid,
  .movie-grid,
  .featured-grid,
  .category-movie-grid,
  .rank-grid,
  .related-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .panel-section,
  .ranking-preview {
    padding: 22px;
  }

  .ranking-row {
    grid-template-columns: 42px 70px 1fr;
    gap: 10px;
  }

  .ranking-poster img {
    width: 70px;
    height: 94px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .video-play-button {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }

  .big-search {
    align-items: stretch;
    flex-direction: column;
  }

  .big-search input {
    min-width: 0;
    width: 100%;
  }
}
