:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --border: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --cyan-dark: #0e7490;
  --orange: #fb923c;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(251, 146, 60, 0.1), transparent 24rem),
    var(--bg);
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-logo::before,
.footer-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(6, 182, 212, 0.12);
}

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  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;
  opacity: 0.64;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, var(--bg), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 720px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 42px;
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
}

.hero-summary {
  max-width: 620px;
  color: var(--soft);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.detail-meta span,
.movie-meta-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: var(--soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.54);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.14);
  transform: translateY(-1px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.22);
}

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

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.section-heading h2,
.ranking-copy h2,
.story-card h2 {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

.catalog-grid {
  margin-top: 26px;
}

.movie-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.56);
  box-shadow: 0 28px 70px rgba(8, 145, 178, 0.16);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap,
.detail-poster,
.category-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.38), transparent 36%),
    linear-gradient(135deg, #0f172a, #111827 55%, #082f49);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.poster-wrap img,
.detail-poster img,
.category-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-image.is-hidden {
  display: none;
}

.poster-text {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(6, 182, 212, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

.movie-card-body h3 {
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.category-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.category-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin-top: 18px;
  color: var(--soft);
}

.ranking-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.94));
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.ranking-copy p {
  margin: 18px 0 28px;
  color: var(--soft);
  font-size: 17px;
}

.ranking-list {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 26px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  transition: background 0.25s ease;
}

.ranking-list a:hover {
  background: rgba(6, 182, 212, 0.1);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(135deg, var(--cyan-dark), var(--orange));
  font-weight: 900;
}

.rank-title {
  color: var(--text);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.page-main,
.detail-main {
  padding-bottom: 80px;
}

.page-hero {
  padding-top: 88px;
  padding-bottom: 42px;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 780px;
  color: var(--soft);
  font-size: 18px;
}

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

.category-overview-card {
  padding: 24px;
  border-radius: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.category-overview-head h2 {
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
}

.category-overview-head a,
.category-mini-links a {
  color: var(--cyan);
  font-weight: 700;
}

.category-overview-card p {
  color: var(--soft);
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-mini-links a {
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(6, 182, 212, 0.75);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-tabs button {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 14px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: var(--text);
  border-color: rgba(6, 182, 212, 0.65);
  background: rgba(6, 182, 212, 0.16);
}

.detail-hero {
  padding-top: 64px;
}

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

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

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 72px);
}

.detail-one-line {
  max-width: 760px;
  color: var(--soft);
  font-size: 19px;
}

.detail-meta {
  margin-top: 24px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  padding-top: 58px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(6, 182, 212, 0.26);
  background: #000;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.16), transparent 20rem),
    rgba(2, 6, 23, 0.54);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  font-size: 34px;
  box-shadow: 0 22px 70px rgba(6, 182, 212, 0.26);
}

.play-cover strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: var(--soft);
  font-size: 14px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 44px;
}

.story-card {
  padding: 24px;
  border-radius: 24px;
}

.story-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.story-card p {
  color: var(--soft);
  line-height: 1.8;
}

.large-tags span {
  font-size: 13px;
}

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

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
}

.next-prev a {
  min-width: 0;
  color: var(--cyan);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.footer-inner {
  display: grid;
  gap: 18px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.footer-inner p {
  max-width: 780px;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--cyan);
  font-weight: 700;
}

.filter-item.is-filtered {
  display: none;
}

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-copy {
    padding: 28px;
  }

  .section-heading,
  .ranking-layout,
  .filter-panel,
  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-overview-head,
  .next-prev {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

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

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

  .site-logo,
  .footer-logo {
    font-size: 18px;
  }

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

  .hero-copy h1 {
    font-size: 40px;
  }

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

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

  .ranking-list a {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }

  .section-block {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}
