:root {
  --site-primary: #0ea5e9;
  --site-secondary: #10b981;
  --site-dark: #111827;
  --site-muted: #64748b;
  --site-border: #e5e7eb;
  --site-soft: #f0f9ff;
  --site-card: #ffffff;
  --site-radius: 22px;
}

body {
  min-height: 100vh;
  background: #fafafa;
  color: #171717;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 229, 229, 0.7);
  transition: box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
  font-size: 14px;
}

.logo-text {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0284c7, #059669);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 9px 12px;
  color: #404040;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #0284c7;
  background: #f0f9ff;
}

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

.top-search input,
.mobile-search input,
.filter-panel input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f5f5f5;
  padding: 11px 14px;
  color: #111827;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 180px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus {
  border-color: rgba(14, 165, 233, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.top-search button,
.mobile-search button,
.filter-chips button {
  border-radius: 12px;
  padding: 10px 14px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.filter-chips button:hover,
.filter-chips button.is-active {
  background: #0ea5e9;
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f0f9ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: #0284c7;
}

.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(229, 229, 229, 0.7);
  background: #fff;
}

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

.hero-wrap {
  padding: 32px 0 46px;
  background: radial-gradient(circle at 16% 0%, rgba(14, 165, 233, 0.16), transparent 32%), radial-gradient(circle at 82% 16%, rgba(16, 185, 129, 0.18), transparent 34%), #fff;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.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;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 46%, rgba(2, 6, 23, 0.2)), linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent 55%);
}

.hero-content {
  position: absolute;
  left: clamp(22px, 6vw, 74px);
  bottom: clamp(28px, 7vw, 82px);
  max-width: 720px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  margin-bottom: 15px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-content h1,
.hero-content h2 {
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: clamp(1.6rem, 4vw, 3.15rem);
}

.hero-content p {
  max-width: 680px;
  color: #e5e7eb;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-dots {
  position: absolute;
  left: clamp(22px, 6vw, 74px);
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--site-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: border 0.2s ease, transform 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  border-color: rgba(14, 165, 233, 0.55);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 48px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-thumb span {
  font-weight: 700;
  color: #262626;
  font-size: 0.9rem;
}

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

.hero-category-links a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 700;
}

.soft-bg {
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
}

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

.section-head h2 {
  color: #111827;
}

.section-head p {
  margin-top: 8px;
  color: var(--site-muted);
}

.section-more {
  color: #0284c7;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  border: 1px solid rgba(229, 229, 229, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
  opacity: 0.72;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #0284c7;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-play {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(239, 68, 68, 0.25);
}

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

.movie-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-card h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  font-size: 1.08rem;
  color: #111827;
}

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

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

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #059669;
  background: #ecfdf5;
  font-size: 0.76rem;
  font-weight: 700;
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.movie-card-horizontal a {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .poster-frame {
  aspect-ratio: auto;
  min-height: 220px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #059669);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.category-card span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
}

.category-card img {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0.28;
  transform: rotate(8deg);
}

.page-hero,
.detail-hero {
  padding: 60px 0;
  color: #fff;
  background: radial-gradient(circle at 16% 0%, rgba(14, 165, 233, 0.32), transparent 34%), linear-gradient(135deg, #0f172a, #164e63 52%, #065f46);
}

.page-hero-content {
  max-width: 820px;
}

.page-hero-content > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 13px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1,
.detail-hero h1 {
  color: #fff;
}

.page-hero p,
.detail-hero p {
  margin-top: 14px;
  color: #dbeafe;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.filter-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.filter-panel.single-line {
  max-width: 720px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  display: none;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 68px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(14, 165, 233, 0.55);
  transform: translateY(-2px);
}

.ranking-row img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-number {
  color: #f97316;
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking-row strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em {
  color: var(--site-muted);
  font-style: normal;
}

.ranking-row b {
  color: #f59e0b;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-one-line {
  max-width: 820px;
}

.detail-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-meta li {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.detail-meta span {
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-meta b {
  color: #fff;
  font-weight: 800;
}

.player-section {
  padding: 48px 0;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: 1.65rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.76));
}

.player-shell.is-playing .player-overlay {
  display: none;
  pointer-events: none;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #0284c7;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
}

.player-overlay strong {
  font-size: 1.15rem;
}

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

.detail-article,
.detail-side {
  border: 1px solid var(--site-border);
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.detail-article h2,
.detail-side h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.detail-article p + h2 {
  margin-top: 28px;
}

.detail-article p,
.detail-side p {
  color: #475569;
  line-height: 1.86;
}

.side-category {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 12px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
}

.site-footer {
  background: #111827;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-top: 54px;
  padding-bottom: 38px;
}

.footer-logo {
  color: #fff;
  font-size: 1.25rem;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 14px;
  color: #94a3b8;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 20px;
  padding-bottom: 24px;
  color: #94a3b8;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .movie-grid,
  .compact-grid,
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

  .logo-text {
    font-size: 1.08rem;
  }

  .hero-carousel {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.32));
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 56px;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-controls {
    right: 18px;
    top: 18px;
    bottom: auto;
  }

  .hero-dots {
    left: 20px;
    bottom: 22px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal a {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .poster-frame {
    aspect-ratio: 2 / 3;
  }

  .ranking-row {
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  }

  .ranking-row em {
    display: none;
  }

  .ranking-row img {
    width: 58px;
    height: 76px;
  }

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

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

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

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