* {
  box-sizing: border-box;
}

:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --slate: #0f172a;
  --radius: 18px;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  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, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--red-700);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #111827;
  background: linear-gradient(135deg, var(--yellow), #fff2a8);
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.35);
}

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

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red-700);
  background: #fef2f2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fef2f2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--red-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
}

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

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red-900), var(--red-700) 48%, var(--red-900));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.28), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
}

.hero-shell {
  position: relative;
  min-height: 560px;
  padding: 56px 0 44px;
  display: grid;
  align-items: center;
  gap: 24px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 46px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.hero-tags,
.detail-tags,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: clamp(18px, 2vw, 24px);
  color: #f3f4f6;
}

.hero-actions,
.detail-info .btn {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.btn.primary {
  color: #111827;
  background: var(--yellow);
  box-shadow: 0 18px 30px rgba(250, 204, 21, 0.32);
}

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

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.36), transparent 45%);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

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

.hero-search {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-box input,
.select-box select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
}

.hero-search input {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
}

.hero-search button {
  border: 0;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  color: #111827;
  background: var(--yellow);
  cursor: pointer;
}

.feature-strip {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

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

.stat-grid div {
  min-height: 110px;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-grid strong {
  display: block;
  font-size: 30px;
  color: var(--red-700);
}

.stat-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section.white {
  background: #ffffff;
}

.section.soft {
  background: linear-gradient(135deg, #f9fafb, #fef2f2);
}

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

.section-head.centered {
  display: block;
  text-align: center;
}

.section-head.compact {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-700);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.story-card h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  color: var(--red-700);
  font-weight: 900;
}

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

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-link img,
.category-tile img,
.category-card-large img,
.compact-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.28s ease;
}

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

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  background: rgba(0, 0, 0, 0.0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.34);
}

.rank-badge,
.small-rank {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  color: #111827;
  background: var(--yellow);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.movie-card-body h2 a:hover {
  color: var(--red-700);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span {
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 20px;
}

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

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 22px;
  color: #ffffff;
  background: var(--slate);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-card-large img {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  transition: transform 0.28s ease;
}

.category-tile:hover img,
.category-card-large:hover img {
  transform: scale(1.06);
}

.category-tile::after,
.category-card-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.category-tile span,
.category-tile em,
.category-card-large span,
.category-card-large p {
  position: relative;
  z-index: 2;
}

.category-tile span,
.category-card-large span {
  display: block;
  padding: 100px 20px 6px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile em,
.category-card-large p {
  display: block;
  margin: 0;
  padding: 0 20px 22px;
  color: #f3f4f6;
  font-style: normal;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.ranking-list,
.mini-grid {
  display: grid;
  gap: 12px;
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-poster {
  position: relative;
  width: 58px;
  height: 78px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

.small-rank {
  left: 6px;
  top: 6px;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 12px;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.compact-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.26), transparent 28%),
    linear-gradient(135deg, var(--red-900), var(--red-700) 55%, var(--slate));
}

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

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: #f3f4f6;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fee2e2;
  font-size: 14px;
  font-weight: 700;
}

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

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 20px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.search-box span,
.select-box span {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  height: 46px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  padding: 24px;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: #f3f4f6;
}

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

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

.detail-hero {
  padding: 48px 0 64px;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #e5e7eb;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.detail-info h1 {
  max-width: 820px;
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
}

.detail-lead {
  max-width: 800px;
  color: #f3f4f6;
  font-size: 20px;
}

.detail-tags {
  margin: 22px 0;
}

.detail-tags span {
  color: #fff7d6;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-facts strong,
.detail-facts span {
  display: block;
}

.detail-facts strong {
  color: #fee2e2;
  font-size: 12px;
}

.player-section {
  background: #111827;
  color: #ffffff;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  transition: opacity 0.24s ease;
}

.play-cover span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: var(--yellow);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
}

.story-card {
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.story-card.accent {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.story-card h2 {
  margin-bottom: 14px;
  color: var(--red-800);
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

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

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

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer p {
  margin: 0;
  max-width: 540px;
}

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

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

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

.movie-card.wide .movie-card-body p {
  min-height: 62px;
  -webkit-line-clamp: 3;
}

.movie-card[hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .catalogue-grid,
  .related-grid,
  .ranking-page-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .stat-grid,
  .split-layout,
  .detail-layout,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }
}

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

  .hero,
  .hero-shell {
    min-height: 520px;
  }

  .hero-slider {
    min-height: 330px;
  }

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

  .section {
    padding: 48px 0;
  }

  .movie-grid,
  .catalogue-grid,
  .related-grid,
  .ranking-page-list,
  .category-grid,
  .category-large-grid,
  .mini-grid,
  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .movie-card-body h2 {
    font-size: 14px;
  }

  .movie-card-body p {
    font-size: 12px;
  }

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

  .detail-lead,
  .page-hero p {
    font-size: 16px;
  }
}
