:root {
  --site-blue: #2563eb;
  --site-cyan: #06b6d4;
  --site-slate: #0f172a;
  --site-muted: #64748b;
  --site-card: #ffffff;
  --site-border: rgba(148, 163, 184, 0.24);
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 54%, #ecfeff 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.site-main {
  padding-top: 4rem;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #334155;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
  padding-bottom: 1rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.45rem;
}

.hero-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 52%, #14b8a6 100%);
  color: #ffffff;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.28), transparent 30%), radial-gradient(circle at 82% 20%, rgba(103, 232, 249, 0.35), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.1));
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #cffafe;
  font-weight: 800;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 1.2rem;
}

.hero-title span {
  display: block;
  color: #cffafe;
}

.hero-desc {
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  line-height: 1.8;
  color: #dbeafe;
  margin: 0 0 1.8rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary,
.btn-light,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.btn-light {
  color: #1d4ed8;
  background: #ffffff;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.8rem 1.25rem;
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-light:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-carousel {
  position: relative;
  min-height: 390px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  background: rgba(15, 23, 42, 0.35);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.18), transparent);
}

.hero-card-content h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 900;
  margin: 0 0 0.7rem;
}

.hero-card-content p {
  color: #dbeafe;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: -1.55rem;
  left: 50%;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 1.65rem;
  background: #ffffff;
}

.section-wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-kicker {
  color: #2563eb;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0;
}

.section-desc {
  color: #64748b;
  max-width: 46rem;
  line-height: 1.75;
  margin: 0.65rem 0 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--site-shadow);
}

.movie-card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #bfdbfe);
}

.movie-card.wide .movie-card-cover {
  aspect-ratio: 16 / 9;
}

.movie-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-card-cover img {
  transform: scale(1.07);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 900;
  margin: 0 0 0.55rem;
}

.movie-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 0.8rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.82rem;
}

.tag-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-weight: 800;
  font-size: 0.78rem;
}

.tag-pill {
  color: #1d4ed8;
  background: #dbeafe;
}

.meta-pill {
  color: #475569;
  background: #f1f5f9;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 1.4rem;
  border-radius: 1.4rem;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.65rem;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: #dbeafe;
  line-height: 1.7;
  margin: 0 0 1.1rem;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 110px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.rank-num {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.rank-thumb {
  width: 110px;
  aspect-ratio: 16 / 10;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #e2e8f0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel {
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--site-border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.filter-panel {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 0.35fr));
  gap: 0.85rem;
}

.input-field {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: 0.9rem;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  padding: 2rem;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 62%, #0891b2);
}

.detail-cover {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.35);
  background: #1e293b;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.detail-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 1rem;
}

.detail-desc {
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 56rem;
  margin: 0 0 1.2rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2), rgba(2, 6, 23, 0.82));
  cursor: pointer;
  border: 0;
  z-index: 2;
}

.player-overlay.is-hidden {
  display: none;
}

.play-core {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.35);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.35rem;
}

.article-panel {
  padding: 1.5rem;
  line-height: 1.9;
}

.article-panel h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 0 0 0.85rem;
  color: #0f172a;
}

.article-panel p {
  color: #334155;
  margin: 0 0 1.15rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.side-card {
  padding: 1.15rem;
}

.side-card h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 1rem;
}

.side-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid #e2e8f0;
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link img {
  width: 72px;
  aspect-ratio: 16 / 10;
  border-radius: 0.65rem;
  object-fit: cover;
  background: #e2e8f0;
}

.side-link strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.side-link span {
  color: #64748b;
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 4rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.footer-grid p,
.footer-grid a {
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #ffffff;
}

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

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

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

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

  .hero-grid,
  .detail-hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-carousel {
    min-height: 350px;
  }

  .hero-card,
  .hero-card img {
    min-height: 350px;
  }

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

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

  .rank-item {
    grid-template-columns: auto 90px minmax(0, 1fr);
  }

  .rank-item .btn-primary {
    grid-column: 1 / -1;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .rank-thumb {
    width: 82px;
  }
}
