/* ============================================================================
   KINOZORI — «Yellow Premier» · ре-брендинг. бенто-шар головної (колишній v8)
   Палітру перезібрано: cyan/navy/champagne -> yellow #ffc91a / charcoal.
   Структура правил не змінювалась — лише кольори та родини напівпрозорих.
   ============================================================================ */

/* ==========================================================================
   KINOZORI v8 «Афіша» — прототип іншої структури (тільки перегляд, не деплой).
   1) головна: редакційна шапка розділу (номер | назва) + бенто-рядок з великою
      першою карткою;
   2) сторінка фільму: повноширинний бекдроп-бенд, постер «пливе» на його краю,
      метадані — смуга-досьє, дії та рейтинг — один бар, опис — на всю ширину.
   ========================================================================== */

/* ------------------------------------------------------------------ ГОЛОВНА */
@media (min-width: 769px) {

  /* шапка розділу: тонка лінія, великий золотий номер, назва, «усі» без пілюлі */
  .kb-sec-hd {
    position: relative !important;
    top: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 18px !important;
    margin: 78px 0 26px !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    background: none !important;
  }
  .kb-sec-hd:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 72px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  .kb-sec-hd > .section__title { margin: 0 !important; max-height: none !important; }

  /* номер як окрема колонка «досьє»: 03 │ Фільми */
  .kz-num {
    display: inline-block !important;
    font-size: 34px !important;
    line-height: .9 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    color: transparent !important;
    background: linear-gradient(180deg, #ffe59a 0%, #d4a000 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    padding-right: 16px !important;
    margin-right: 16px !important;
    border-right: 1px solid rgba(255,201,26, .30) !important;
    vertical-align: -.10em !important;
  }
  .kb-sec-hd .section__title { font-size: 27px !important; font-weight: 800 !important; letter-spacing: .005em !important; }
  .kb-sec-hd .section__title a { color: #EFEDE6 !important; }
  .kb-sec-hd .section__title a:hover { color: #ffc91a !important; }

  /* «Дивитись всі» → тонке капс-посилання з рискою, без рамки й заливки */
  .kb-sec-hd > .kb-sec-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: auto !important;
    margin: 0 0 5px auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #B4AE9E !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
  }
  .kb-sec-hd > .kb-sec-all:before {
    content: "" !important;
    width: 44px !important; height: 1px !important;
    background: rgba(255,201,26, .55) !important;
    transition: width .2s ease, background .2s ease !important;
  }
  .kb-sec-hd > .kb-sec-all:hover { color: #ffc91a !important; background: none !important; border: 0 !important; }
  .kb-sec-hd > .kb-sec-all:hover:before { width: 68px !important; background: #ffc91a !important; }

  /* «01 Топ Kinozori» живе поза .kb-sec-hd — вирівнюємо його так само */
  .kb-popsec > .section__title {
    position: relative !important;
    display: block !important;
    margin: 78px 0 26px !important;
    padding: 0 0 13px !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }
  .kb-popsec > .section__title:after {
    content: "" !important;
    position: absolute !important; left: 0 !important; bottom: -1px !important;
    width: 72px !important; height: 2px !important; border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  /* градієнтна риска під текстом у цього заголовка зайва — лінію дає рамка */
  .kb-popsec > .section__title:before { display: none !important; }

  /* ховер піднімає картку на 5px — треку потрібен запас зверху, інакше зрізає шапку постера */
  .kz-rowtrack { padding-top: 14px !important; margin-top: -12px !important; }
}

/* бенто-рядок: велика перша картка (2×2) + 12 малих = рівно 8×2 клітинки */
@media (min-width: 1180px) {
  .grid-item:not(.kb-popular):not(.kb-news-strip) {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
    align-items: start !important;
  }
  /* 13-та картка (зараз прихована) повертається в сітку — інакше лишається дірка */
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .kb-t9 { display: contents !important; }

  /* бенто показує всі 13 карток у двох рядах — горизонтальна стрічка та її стрілки зайві */
  .kz-row > .kz-row-btn { display: none !important; }
  .kz-row:has(> .grid-item) { overflow: visible !important; }

  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-img,
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-img1 {
    border-radius: 16px !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-title {
    font-size: 17px !important;
    line-height: 1.24 !important;
    margin-top: 12px !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-tags { margin-top: 8px !important; }

  /* великій картці даємо заповнити дві строки: постер тягнеться, кадруємо центр */
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-img img,
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-img1 img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 22% !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-img,
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) .movie-img1 {
    height: auto !important;
    aspect-ratio: auto !important;
    flex: 1 1 auto !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:nth-child(1) {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
}

/* ------------------------------------------------------- СТОРІНКА ФІЛЬМУ */
@media (min-width: 900px) {

  .detail-section {
    position: relative !important;
    overflow: hidden !important;
    padding-bottom: 34px !important;
  }

  /* бекдроп стає верхнім бендом, а не фоном усієї картки */
  .detail-section_bg {
    position: absolute !important;
    left: 0 !important; right: 0 !important; top: 0 !important;
    height: 320px !important;
    border-radius: 26px 26px 0 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
  }
  .detail-section_bg img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    filter: blur(30px) saturate(1.2) brightness(.62) !important;
    transform: scale(1.15) !important;
  }
  /* селектор має ту саму вагу, що й v7 (0,2,1) — інакше v7 перебиває тон бенда */
  .detail-section .detail-section_bg:after {
    background: linear-gradient(180deg,
      rgba(30,31,31, .22) 0%,
      rgba(30,31,31, .60) 44%,
      rgba(30,31,31, .92) 76%,
      #1e1f1f 100%) !important;
  }
  .detail-section .container { position: relative !important; z-index: 2 !important; }
  .detail-section_breadcrumb { margin: 16px 0 0 !important; }
  /* тема зсуває весь правий блок на 250px (резерв під постер) — у сітці це вже не потрібно */
  .detail-section .detail-section_block-right { padding-left: 0 !important; }
  .detail-section:has(.detail-section_bg img) .detail-section_section-info { margin-top: 0 !important; }

  /* дві колонки: постер + інформація */
  .detail-section_content {
    display: grid !important;
    grid-template-columns: 246px minmax(0, 1fr) !important;
    column-gap: 42px !important;
    align-items: start !important;
    padding: 30px 0 0 !important;
  }
  .detail-section_poster {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 246px !important;
    height: auto !important;
    margin: 46px 0 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,201,26, .38) !important;
    box-shadow: 0 34px 70px rgba(0, 0, 0, .55), 0 0 0 7px rgba(30,31,31, .60) !important;
  }
  .detail-section_poster img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
  }

  /* блок праворуч — сітка-досьє: назва / мета / дії+рейтинг / опис */
  .detail-section_block-right {
    grid-column: 2 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "title   title"
      "meta    meta"
      "actions score"
      "about   about" !important;
    column-gap: 24px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  .detail-section_title { grid-area: title !important; }
  .detail-section_category.kb-meta { grid-area: meta !important; }
  .kb-actions { grid-area: actions !important; }
  .kb-score { grid-area: score !important; }
  .detail-section_actors { grid-area: about !important; }

  /* назва на бекдропі */
  .detail-section_title h1 {
    font-size: 48px !important;
    line-height: 1.02 !important;
    font-weight: 800 !important;
    letter-spacing: -.022em !important;
    margin: 0 !important;
    color: #FBFAF6 !important;
    text-shadow: 0 8px 34px rgba(0, 0, 0, .55) !important;
  }
  .detail-section_title .kb-original-name {
    margin: 10px 0 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    color: #BDB7A6 !important;
  }

  /* метадані — смуга-досьє з вертикальними поділами */
  .detail-section_category.kb-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 24px 0 0 !important;
    padding: 13px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
    background: none !important;
  }
  .detail-section_category.kb-meta > * {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 22px !important;
    padding: 0 17px !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #D9D5C9 !important;
  }
  .detail-section_category.kb-meta > * + * { border-left: 1px solid rgba(255, 255, 255, .12) !important; }
  .detail-section_category.kb-meta > *:first-child { padding-left: 0 !important; }
  .detail-section_category.kb-meta .kb-type a {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  /* видимий підпис типу — це ::after; робимо його капс-лейблом без пілюлі */
  .detail-section_category.kb-meta .kb-type .cat-link::after {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    color: #ffc91a !important;
  }
  .detail-section_category.kb-meta .kb-mchip--genres { color: #fdd13f !important; }
  .detail-section_category.kb-meta .quality,
  .detail-section_category.kb-meta .age { color: #9E9A8C !important; letter-spacing: .06em !important; }

  /* бар дій + рейтинг в один рядок */
  .kb-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 22px 0 0 !important;
  }
  .kb-actions__play {
    height: 46px !important;
    padding: 0 26px !important;
    border-radius: 100px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 30px rgba(255,201,26, .22) !important;
  }
  .kb-actions__btn {
    height: 46px !important;
    padding: 0 22px !important;
    border-radius: 100px !important;
    font-size: 14px !important;
  }
  .kb-score {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 22px 0 0 !important;
    justify-self: end !important;
  }
  .kb-score__ext {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    height: 46px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .03) !important;
  }
  .kb-score__num { font-size: 20px !important; font-weight: 800 !important; color: #ffc91a !important; }
  .page__rating-likes a { width: 46px !important; height: 46px !important; border-radius: 100px !important; }

  /* опис і титри — в одній колонці з метаданими (постер не перекриває текст) */
  .detail-section_actors {
    margin: 28px 0 0 0 !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .09) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    column-gap: 46px !important;
    align-items: start !important;
  }
  .detail-section_actors .detail-section_full {
    font-size: 15px !important;
    line-height: 1.78 !important;
    color: #C9C5B9 !important;
    max-width: 74ch !important;
  }
  /* затухання обрізаного опису має йти в колір карточки (#1e1f1f), а не в --kb-bg */
  .detail-section_full.kb-clamp:after {
    background: linear-gradient(180deg, rgba(30,31,31, 0), #1e1f1f) !important;
  }
  /* буквиця — редакційний акцент */
  .detail-section_actors .detail-section_full p:first-child:first-letter {
    float: left !important;
    font-size: 52px !important;
    line-height: .86 !important;
    font-weight: 800 !important;
    padding: 4px 12px 0 0 !important;
    color: #ffc91a !important;
  }
  .detail-section_actors-right > div {
    padding: 11px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: #B9B5A8 !important;
  }
  .detail-section_actors-right > div:first-child { border-top: 0 !important; padding-top: 0 !important; }
  .detail-section_actors-right a {
    color: #C9C5B9 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .14) !important;
  }
  .detail-section_actors-right a:hover {
    color: #ffc91a !important;
    border-bottom-color: rgba(255,201,26, .55) !important;
  }
  .detail-section_actors-right .kb-fact-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: #8E8A7D !important;
    margin-bottom: 3px !important;
  }
  .kb-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #ffc91a !important;
  }

  /* ------------------------------------------------------------- ПЛЕЄР
     Кнопки «Дивитися онлайн / Трейлер» уже є на першому екрані, тому тут
     лишається компактний кінотеатральний тулбар: текстові вкладки з рискою,
     «Знайшли помилку?» капсом праворуч, озвучки — чипси, екран — у рамці. */
  #kb-player-block .kb-player__title { display: none !important; }

  #kb-player-block .page__player-controls {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    margin: 0 0 14px !important;
    padding: 0 0 11px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }
  #kb-player-block .tabs-block__select {
    display: inline-flex !important;
    flex-grow: 0 !important;
    width: auto !important;
    gap: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  #kb-player-block .tabs-block__select > span {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    color: #7E7A6E !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
  }
  #kb-player-block .tabs-block__select > span:hover { color: #D9D5C9 !important; background: none !important; }
  #kb-player-block .tabs-block__select > span.is-active {
    color: #ffc91a !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #ffc91a !important;
    text-shadow: none !important;
  }
  #kb-player-block .tabs-block__select > span.is-active:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; right: 0 !important; bottom: -12px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  #kb-player-block .page__complaint { margin-left: auto !important; }
  #kb-player-block .page__complaint-link {
    display: inline-flex !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  #kb-player-block .page__complaint-link a {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #7E7A6E !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }
  #kb-player-block .page__complaint-link a:hover { color: #ffc91a !important; }

  /* озвучки — тонкий ряд чипсів під тулбаром */
  #kb-player-block .kbpl-bar { margin: 0 0 16px !important; gap: 14px !important; }
  #kb-player-block .kbpl-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    color: #6F6B60 !important;
  }
  #kb-player-block .kbpl-voice {
    height: 32px !important;
    padding: 0 15px !important;
    border-radius: 100px !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    background: rgba(255, 255, 255, .03) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #C9C5B9 !important;
    box-shadow: none !important;
  }
  #kb-player-block .kbpl-voice:hover { border-color: rgba(255,201,26, .40) !important; background: rgba(255,201,26, .07) !important; }
  #kb-player-block .kbpl-voice.is-on {
    border-color: rgba(255,201,26, .50) !important;
    background: rgba(255,201,26, .12) !important;
    color: #ffc91a !important;
    box-shadow: none !important;
  }

  /* екран — «кінотеатральна» рамка з глибокою тінню */
  #kb-player-block .tabs-block__content.video-inside {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    background: #07090d !important;
    box-shadow: 0 44px 96px rgba(0, 0, 0, .55) !important;
  }

  /* «Відгуки» — той самий редакційний бенд, що й розділи на головній */
  #inner-page__comments .comments_header {
    position: relative !important;
    padding: 0 0 13px !important;
    margin: 70px 0 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }
  #inner-page__comments .comments_header:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 72px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  #inner-page__comments .comments_title {
    padding-left: 0 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    letter-spacing: .005em !important;
    color: #EFEDE6 !important;
  }
  #inner-page__comments .comments_title:before { display: none !important; }
  #inner-page__comments .comments_counter {
    margin-left: 6px !important;
    padding: 2px 9px !important;
    border-radius: 999px !important;
    background: rgba(255,201,26, .12) !important;
    color: #ffc91a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  /* «Рекомендуємо вам» — той самий бенд (на всіх сторінках, де є related-section) */
  .related-section .section__title {
    position: relative !important;
    margin: 26px 0 20px !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    font-size: 27px !important;
    font-weight: 800 !important;
  }
  .related-section .section__title:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 72px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  .related-section .section__title .kb-rel__all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 6px auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #B4AE9E !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
  }
  .related-section .section__title .kb-rel__all:before {
    content: "" !important;
    width: 44px !important; height: 1px !important;
    background: rgba(255,201,26, .55) !important;
    transition: width .2s ease, background .2s ease !important;
  }
  .related-section .section__title .kb-rel__all:hover { color: #ffc91a !important; }
  .related-section .section__title .kb-rel__all:hover:before { width: 68px !important; background: #ffc91a !important; }
}

/* планшет: опис і титри в один стовпець, титри — двома колонками під ним */
@media (min-width: 900px) and (max-width: 1279px) {
  .detail-section_actors { grid-template-columns: minmax(0, 1fr) !important; row-gap: 6px !important; }
  .detail-section_actors .detail-section_full { max-width: none !important; }
  .detail-section_actors-right {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 36px !important;
    margin-top: 8px !important;
  }
  .detail-section_actors-right > div:nth-child(2) { border-top: 0 !important; padding-top: 0 !important; }
}

/* ==========================================================================
   ШАПКА v8 — два ряди замість плаваючої пігулки.
   ПК:      [лого] [поле пошуку] [вхід]
            [розділи — капс-стрічка з золотим підкресленням]
   Телефон: [лого] [лупа][аватар][меню]
            [розділи — горизонтальна стрічка-чіпси]
   Розмітка не змінюється: .header стає сіткою, діти розставляються grid-area.
   ========================================================================== */

/* .wrapper теми має overflow:hidden — він робить власний скролпорт і вбиває
   position:sticky у шапки (та липких заголовків розділів). Міняємо на clip:
   горизонтальне обрізання лишається, вертикальне — вільне, sticky працює */
@supports (overflow: clip) {
  .wrapper {
    overflow: visible !important;
    overflow-x: clip !important;
  }
}

@media (min-width: 769px) {
  .header {
    position: -webkit-sticky;
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas: "logo search auth" "menu menu menu" !important;
    align-items: center !important;
    column-gap: 26px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 34px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    border-radius: 0 0 28px 28px !important;
    background: linear-gradient(180deg, rgba(30,30,31, .96) 0%, rgba(30,30,31, .93) 100%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 26px 44px -36px rgba(0, 0, 0, .95) !important;
  }
  .header:after { display: none !important; }

  .header__logo { grid-area: logo; display: flex !important; align-items: center !important; height: 56px; }
  .header__logo img { height: 56px !important; width: auto !important; }

  /* поле пошуку — постійний елемент першого ряду (раніше ховалося на ПК) */
  .kb-b-field {
    grid-area: search !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-self: start !important;
    width: min(440px, 100%) !important;
    height: 38px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .035) !important;
    color: #8E8A7D !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: left !important;
    box-shadow: none !important;
    cursor: text !important;
  }
  .kb-b-field i { flex: 0 0 auto; font-size: 13px !important; color: #d4a000 !important; }
  .kb-b-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kb-b-field:hover { border-color: rgba(255,201,26, .38) !important; color: #D9D5C9 !important; }

  .header__authorization { grid-area: auth !important; display: flex !important; align-items: center !important; gap: 10px !important; margin: 0 !important; }
  .header .kb-search-toggle { display: none !important; }
  .header .header__authorization .header__btn-menu { display: none !important; }

  /* вхід / акаунт — текстова пігулка з золотою іконкою */
  .header__sign-in {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    height: 36px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .04) !important;
    color: #D9D5C9 !important;
  }
  .header__sign-in span[class*="fa-"] { font-size: 13px !important; color: #ffc91a !important; }
  .header__sign-in[aria-label="Увійти"]::after { content: "Увійти"; }
  .header__sign-in[aria-label="Мій акаунт"]::after { content: "Акаунт"; }
  .header__sign-in::after {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
  }
  .header__sign-in:hover { border-color: rgba(255,201,26, .45) !important; background: rgba(255,201,26, .10) !important; color: #ffe59a !important; }

  /* другий ряд — розділи */
  .header__menu {
    grid-area: menu !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    height: 46px !important;
    margin: 10px -34px 0 !important;
    padding: 0 34px !important;
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
    border-bottom: 0 !important;
    position: relative !important;
    overflow: visible !important;
  }
  .header__menu:after {
    content: "" !important;
    position: absolute !important;
    left: 34px !important;
    bottom: -1px !important;
    width: 96px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
    pointer-events: none !important;
  }
  .header__menu > li { flex: 0 0 auto !important; margin: 0 !important; }
  .header__menu > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 46px !important;
    padding: 0 !important;
    color: #A8A293 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }
  .header__menu > li > a:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 9px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
    opacity: 0 !important;
    transition: opacity .18s ease !important;
  }
  .header__menu > li:hover > a { color: #ffe59a !important; }
  .header__menu > li:hover > a:after { opacity: 1 !important; }
}

/* проміжні ширини: розділи ужимаються, щоб вісім пунктів влазили в ряд */
@media (min-width: 769px) and (max-width: 1279px) {
  .header__menu { gap: 18px !important; }
  .header__menu > li > a { font-size: 10px !important; letter-spacing: .08em !important; }
}
@media (min-width: 769px) and (max-width: 979px) {
  .header { padding: 6px 20px 0 !important; column-gap: 16px !important; }
  .header__menu { margin: 8px -20px 0 !important; padding: 0 16px !important; gap: 10px !important; }
  .header__menu:after { left: 16px !important; width: 72px !important; }
  .header__menu > li > a { font-size: 9.7px !important; letter-spacing: .02em !important; }
  .kb-b-field { font-size: 12px !important; padding: 0 13px !important; }
}

/* ------------------------------------------------------------- ТЕЛЕФОН */
@media (max-width: 768px) {
  .header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 56px 40px !important;
    grid-template-areas: "logo auth" "menu menu" !important;
    align-items: center !important;
    column-gap: 8px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    background: rgba(30,30,31, .94) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
    backdrop-filter: blur(16px) saturate(1.15) !important;
    box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .95) !important;
  }
  .header:after { display: none !important; }
  .header__logo { grid-area: logo !important; justify-self: start !important; display: flex !important; align-items: center !important; height: 56px !important; margin: 0 !important; }
  .header .header__logo img {
    height: 44px !important;
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(255,201,26, .35)) brightness(1.03) !important;
  }
  .header__authorization { grid-area: auth !important; justify-self: end !important; display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; }
  .header .kb-search-toggle,
  .header.kb-hdr-scrolled .kb-search-toggle {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .04) !important;
    color: #ffc91a !important;
    font-size: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }
  .header .kb-search-toggle i { font-size: 15px !important; color: #ffc91a !important; }
  .header .kb-search-toggle.is-active { border-color: rgba(255,201,26, .55) !important; background: rgba(255,201,26, .18) !important; color: #fff !important; }
  .kb-search-toggle__lbl { display: none !important; }
  .header .header__sign-in {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .04) !important;
    color: #D9D5C9 !important;
    font-size: 16px !important;
  }
  .header .header__sign-in span[class*="fa-"] { color: #D9D5C9 !important; }
  .header .header__authorization .header__btn-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,201,26, .28) !important;
    border-radius: 12px !important;
    background: rgba(255,201,26, .08) !important;
    color: #ffc91a !important;
    font-size: 16px !important;
  }
  .kb-b-field { display: none !important; }

  /* ряд 2 — розділи як горизонтальна стрічка */
  .header__menu {
    grid-area: menu !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    height: 40px !important;
    margin: 0 -14px !important;
    padding: 0 14px !important;
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), rgba(0, 0, 0, 0));
  }
  .header__menu::-webkit-scrollbar { display: none; }
  .header__menu > li { flex: 0 0 auto !important; margin: 0 !important; }
  .header__menu > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 !important;
    color: #9A9587 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  .header__menu > li > a:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 7px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
    opacity: 0;
    transition: opacity .18s ease;
  }
  .header__menu > li > a:hover,
  .header__menu > li > a:focus-visible { color: #ffe59a !important; }
  .header__menu > li > a:hover:after { opacity: 1; }
  .header__menu-hidden { display: none !important; }

  /* панель пошуку накриває лише перший ряд */
  .kb-search-panel { top: 0 !important; bottom: auto !important; height: 56px !important; }
}

/* ==========================================================================
   ТЕЛЕФОН: ГОЛОВНА
  1) заголовки розділів — не липкі, а редакційні бенди з золотим номером;
  2) ряди — повноширинні стрічки зі снапом, перша картка більша (луна бенто);
  3) «Дивитись всі» під рядом — тонке капс-посилання без пілюлі.
   ========================================================================== */
@media (max-width: 768px) {

  /* бенд розділу: 03 │ Фільми — тонка лінія + золотий номер */
  .kb-sec-hd {
    position: relative !important;
    top: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 38px 0 16px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    background: none !important;
  }
  .kb-sec-hd:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 56px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  .kb-sec-hd > .section__title { margin: 0 !important; max-height: none !important; }
  .kb-sec-hd .section__title { font-size: 20px !important; font-weight: 800 !important; letter-spacing: .005em !important; line-height: 1.15 !important; }
  .kb-sec-hd .section__title a { color: #EFEDE6 !important; }
  .kb-sec-hd .section__title .kb-go,
  .kb-sec-hd .section__title a:before { display: none !important; }
  /* посилання «Дивитись всі» біля заголовка на телефоні не потрібне: воно є під рядом */
  .kb-sec-hd > .kb-sec-all { display: none !important; }

  /* номер як окрема колонка «досьє» */
  .kz-num {
    display: inline-block !important;
    font-size: 23px !important;
    line-height: .9 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    color: #ffd75c !important;
    -webkit-text-fill-color: #ffd75c !important;
    background: none !important;
    padding-right: 11px !important;
    margin-right: 11px !important;
    border-right: 1px solid rgba(255,201,26, .30) !important;
    vertical-align: -.06em !important;
  }

  /* «01 Топ Kinozori» живе поза .kb-sec-hd — той самий бенд */
  .kb-popsec > .section__title {
    position: relative !important;
    display: block !important;
    margin: 38px 0 16px !important;
    padding: 0 0 10px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }
  .kb-popsec > .section__title:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 56px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  .kb-popsec > .section__title:before { display: none !important; }

  /* ряд — повноширинна стрічка зі снапом; стрілки каруселі зайві */
  .kz-row { overflow: visible !important; }
  .kz-row > .kz-row-btn { display: none !important; }
  .grid-item:not(.kb-popular):not(.kb-news-strip) {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin: 0 -30px !important;
    padding: 2px 30px 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 30px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip)::-webkit-scrollbar { display: none !important; }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item {
    flex: 0 0 42% !important;
    scroll-snap-align: start !important;
  }
  /* перша картка — ширша, як велика клітинка бенто на ПК */
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:first-child {
    flex: 0 0 62% !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:first-child .movie-img,
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:first-child .movie-img1 {
    border-radius: 14px !important;
  }
  .grid-item:not(.kb-popular):not(.kb-news-strip) > .movie-item:first-child .movie-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    margin-top: 9px !important;
  }
  .grid-item > .movie-item .movie-img,
  .grid-item > .movie-item .movie-img1 { border-radius: 12px !important; }

  /* «Дивитись всі» під рядом — тонке капс-посилання з рискою */
  .kb-sec-all.kb-sec-all--foot {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: max-content !important;
    height: auto !important;
    margin: 16px auto 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #B4AE9E !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
  }
  .kb-sec-all.kb-sec-all--foot:before {
    content: "" !important;
    width: 26px !important; height: 1px !important;
    background: rgba(255,201,26, .55) !important;
  }
  .kb-sec-all.kb-sec-all--foot:hover { color: #ffc91a !important; background: none !important; border: 0 !important; }
  .kb-sec-all.kb-sec-all--foot .kb-sec-all__go { width: 7px !important; height: 7px !important; }
}

/* ==========================================================================
   ТЕЛЕФОН: СТОРІНКА ФІЛЬМУ + ПЛЕЄР
  Бекдроп-бенд 250px, постер по центру, назва по центру, метадані — стрічка
  чіпсів, дії — два стовпці, опис і титри — повна ширина з підписами-капсом.
  Плеєр — повноширинний кіноекран без картки, тулбар — капс-таби-пігулка.
   ========================================================================== */
@media (max-width: 899px) {

  /* картка стає смугою на всю ширину — без полів і скруглень */
  .detail-section {
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #1e1e1f !important;
    box-shadow: none !important;
    overflow: hidden !important;
    isolation: isolate;
  }

  /* бекдроп — верхній бенд із м'яким розчиненням у колір смуги */
  .detail-section > .detail-section_bg {
    position: absolute !important;
    left: 0 !important; right: 0 !important; top: 0 !important;
    height: 240px !important;
    max-height: none !important;
    margin: 0 !important; padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
  }
  .detail-section > .detail-section_bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    filter: blur(22px) saturate(1.25) brightness(.7) !important;
    -webkit-filter: blur(22px) saturate(1.25) brightness(.7) !important;
    transform: scale(1.18) !important;
    -webkit-transform: scale(1.18) !important;
  }
  .detail-section > .detail-section_bg:after {
    background: linear-gradient(180deg,
      rgba(30,30,31, .2) 0%,
      rgba(30,30,31, .55) 44%,
      rgba(30,30,31, .9) 78%,
      #1e1e1f 100%) !important;
  }
  .detail-section_breadcrumb {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 13px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .detail-section_breadcrumb::-webkit-scrollbar { display: none !important; }
  .detail-section_breadcrumb-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #8E8A7D !important;
  }
  .detail-section_breadcrumb-item.active { color: #D9D5C9 !important; }

  .detail-section:has(.detail-section_bg img) .detail-section_section-info {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  .detail-section_content { display: block !important; padding: 8px 0 0 !important; }

  /* постер — по центру, з золотим волоском */
  .detail-section_poster {
    float: none !important;
    display: block !important;
    width: 126px !important;
    height: auto !important;
    margin: 2px auto 16px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,201,26, .32) !important;
    box-shadow: 0 26px 46px rgba(0, 0, 0, .72) !important;
  }
  .detail-section_poster img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .detail-section_block-right {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .detail-section_title { text-align: center !important; }
  .detail-section_title h1 {
    margin: 0 !important;
    font-size: 27px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
    color: #FBFAF6 !important;
  }
  .detail-section_title .kb-original-name {
    margin: 7px 0 0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: #9A9587 !important;
  }

  /* метадані — стрічка чіпсів на всю ширину екрана */
  .detail-section_category.kb-meta {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px -30px 0 !important;
    padding: 2px 30px !important;
    overflow-x: auto !important;
    background: none !important;
    border: 0 !important;
    scrollbar-width: none;
  }
  .detail-section_category.kb-meta::-webkit-scrollbar { display: none !important; }
  .detail-section_category.kb-meta > * {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 26px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .04) !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #D9D5C9 !important;
    white-space: nowrap !important;
  }
  .detail-section_category.kb-meta .kb-type {
    border-color: rgba(255,201,26, .35) !important;
    background: rgba(255,201,26, .10) !important;
  }
  .detail-section_category.kb-meta .kb-type a {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  .detail-section_category.kb-meta .kb-type .cat-link::after {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    color: #ffc91a !important;
  }

  /* рейтинг — окремий рядок по центру */
  .kb-score {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin: 18px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
  }

  /* дії — два стовпці: велика «дивитися» + компактний трейлер */
  .kb-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    margin: 14px 0 0 !important;
  }
  .kb-actions__play {
    width: 100% !important;
    height: 46px !important;
    justify-content: center !important;
    padding: 0 16px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }
  .kb-actions__play svg { width: 15px !important; height: 15px !important; }
  .kb-actions .kb-actions__btn {
    width: auto !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }

  /* опис і титри — повна ширина, титри — стос із підписами-капсом */
  .detail-section_actors {
    display: block !important;
    margin: 22px 0 0 !important;
    padding: 20px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .09) !important;
    gap: 0 !important;
  }
  .detail-section_actors .detail-section_fullstory {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .detail-section_actors .detail-section_full {
    font-size: 13.5px !important;
    line-height: 1.72 !important;
    color: #B9B4A6 !important;
  }
  .detail-section_full.kb-clamp:after {
    background: linear-gradient(180deg, rgba(16,16,17, 0), #101011) !important;
  }
  .detail-section_actors-right {
    display: block !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
  }
  .detail-section_actors-right > div {
    padding: 10px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
    font-size: 12.5px !important;
    line-height: 1.75 !important;
    color: #B9B4A6 !important;
  }
  .detail-section_actors-right > div:first-child { border-top: 0 !important; padding-top: 0 !important; }
  .detail-section_actors-right .kb-fact-label {
    display: block !important;
    margin: 0 0 3px !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    color: #d4a000 !important;
  }
  .detail-section_actors-right a {
    color: #fdd13f !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .14) !important;
  }

  /* ПЛЕЄР: смуга без картки, екран — на всю ширину екрана телефона */
  .inner-page > #kb-player-block.page__player {
    margin: 26px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  #kb-player-block .kb-player__title { display: none !important; }
  #kb-player-block .page__player-controls { display: block !important; padding: 0 16px !important; }
  #kb-player-block .tabs-block__select {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 3px !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, .035) !important;
  }
  #kb-player-block .tabs-block__select > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 100px !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    color: #8E8A7D !important;
  }
  #kb-player-block .tabs-block__select > span.is-active {
    background: linear-gradient(180deg, #ffe59a, #fdd13f) !important;
    color: #513e01 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  #kb-player-block .page__complaint { margin: 10px 0 0 !important; padding: 0 !important; }
  #kb-player-block .page__complaint-link {
    display: flex !important;
    justify-content: center !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  #kb-player-block .page__complaint-link a {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #6F6B60 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }
  #kb-player-block .kbpl-bar {
    margin: 12px 0 !important;
    padding: 10px 16px !important;
    gap: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, .07) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
  }
  #kb-player-block .kbpl-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    color: #6F6B60 !important;
  }
  #kb-player-block .kbpl-voice {
    height: 30px !important;
    padding: 0 13px !important;
    border-radius: 100px !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    background: rgba(255, 255, 255, .03) !important;
    color: #C9C5B9 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }
  #kb-player-block .kbpl-voice.is-on {
    border-color: rgba(255,201,26, .50) !important;
    background: rgba(255,201,26, .12) !important;
    color: #ffc91a !important;
  }
  #kb-player-block .tabs-block__content.video-inside {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }

  /* «Відгуки» та «Рекомендуємо вам» — менші бенди */
  #inner-page__comments .comments_header {
    position: relative !important;
    padding: 0 0 10px !important;
    margin: 34px 0 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }
  #inner-page__comments .comments_header:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 56px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  #inner-page__comments .comments_title {
    padding-left: 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #EFEDE6 !important;
  }
  #inner-page__comments .comments_title:before { display: none !important; }
  #inner-page__comments .comments_counter {
    margin-left: 6px !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: rgba(255,201,26, .12) !important;
    color: #ffc91a !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }
  .related-section .section__title {
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    max-height: none !important;
    margin: 30px 0 14px !important;
    padding: 0 0 10px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }
  .related-section .section__title:after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; bottom: -1px !important;
    width: 56px !important; height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #ffc91a, rgba(255,201,26, 0)) !important;
  }
  .related-section .section__title .kb-rel__all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 3px auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #B4AE9E !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }
  .related-section .section__title .kb-rel__all .kb-go { display: none !important; }
}

/* плеєр на телефоні — справжній повний екран: компенсуємо padding статті (20px)
   через 100vw-прийом, щоб екран не мав жодного бічного відступу */
@media (max-width: 768px) {
  .inner-page > #kb-player-block.page__player {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  #kb-player-block .page__player-controls { padding: 0 14px !important; }
  #kb-player-block .kbpl-bar { padding: 10px 14px !important; }
}

/* ==========================================================================
   НІЧНИЙ ФОН — «синій вечір» замість плоского чорного.
   Сторінка читається як кадр нічного міста: вгорі тепле світло проєктора
   (золото + шампань), справа холодна заграва, знизу глибока синя тінь.
   Шарів три:
     1) body — вертикальний градієнт #202121 → #131314 на всю висоту документа;
     2) body::before — фіксована аура з чотирьох джерел світла, не їде з контентом;
     3) токени теми — ними фарбуються білборд, картки новин, футер і фейди,
        тож палітра узгоджена по всьому сайту.
   Картка фільму/статті — суцільна «панель» #1e1f1f: до неї згасають бенд-
   градієнти й затухання обрізаного опису, тому швів на стиках немає.
   ========================================================================== */

/* 1. Токени: піднімаємо темні тони палітри з майже-чорного до синього вечора */
:root, body, .wrapper {
  --kb-bg: #1b1b1c !important;
  --kb-panel: #1e1e1f !important;
  --kz-bg-2: #1d1e1e !important;
  --kz-panel-2: #2a2b2b !important;
  --kz-panel: #202121 !important;
}

/* 2. Полотно сторінки */
html { background-color: #151516 !important; }
body {
  background-color: #151516 !important;
  background-image: linear-gradient(180deg, #1e1e1f 0%, #1e1e1f 46%, #181819 100%) !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-size: 100% 100% !important;
}

/* 3. Аура: тепле світло згори, холодна заграва справа, синя глибина знизу */
body::before {
  height: auto !important;
  bottom: 0 !important;
  background:
    radial-gradient(52% 40% at 50% -10%, rgba(253,209,63, .32), rgba(253,209,63, 0) 72%),
    radial-gradient(34% 30% at -4% 2%, rgba(253,209,63, .16), rgba(253,209,63, 0) 70%),
    radial-gradient(40% 34% at 102% -2%, rgba(253,209,63, .30), rgba(253,209,63, 0) 72%),
    radial-gradient(90% 44% at 50% 108%, rgba(216,166,2, .24), rgba(216,166,2, 0) 74%) !important;
  background-repeat: no-repeat !important;
}

/* 4. Білборд: тепла панель із золотою загрвою, а не чорна стіна */
.kz-hero {
  background:
    radial-gradient(74% 120% at 92% -14%, rgba(253,209,63, .20), rgba(253,209,63, 0) 60%),
    radial-gradient(90% 130% at 78% 0%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #2a2b2b 0%, #1d1e1e 100%) !important;
  box-shadow: 0 34px 84px -44px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}
.kz-hero__bg { filter: blur(30px) saturate(1.05) brightness(.52) !important; }
.kz-hero__shade {
  background:
    linear-gradient(90deg, rgba(30,30,31, .93) 0%, rgba(30,30,31, .79) 42%, rgba(30,30,31, .32) 70%, rgba(30,30,31, .50) 100%),
    linear-gradient(180deg, rgba(30,30,31, .16), rgba(30,30,31, .46)) !important;
}
@media (max-width: 719px) {
  .kz-hero__bg { filter: blur(18px) saturate(.95) brightness(.46) !important; }
  .kz-hero__shade {
    background: linear-gradient(180deg, rgba(30,30,31, .64) 0%, rgba(30,30,31, .82) 46%, rgba(30,30,31, .92) 100%) !important;
  }
}

/* 5. Сторінка фільму та статті: одна світла «панель» замість чорного скла */
.detail-section {
  background-color: #1e1f1f !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 260px) !important;
}
@media (min-width: 769px) {
  .detail-section + .inner-page.pages-bg,
  .detail-section + .inner-page.pages-bg + .related-section {
    background: #1e1f1f !important;
    border-color: rgba(255, 255, 255, .10) !important;
  }
}
.kb-news-hero {
  background: linear-gradient(180deg, #1e1e1f 0%, #1e1f1f 100%) !important;
}
.kb-article { background: #1e1f1f !important; }

/* 6. Футер тримає той самий вечірній тон */
.footer {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(253,209,63, .11), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(30,30,31, .86), rgba(24,24,25, .92)) !important;
  border-color: rgba(255, 255, 255, .10) !important;
}

/* ==========================================================================
   7. КАТАЛОГ — шість тайтлів у ряд і золота палітра фільтрів.
   Сітка списку — це той самий .grid-item, що й ряди головної, тому бенто-
   правило на 8 колонок перебиваємо тут точніше: на головній сітки лежать
   рядами (.container > .grid-item.kb-lu тощо), а на сторінках списку —
   в .content > .grid-item (#kb-grid, «Новинки», фільмографії).
   ========================================================================== */

/* 7.1 Шість колонок на ПК; проміжок 1025–1179 базова тема і так тримає шість */
@media (min-width: 1180px) {
  #kb-grid,
  .content > .grid-item:not(.kb-popular):not(.kb-news-strip) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* 7.2 Планшет і телефон: каталог — звичайна сітка, а не горизонтальна стрічка
   головної. На 390px та стрічка розтягувала сторінку до 7300px.
   Головну не чіпаємо — ці правила працюють лише в .content. */
@media (max-width: 768px) {
  #kb-grid,
  .content > .grid-item:not(.kb-popular):not(.kb-news-strip) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }
}
@media (max-width: 560px) {
  #kb-grid,
  .content > .grid-item:not(.kb-popular):not(.kb-news-strip) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 12px !important;
  }
}

/* 7.3 Палітра фільтрів: бірюзу №2FD0F0 замінюємо шампанню, майже-чорне скло
   (#171718/#101011) — синіми панелями теми. Спершу токени: ними зроблені
   градієнти кнопок і лінія під тулбаром. */
#kb-filter,
#kb-fx-sheet,
#kb-cx .kb-cx__bar,
#kb-cx .kb-cx__main {
  --kb-cyan: #ffc91a !important;
  --kb-gold: #d4a000 !important;
  --kb-yellow: #ffe59a !important;
  --kb-line: rgba(255,201,26, .16) !important;
}

/* пігулки фаєтів */
:is(#kb-filter, #kb-fx-sheet) .kb-fx__btn {
  border-color: rgba(255, 255, 255, .10) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: #D9D5C9 !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__btn:hover {
  border-color: rgba(255,201,26, .38) !important;
  background: rgba(255,201,26, .07) !important;
  color: #ffe59a !important;
}
#kb-filter .kb-fx__dd.is-open > .kb-fx__btn,
#kb-filter .kb-fx__btn.is-on,
#kb-fx-sheet .kb-fx__btn.is-on {
  border-color: rgba(255,201,26, .55) !important;
  background: rgba(255,201,26, .12) !important;
  color: #ffe59a !important;
  box-shadow: 0 0 0 3px rgba(255,201,26, .08) !important;
}
#kb-filter .kb-fx__num {
  background: linear-gradient(100deg, #d4a000, #ffc91a) !important;
  color: #171818 !important;
}
#kb-filter .kb-fx__meta,
#kb-filter .kb-fx__footmeta { color: #8E8A7D !important; }
#kb-filter .kb-fx__meta b,
#kb-filter .kb-fx__footmeta b { color: #fdd13f !important; }

/* сортування праворуч */
#kb-filter .kb-fx__btn--sort {
  border-color: transparent !important;
  background: transparent !important;
  color: #A8A293 !important;
}
#kb-filter .kb-fx__btn--sort b { color: #ffc91a !important; }
#kb-filter .kb-fx__btn--sort:hover {
  border-color: rgba(255,201,26, .22) !important;
  background: rgba(255,201,26, .08) !important;
  color: #ffe59a !important;
}
@media (max-width: 767px) {
  #kb-filter .kb-fx__btn--sort {
    border-color: rgba(255, 255, 255, .10) !important;
    background: rgba(255, 255, 255, .04) !important;
  }
}

/* вибрані фільтри — чіпи під тулбаром */
#kb-filter .kb-fx__chip {
  border-color: rgba(255,201,26, .40) !important;
  background: rgba(255,201,26, .10) !important;
  color: #ffc91a !important;
}
#kb-filter .kb-fx__chip:hover {
  border-color: rgba(255,201,26, .62) !important;
  background: rgba(255,201,26, .16) !important;
  color: #fff4d2 !important;
}
#kb-filter .kb-fx__chip em { background: rgba(16,16,17, .45) !important; }
#kb-filter .kb-fx__reset {
  color: #8E8A7D !important;
  border-bottom-color: rgba(142, 138, 125, .45) !important;
}
#kb-filter .kb-fx__reset:hover {
  color: #ffc91a !important;
  border-bottom-color: rgba(255,201,26, .6) !important;
}

/* випадаючі панелі */
#kb-filter:not(.kb-cx__side) .kb-fx__pop,
#kb-fx-sheet .kb-fx__pop {
  border-color: rgba(255,201,26, .22) !important;
  background: #1e1e1f !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .70), 0 2px 0 rgba(255, 255, 255, .02) inset !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__search input {
  border-color: rgba(255,201,26, .18) !important;
  background: #171718 !important;
  color: #fdd13f !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__search input::placeholder { color: #7C7565 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__search input:focus {
  border-color: rgba(255,201,26, .5) !important;
  box-shadow: 0 0 0 3px rgba(255,201,26, .08) !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__search svg { stroke: #7C7565 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opts { scrollbar-color: rgba(255,201,26, .3) transparent !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opts::-webkit-scrollbar-thumb { background: rgba(255,201,26, .24) !important; }

/* пункти списків */
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opt { color: #BDB7A6 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opt:hover {
  background: rgba(255,201,26, .08) !important;
  color: #ffe59a !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opt.is-on { color: #ffe59a !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__box { border-color: rgba(255,201,26, .34) !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opt.is-on .kb-fx__box {
  background: linear-gradient(135deg, #d4a000, #ffc91a) !important;
  border-color: transparent !important;
  color: #171818 !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__n { color: #7A7464 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__opt.is-on .kb-fx__n { color: #fdd13f !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__none { color: #7C7565 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__popf { border-top-color: rgba(255,201,26, .12) !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__clear { color: #8E8A7D !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__clear:hover { color: #ffc91a !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__apply {
  background: linear-gradient(100deg, #d4a000, #ffc91a) !important;
  color: #171818 !important;
}

/* список сортування */
:is(#kb-filter, #kb-fx-sheet) .kb-fx__do { color: #BDB7A6 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__do:hover {
  background: rgba(255,201,26, .08) !important;
  color: #ffe59a !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__do.is-on {
  background: rgba(255,201,26, .10) !important;
  color: #ffe59a !important;
  box-shadow: inset 0 0 0 1px rgba(255,201,26, .20) !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__dot { border-color: rgba(255,201,26, .4) !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__do.is-on .kb-fx__dot { border-color: #ffc91a !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__do.is-on .kb-fx__dot:after { background: #ffc91a !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__more {
  background: rgba(255,201,26, .06) !important;
  color: #fdd13f !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__more:hover { background: rgba(255,201,26, .12) !important; }

/* рейтинг: пресети й повзунок */
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rbtn {
  border-color: rgba(255,201,26, .18) !important;
  background: rgba(255,201,26, .04) !important;
  color: #D9D5C9 !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rbtn.kb-fx__opt:hover {
  border-color: rgba(255,201,26, .45) !important;
  background: rgba(255,201,26, .10) !important;
  color: #ffe59a !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rbtn.is-on {
  background: linear-gradient(100deg, #d4a000, #ffc91a) !important;
  border-color: transparent !important;
  color: #171818 !important;
}
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rbtn .kb-fx__n { color: #7A7464 !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rbtn.is-on .kb-fx__n { color: rgba(23,24,24, .62) !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rrange { accent-color: #ffc91a !important; }
:is(#kb-filter, #kb-fx-sheet) .kb-fx__rout { color: #ffc91a !important; }

/* індикатори запиту: смуга під тулбаром і кільце знизу екрана */
#kb-filter .kb-fx__bar { border-bottom-color: rgba(255,201,26, .16) !important; }
#kb-filter.kb-fx--busy .kb-fx__bar:after {
  background: linear-gradient(90deg, rgba(255,201,26, 0), #d4a000 30%, #ffc91a 62%, rgba(255,201,26, 0)) !important;
  background-size: 230% 100% !important;
}
#kb-fx-load {
  border-color: rgba(255,201,26, .30) !important;
  background: rgba(22,22,23, .94) !important;
  color: #fdd13f !important;
}
#kb-fx-load .kb-fx__spin {
  border-color: rgba(255,201,26, .18) !important;
  border-top-color: #ffc91a !important;
  border-right-color: #d4a000 !important;
}
#kb-fx-sheet .kb-fx__pop:before { background: rgba(255,201,26, .22) !important; }

/* порожній результат і пагінація — та сама тепла пара */
#kb-empty {
  border-color: rgba(255,201,26, .22) !important;
  background: rgba(255,201,26, .04) !important;
  color: #BDB7A6 !important;
}
#kb-empty .kb-empty__btn {
  background: linear-gradient(100deg, #d4a000, #ffc91a) !important;
  color: #171818 !important;
}
/* пагінація під сіткою: активна сторінка — золота плашка, решта — синя панель
   (базовий skin фарбував активну в яскраву бірюзу #fdc612) */
.grid-item > .bottom-nav .navigation > span:not(.nav_ext):not(.kb-pg__gap) {
  background: linear-gradient(100deg, #d4a000, #ffc91a) !important;
  color: #171818 !important;
  font-weight: 700 !important;
}
.grid-item > .bottom-nav .navigation > a {
  background: rgba(255, 255, 255, .04) !important;
  color: #C9C3B2 !important;
}
.grid-item > .bottom-nav .navigation > a:hover {
  background: rgba(255,201,26, .16) !important;
  color: #ffe59a !important;
}

/* ==========================================================================
   8. ЦІЛЬНА ОБОЛОНКА: шапка — контент — футер на одній пластині.
   .wrapper стає єдиною поверхнею трохи темнішою за фон (аврора просвічує
   крізь напівпрозорий градієнт), шапка у спокої в неї розчиняється, при
   скролі отримує власну заливку, футер зливається з нижнім краєм замість
   окремої картки з відступами й скругленням.
   ========================================================================== */

/* 8.1 Пластина .wrapper */
.wrapper {
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    rgba(16,16,17, .38) 0%,
    rgba(6, 9, 15, .48) 42%,
    rgba(4, 7, 12, .58) 100%
  ) !important;
}
/* широка ширина: колона відривається від країв — позначаємо її тонкою гранню */
@media (min-width: 1441px) {
  .wrapper {
    box-shadow:
      inset 1px 0 0 rgba(255, 255, 255, .05),
      inset -1px 0 0 rgba(255, 255, 255, .05),
      0 0 70px rgba(0, 0, 0, .28) !important;
  }
}

/* 8.2 Шапка у спокої — частина пластини: жодної власної заливки, тіні й скруглення */
.header {
  border-radius: 0 !important;
  border-bottom-color: rgba(255, 255, 255, .05) !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* 8.3 Шапка при скролі — суцільна смуга тієї ж пластини поверх контенту.
   БЕЗ ТІНІ: у смуги прямі кути, і тінь читалася квадратним темним відблиском,
   що різався об скруглені панелі нижче. Межу тримають золота волосина
   й сама заливка. */
.header.kb-hdr-scrolled {
  border-radius: 0 !important;
  border-bottom-color: rgba(255,201,26, .22) !important;
  background: linear-gradient(180deg, rgba(23,23,24, .96) 0%, rgba(17,17,18, .94) 100%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
  backdrop-filter: blur(16px) saturate(1.15) !important;
  box-shadow: none !important;
}

/* 8.4 Футер — нижня частина пластини, без «картки» з відступами й скругленням */
.footer {
  border-style: solid !important;
  border-width: 1px 0 0 !important;
  border-color: rgba(255, 255, 255, .07) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(253,209,63, .09), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(30,30,31, .44) 0%, rgba(16,16,17, .60) 100%) !important;
}
.wrapper > .footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
}