:root {
  --primary-50: #fef6ee;
  --primary-100: #fde9d7;
  --primary-500: #f0641f;
  --primary-600: #e14915;
  --primary-700: #bb3513;
  --secondary-500: #14b895;
  --secondary-100: #ccfbef;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #78716c;
  --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-hard: 0 22px 45px -18px rgba(28, 25, 23, .25);
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), 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(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

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

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

.brand__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: var(--shadow-soft);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 18px;
  color: var(--neutral-900);
}

.brand__text small {
  color: var(--neutral-500);
  font-size: 12px;
}

.nav {
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--neutral-700);
  font-weight: 700;
  font-size: 14px;
  transition: color .2s ease;
}

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

.nav--desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav--mobile {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.nav--mobile.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--neutral-900);
  border-radius: 99px;
}

.hero {
  width: min(var(--container), calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

.hero__stage {
  position: relative;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--neutral-900);
  box-shadow: var(--shadow-hard);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, .9), rgba(28, 25, 23, .62) 42%, rgba(28, 25, 23, .18)), linear-gradient(0deg, rgba(28, 25, 23, .45), transparent 62%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 76px 54px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 16px;
  line-height: 1.08;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 950;
}

.hero-summary {
  max-width: 570px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 800;
}

.tag-row--light span {
  background: rgba(255, 255, 255, .2);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.page-hero .button--ghost,
.detail-info .button--ghost {
  color: var(--neutral-900);
  border-color: var(--neutral-200);
  background: var(--white);
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
}

.hero-dot.is-active {
  background: var(--white);
}

.hero__side {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--white), var(--primary-50));
  box-shadow: var(--shadow-soft);
}

.hero__side h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-side-card img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 13px;
}

.hero-side-card span {
  display: grid;
  gap: 4px;
}

.hero-side-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-side-card small {
  color: var(--neutral-500);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section {
  padding: 62px 0;
  background: var(--white);
}

.section--warm {
  background: linear-gradient(135deg, var(--primary-50), var(--white) 45%, #f0fdf9);
}

.section--soft {
  background: var(--neutral-50);
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--neutral-500);
}

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

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

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

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

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

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

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

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

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

.movie-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 25, 23, .72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(6px);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  gap: 8px;
  color: var(--primary-600);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: var(--neutral-500);
  font-size: 14px;
}

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

.category-card {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.category-card span {
  position: relative;
  font-size: 22px;
  font-weight: 950;
}

.category-card small {
  position: relative;
  opacity: .88;
}

.two-column {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-item__num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 950;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

.rank-item img {
  width: 74px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item__text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-item__text strong,
.rank-item__text small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item__text small {
  color: var(--neutral-500);
}

.page-hero {
  padding: 76px 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgba(240, 100, 31, .48), transparent 32%), linear-gradient(135deg, var(--neutral-900), #2f1f16 55%, #104238);
}

.page-hero--plain {
  background: linear-gradient(135deg, var(--primary-50), var(--white) 45%, #f0fdf9);
  color: var(--neutral-900);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}

.page-hero--plain p {
  color: var(--neutral-500);
}

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

.category-overview-card a {
  display: block;
  min-height: 220px;
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--neutral-500);
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-overview-card span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--neutral-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  min-width: 180px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: var(--neutral-50);
}

.filter-panel .search-field input {
  min-width: min(420px, 72vw);
}

.rank-layout {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.rank-list--large {
  max-height: none;
}

.detail-hero {
  padding: 36px 0 54px;
  background: linear-gradient(135deg, var(--neutral-900), #2a1d17 55%, #123d35);
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 34px;
  align-items: center;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-hard);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000;
  z-index: 2;
}

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

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

.player-cover__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .46);
}

.play-button {
  position: relative;
  z-index: 3;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: var(--shadow-hard);
  font-size: 30px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .7);
}

.detail-line {
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.detail-content {
  display: grid;
  gap: 22px;
}

.content-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 12px;
}

.content-card p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 17px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: var(--neutral-50);
}

.info-list dt {
  color: var(--neutral-500);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--neutral-900);
  font-weight: 900;
}

.site-footer {
  padding: 44px 0;
  color: var(--neutral-300, #d6d3d1);
  background: var(--neutral-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #d6d3d1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #d6d3d1;
}

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

.is-filter-hidden {
  display: none !important;
}

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

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

  .hero,
  .two-column,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    min-height: 500px;
  }

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

  .hero__side h2 {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 760px) {
  .brand {
    min-width: 0;
  }

  .brand__text strong {
    font-size: 15px;
  }

  .hero {
    margin-top: 16px;
  }

  .hero__stage {
    min-height: 560px;
    border-radius: 22px;
  }

  .hero-slide__shade {
    background: linear-gradient(0deg, rgba(28, 25, 23, .86), rgba(28, 25, 23, .22));
  }

  .hero-slide__content {
    padding: 220px 24px 74px;
  }

  .hero-dots {
    left: 24px;
    bottom: 26px;
  }

  .hero__side {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: grid;
  }

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

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

  .filter-panel {
    display: grid;
  }

  .filter-panel input,
  .filter-panel select,
  .filter-panel .search-field input {
    width: 100%;
    min-width: 0;
  }

  .detail-hero {
    padding-top: 22px;
  }

  .play-button {
    width: 64px;
    height: 64px;
  }
}
