:root {
  color-scheme: light;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-ink: #0f172a;
  --site-muted: #64748b;
  --site-border: rgba(148, 163, 184, 0.28);
  --site-primary: #0ea5e9;
  --site-primary-dark: #0369a1;
  --site-cyan: #06b6d4;
  --site-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(14, 165, 233, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(6, 182, 212, 0.14), transparent 28rem),
    var(--site-bg);
  color: var(--site-ink);
}

img {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--site-ink);
}

.brand:hover {
  color: var(--site-primary-dark);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #38bdf8, #06b6d4 52%, #2563eb);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.26);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--site-muted);
  font-size: 0.76rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border-radius: 0.8rem;
  color: #334155;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  background: #e0f2fe;
  color: var(--site-primary-dark);
}

.mobile-nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: #e0f2fe;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
}

.mobile-nav-toggle span {
  width: 1.2rem;
  height: 2px;
  background: var(--site-primary-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.open {
  display: grid;
  gap: 0.35rem;
}

.hero-slider {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: 690px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 650ms ease, transform 900ms ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62) 45%, rgba(2, 132, 199, 0.24)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 3rem;
  min-height: 620px;
  padding-top: 4rem;
  padding-bottom: 7rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-text h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  margin-top: 1.2rem;
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(1rem, 2.1vw, 1.24rem);
}

.hero-tags,
.detail-meta,
.movie-meta-row,
.tag-row,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span,
.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  color: #f8fafc;
  border-radius: 999px;
  padding: 0.36rem 0.8rem;
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.42);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 1.8rem;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
}

.hero-poster img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: grid;
  gap: 1rem;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 2rem;
  background: #38bdf8;
}

.hero-thumb-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  text-align: left;
  backdrop-filter: blur(14px);
}

.hero-thumb.active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.26);
}

.hero-thumb img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-block {
  padding: 4.5rem 0;
}

.soft-section {
  background: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(226, 232, 240, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2,
.section-heading h1 {
  color: var(--site-ink);
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 760px;
  margin-top: 0.45rem;
  color: var(--site-muted);
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

.text-link,
.side-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.66rem 1rem;
  background: #e0f2fe;
  color: var(--site-primary-dark);
  font-weight: 800;
}

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

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

.category-tile {
  display: grid;
  min-height: 164px;
  align-content: end;
  gap: 0.65rem;
  border-radius: 1.35rem;
  padding: 1.3rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(6, 182, 212, 0.85)),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.42), transparent 12rem);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(14, 165, 233, 0.2);
}

.category-tile:nth-child(3n + 2) {
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(37, 99, 235, 0.86)),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.38), transparent 12rem);
}

.category-tile:nth-child(3n) {
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(8, 145, 178, 0.9)),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.36), transparent 12rem);
}

.category-tile span {
  color: #ffffff;
  font-size: 1.36rem;
  font-weight: 900;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.88);
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.movie-card[hidden] {
  display: none;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.movie-card:hover .poster-frame img,
.ranking-card:hover img {
  transform: scale(1.055);
}

.poster-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(2, 6, 23, 0.66);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  flex: 1;
}

.movie-meta-row {
  gap: 0.35rem;
  color: var(--site-muted);
  font-size: 0.78rem;
}

.movie-meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 0.35rem;
  color: #cbd5e1;
}

.movie-title {
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.3;
}

.movie-title a {
  color: var(--site-ink);
}

.movie-title a:hover {
  color: var(--site-primary-dark);
}

.movie-card-body p {
  color: var(--site-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
}

.tag-row {
  gap: 0.4rem;
}

.tag-row .badge {
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.35fr));
  gap: 0.85rem;
  margin-bottom: 1.3rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.9rem;
  background: #ffffff;
  color: var(--site-ink);
  padding: 0 0.85rem;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.6rem 0;
  color: #ffffff;
}

.page-hero h1 {
  color: #ffffff;
  max-width: 900px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a {
  color: #ffffff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  grid-template-areas:
    "rank title"
    "rank meta";
  gap: 0.25rem 0.9rem;
  align-items: center;
  border-radius: 1rem;
  padding: 0.95rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.rank-item span {
  grid-area: rank;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  background: #e0f2fe;
  color: var(--site-primary-dark);
  font-weight: 900;
}

.rank-item strong {
  grid-area: title;
  color: var(--site-ink);
}

.rank-item em {
  grid-area: meta;
  color: var(--site-muted);
  font-style: normal;
  font-size: 0.88rem;
}

.ranking-grid {
  display: grid;
  gap: 1rem;
}

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  padding: 0.8rem;
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.ranking-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.ranking-poster span {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  border-radius: 0.75rem;
  padding: 0.35rem 0.5rem;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-weight: 900;
}

.ranking-content {
  display: grid;
  align-content: center;
  gap: 0.6rem;
}

.ranking-content h2 {
  font-size: 1.5rem;
}

.ranking-content h2 a {
  color: var(--site-ink);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
  color: #ffffff;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.70) 52%, rgba(14, 165, 233, 0.26)),
    linear-gradient(0deg, #020617, transparent 46%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 560px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.detail-cover {
  overflow: hidden;
  border-radius: 1.6rem;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.48);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.detail-cover img {
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 1rem 0;
  color: #dbeafe;
  font-size: 1.16rem;
}

.detail-tags {
  margin: 1rem 0 1.4rem;
}

.player-section {
  padding-bottom: 2rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.18), transparent 18rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.28));
  text-align: center;
}

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

.play-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.42);
  font-size: 2.1rem;
  padding-left: 0.2rem;
}

.player-overlay strong {
  max-width: min(720px, 88%);
  font-size: clamp(1.4rem, 3vw, 2.35rem);
}

.player-overlay em {
  color: #bae6fd;
  font-style: normal;
  font-weight: 800;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  color: #ffffff;
  text-align: center;
  pointer-events: none;
}

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

.detail-article,
.detail-side {
  padding: 1.4rem;
  border: 1px solid rgba(226, 232, 240, 0.94);
}

.detail-article h2,
.detail-side h2 {
  margin-bottom: 0.85rem;
  font-size: 1.5rem;
}

.detail-article h2:not(:first-child) {
  margin-top: 1.6rem;
}

.detail-article p {
  color: #334155;
  font-size: 1.02rem;
  white-space: pre-line;
}

.detail-side dl {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.detail-side div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.detail-side dt {
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--site-ink);
  font-weight: 800;
}

.site-footer {
  margin-top: 2rem;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding: 3rem 1rem 2rem;
}

.footer-grid h2 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

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

.footer-links a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.2rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

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

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero-content,
  .detail-hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-thumb-row {
    display: none;
  }

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

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

  .detail-cover {
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-slider,
  .hero-track {
    min-height: 620px;
  }

  .hero-content {
    min-height: 560px;
    padding-top: 3rem;
    padding-bottom: 5.5rem;
  }

  .hero-text h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.045em;
  }

  .hero-actions,
  .split-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .ranking-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .ranking-content h2 {
    font-size: 1.15rem;
  }

  .player-card {
    border-radius: 0.9rem;
  }
}

@media (max-width: 430px) {
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .category-movie-grid,
  .movie-strip,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .section-block {
    padding: 3rem 0;
  }
}
