:root {
  --primary-50: #fef6ee;
  --primary-100: #fde8d6;
  --primary-500: #f0641f;
  --primary-600: #e14915;
  --primary-700: #bb3513;
  --secondary-50: #f0fdf9;
  --secondary-100: #ccfbef;
  --secondary-500: #14b895;
  --secondary-700: #0a7763;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --shadow-hard: 0 10px 40px -3px rgba(0, 0, 0, .18), 0 18px 35px -14px rgba(0, 0, 0, .22);
}

body {
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: 0 12px 24px rgba(240, 100, 31, .22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -.02em;
}

.brand-text em {
  font-size: 12px;
  color: var(--neutral-600);
  font-style: normal;
  margin-top: 4px;
}

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

.nav-link {
  color: var(--neutral-700);
  font-weight: 700;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--neutral-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-link {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--neutral-700);
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(240, 100, 31, .18), transparent 36%), linear-gradient(135deg, var(--primary-50), #fff 48%, var(--secondary-50));
}

.hero-slider {
  position: relative;
  min-height: 640px;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(28, 25, 23, .88) 0%, rgba(28, 25, 23, .64) 42%, rgba(28, 25, 23, .18) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  gap: 44px;
  align-items: center;
  color: #fff;
  padding: 56px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.06em;
  margin: 0 0 22px;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 18px 30px rgba(240, 100, 31, .28);
}

.button-secondary {
  color: var(--neutral-900);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

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

.hero-poster-card {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(18px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-poster-card div {
  padding: 22px;
}

.hero-poster-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-poster-card span {
  color: rgba(255, 255, 255, .78);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  transition: width .2s ease, background .2s ease;
}

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

main {
  min-height: 60vh;
}

.page-hero {
  padding: 58px 0 42px;
  background: linear-gradient(135deg, var(--primary-50), #fff, var(--secondary-50));
  border-bottom: 1px solid var(--neutral-200);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-600);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary-600);
  font-weight: 700;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.04em;
  margin: 0 0 16px;
}

.page-hero p {
  max-width: 850px;
  color: var(--neutral-600);
  font-size: 18px;
  line-height: 1.85;
  margin: 0;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading > span {
  align-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-weight: 800;
  font-size: 13px;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -.035em;
}

.section-heading p {
  color: var(--neutral-600);
  margin: 0;
  line-height: 1.75;
}

.section-link {
  color: var(--primary-600);
  font-weight: 800;
}

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

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

.movie-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(231, 229, 228, .75);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hard);
  border-color: rgba(240, 100, 31, .28);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--neutral-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.year-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.year-pill {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, .62);
}

.rank-badge {
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--neutral-600);
}

.movie-meta-row a,
.movie-meta-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--neutral-100);
}

.movie-meta-row a {
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: var(--neutral-600);
  line-height: 1.68;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--secondary-100);
  color: var(--secondary-700);
  font-size: 12px;
  font-weight: 700;
}

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

.compact-card h3 {
  font-size: 16px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(135deg, #fff, var(--primary-50));
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 100, 31, .18), rgba(20, 184, 149, .18));
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: var(--neutral-600);
  line-height: 1.75;
  margin: 0 0 22px;
}

.category-card a {
  position: relative;
  z-index: 1;
  color: var(--primary-600);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px 160px;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  color: var(--neutral-900);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(240, 100, 31, .12);
}

.empty-state {
  display: none;
  padding: 56px 20px;
  text-align: center;
  color: var(--neutral-600);
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--neutral-200);
}

.empty-state.show {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--neutral-200);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

.rank-item img {
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.rank-item p {
  margin: 0;
  color: var(--neutral-600);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow-hard);
  margin-bottom: 24px;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .62));
  color: #fff;
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .34);
}

.play-circle svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
  fill: currentColor;
}

.detail-card,
.side-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}

.detail-lead {
  color: var(--neutral-600);
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 24px;
}

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-weight: 700;
}

.detail-meta a {
  background: var(--primary-50);
  color: var(--primary-700);
}

.content-block {
  margin: 26px 0;
}

.content-block h2 {
  font-size: 23px;
  font-weight: 900;
  margin: 0 0 12px;
}

.content-block p {
  color: var(--neutral-700);
  line-height: 1.95;
  margin: 0;
}

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

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

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 112px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.related-card strong {
  display: block;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.related-card em {
  color: var(--neutral-600);
  font-style: normal;
  font-size: 13px;
}

.prose-seo {
  max-width: 920px;
  color: var(--neutral-700);
  line-height: 1.95;
  font-size: 16px;
}

.prose-seo p {
  margin: 0 0 16px;
}

.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  line-height: 1.85;
  color: var(--neutral-300);
}

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

.footer-links a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  margin-top: 38px;
  padding: 20px 16px;
  border-top: 1px solid var(--neutral-800);
  text-align: center;
  color: var(--neutral-500);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    display: none;
  }

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

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

  .side-card {
    position: static;
  }

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

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

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

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

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

  .brand-text em {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 580px;
  }

  .hero-content {
    padding: 42px 0 78px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .section {
    padding: 46px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

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

  .rank-item {
    grid-template-columns: 42px 86px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-item img {
    width: 86px;
  }

  .detail-card {
    padding: 20px;
  }

  .related-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .related-card img {
    width: 92px;
  }

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

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

  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-primary,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}
