:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --cyan-soft: #ecfeff;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --bg: #f8fafc;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96));
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  padding: 0;
}

.dropdown-panel {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 210px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  color: var(--dark);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.22s ease;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
}

.dropdown-panel a:hover {
  background: var(--cyan-soft);
  color: var(--blue);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-search {
  width: 265px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px 10px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button {
  border: 0;
  padding: 10px 15px;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-button span {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.open {
  display: block;
}

.mobile-links {
  display: grid;
  padding: 12px 0 16px;
}

.mobile-link {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-link.active {
  color: #fff;
  font-weight: 800;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #22d3ee, #2563eb 58%, #1d4ed8);
}

.hero-track,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.62fr;
  align-items: center;
  gap: 44px;
  color: #fff;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0891b2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.blue-band .eyebrow {
  color: #cffafe;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.hero-subtitle {
  max-width: 680px;
  margin: 22px 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.4vw, 24px);
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  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: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
}

.hero .btn-primary {
  color: var(--blue);
  background: #fff;
}

.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.86);
}

.hero-poster {
  justify-self: end;
  position: relative;
  width: min(360px, 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.42);
  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-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateX(-50%);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  background: #fff;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrows button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.quick-search-panel {
  position: relative;
  z-index: 8;
  margin-top: -42px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.quick-search-panel form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px var(--line);
}

.quick-search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 16px 20px;
  background: transparent;
}

.quick-search-panel button {
  border: 0;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 54px 0 28px;
}

.feature-grid article {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.feature-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.feature-grid span {
  color: var(--muted);
}

.movie-section {
  padding: 70px 0;
}

.light-section {
  background: #fff;
}

.section-title {
  margin-bottom: 30px;
  text-align: center;
}

.section-title p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title h2 {
  position: relative;
  display: inline-flex;
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: translateX(-50%);
}

.left-title {
  text-align: left;
}

.left-title h2::after {
  left: 0;
  transform: none;
}

.light-title p,
.light-title h2 {
  color: #fff;
}

.light-title h2::after {
  background: #fff;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 38px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  font-size: 13px;
  font-weight: 900;
}

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

.movie-meta {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 44px;
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 222px;
}

.movie-card-wide .poster-wrap img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-wide h3 {
  font-size: 17px;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-head {
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.ranking-head span {
  font-weight: 900;
  letter-spacing: 0.16em;
  opacity: 0.76;
}

.ranking-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.ranking-list {
  margin: 0;
  padding: 12px;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 14px;
}

.ranking-list a:hover {
  background: #fff7ed;
}

.ranking-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #f97316;
  font-weight: 900;
}

.ranking-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.ranking-more {
  display: block;
  margin: 0 12px 14px;
  padding: 13px;
  border-radius: 14px;
  color: var(--blue);
  background: #eff6ff;
  text-align: center;
  font-weight: 800;
}

.blue-band {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

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

.category-tile {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.24s ease, background 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.24);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 10px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.category-tile div:last-child {
  padding: 5px 18px 20px;
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(135deg, #0ea5e9, #2563eb 62%, #1e40af);
}

.small-hero {
  padding: 74px 0 62px;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.category-overview,
.catalog-tools,
.ranking-page-grid,
.prose-card {
  margin-top: 34px;
  margin-bottom: 60px;
}

.large-category-grid .category-tile {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.large-category-grid .category-tile p {
  color: var(--muted);
}

.catalog-tools {
  padding: 20px;
  display: grid;
  gap: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.catalog-tools input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 15px 18px;
  background: #f8fafc;
}

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

.filter-button,
.filter-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover,
.filter-link:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.empty-state {
  display: none;
  margin: 30px 0 80px;
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

.prose-card {
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.prose-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #0f172a, #1d4ed8 62%, #0891b2);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-line {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.detail-tags {
  margin: 18px 0 28px;
}

.detail-tags span {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
}

.player-section {
  padding-top: 34px;
}

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

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.25), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-mask span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 38px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

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

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

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 34px;
}

.content-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

.related-section {
  padding: 48px 0 72px;
}

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

.related-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.related-card span {
  display: block;
  padding: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.site-footer {
  padding: 56px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 20px;
}

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

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

.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #67e8f9;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .ranking-panel {
    position: relative;
    top: auto;
  }

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

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

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

  .hero {
    height: auto;
    min-height: 690px;
  }

  .hero-slide {
    min-height: 690px;
  }

  .hero-content {
    padding: 52px 0 92px;
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(270px, 72vw);
  }

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

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

  .compact-grid,
  .catalog-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-wide {
    grid-template-columns: 130px 1fr;
  }

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

  .detail-poster {
    width: min(260px, 78vw);
  }
}

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

  .brand-text {
    font-size: 17px;
  }

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

  .quick-search-panel {
    padding: 20px;
  }

  .quick-search-panel form {
    display: grid;
    border-radius: 18px;
  }

  .quick-search-panel button {
    min-height: 46px;
  }

  .feature-grid,
  .category-grid,
  .footer-grid,
  .ranking-page-grid,
  .compact-grid,
  .catalog-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 116px 1fr;
    min-height: 176px;
  }

  .movie-card-wide .movie-line {
    min-height: auto;
  }

  .detail-hero,
  .content-card {
    padding: 22px;
    border-radius: 22px;
  }

  .play-mask span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
