body {
  background: #f8fafc;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  font-size: 15px;
}

.brand-name {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.nav-link,
.mobile-nav-link {
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  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: #0891b2;
}

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

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 10px 24px 18px;
  background: #ffffff;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: #ecfeff;
}

.hero-slider {
  position: relative;
  height: 600px;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(14, 165, 233, 0.38), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(15, 23, 42, 0.68) 45%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
  color: #d1d5db;
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

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

.primary-button:hover {
  background: #1d4ed8;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.64);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.home-intro,
.content-section,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 32px;
}

.home-intro h2,
.section-head h2,
.detail-card h1,
.side-card h2,
.detail-card h2 {
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.home-intro h2,
.section-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.home-intro p,
.section-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.search-panel input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  outline: none;
  color: #111827;
  background: #f8fafc;
}

.search-panel button {
  height: 44px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #0891b2;
  font-weight: 800;
}

.content-section:nth-of-type(even) {
  background: transparent;
}

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

.section-head.with-search {
  align-items: center;
}

.section-head.with-search .search-panel {
  width: min(100%, 460px);
}

.section-more,
.text-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.section-more:hover,
.text-link:hover {
  color: #0891b2;
}

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

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

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

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 290px);
  gap: 20px;
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

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

.card-cover {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.card-cover img,
.category-card-cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.image-missing {
  opacity: 0;
}

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.68));
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 12px;
  background: #2563eb;
}

.rank-badge {
  right: 12px;
  background: #ef4444;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 900;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-body h3 a:hover {
  color: #2563eb;
}

.card-summary {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary.compact {
  min-height: 44px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 46px rgba(37, 99, 235, 0.26);
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.category-tile em {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.category-tile em a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-decoration: none;
}

.page-hero {
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #ffffff;
}

.compact-hero {
  padding: 84px 24px;
}

.compact-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.compact-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.compact-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.ranking-hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0891b2);
}

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-card-cover {
  position: relative;
  min-height: 250px;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

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

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card-body h2 a {
  color: #111827;
  text-decoration: none;
}

.category-card-body p {
  margin: 0 0 16px;
  color: #6b7280;
  line-height: 1.8;
}

.category-card-body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.category-card-body li a {
  color: #374151;
  font-weight: 700;
  text-decoration: none;
}

.category-card-body li a:hover {
  color: #2563eb;
}

.player-section {
  background: #000000;
}

.player-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

.big-play {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.94);
  font-size: 40px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}

.big-play:hover {
  transform: scale(1.08);
  background: #ffffff;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 800;
}

.detail-card,
.side-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 800;
}

.detail-card section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 2;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.side-list .movie-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

.side-list .movie-card:hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.side-list .card-cover {
  height: 100%;
  min-height: 150px;
}

.side-list .card-body {
  padding: 12px;
}

.side-list .card-body h3 {
  min-height: auto;
  font-size: 14px;
}

.side-list .card-summary,
.side-list .tag-row {
  display: none;
}

.related-section {
  padding-top: 0;
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .home-intro,
  .section-head,
  .section-head.with-search,
  .footer-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .home-intro {
    display: grid;
  }

  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-card-cover {
    min-height: 220px;
  }

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

@media (max-width: 620px) {
  .nav-shell,
  .hero-content,
  .home-intro,
  .content-section,
  .detail-shell,
  .footer-shell,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    flex: 1 1 100%;
  }

  .large-grid,
  .ranking-grid,
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-cover {
    height: 320px;
  }

  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-card {
    padding: 20px;
  }

  .side-list .movie-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
