:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 14px 35px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 25px rgba(217, 119, 6, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: var(--soft-shadow);
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 10px 20px 16px;
  background: white;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--amber-50);
}

.hero-carousel {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: linear-gradient(120deg, #f59e0b 0%, #fb923c 55%, #d97706 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  filter: blur(1px) saturate(1.2);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.65), rgba(217, 119, 6, 0.25), rgba(17, 24, 39, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 570px;
  margin: 0 auto;
  padding: 76px 20px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: white;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin: 24px 0 0;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-meta,
.sub-nav,
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.tag-row span {
  color: var(--amber-700);
  background: var(--amber-50);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  font-weight: 800;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.24);
}

.btn.primary {
  background: white;
  color: var(--amber-700);
}

.btn.primary.light {
  color: var(--amber-700);
}

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

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  height: 450px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.32);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  border-radius: inherit;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: white;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 4;
  width: min(760px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.hero-search input,
.search-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--gray-800);
}

.hero-search input {
  padding: 0 16px;
}

.hero-search button,
.search-line button {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  color: white;
  background: var(--amber-600);
  font-weight: 800;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.soft-section {
  max-width: none;
  background: linear-gradient(180deg, var(--amber-50), #fff7ed);
}

.soft-section > .section-heading,
.soft-section > .category-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more,
.text-link {
  color: var(--amber-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
}

.catalog-grid .card-poster {
  height: 260px;
}

.compact-card .card-poster {
  height: 190px;
}

.card-poster img {
  transition: transform 0.35s ease;
}

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

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.15);
}

.card-year {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  color: var(--amber-700);
  background: white;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--red-500);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--gray-800);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 850;
}

.compact-card .card-body h3 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

.card-body h3 a:hover {
  color: var(--amber-600);
}

.card-line,
.card-meta {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.card-line {
  min-height: 52px;
  font-size: 14px;
}

.compact-card .card-line {
  display: none;
}

.card-meta {
  margin-top: 10px;
  font-size: 13px;
}

.card-body .tag-row {
  margin-top: 12px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  color: white;
  box-shadow: var(--soft-shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.78));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 20px;
  font-weight: 900;
}

.category-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.cta-band {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 42px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--soft-shadow);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.cta-band p {
  margin: 10px 0 0;
  color: #fff7ed;
}

.page-hero {
  min-height: 300px;
  padding: 70px 20px;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.page-hero > div {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.75;
}

.ranking-hero {
  background: linear-gradient(135deg, #f43f5e, #f97316, #f59e0b);
}

.search-hero {
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #f59e0b);
}

.sub-nav {
  margin-top: 22px;
}

.sub-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.filter-panel {
  margin-bottom: 32px;
}

.search-line {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.07);
}

.search-line input {
  padding: 10px 12px;
}

.quick-filters {
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gray-700);
  background: white;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: white;
  background: var(--amber-600);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.overview-image {
  height: 210px;
  overflow: hidden;
  border-radius: 18px;
}

.overview-card h2 {
  margin: 4px 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.overview-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

.overview-samples {
  font-size: 14px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  font-size: 20px;
  font-weight: 900;
}

.ranking-poster {
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-info p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.ranking-meta {
  margin-top: 10px;
  color: var(--amber-700);
  font-size: 14px;
  font-weight: 750;
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 20px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 750;
}

.detail-card {
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.player-section {
  padding: 22px;
  background: linear-gradient(135deg, var(--gray-900), #2d1604);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.28), rgba(0, 0, 0, 0.52));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 44px rgba(217, 119, 6, 0.32);
  padding-left: 5px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 30px;
}

.detail-poster {
  height: 430px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.14);
}

.detail-info h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 14px;
  font-weight: 800;
}

.one-line {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--amber-600);
  border-radius: 14px;
  color: var(--gray-800);
  background: var(--amber-50);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 750;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-info h2 {
  margin: 24px 0 12px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.detail-info p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.9;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
  border-top: 1px solid var(--amber-200);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.footer-inner p {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--amber-600);
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr 300px;
  }
}

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

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

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    min-height: 720px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 160px;
  }

  .hero-poster {
    height: 310px;
    width: min(240px, 72vw);
    justify-self: center;
  }

  .hero-search {
    bottom: 82px;
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 42px;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid,
  .rank-strip,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-card,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .overview-image {
    height: 240px;
  }

  .detail-poster {
    height: 360px;
    max-width: 280px;
  }

  .ranking-row {
    grid-template-columns: 48px 78px 1fr;
  }

  .ranking-row .btn {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cta-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .site-logo,
  .footer-logo {
    font-size: 20px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-desc,
  .page-hero p:last-child {
    font-size: 16px;
  }

  .content-section {
    padding: 44px 16px;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid,
  .rank-strip,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .card-poster,
  .catalog-grid .card-poster {
    height: 330px;
  }

  .compact-card .card-poster {
    height: 260px;
  }

  .search-line {
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 42px 72px 1fr;
    gap: 12px;
  }

  .ranking-poster {
    height: 100px;
  }

  .ranking-info h2 {
    font-size: 18px;
  }

  .ranking-info p,
  .ranking-meta {
    display: none;
  }

  .detail-main {
    padding: 16px 12px 44px;
  }

  .player-section,
  .detail-layout {
    padding: 14px;
  }

  .detail-poster {
    height: 390px;
    max-width: none;
  }

  .cta-band {
    margin: 0 16px 48px;
    padding: 28px;
  }
}
