/* ————— Адаптив ————— */
@media screen and (max-width: 2300px) {
.uc-pc-wide {display: none !important;}
}

@media screen and (min-width: 2300px) {
.uc-pc {display: none !important;}
}



@media screen and (min-width: 1200px) {
a[href*="more"]:hover {
    color: #585858 !important;
}
a:hover .image-class {
    opacity: 0.2 !important;
}
.tn-elem.dodo-cursor,
.dodo-cursor .tn-atom__video-play-link,
.dodo-cursor .tn-atom__video-play-link *,
.closepopup .tn-atom {
    cursor: none !important;
}
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647 !important;
    opacity: 0;
    will-change: transform;
    transition: opacity 0s ease;
}
.custom-cursor img {
    width: 100%;
    display: block;
    z-index: 2147483647 !important;
}
.custom-cursor.is-visible {
    opacity: 1;
    z-index: 2147483647 !important;
}
}

.is-hidden {
  filter: blur(4px) brightness(0.25);
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.is-hidden .copy-link-btn {
  pointer-events: none;
}

.tag-is-hidden {
  filter: brightness(0.3);
  pointer-events: none;
  user-select: none;
}



/* Бабочка ---- */
.butterfly-wrapper {
    position: absolute;
    top: 63%;
    left: 40%;
    z-index: 95;
    cursor: pointer;
    display: flex;
    will-change: transform;
    justify-content: center;
    align-items: center;
}
.butterfly-shadow {
    position: absolute;
    width: 50px;
    height: 7px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    filter: blur(6px);
    top: 75%;
    left: 49%;
    transform: translateX(-50%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: -1;
}
.butterfly-active {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 999999999 !important;
    animation: 
        flyDynamic 1.8s ease-in forwards, 
        darkenEarly 1.8s ease forwards;
}

.butterfly-active .butterfly-shadow {
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
}

.butterfly-active img {
    animation: 
        wingVibe 0.1s ease-in-out infinite,
        wiggle 0.5s ease-in-out infinite;
}

@keyframes flyDynamic {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(120vw, -100vh) rotate(60deg) scale(2); }
}

@keyframes darkenEarly {
    0%, 30% { filter: brightness(1); opacity: 1; }
    80% { filter: brightness(0); opacity: 1; }
    100% { filter: brightness(0); opacity: 0; }
}

@keyframes wiggle {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -50px; } 
}

@keyframes wingVibe {
    0%, 100% { padding-top: 0px; }
    50% { padding-top: 12px; }
}




/* ————— Шапка и лоадеры ————— */

.uc-hat {
    position: relative !important;
    z-index: 9999 !important;
}
.uc-loader {
    position: fixed !important;
    top: -200px !important;
    left: 0;
    width: 100%;
    height: calc(100% + 400px) !important;
    !important;
    pointer-events: none;
    z-index: 9998 !important;
    display: none;
    background-color: #000 !important;
}
.uc-bigloader {
    position: fixed !important;
    top: -200px !important;
    left: 0;
    width: 100%;
    pointer-events: none;
    height: calc(100% + 400px) !important;
    z-index: 99999 !important;
    display: block;
    background-color: #000 !important;
}

/* ————— Видео: Масштабирование и соотношение сторон ————— */

/* Стандартные видеоблоки */
.tn-elem.videodefault3x4,
.tn-elem.videodefault4x5,
.tn-elem.videodefault9x16,
.tn-elem.videodefault16x9,
.tn-elem.videodefault8x11,
.tn-elem.videodefault12x11,
.tn-elem.videodefault80x27,
.tn-elem.videodefault132x100 {
    height: auto !important;
    display: flex !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
}
.tn-elem.videodefault3x4 { aspect-ratio: 3 / 4; }
.tn-elem.videodefault4x5 { aspect-ratio: 4 / 5; }
.tn-elem.videodefault9x16 { aspect-ratio: 9 / 16; }
.tn-elem.videodefault16x9 { aspect-ratio: 16 / 9; }
.tn-elem.videodefault8x11 { aspect-ratio: 8 / 11; }
.tn-elem.videodefault12x11 { aspect-ratio: 12 / 11; }
.tn-elem.videodefault80x27 { aspect-ratio: 80 / 27; }
.tn-elem.videodefault132x100 { aspect-ratio: 132 / 100; }

/* Уточнение для моб версии */
.tn-elem.videodefault9x16w {
    width: auto !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    aspect-ratio: 9 / 16 !important;
}
.tn-elem.videodefault9x16h {
    height: auto !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    aspect-ratio: 9 / 16 !important;
}
.videodefault .tn-atom {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}
/* Лезилоад видеодефолт */
.videodefault .tn-atom {
    background-image: none !important;
    background-size: cover;
    background-position: center;
    transition: filter 0.6s ease, opacity 0.6s ease;
}
.videodefault.is-loading .tn-atom {
    opacity: 0.8;
}
.videodefault.is-loaded .tn-atom {
    opacity: 1;
    background-image: var(--bg-url) !important;
}

/* Автоплеи */
.autoplayers3x4,
.autoplayers4x5,
.autoplayers9x16,
.autoplayers16x9,
.autoplayers8x11,
.autoplayers12x11,
.autoplayers729x904 {
    height: auto !important;
    display: flex !important;
    position: relative !important;
    overflow: hidden !important;
}
.autoplayers3x4 { aspect-ratio: 3 / 4; }
.autoplayers4x5 { aspect-ratio: 4 / 5; }
.autoplayers9x16 { aspect-ratio: 9 / 16; }
.autoplayers16x9 { aspect-ratio: 16 / 9; }
.autoplayers8x11 { aspect-ratio: 8 / 11; }
.autoplayers12x11 { aspect-ratio: 12 / 11; }
.autoplayers729x904 { aspect-ratio: 729 / 904; }

/* Убираем бордер и ставим заново */
.tn-elem.videodefault .tn-atom:not(.roundborders) {
    border: none !important;
    border-width: 0px !important;
    outline: none !important;
    --t396-borderwidth: 0px !important;
}
.autoplayers,
.tn-elem.videodefault:not(.noborder, .roundborders) {
    border: none !important;
    border-width: 0px !important;
    outline: none !important;
    --t396-borderwidth: 0px !important;
    border: 1px solid #303030 !important;
}

/* ————— Кнопки ————— */

/* Аудио */
.audio-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.audio-play-btn, .progress-ring {
    width: 55px;
    height: 55px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media screen and (min-width: 1200px) {
.audio-overlay:hover .audio-play-btn, .progress-ring {
    transform: scale(1.1);
}
.audio-overlay:hover .audio-play-btn, .progress-ring {
    transform: scale(1.2);
}
.audio-overlay:active .audio-play-btn, .progress-ring {
    transform: scale(0.9);
}
}

/* Отключение выделения */
.audio-overlay,
.audioblock,
.image-class,
.btn-fullscreen,
.btn-fullscreen img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
.audio-play-btn,
.btn-fullscreen,
.btn-fullscreen img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* Кнопки управления видео */
.video-ctrl-btn {
    position: absolute;
    z-index: 20;
    width: 23px;
    height: 23px;
    padding: 0px;
    background: rgba(0, 0, 0, 0);
    border: none;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.video-ctrl-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Мьют */
.btn-mute {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0px !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    z-index: 15 !important;
}
.btn-mute img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 23px;
    height: 23px;
    pointer-events: none;
}

/* Фуллскрин */
.btn-fullscreen {
    position: absolute !important;
    z-index: 25 !important;
    width: 23px !important;
    height: 23px !important;
    top: 10px !important;
    left: 10px !important;
    background: transparent !important;
}
.btn-fullscreen img {
    pointer-events: auto;
}

/* Свитч иконок */
.is-muted .icon-unmute,
.is-unmuted .icon-mute {
    display: none;
}

/* Кнопки открытия топ-рилсов */
.open-link-wrapper {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 95 !important;
    line-height: 0 !important;
    pointer-events: none !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
.open-link-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    width: 33px !important;
    height: 33px !important;
    outline: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    pointer-events: auto !important;
    user-drag: none;
    -webkit-user-drag: none;
    text-decoration: none !important;
}
.open-link-btn.is-fading {
    opacity: 0 !important;
}
.open-link-btn img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}


@media (min-width: 1200px) {
.reel:hover .open-link-btn {
    opacity: 1 !important;
}
.open-link-btn:hover {
    transform: scale(1.15) !important;
}
}

@media (max-width: 1200px) {
.open-link-btn {
    opacity: 1 !important;
    width: 33px !important;
    height: 33px !important;
}
}

@media (min-width: 2200px) {
.open-link-btn {
    width: 50px !important;
    height: 50px !important;
}
}


/* ————— Пропорциональный fullscreen ————— */
video:fullscreen {
    object-fit: contain !important;
    background: #000;
}
video:-webkit-full-screen {
    object-fit: contain !important;
    background: #000;
}


/* ————— Скролл: посты и рилсы ————— */

/* Скролл постов по ссылкам с хешем */

.post {
    position: relative;
    z-index: 1;
    transition: filter .8s;
    scroll-margin-top: 100px;
}
/* Если у поста pointer-events: none — отключаем всё внутри */
.post[style*="pointer-events: none"] {
    pointer-events: none !important;
}
.post[style*="pointer-events: none"] * {
    pointer-events: none !important;
    cursor: default !important;
}
body.is-reeling .post {
    filter: brightness(0.2) !important;
    pointer-events: none !important;
}
body.is-reeling .post.blink-active {
    filter: brightness(1) !important;
    pointer-events: auto;
}
.post.is-focused {
    z-index: 95 !important;
}


/* Топ рилсы, лезилоад, скролл, анимации */

/* Лезилоад топ-рилсов */
.reel .t-bgimg {
    background-image: none !important;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.reel.is-loaded .t-bgimg {
    opacity: 1;
    background-image: var(--bg-url) !important;
}

/* Иконки в текст блоках */
.image-class {
    text-decoration: none !important;
    transition: all 0s ease;
    vertical-align: middle;
}
.reel {
    transition: filter .8s;
    position: relative;
    z-index: 1;
}
body.is-reeling .reel,
.image-class {
    filter: brightness(0.2) !important;
    pointer-events: none !important;
}
body.is-reeling .reel.blink-active,
.image-class {
    filter: brightness(1) !important;
    pointer-events: auto;
}
.reel.is-focused {
    z-index: 95 !important;
}
.video-shell {
    position:absolute;
    inset:0;
    overflow:hidden;
    border-radius:inherit;
    background:#000;
}
.video-el {
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition: opacity 0.25s ease;
}
.video-shell.is-ready .video-el {
    opacity:1;
}
.video-poster {
    position:absolute;
    inset:0;
    background:#000;
    z-index:1;
}



/* ————— Плеер (Full Fixed Version) ————— */
/* Фиксы контейнеров Tilda для видео */
.tn-atom__videoiframe { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    overflow: hidden !important;
    z-index: 10 !important;
}

:root {
  --plyr-color-main: #ffffff;
  --plyr-video-control-color: #ffffff;
  --plyr-video-control-color-hover: #ffffff;
  --plyr-range-thumb-height: 12px;
  --plyr-range-track-height: 4px;
  --plyr-tooltip-background: rgba(255, 255, 255, 0.95);
  --plyr-tooltip-color: #000000;
}

/* Основной контейнер плеера */
.plyr {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important; 
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000;
    box-sizing: border-box !important;
}

/* Обертка для видео внутри Plyr */
.plyr__video-wrapper {
    margin: 0 !important;
    background: #000;
    flex: 1 1 auto !important; 
    height: 100% !important; 
    width: 100% !important;
    display: flex !important;
}

/* Само видео: центрирование и заполнение */
.plyr video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
}

/* Контейнер контроллов */
.plyr__controls {
  z-index: 95 !important;
  pointer-events: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 30%) !important; 
  display: block !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  box-sizing: border-box !important;
}

.plyr__controls [data-plyr="fullscreen"],
.plyr__controls [data-plyr="play"],
.plyr__controls .plyr__progress {
  pointer-events: auto !important;
}

/* КНОПКА ФУЛЛСКРИНА */
.plyr__controls [data-plyr="fullscreen"] {
  position: absolute !important;
  bottom: 13px !important;
  right: 14px !important;
  width: 30px !important;
  height: 30px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Cpath fill='%23ffffff' d='M13.99 5.01c-.08-.08-.17-.12-.27-.12h-2.69c-.1 0-.19.04-.27.12-.08.08-.12.17-.12.27s.04.19.12.27l.86.86-1.99 1.99c-.04.04-.06.09-.06.14s.02.1.06.14l.68.68c.04.04.09.06.14.06s.1-.02.14-.06l1.99-1.99.86.86c.08.08.17.12.27.12s.19-.04.27-.12.12-.09.12-.19V5.28c0-.1-.04-.19-.12-.27zM8.68 9.64c-.04-.04-.09-.06-.14-.06s-.1.02-.14.06l-1.99 1.99-.86-.86c-.08-.08-.17-.12-.27-.12s-.19.04-.27.12c-.08.08-.12.17-.12.27v2.69c0 .1.04.19.12.27.08.08.17.12.27.12h2.7c.1 0 .19-.04.27-.12.08-.08.12-.17.12-.27s-.04-.19-.12-.27l-.86-.86 1.99-1.99c.04-.04.06-.09.06-.14s-.02-.1-.06-.14l-.68-.68z'/%3E%3C/svg%3E") !important;
  background-size: 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.plyr__controls [data-plyr="fullscreen"] svg {
  display: none !important;
}

.plyr--fullscreen-active [data-plyr="fullscreen"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Cpath fill='%23ffffff' d='M9.31 9.69c-.08-.08-.17-.12-.27-.12h-2.69c-.1 0-.19.04-.27.12-.08.08-.12.17-.12.27s.04.19.12.27l.86.86-1.99 1.99c-.04.04-.06.09-.06.14s.02.1.06.14l.68.68c.04.04.09.06.14.06s.1-.02.14-.06l1.99-1.99.86.86c.08.08.17.12.27.12s.19-.04.27-.12.12-.09.12-.19V9.96c0-.1-.04-.19-.12-.27zM13.79 4.95c-.04-.04-.09-.06-.14-.06s-.1.02-.14.06l-1.99 1.99-.86-.86c-.08-.08-.17-.12-.27-.12s-.19.04-.27.12c-.08.08-.12.17-.12.27v2.69c0 .1.04.19.12.27.08.08.17.12.27.12h2.7c.1 0 .19-.04.27-.12.08-.08.12-.17.12-.27s-.04-.19-.12-.27l-.86-.86 1.99-1.99c.04-.04.06-.09.06-.14s-.02-.1-.06-.14l-.68-.68z'/%3E%3C/svg%3E") !important;
}

/* КНОПКА PLAY/PAUSE */
.plyr__controls [data-plyr="play"] {
  position: absolute !important;
  bottom: 15px !important;
  left: 14px !important;
  background: transparent !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.plyr__controls [data-plyr="play"] svg {
  width: 16px !important;
  height: 16px !important;
}

/* ТАЙМЛАЙН */
.plyr__controls .plyr__progress {
  position: absolute !important;
  bottom: 19px !important;
  left: 50px !important;
  right: 51px !important;
  width: auto !important;
  margin: 0 !important;
}

/* ПОДСКАЗКА С ТАЙМКОДОМ (Tooltip) */
.plyr__tooltip {
  display: block !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  padding: 5px 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000000 !important;
  border-radius: 4px !important;
  bottom: 100% !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.plyr__tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.95) !important;
}

/* СКРЫТИЕ СТАНДАРТНЫХ ЭЛЕМЕНТОВ */
.plyr__time, 
.plyr__time--current, 
.plyr__time--duration {
  display: none !important;
}

/* ВИДИМОСТЬ КОНТРОЛЛОВ */
.plyr:not(.plyr--fullscreen-active) .plyr__controls {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ПОВЕДЕНИЕ В ФУЛЛСКРИНЕ */
.plyr:fullscreen video {
  object-fit: contain !important;
}

.plyr__progress input[type="range"] {
  cursor: pointer !important;
}

.plyr--full-ui { 
    box-sizing: border-box !important; 
}

@media screen and (min-width: 1200px) {
/* ————— 3D карточки (только пк) ————— */
.post-tilt-engine {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transform-style: preserve-3d;
    will-change: transform;
    pointer-events: none !important;
    transition: transform 1s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease !important;
}
.post-tilt-engine * {
    pointer-events: auto;
}
.post:not([style*="pointer-events: none"]):hover {
    z-index: 999 !important;
}
.post:not([style*="pointer-events: none"]):hover .post-tilt-engine {
    box-shadow: 0 30px 100px rgba(0,0,0,1) !important;
    transition: transform .2s ease-out, box-shadow .3s ease !important;
}
.post .videodefault .tn-atom,
.post .autoplayers video {
    will-change: transform;
    transform: scale(1.03);
    transition: transform 0.2s cubic-bezier(.2,.8,.2,1) !important;
}
.post:hover .tn-atom,
.post:hover video {
    transition: transform 0.2s ease-out !important;
}
.t-container,
.t-row,
[class*="t-col"] {
    isolation: auto !important;
    overflow: visible !important;
}
}

/* ————— Фильтры ————— */
.sort-button-motion-off,
.sort-button-sound-off,
.sort-button-content-off,
.sort-button-vfx-off {
    display: none !important;
}
.sort-button-motion-off,
.sort-button-sound-off,
.sort-button-content-off,
.sort-button-vfx-off,
.sort-button-motion,
.sort-button-sound,
.sort-button-content,
.sort-button-vfx,
.fullscreen,
.videodefault,
.share {
    cursor: pointer !important;
}

/* ————— Разное ————— */

/* Ноль задержки стрелки сортировки */
.tn-atom__button-icon-arrow-hover {
    animation-duration: 0s !important;
}

/* Пунктирное подчеркивание ссылок с скроллом */
a[href*="more"] {
    -webkit-box-shadow: none !important;
    border-bottom: 1px dashed #606060 !important;
    transition: border-color 0s ease !important;
}

/* ————— Гравитация ————— */
.uc-gravity {
    cursor: cell !important;
}
.matter-elem {
    cursor: grab !important;
}
.matter-elem:active {
    cursor: grabbing !important;
}