/* Sunset Cinema 1.9.1 — шлифовка главной.
   Только раскладка, отступы и типографика. Цвета не меняются: везде, где нужна линия,
   используется тот же цвет, что уже был у этого блока.
   Подключается последним на главной (templates/site/home.php). */

/* ── Ритм: одинаковое расстояние между всеми блоками ─────────────────────── */
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main > :is(.sc-feature-frame,.sc-section,.sc-discover-banner,.sc-telegram) {
  margin-bottom: 56px;
}
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main > .sc-home-intro { margin-bottom: 18px; }

/* ── Заголовки полок ─────────────────────────────────────────────────────── */
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-section-head { margin-bottom: 20px; }
/* Подзаголовок под названием полки: без разрядки строчных букв, читается как подпись. */
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-section-head .sc-overline {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ── Карточки: год и страна сразу под названием, без пустого промежутка ─── */
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main .sc-card-caption { padding-top: 11px; }
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main .sc-card-caption h3 {
  min-height: 0;
  line-height: 1.4;
}
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main .sc-card-caption p { margin-top: 3px; }

/* Полоса прокрутки под полкой — тоньше, тот же цвет. */
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-shelf-progress { height: 2px; margin: 4px 0 0; }

/* ── «Найти фильм»: аккуратная карточка с внутренними отступами ─────────── */
/* Раньше текст и кнопка стояли вплотную к скруглённой рамке. Боковые линии — того же цвета,
   что верхняя и нижняя. */
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-discover-banner {
  padding: 26px 30px;
  border-inline: 1px solid rgba(255, 182, 145, .16);
}
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-discover-banner h2 { margin: 0 0 6px; }
html.sc-v2 body.sc-home-edition.sc-home-refined .sc-discover-banner .sc-button { flex-shrink: 0; }

/* ── Телефоны и планшеты ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main > :is(.sc-feature-frame,.sc-section,.sc-discover-banner,.sc-telegram) {
    margin-bottom: 44px;
  }
  /* Вкладки баннера: на планшете и телефоне — компактные номера, без обрезанных названий,
     которые уходили под кнопки паузы и стрелок. Название фильма уже крупно показано выше. */
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-feature-frame .sc-hero-dots button {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    justify-content: center;
    padding: 0 6px;
  }
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-feature-frame .sc-hero-dots button .sc-feature-choice-title { display: none; }
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-feature-frame .sc-hero-dots button .sc-feature-choice-number { font-size: 12px; }
}

@media (max-width: 700px) {
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-home-main > :is(.sc-feature-frame,.sc-section,.sc-discover-banner,.sc-telegram) {
    margin-bottom: 38px;
  }
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-section-head { margin-bottom: 14px; }
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-discover-banner { padding: 22px 20px; }
}

@media (max-width: 380px) {
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-feature-frame .sc-hero-dots { gap: 4px; }
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-feature-frame .sc-hero-dots button { padding: 0 3px; }
}

/* На сенсорных экранах полки листают пальцем: стрелки убраны, чтобы заголовку хватало места.
   Ссылка «Все» и прокрутка с клавиатуры остаются. */
@media (hover: none) and (pointer: coarse) {
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-section-head .sc-shelf-tools button[data-shelf-scroll] { display: none; }
  html.sc-v2 body.sc-home-edition.sc-home-refined .sc-section-head .sc-shelf-tools { margin-left: auto; }
}
