/* Native controls for the static Sevimli page. No media or scripts. */
body:has(#menu-toggle:checked) .header {
  z-index: 10010;
}

.channelPage .newCategoriesSlider {
  container-type: inline-size;
}

.channelPage .newCategoriesSlider .swiper-wrapper {
  width: max-content;
  transition: transform .3s ease;
}

.channelPage .newCategoriesSlider .swiper-slide {
  flex: 0 0 auto;
}

.channelPage .newCategoriesSlider .swiper-button-prev {
  opacity: 0;
  pointer-events: none;
}

.channelPage .newCategoriesSlider:has(#channel-category-scroll:checked) .swiper-wrapper {
  transform: translateX(min(0px, calc(100cqi - 100% - 30px))) !important;
}

.channelPage .newCategoriesSlider:has(#channel-category-scroll:checked) .swiper-button-prev {
  opacity: 1;
  pointer-events: auto;
}

.channelPage .newCategoriesSlider:has(#channel-category-scroll:checked) .swiper-button-next {
  opacity: 0;
  pointer-events: none;
}

.channelPage:has(#channel-category-0:checked) label[for="channel-category-0"],
.channelPage:has(#channel-category-7:checked) label[for="channel-category-7"],
.channelPage:has(#channel-category-6:checked) label[for="channel-category-6"],
.channelPage:has(#channel-category-5:checked) label[for="channel-category-5"],
.channelPage:has(#channel-category-8:checked) label[for="channel-category-8"],
.channelPage:has(#channel-category-3:checked) label[for="channel-category-3"],
.channelPage:has(#channel-category-2:checked) label[for="channel-category-2"],
.channelPage:has(#channel-category-4:checked) label[for="channel-category-4"] {
  --background: #e41a4b;
}

.channelPage:has(#channel-category-7:checked) .leftPannel__content__list_item:not([data-categories~="7"]),
.channelPage:has(#channel-category-6:checked) .leftPannel__content__list_item:not([data-categories~="6"]),
.channelPage:has(#channel-category-5:checked) .leftPannel__content__list_item:not([data-categories~="5"]),
.channelPage:has(#channel-category-8:checked) .leftPannel__content__list_item:not([data-categories~="8"]),
.channelPage:has(#channel-category-3:checked) .leftPannel__content__list_item:not([data-categories~="3"]),
.channelPage:has(#channel-category-2:checked) .leftPannel__content__list_item:not([data-categories~="2"]),
.channelPage:has(#channel-category-4:checked) .leftPannel__content__list_item:not([data-categories~="4"]) {
  display: none;
}

.channelPage:has(.channel-category-input:focus-visible) .newCategoriesSlider {
  outline: 1px solid #fff;
  outline-offset: -1px;
}

.channelPage .channelItem__content_description_more,
.channelPage .moreInfoModal__overlay {
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.channelPage .channelItem__content_description_more {
  background: transparent;
}

.channelPage .moreInfoModal[popover] {
  position: fixed;
  inset: var(--header-height) 0 0;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}

.channelPage .moreInfoModal:not(:popover-open) {
  display: none;
}

.channelPage .moreInfoModal:popover-open {
  display: flex;
  pointer-events: auto;
}

.channelPage .moreInfoModal:popover-open .moreInfoModal__overlay {
  opacity: 1;
}

.channelPage .moreInfoModal:popover-open .moreInfoModal__content {
  overflow-y: auto;
  transform: translateX(0);
}

.channelPage .moreInfoModal::backdrop {
  background: transparent;
}

.channelPage .moreInfoModal__content {
  --panel-bg: #000;
}
