body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.24);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  opacity: 1;
  color: #fef08a;
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-toolbar input {
  border: 0;
  outline: 0;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.header-search button,
.mobile-search button,
.big-search button,
.filter-buttons button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: #f97316;
  background: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.filter-buttons button:hover,
.filter-buttons button.active {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  background: #fff7ed;
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 14px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.mobile-nav.open {
  display: flex;
}

.hero-carousel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-shade {
  background:
    radial-gradient(circle at 70% 35%, rgba(249, 115, 22, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.2)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 118px 22px 80px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 22px;
}

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

.hero-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #fef3c7;
  font-weight: 800;
  margin-bottom: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.25);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn.light {
  color: #f97316;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.06);
}

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

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 36px;
  background: #f97316;
}

.quick-panel,
.section-wrap,
.split-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -88px;
  position: relative;
  z-index: 8;
}

.quick-grid a {
  display: block;
  min-height: 112px;
  padding: 22px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, #f97316, #ef4444 55%, #ec4899);
  box-shadow: 0 26px 60px rgba(239, 68, 68, 0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick-grid a:nth-child(2) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.quick-grid a:nth-child(3) {
  background: linear-gradient(135deg, #10b981, #059669);
}

.quick-grid a:nth-child(4) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.quick-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

.quick-grid strong {
  display: block;
  font-size: 25px;
  margin-bottom: 8px;
}

.quick-grid span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.white-block {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
}

.gradient-soft {
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 48%, #eff6ff);
}

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

.section-head h2,
.ranking-panel h2,
.content-card h2,
.page-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head a {
  color: #f97316;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #f97316;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, #111827, #ef4444);
}

.movie-card.compact .card-media {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.card-score,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.card-score {
  left: auto;
  right: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.card-body h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 950;
}

.card-body p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.72;
}

.card-tags span {
  color: #ea580c;
  background: #fff7ed;
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444 60%, #ec4899);
  box-shadow: 0 22px 55px rgba(239, 68, 68, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 75px rgba(17, 24, 39, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.35s ease;
}

.category-card:hover::after {
  transform: scale(1.5);
}

.category-main-link {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 190px;
  padding: 28px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-examples {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 26px;
}

.category-examples a {
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: 28px;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.ranking-panel h2 {
  color: #ffffff;
  margin-bottom: 18px;
}

.ranking-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel li + li {
  margin-top: 10px;
}

.ranking-panel a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.ranking-panel strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.ranking-panel span,
.ranking-panel em {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-panel em {
  color: #fef3c7;
  font-size: 12px;
  font-style: normal;
}

.cta-band {
  margin: 34px auto 56px;
  max-width: 1180px;
  border-radius: 34px;
  padding: 56px 22px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, #f97316, #ef4444 52%, #ec4899);
  box-shadow: 0 30px 75px rgba(239, 68, 68, 0.24);
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.cta-band p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.page-main,
.detail-main {
  background: #f9fafb;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.35), transparent 34%),
    linear-gradient(135deg, #111827, #1f2937 48%, #ef4444);
  padding: 78px 22px;
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(42px, 7vw, 70px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.big-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.big-search input {
  min-width: min(540px, 100%);
  padding: 15px 20px;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

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

.filter-buttons button {
  color: #374151;
  background: #f3f4f6;
}

.filter-buttons button.active {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

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

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

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

.rank-row a {
  display: grid;
  grid-template-columns: 52px 72px 1fr 60px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.18s ease, background 0.18s ease;
}

.rank-row a:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-row strong {
  color: #f97316;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info em,
.rank-info small {
  display: block;
  font-style: normal;
}

.rank-info em {
  color: #111827;
  font-weight: 950;
}

.rank-info small {
  color: #6b7280;
  margin-top: 5px;
}

.rank-row b {
  color: #ef4444;
  font-size: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.08);
  transform: scale(1.1);
  opacity: 0.62;
}

.detail-overlay {
  background:
    radial-gradient(circle at 80% 28%, rgba(249, 115, 22, 0.22), transparent 35%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-poster span {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  font-weight: 950;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

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

.player-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px 10px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.video-overlay-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(17, 24, 39, 0.48) 52%, rgba(0, 0, 0, 0.68));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-overlay-button span {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 7px;
  color: #f97316;
  background: #ffffff;
  font-size: 42px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.video-overlay-button:hover span {
  transform: scale(1.08);
}

.player-shell.is-playing .video-overlay-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  padding-top: 28px;
}

.content-card {
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
}

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

.content-card h2:not(:first-child) {
  margin-top: 30px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.info-table {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
  padding: 20px;
  border-radius: 20px;
  background: #f9fafb;
}

.info-table span {
  color: #6b7280;
  font-weight: 800;
}

.info-table strong {
  color: #111827;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
  margin-top: 56px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  color: #9ca3af;
  text-align: center;
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
  }

  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content {
    padding-top: 98px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    margin-top: -42px;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .detail-poster {
    max-width: 260px;
  }

  .rank-row a {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-row b {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .compact-grid,
  .catalog-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .section-wrap,
  .quick-panel,
  .split-section,
  .player-section,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-card {
    padding: 24px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }

  .video-overlay-button span {
    width: 70px;
    height: 70px;
    font-size: 34px;
  }
}
