:root {
  --primary: #f0641f;
  --primary-dark: #d94f13;
  --primary-soft: #fef6ee;
  --secondary: #14b895;
  --secondary-soft: #f0fdf9;
  --accent-soft: #fefce8;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --shadow-medium: 0 12px 32px rgba(28, 25, 23, .1);
  --shadow-hard: 0 10px 40px -3px rgba(0, 0, 0, .15), 0 20px 30px -10px rgba(0, 0, 0, .1);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--neutral-50);
  color: var(--neutral-900);
  line-height: 1.6;
}

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;
}

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

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

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

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.brand__text strong,
.brand__text small {
  display: block;
}

.brand__text strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand__text small {
  margin-top: 3px;
  color: var(--neutral-600);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--neutral-700);
  font-weight: 600;
}

.site-nav a {
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--neutral-100);
  color: var(--neutral-900);
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .54;
  transform: scale(1.04);
  z-index: -3;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, .94), rgba(28, 25, 23, .62), rgba(28, 25, 23, .2)), linear-gradient(0deg, rgba(28, 25, 23, .92), rgba(28, 25, 23, 0) 44%);
  z-index: -2;
}

.hero-slide__content {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
  align-items: center;
  gap: 52px;
  padding: 56px 0 68px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero-copy h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.hero-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 16px 28px rgba(240, 100, 31, .26);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  box-shadow: var(--shadow-hard);
  transform: rotate(1deg);
  transition: transform .25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster strong,
.hero-poster span {
  display: block;
  padding: 0 22px;
}

.hero-poster strong {
  padding-top: 18px;
  font-size: 22px;
}

.hero-poster span {
  padding-bottom: 22px;
  color: rgba(255, 255, 255, .72);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--primary);
}

.search-strip {
  margin-top: -38px;
  position: relative;
  z-index: 3;
}

.search-strip form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.search-strip input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--neutral-900);
  background: var(--white);
  outline: none;
}

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

.section {
  padding: 64px 0;
}

.section--white {
  background: var(--white);
}

.section--soft {
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.movie-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--neutral-200);
}

.movie-card--featured .movie-card__cover {
  aspect-ratio: 16 / 9;
}

.movie-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.movie-card:hover .movie-card__cover img {
  transform: scale(1.06);
}

.movie-card__type,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.movie-card__type {
  left: 12px;
  background: var(--primary);
}

.rank-badge {
  right: 12px;
  background: rgba(28, 25, 23, .78);
  backdrop-filter: blur(10px);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  margin-bottom: 8px;
  color: var(--neutral-500);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.category-card {
  position: relative;
  min-height: 148px;
  padding: 24px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.category-card strong,
.category-card span {
  display: block;
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-card span {
  color: rgba(255, 255, 255, .86);
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  padding: 54px 0;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--neutral-600);
  font-size: 17px;
}

.filter-panel {
  margin-bottom: 30px;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.filter-panel h2 {
  margin: 0;
}

.filter-count {
  margin: 0;
  color: var(--neutral-600);
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--neutral-600);
  font-size: 13px;
  font-weight: 700;
}

.detail-shell {
  padding: 42px 0 68px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .9fr);
  gap: 30px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  background: #000;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .64));
  color: var(--white);
  cursor: pointer;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 18px 38px rgba(240, 100, 31, .38);
  font-size: 34px;
  line-height: 1;
}

.detail-card {
  padding: 28px;
  margin-top: 22px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-intro {
  color: var(--neutral-600);
  font-size: 18px;
}

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

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

.prose h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--neutral-700);
}

.side-card {
  padding: 22px;
  position: sticky;
  top: 86px;
}

.side-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 18px;
}

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

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

.related-item img {
  width: 82px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.25;
}

.related-item span {
  color: var(--neutral-600);
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.ranking-row img {
  width: 92px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row h3 {
  margin: 0 0 4px;
  line-height: 1.25;
}

.ranking-row p {
  margin: 0;
  color: var(--neutral-600);
  font-size: 14px;
}

.site-footer {
  background: var(--neutral-900);
  color: rgba(255, 255, 255, .72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin-top: 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, .72);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, .55);
}

.empty-state {
  display: none;
  padding: 48px;
  border-radius: 22px;
  background: var(--white);
  text-align: center;
  color: var(--neutral-600);
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

.info-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 0;
}

.info-page article {
  padding: 34px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.info-page h1 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-hard);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: var(--neutral-100);
  }

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

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

  .hero-poster {
    max-width: 360px;
  }

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

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

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

  .side-card {
    position: static;
  }
}

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

  .brand__text small {
    display: none;
  }

  .hero-slider,
  .hero-slide,
  .hero-slide__content {
    min-height: auto;
  }

  .hero-slide__content {
    padding: 44px 0 86px;
  }

  .hero-poster {
    display: none;
  }

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

  .section {
    padding: 44px 0;
  }

  .section-heading,
  .filter-panel__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid--featured,
  .category-grid,
  .ranking-list,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 80px minmax(0, 1fr);
  }

  .detail-card {
    padding: 22px;
  }
}
