body {
  background: #f9fafb;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #1e3a8a;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #f97316);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #2563eb;
}
.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #1f2937;
  border-radius: 3px;
}
.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}
.mobile-nav.open {
  display: grid;
  gap: 12px;
}
.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 46%, #111827 100%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(249, 115, 22, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.76), rgba(15, 23, 42, 0.38));
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 110px;
  color: #ffffff;
}
.hero-copy {
  max-width: 760px;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -0.05em;
}
.hero-summary {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  color: #dbeafe;
  margin-bottom: 22px;
}
.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-tags span,
.tag-row span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}
.primary-button,
.secondary-button,
.text-button,
.section-more,
.small-button,
.secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.primary-button {
  min-height: 52px;
  padding: 0 28px;
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.28);
}
.primary-button:hover,
.small-button:hover {
  background: #ea580c;
  transform: translateY(-2px);
}
.secondary-button {
  min-height: 52px;
  padding: 0 26px;
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.18);
}
.secondary-button:hover {
  transform: translateY(-2px);
}
.text-button {
  color: #dbeafe;
}
.text-button:hover {
  color: #ffffff;
}
.hero-poster {
  position: relative;
  width: min(100%, 360px);
  justify-self: center;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.92);
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dot.active {
  width: 36px;
  background: #f97316;
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
}
.home-search {
  position: relative;
  z-index: 6;
  margin-top: -54px;
  padding-bottom: 30px;
}
.home-search-form {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(30, 64, 175, 0.16);
}
.home-search-form input,
.search-box input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 18px;
  color: #1f2937;
  outline: none;
}
.home-search-form input:focus,
.search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.home-search-form button {
  flex: 0 0 auto;
  border-radius: 14px;
  padding: 0 28px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
}
.stats-section {
  background: #ffffff;
  padding: 28px 0 54px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stats-grid div {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.stats-grid strong {
  display: block;
  color: #2563eb;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-grid span {
  color: #6b7280;
}
.content-section {
  padding: 74px 0;
  background: #ffffff;
}
.section-soft {
  background: #f9fafb;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}
.section-head p {
  max-width: 720px;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.7;
}
.section-more,
.secondary-light {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  color: #2563eb;
  background: #eff6ff;
}
.section-more:hover,
.secondary-light:hover {
  background: #dbeafe;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.movie-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}
.card-link {
  display: block;
  height: 100%;
}
.card-poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #e5e7eb;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.movie-card:hover .card-poster img {
  transform: scale(1.08);
}
.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 52%);
  opacity: 0.9;
}
.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.82);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.9);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.card-region,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}
.card-region {
  right: 10px;
  top: 10px;
  background: #f97316;
}
.card-year {
  left: 10px;
  bottom: 10px;
  background: #2563eb;
}
.rank-badge {
  left: 10px;
  top: 10px;
  background: rgba(17, 24, 39, 0.88);
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  min-height: 45px;
  margin-bottom: 9px;
  color: #111827;
  font-weight: 850;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body p {
  min-height: 42px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: 12px;
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.category-tile {
  position: relative;
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}
.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.42));
}
.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}
.category-tile span {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}
.category-tile p {
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.6;
}
.category-tile:hover img {
  transform: scale(1.08);
}
.ranking-band {
  padding: 80px 0;
  background: linear-gradient(135deg, #2563eb, #1e3a8a 68%, #111827);
  color: #ffffff;
}
.ranking-head h2,
.ranking-head p {
  color: #ffffff;
}
.ranking-list,
.ranking-full {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.movie-card-compact .card-link {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 156px;
}
.movie-card-compact .card-poster {
  height: 100%;
}
.movie-card-compact .card-body h3 {
  min-height: auto;
}
.movie-card-compact .card-body p {
  min-height: auto;
}
.page-hero {
  padding: 96px 0 72px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8 55%, #111827);
  color: #ffffff;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}
.filter-panel {
  margin-bottom: 34px;
}
.search-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto 18px;
}
.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 23px;
}
.search-box input {
  padding-left: 50px;
  background: #ffffff;
}
.filter-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip {
  border-radius: 999px;
  padding: 9px 18px;
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
  font-weight: 700;
}
.filter-chip.active,
.filter-chip:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.empty-state {
  margin: 34px auto 0;
  text-align: center;
  color: #6b7280;
  font-size: 18px;
}
.page-card-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.overview-grid {
  display: grid;
  gap: 24px;
}
.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.category-cover {
  min-height: 240px;
  overflow: hidden;
  background: #e5e7eb;
}
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-overview-body {
  padding: 28px;
}
.category-overview-body h2 {
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 12px;
}
.category-overview-body p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 18px;
}
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.mini-links a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}
.small-button {
  min-height: 42px;
  padding: 0 18px;
  background: #f97316;
  color: #ffffff;
}
.detail-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.detail-topbar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  color: #6b7280;
  font-size: 14px;
}
.detail-topbar a {
  color: #2563eb;
  font-weight: 700;
}
.detail-topbar strong {
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-section {
  padding: 34px 0 30px;
  background: #f9fafb;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.72fr);
  gap: 30px;
}
.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}
.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.player-overlay-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: #f97316;
  font-size: 34px;
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.36);
}
.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}
.detail-card,
.info-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.detail-tags span {
  background: #f3f4f6;
  color: #4b5563;
}
.detail-tags .main-tag {
  background: #dbeafe;
  color: #2563eb;
}
.detail-card h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
  margin-bottom: 16px;
}
.detail-card h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 900;
  color: #111827;
  margin: 26px 0 14px;
}
.detail-card p {
  color: #4b5563;
  line-height: 1.85;
  font-size: 16px;
}
.detail-one-line {
  font-size: 18px;
  color: #374151;
  margin-bottom: 20px;
}
.tag-row span {
  background: #f3f4f6;
  color: #4b5563;
}
.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}
.info-card {
  margin-top: 0;
}
.info-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  background: #e5e7eb;
}
.info-card h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}
.info-card dl {
  display: grid;
  gap: 0;
}
.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.info-card dt {
  color: #6b7280;
}
.info-card dd {
  color: #111827;
  font-weight: 700;
  text-align: right;
}
.related-section {
  background: #f9fafb;
}
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 58px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}
.footer-logo {
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-text {
  max-width: 480px;
  color: #9ca3af;
  line-height: 1.8;
}
.site-footer h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: #9ca3af;
}
.footer-links a:hover {
  color: #f97316;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #9ca3af;
  font-size: 14px;
}
.back-top {
  color: #d1d5db;
}
.back-top:hover {
  color: #f97316;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1280px) {
  .movie-grid,
  .page-card-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ranking-list,
  .ranking-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-button {
    display: inline-flex;
  }
  .hero-content,
  .detail-grid,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
    gap: 26px;
  }
  .hero-actions,
  .hero-tags {
    justify-content: center;
  }
  .hero-poster {
    width: min(72vw, 320px);
    transform: none;
  }
  .detail-sidebar {
    position: static;
  }
  .section-head,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }
  .stats-grid,
  .ranking-list,
  .ranking-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }
  .site-logo {
    font-size: 18px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
  }
  .hero-section,
  .hero-content {
    min-height: 760px;
  }
  .hero-content {
    padding-top: 38px;
    padding-bottom: 120px;
  }
  .hero-summary {
    font-size: 16px;
  }
  .home-search-form {
    flex-direction: column;
  }
  .home-search-form button {
    min-height: 48px;
  }
  .stats-grid,
  .movie-grid,
  .page-card-grid,
  .category-grid,
  .ranking-list,
  .ranking-full,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .card-poster {
    height: 210px;
  }
  .movie-card-compact .card-link {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 126px;
  }
  .movie-card-compact .card-poster {
    height: 100%;
  }
  .card-body {
    padding: 12px;
  }
  .card-body h3 {
    font-size: 14px;
    min-height: 39px;
  }
  .card-body p {
    display: none;
  }
  .content-section {
    padding: 52px 0;
  }
  .page-hero {
    padding: 68px 0 54px;
  }
  .detail-card,
  .info-card {
    padding: 20px;
  }
}
