* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: #111827;
  background: #f9fafb;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.container.narrow {
  width: min(960px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.brand-text {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

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

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

.mobile-panel.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px;
  border-radius: 10px;
  color: #374151;
  font-weight: 600;
}

.mobile-link.active,
.mobile-link:hover {
  background: #ecfeff;
  color: #0891b2;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  margin: 0 0 24px;
  max-width: 700px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  margin-bottom: 28px;
  color: #d1d5db;
  font-weight: 600;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.hero-search {
  position: absolute;
  z-index: 4;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 28px;
  width: min(390px, calc(100% - 32px));
}

.hero-search form {
  display: flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 800;
  cursor: pointer;
}

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

.content-section.white {
  background: #ffffff;
}

.content-section.soft {
  background: #f9fafb;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-more {
  padding: 10px 18px;
  color: #ffffff;
  background: #2563eb;
  white-space: nowrap;
}

.scroll-wrap {
  position: relative;
}

.card-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.card-scroll::-webkit-scrollbar {
  display: none;
}

.card-scroll .movie-card {
  flex: 0 0 288px;
}

.scroll-btn {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.scroll-btn.left {
  left: -12px;
}

.scroll-btn.right {
  right: -12px;
}

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

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

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

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

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

.card-cover {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.movie-card.large .card-cover {
  height: 320px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 52%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border-radius: 8px;
  padding: 5px 9px;
  color: #ffffff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.rank-mark {
  left: auto;
  right: 12px;
  background: #111827;
}

.play-hover {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  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.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

.card-body p {
  min-height: 44px;
  margin: 10px 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #0891b2;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-card a {
  display: block;
  height: 100%;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.13);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
}

.category-tile h3,
.category-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile p,
.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
  font-size: 14px;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a {
  width: auto;
  height: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  box-shadow: none;
  font-size: 13px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
}

.blue-hero {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.cyan-hero {
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.dark-hero {
  background: linear-gradient(135deg, #111827, #334155);
}

.breadcrumb,
.detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #dbeafe;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
}

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

.search-panel {
  grid-template-columns: minmax(0, 1fr) 160px 180px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 50px 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.row-rank {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 900;
}

.rank-row img {
  width: 88px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-row p {
  margin: 0 0 8px;
  color: #4b5563;
  line-height: 1.55;
}

.rank-row span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.rank-row strong {
  color: #2563eb;
  font-size: 20px;
}

.detail-main {
  background: #f9fafb;
}

.detail-hero {
  padding: 48px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.55), transparent 28%), linear-gradient(135deg, #0f172a, #111827 55%, #1e293b);
}

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

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #1f2937;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-one-line {
  max-width: 760px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

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

.player-section {
  padding: 40px 0 18px;
  background: #0f172a;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.32);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.player-start:hover span {
  transform: scale(1.08);
}

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

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

.detail-article,
.detail-side {
  border-radius: 18px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-side dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-side dt {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  margin: -8px 0 0;
  color: #111827;
  font-weight: 800;
}

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

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-main p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 15px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .detail-cover {
    max-width: 300px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 76px;
  }

  .hero-search {
    right: 16px;
    left: 16px;
    bottom: 72px;
    width: auto;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-list-grid,
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }

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

  .rank-row a {
    grid-template-columns: 40px 72px minmax(0, 1fr);
  }

  .rank-row strong {
    grid-column: 3;
  }

  .rank-row img {
    width: 72px;
    height: 96px;
  }
}

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

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

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-list-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .card-cover {
    height: 300px;
  }

  .scroll-btn {
    display: none;
  }

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