:root {
  color-scheme: light;
  --site-bg: #f8fafc;
  --site-text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: #e5e7eb;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-active {
  color: #ffffff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: #111827;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav.is-open {
  display: block;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #93c5fd;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-summary {
  max-width: 700px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 28px;
}

.hero-tags,
.detail-tags,
.tag-row,
.filter-row,
.detail-meta,
.movie-meta,
.hero-actions,
.hero-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 15px 28px rgba(37, 99, 235, 0.35);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: #111827;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img,
.poster-link img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
  font-size: 28px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 58px;
  transform: translateY(-50%);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.quick-section {
  margin-top: -44px;
  position: relative;
  z-index: 8;
}

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

.quick-grid a {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.quick-grid strong {
  font-size: 20px;
}

.quick-grid span {
  color: var(--muted);
}

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

.bg-soft {
  background: #f1f5f9;
}

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

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.more-link {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

.play-mark,
.poster-region,
.rank-badge {
  position: absolute;
  z-index: 2;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.poster-region {
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 900;
}

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

.movie-card h2 {
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
}

.movie-card h2 a:hover {
  color: var(--primary);
}

.movie-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
  gap: 6px;
}

.tag-row span {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 11px;
}

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

.category-card {
  overflow: hidden;
  min-height: 230px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-card a {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 12px;
  padding: 24px;
  color: #ffffff;
}

.category-card span {
  color: #bfdbfe;
  font-weight: 900;
}

.category-card h2 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}

.category-card-links {
  display: grid;
  gap: 6px;
  color: #dbeafe;
  font-size: 13px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

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

.ranking-panel,
.article-card,
.detail-side,
.search-panel,
.category-overview-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ranking-panel {
  padding: 22px;
  position: sticky;
  top: 98px;
}

.compact-head {
  margin-bottom: 18px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.compact-item:hover {
  background: #e0ecff;
}

.compact-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.compact-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.list-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  background-size: cover;
  background-position: center;
  padding: 88px 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.category-cover {
  display: flex;
  align-items: end;
  min-height: 300px;
  padding: 22px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.category-cover span {
  font-size: 24px;
  font-weight: 900;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-overview-body p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.slim-list .compact-item {
  grid-template-columns: 48px minmax(0, 1fr);
}

.slim-list .compact-item img {
  width: 48px;
  height: 62px;
}

.slim-list .list-rank {
  display: none;
}

.search-panel {
  padding: 20px;
  margin-bottom: 28px;
}

.search-box {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

.search-box span {
  color: var(--primary);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  outline: none;
  background: transparent;
  color: var(--site-text);
  font-size: 16px;
}

.filter-row {
  margin-top: 16px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--primary);
}

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

.no-result {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.hero-inline-links {
  margin-top: 18px;
}

.hero-inline-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
}

.detail-hero {
  color: #ffffff;
  background-size: cover;
  background-position: center;
  padding: 36px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-one-line {
  max-width: 830px;
  margin: 20px 0 24px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
}

.detail-tags {
  margin: 22px 0 28px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.22);
  color: #ffffff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.94);
  font-size: 32px;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.36);
}

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

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88%, 430px);
  padding: 18px 20px;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  text-align: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
}

.article-card {
  margin-top: 24px;
  padding: 30px;
}

.article-card h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.detail-side h2 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 900;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1.2fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  background: rgba(37, 99, 235, 0.42);
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

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

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

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

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero-inner,
  .detail-grid,
  .detail-content-grid,
  .split-grid,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 280px;
  }

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

  .movie-grid,
  .library-grid,
  .small-grid,
  .ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

  .category-cover {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    gap: 24px;
    align-content: center;
  }

  .hero-control {
    display: none;
  }

  .quick-section {
    margin-top: 20px;
  }

  .quick-grid,
  .category-grid,
  .movie-grid,
  .library-grid,
  .small-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .quick-grid a {
    padding: 18px;
    border-radius: 18px;
  }

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

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .movie-card h2 {
    min-height: 40px;
    font-size: 14px;
  }

  .movie-card p {
    display: none;
  }

  .tag-row {
    display: none;
  }

  .page-hero {
    padding: 62px 0;
  }

  .detail-hero {
    padding: 28px 0 56px;
  }

  .article-card {
    padding: 22px;
  }

  .article-card h2 {
    font-size: 23px;
  }

  .article-card p {
    font-size: 16px;
  }

  .footer-grid {
    padding: 34px 0;
  }
}
