/* Native horizontal scrolling; never combine scrollLeft with translated slides. */
.root .main_wrapper .cayegoryList,
.channelPage .newCategoriesSlider { min-width: 0; overflow: hidden; position: relative; }
.root .cayegoryList .swiper.swiper-horizontal,
.channelPage .newCategoriesSlider .swiper.swiper-horizontal {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  width: 100%;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 10px;
  padding-inline: 0;
}
.root .cayegoryList .swiper::-webkit-scrollbar,
.channelPage .newCategoriesSlider .swiper::-webkit-scrollbar { display: none; }
.root .cayegoryList .swiper-wrapper,
.channelPage .newCategoriesSlider .swiper-wrapper,
.root .cayegoryList:has(#category-scroll:checked) .swiper-wrapper,
.channelPage .newCategoriesSlider:has(#channel-category-scroll:checked) .swiper-wrapper {
  transform: none !important;
  transition: none;
  width: max-content;
  max-width: none;
  height: auto;
  align-items: center;
  padding-inline: var(--continer-padding-x, 15px);
  box-sizing: border-box;
}
.root .cayegoryList .swiper-slide,
.channelPage .newCategoriesSlider .swiper-slide {
  flex: 0 0 auto; display: flex; align-items: center; height: auto;
}
.root .cayegoryList label[class*="swiper-button"],
.channelPage .newCategoriesSlider label[class*="swiper-button"] { display: none; }
.category-nav {
  position: absolute; inset-block: 0; z-index: 6;
  display: flex; align-items: center; width: 64px; height: 100%;
  min-height: 0; max-height: none; box-sizing: border-box;
  appearance: none; margin: 0; border: 0; border-radius: 0;
  padding: 0 15px; color: #fff;
  background-size: 100% 100%; background-repeat: no-repeat;
  cursor: pointer; pointer-events: none;
}
.category-nav--prev {
  left: 0; justify-content: flex-start;
  background: var(--profile-surface-edge-left-strong-gradient);
}
.category-nav--next {
  right: 0; justify-content: flex-end;
  background: var(--profile-surface-edge-right-strong-gradient);
}
.category-nav__icon {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%;
  background: #1c1c1c; pointer-events: auto;
}
.category-nav__icon svg { width: 15px; height: 15px; }
.channelPage .category-nav--prev svg,
.root .category-nav--next svg { transform: rotate(180deg); }
.root .category-nav--prev { background: var(--profile-surface-edge-left-gradient); }
.root .category-nav--next { background: var(--profile-dark-surface-edge-right-gradient); }
.root .category-nav__icon svg { width: 21px; height: 21px; }
.category-nav[hidden] { display: none; }
/* Catalogue (home) page has no arrows; categories scroll natively (swipe/wheel). */
.root .category-nav { display: none; }
.root .cayegoryList .swiper-wrapper { padding-inline: 10px; }
.category-nav:disabled { visibility: hidden; }

/* Keep search compact and ensure the sticky header covers scrolling content. */
.header.transparent { background: #000; z-index: 1003; }
/* On phones reserve a fixed player area and scroll the channel panel beneath it. */
.channelPage .leftPannel__content .channelItem { --progress-width: 100%; }
.channelPage .leftPannel__content .channelItem__icon { flex-shrink: 0; }
.channelPage .leftPannel__content .channelItem__content { min-width: 0; }
.channelPage .leftPannel__content .channelItem:before { max-width: 100%; }
.channelPage .leftPannel__content .channelItem:not(.channelItem--active) .channelItem__content_description { display: none; }
.channelPage .leftPannel__content .channelItem--active .channelItem__content_description { display: flex; opacity: 1; }
@media (max-width: 768px) {
  body:has(.channelPage) { overflow: hidden; }
  body:has(.channelPage) .footer { display: none; }
  .channelPage {
    position: fixed; inset: var(--header-height) 0 0;
    height: calc(100dvh - var(--header-height)); min-height: 0; overflow: hidden;
  }
  .channelPage .channelPage__container,
  .channelPage .channelPage__wrapper { height: 100%; min-height: 0; overflow: hidden; }
  .channelPage .channelPage__wrapper { display: flex; flex-direction: column; }
  .channelPage .channelPage__player {
    position: relative; flex: 0 0 auto; width: 100%;
    height: min(62.5vw, 40dvh); aspect-ratio: auto;
  }
  .channelPage .channelPage__leftPanel { flex: 1 1 0; min-height: 0; height: auto; overflow: hidden; }
  .channelPage .leftPannel,
  .channelPage .leftPannel__container { height: 100%; min-height: 0; overflow: hidden; }
  .channelPage .leftPannel__wrapper {
    height: 100%; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  }
  .channelPage .leftPannel__head { position: sticky; top: 0; z-index: 5; }
  .channelPage .leftPannel__content .channelItem { padding: 12px 15px; }
  .channelPage .leftPannel__content .channelItem__icon { width: 88px; }
}

/* DLE service pages share the site's dark form treatment. */
.service-page { width: min(90%, 720px); margin: 32px auto 64px; min-height: 60vh; }
.category-nav:focus-visible { outline: 2px solid #ff4d77; outline-offset: 3px; }

/* DLE's search inputs use content-box; the original catalogue field is 52px total. */
.root .searchWrapper input.input { box-sizing: border-box; min-width: 0; }
.root .channelList__item[hidden], .channel-search-empty[hidden],
.global-search-empty[hidden] { display: none; }
.channel-search-empty { color: #767676; text-align: center; padding: 60px 20px; }
.global-search-page { min-height: 70vh; padding-bottom: 80px; }
.global-search-content { gap: 0; }
.global-search-page #fullsearch { width: 100%; margin: 0; }
.global-search-bar { width: 90%; margin: 0 auto; padding: 20px 0 0; }
.global-search-input-wrap { display: flex; align-items: center; gap: 20px; border-bottom: 2px solid #e41a4b; padding-bottom: 10px; }
.global-search-input-wrap svg { flex: 0 0 23px; width: 23px; height: 23px; color: #747474; }
.global-search-input-wrap input#searchinput {
  box-sizing: border-box; min-width: 0; width: 100%; margin: 0;
  padding: 6px; border: 0; border-radius: 0; outline: none;
  background: transparent; color: #fff; caret-color: #e41a4b;
  font: 400 20px/1.225 Inter, sans-serif;
}
.global-search-input-wrap input#searchinput::placeholder { color: #747474; opacity: 1; }
/* The original shows no result count; keep DLE's message for screen readers only. */
.global-search-message { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.global-search-results { width: 90%; margin: 30px auto 0; padding: 0; }
.global-search-results:empty { margin-top: 0; }
.global-search-results .box, .global-search-results #dle-info,
.global-search-results .demo-pagination { width: 100%; }
.global-search-empty { width: 90%; margin: 5rem auto 0; min-height: 55vh; display: flex; align-items: center; flex-direction: column; gap: 20px; }
.global-search-empty img { width: 250px; max-width: 100%; }
.global-search-empty p { color: #767676; font-size: 24px; font-weight: 500; text-align: center; max-width: 19em; }
.global-search-retry { margin: 20px auto; background: transparent; border: 0; color: #fff; cursor: pointer; }
@media (max-width: 575.98px) { .global-search-page { padding-bottom: 30px; } }
