
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --danger: #ef4444;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(6, 182, 212, 0.14), transparent 24%);
  pointer-events: none;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.26);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.site-logo__text {
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.site-nav__link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 34vw);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.top-search input {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 16px;
  background: transparent;
  color: #fff;
  outline: none;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.top-search button {
  height: 40px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: var(--primary);
  border: 0;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 42%);
}

.hero-slide__content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(10px);
}

.eyebrow span:nth-child(even) {
  background: rgba(255, 255, 255, 0.18);
}

.hero h1,
.page-hero h1,
.rank-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.rank-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

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

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.36);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-control--prev {
  left: 22px;
}

.hero-control--next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: 0.2s ease;
}

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

.quick-search-band {
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.quick-search-band .container {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search {
  flex: 1;
  display: flex;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.home-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  background: transparent;
  outline: none;
}

.home-search button {
  border: 0;
  padding: 0 24px;
  color: #fff;
  font-weight: 900;
  background: var(--primary);
}

.quick-links {
  display: flex;
  gap: 10px;
}

.quick-links a {
  padding: 12px 14px;
  color: var(--primary);
  font-weight: 800;
  border-radius: 999px;
  background: #eff6ff;
}

.content-section {
  padding: 72px 0;
}

.content-section--white {
  background: #fff;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.82);
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.88);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-card__meta span {
  padding: 5px 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: #eff6ff;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
}

.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-card__tags span,
.side-tags span,
.tag-cloud span {
  display: inline-flex;
  padding: 6px 10px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border: 1px solid #bfdbfe;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.12));
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

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

.ranking-panel,
.catalog-sidebar,
.side-card,
.detail-card,
.player-card,
.category-card,
.catalog-tools {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0;
  font-size: 28px;
}

.ranking-panel p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rank-row strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.rank-row span {
  font-weight: 900;
}

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

.page-hero,
.rank-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0369a1);
}

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

.page-hero--compact {
  padding: 58px 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 66%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.category-list {
  display: grid;
  gap: 24px;
}

.category-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
}

.category-card__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 250px;
  background: #0f172a;
}

.category-card__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  padding: 32px;
}

.category-card__body h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.category-card__body p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
}

.catalog-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
}

.catalog-sidebar h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-link {
  display: block;
  padding: 12px 14px;
  margin-top: 8px;
  color: var(--muted);
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 800;
}

.side-link:hover,
.side-link.is-active {
  color: #fff;
  background: var(--primary);
}

.catalog-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.catalog-search {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #f8fafc;
}

.catalog-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.rank-hero {
  min-height: 420px;
}

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

.rank-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.35));
}

.rank-hero__content {
  position: relative;
  z-index: 2;
  padding: 78px 0;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.ranking-item__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  border-radius: 18px;
  background: #0f172a;
  font-size: 20px;
}

.ranking-item--top .ranking-item__num {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.ranking-item__poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.ranking-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
}

.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb strong {
  color: var(--text);
}

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

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

.player-card {
  padding: 16px;
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.22));
  cursor: pointer;
}

.play-mask span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.4);
  font-size: 36px;
  padding-left: 4px;
}

.play-mask strong {
  font-size: 20px;
}

.play-mask.is-hidden {
  display: none;
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-eyebrow span {
  color: var(--primary);
  background: #eff6ff;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-facts span {
  padding: 12px 14px;
  color: #334155;
  border-radius: 14px;
  background: #f8fafc;
  font-weight: 800;
}

.detail-copy {
  margin-top: 26px;
}

.detail-copy h2,
.tag-cloud h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-copy p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.tag-cloud {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tag-cloud div,
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-self: start;
}

.side-card {
  padding: 20px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

.poster-card h2 {
  margin-bottom: 8px;
}

.poster-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.mini-card__poster {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.mini-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #0f172a;
}

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

.footer-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

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

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a:hover {
  color: #fff;
}

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

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

  .ranking-panel,
  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-nav,
  .top-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero {
    height: 560px;
  }

  .hero-slide__content {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .hero-control {
    display: none;
  }

  .quick-search-band {
    margin-top: 18px;
  }

  .quick-search-band .container,
  .section-heading,
  .site-footer__inner,
  .detail-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-links,
  .footer-links {
    flex-wrap: wrap;
  }

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

  .catalog-layout,
  .category-card {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .ranking-item .button {
    grid-column: 2 / -1;
    width: max-content;
  }
}

@media (max-width: 560px) {
  .container,
  .site-header__inner,
  .mobile-nav,
  .site-footer__inner {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .page-hero h1,
  .rank-hero h1 {
    font-size: 38px;
  }

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

  .movie-grid--three,
  .movie-grid--four,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .home-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .home-search input,
  .home-search button {
    width: 100%;
  }

  .ranking-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ranking-item__poster {
    grid-column: 1 / -1;
  }

  .ranking-item .button {
    grid-column: 1 / -1;
  }

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