﻿/* =========================================================
  IMPORTS
  ========================================================= */
@import url(ui.css);
@import url(rendering.css);
@import url(card.css);
@import url(sidebar.css);
@import url(../fonts/firs/firs.css);
@import url(../fonts/lakes/lakes.css);
@import url(../fonts/ramillas/ramillas.css);

/* =========================================================
  THEME VARIABLES
  ========================================================= */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --bd: 700;
  --sb: 500;
  --rg: 300;
  --yellow: #FFCC00; 
  --turquoise: #00b5c2;
  --back: rgba(0, 13, 12, 0.85);

  --opacity__25: opacity(0.25);
  --opacity__50: opacity(0.5);
  --opacity__75: opacity(0.75);
  --opacity__100: opacity(1);
  --blur: blur(7.5px);

  --sans-primary: "TT Firs Text", "Tenor Sans", sans-serif;
  --sans-secondary: "TT Lakes Neue", "Inter", sans-serif;
  --serif-primary: "TT Ramillas", serif;
  --serif-secondary: "TT Ramillas", serif;

  --primary: var(--sans-primary);
  --secondary: var(--sans-secondary);
  
  /* Переменные для контента внутри .center */
  --content-primary: var(--sans-primary);
  --content-secondary: var(--sans-secondary);

  /* Динамические переменные для типографики */
  --dynamic-font-size: var(--lg);
  --dynamic-text-align: justify;

  --zr: 0.2rem;
  --xs: 0.5rem;
  --sm: 0.5rem;
  --md: 0.6rem;
  --lg: 0.9rem;
  --xl: 1rem;
  --xxl: 1.25rem;
  --hg: 2rem;

}

.plyr:fullscreen {
  z-index: 9999 !important;
}
.audioplayer-footer {
  width: 15%;
  display: flex;
  align-items: center;
  color: var(--white);
  gap: var(--lg);
  margin: var(--lg);
}


@media (min-width: 300px) and (max-width: 576px) {
  .audioplayer-footer {
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--white);
  gap: var(--lg);
  margin: var(--lg);
}
}
@media (min-width: 577px) and (max-width: 768px) {
.audioplayer-footer {
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--white);
  gap: var(--lg);
    margin: var(--lg);
}

}

@media (min-width: 769px) and (max-width: 1025px) {
.audioplayer-footer {
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--white);
  gap: var(--lg);
    margin: var(--lg);
}
}


@media (min-width: 1600px) {
.audioplayer-footer {
  width: 15%;
  display: flex;
  align-items: center;
  color: var(--white);
  gap: var(--lg);
    margin: var(--lg);
}
}


.telegram__button {
      display: flex
;
    align-items: center;
    padding: var(--xs) var(--sm);
    background: rgba(0, 13, 12, 0.85);
    border: none;
    border-radius: 6px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s 
ease;
    font-family: var(--sans-primary);
    min-height: 36px;
    opacity: 0.9;
    width: 100%;
    border: 1px solid #00ecff1a;
    font-size: var(--md);
    justify-content: center;
    text-transform: uppercase;
    font-weight: var(--sb);
        text-decoration: none !important;
        font-family: var(--sans-secondary);
        width: fit-content;
}
.plyr__poster {
    border-radius: var(--xs);
}
.plyr__video-wrapper {
      border-radius: var(--md) !important;
}

/* Для длинных видео (>10 сек) контролы всегда видны */
.plyr--always-show-controls .plyr__controls {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.plyr--always-show-controls.plyr--hide-controls .plyr__controls {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.play-text  {white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  font-weight: var(--bd);}

.pause-text {white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}


.mobilesidebar {
  padding-left: var(--xxl);
  padding-right: var(--xxl);
}
b, strong {
  font-weight: var(--sb);
}

i, em {
  font-style: italic;
  font-weight: var(--rg);
  font-family: var(--serif-primary);
  opacity: 1 !important;
}

p {
    opacity: 0.85 !important;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 2;
}

/* Ссылки внутри параграфов должны переноситься */
p a {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}
/* =========================================================
  BASE / TYPOGRAPHY
  Глобальное сглаживание и улучшение рендеринга шрифтов
  ========================================================= */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-variant-ligatures: contextual common-ligatures;
  -webkit-text-size-adjust: 100%;
}

/* Правила переноса для русского языка */
html[lang="ru"], html[lang="ru"] * {
  hyphenate-limit-chars: 6 3 2;
}

/* Более консервативные переносы для коротких слов */
html[lang="ru"] p, 
html[lang="ru"] li, 
html[lang="ru"] .quote, 
html[lang="ru"] blockquote,
html[lang="ru"] .alert,
html[lang="ru"] .card,
html[lang="ru"] .card-text {
  hyphenate-limit-chars: 8 4 3;
}

/* Настройки переноса для alert элементов */
.alert {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 2;
}

.alert .alert-content {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    text-align: left !important;
}

/* Ссылки внутри alert должны переноситься */
.alert a {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}



/* Horizontal rule */
hr {
border: 0.5px solid #ffffff14;
  
    /* background: #ffffff; */
    margin: var(--zr) 0;
    opacity: 0.1;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff80;
  font-size: 16px;
  transition: color 0.22s ease;
}

.icon i {
  pointer-events: none;
  transition: transform 0.3s ease;
}

.icon:hover i {
  transform: scale(1.15);
}

.icon:hover {
  color: var(--white);
}
.title {
  font-family: var(--sans-secondary);
}

.subtitle {
  font-family: var(--sans-primary);
}

/* Элементы внутри .center используют переменные контента */
.center .title {
  font-family: var(--content-secondary);
}

.center .subtitle {
  font-family: var(--content-primary);
}

figure {
  margin: 0 !important;
}

body[data-font-style="serif"] .center {
  --content-primary: var(--serif-primary);
  --content-secondary: var(--serif-secondary);
}

body[data-font-style="serif"] .sidebar,
body[data-font-style="serif"] .sidebar .title,
body[data-font-style="serif"] .sidebar .subtitle,
body[data-font-style="serif"] .sidebar a,
body[data-font-style="serif"] .sidebar span {
  font-family: var(--serif-secondary);
}

body[data-font-style="sans"] .center {
  --content-primary: var(--sans-primary);
  --content-secondary: var(--sans-secondary);
}

body[data-font-style="sans"] .sidebar,
body[data-font-style="sans"] .sidebar .title,
body[data-font-style="sans"] .sidebar .subtitle,
body[data-font-style="sans"] .sidebar a,
body[data-font-style="sans"] .sidebar span {
  font-family: var(--sans-secondary);
}

/* Кнопки переключателя шрифта */
/* Font style switcher */
.font-option { cursor: pointer; transition: opacity .25s ease, color .25s ease; }
.font-option:hover { opacity: 0.8; }
.font-option.active { color: var(--yellow); opacity: 1 !important; }

/* Фикс: элементы интерфейса, не зависящие от выбора serif/sans */
button, .btn {
  font-family: var(--sans-secondary);
}
.language-switcher, .language-switcher *,
#current-chapter-display {
  font-family: var(--sans-secondary) !important;
}

/* Фиксируем sans для текстовых элементов плеера, не затрагивая иконки */
#audioplayer, #audioplayer span, #audioplayer button span,
.mobile-audioplayer, .mobile-audioplayer span, .mobile-audioplayer button span {
  font-family: var(--sans-secondary);
}

/* Языковые ссылки: всегда sans */
.language-link { font-family: var(--sans-primary); }



/* Figure caption */
figcaption {

    font-family: var(--sans-secondary);
    text-align: center;

    color: var(--white);
    margin-top: var(--xs);
    margin-bottom: var(--hg);
    text-transform: uppercase;
    padding-top: var(--xs);

}

/* figcaption внутри .center использует переменные контента */
.center figcaption {
  font-family: var(--content-secondary);
}

/* Button block (editorjs-button) */
.ej-button-wrapper { margin: var(--xl) 0; }
.ej-button {
  display: inline-block;
  background: #ffffff14;
  color: var(--white);
  padding: .75rem 1.25rem;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--sans-secondary);
  font-weight: var(--sb);
  transition: background .25s ease, border-color .25s ease;
}

/* .ej-button внутри .center использует переменные контента */
.center .ej-button {
  font-family: var(--content-secondary);
}
.ej-button:hover { background: #ffffff22; border-color: #ffffff50; }
.ej-button:active { background: #ffffff33; }

/* LinkTool block */
.link-tool-block { border:1px solid #ffffff24; padding: var(--md); border-radius:8px; margin: var(--xl) 0; background:#ffffff08; }
.link-tool-block .link-img img { max-width:160px; border-radius:4px; box-shadow:0 2px 4px rgba(0,0,0,.4); }
.link-tool-block .link-desc { opacity:.7; margin-top:.5rem; font-size:var(--sm); }
h1 {
      padding-top: var(--lg);
      padding-bottom: var(--lg);
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans-secondary);
  font-weight: var(--bd);
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0;


     margin-top: 0;
text-shadow: 0px 30px 40px rgba(255, 255, 255, 0.2);
      padding-top: var(--lg);
        padding-bottom: var(--lg);

}

h1 {
        padding-top: var(--hg);
        padding-bottom: var(--hg);
}

h3 {
    border-top: none;

}

/* Заголовки внутри .center используют переменные контента */
.center h1, .center h2, .center h3, .center h4, .center h5, .center h6 {
  font-family: var(--content-secondary);
}
h1 {
    background-size: 16px 16px;
    background-color: transparent;
        border-top: none;
}

h1 { font-size: var(--xxl); margin-bottom: 0; }
h2 { font-size: var(--xl); }
h3 { font-size: var(--lg); }
h4 { font-size: var(--lg); }
h5 { font-size: var(--md); }
h6 { font-size: var(--sm); }



html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--sans-primary);
}

/* Основные текстовые элементы наследуют sans шрифт */
p, div, span, article, section {
  font-family: inherit;
}

/* Элементы внутри .center могут использовать переменные контента */
.center {
  font-family: var(--content-primary);
}


.magnetic { will-change: transform; }
#reading-progress-bar { height:3px; border-radius:2px; }

html, body { height: 100%; }
html, body, #page-body, section { min-height: 100vh; }
@supports (height: 100svh) {
  html, body, #page-body, section { min-height: 100svh; }
}

body { position: relative; }



/* Дополнительный слой с сеткой */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.28) 70%, rgba(255, 255, 255, 0.92) 100%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.22) 70%, rgba(255, 255, 255, 0.65) 100%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.26) 70%, rgba(255, 255, 255, 0.78) 100%),
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.34) 70%, rgba(255, 255, 255, 0.96) 100%),
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.18) 70%, rgba(255, 255, 255, 0.55) 100%),
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.22) 70%, rgba(255, 255, 255, 0.68) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.26) 70%, rgba(255, 255, 255, 0.85) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.15) 70%, rgba(255, 255, 255, 0.45) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.28) 70%, rgba(255, 255, 255, 0.88) 100%),
    linear-gradient(270deg, transparent 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0.95) 100%),
    linear-gradient(270deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.18) 70%, rgba(255, 255, 255, 0.55) 100%),
    linear-gradient(270deg, transparent 0%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.22) 70%, rgba(255, 255, 255, 0.72) 100%),
    linear-gradient(rgba(0, 181, 194, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 181, 194, 0.16) 1px, transparent 1px);
  background-size:
    1px 320px,
    1px 320px,
    1px 320px,
    1px 320px,
    1px 320px,
    1px 320px,
    320px 1px,
    320px 1px,
    320px 1px,
    320px 1px,
    320px 1px,
    320px 1px,
    50px 50px,
    50px 50px;
  background-position:
    150px -320px,
    400px -320px,
    calc(100vw - 200px) -320px,
    250px calc(100vh + 320px),
    600px calc(100vh + 320px),
    calc(100vw - 150px) calc(100vh + 320px),
    -320px 200px,
    -320px 450px,
    -320px calc(100vh - 150px),
    calc(100vw + 320px) 100px,
    calc(100vw + 320px) 350px,
    calc(100vw + 320px) calc(100vh - 200px),
    0 0,
    0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  pointer-events: none;
  z-index: 0;
  animation: grid-comet 1.5s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

body.scrolling::after {
  opacity: 0.6;
}

@keyframes grid-comet {
  0% {
    background-position:
      150px -320px,
      400px -320px,
      calc(100vw - 200px) -320px,
      250px calc(100vh + 320px),
      600px calc(100vh + 320px),
      calc(100vw - 150px) calc(100vh + 320px),
      -320px 200px,
      -320px 450px,
      -320px calc(100vh - 150px),
      calc(100vw + 320px) 100px,
      calc(100vw + 320px) 350px,
      calc(100vw + 320px) calc(100vh - 200px),
      0 0,
      0 0;
  }
  100% {
    background-position:
      150px calc(100vh + 320px),
      400px calc(100vh + 320px),
      calc(100vw - 200px) calc(100vh + 320px),
      250px -320px,
      600px -320px,
      calc(100vw - 150px) -320px,
      calc(100vw + 320px) 200px,
      calc(100vw + 320px) 450px,
      calc(100vw + 320px) calc(100vh - 150px),
      -320px 100px,
      -320px 350px,
      -320px calc(100vh - 200px),
      0 0,
      0 0;
  }
}

/* Scroll lock class for overlays/panels */
body.lock-scroll { overflow: hidden; }

/* Автоматическая блокировка скролла на мобильных когда открыты меню или карточка */
@media (max-width: 768px) {
  /* Блокируем html элемент когда у body есть соответствующие классы */
  body.menu-open html,
  body.bside-is-active html, 
  body.aside-is-active html,
  body.mobile-audio-open html,
  /* И сам body */
  body.menu-open, 
  body.bside-is-active, 
  body.aside-is-active,
  body.mobile-audio-open {
    overflow: hidden !important;
    touch-action: none !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Дополнительная блокировка для основных контейнеров */
  body.menu-open #page-body,
  body.bside-is-active #page-body,
  body.aside-is-active #page-body,
  body.mobile-audio-open #page-body,
  body.menu-open section,
  body.bside-is-active section,
  body.aside-is-active section,
  body.mobile-audio-open section,
  body.menu-open .center,
  body.bside-is-active .center,
  body.aside-is-active .center,
  body.mobile-audio-open .center {
    overflow: hidden !important;
    touch-action: none !important;
  }
  
  /* Полная блокировка всех дочерних элементов */
  body.menu-open *,
  body.bside-is-active *,
  body.aside-is-active *,
  body.mobile-audio-open * {
    overscroll-behavior: none !important;
  }
}

/* Дополнительные правила для планшетов */
@media (max-width: 1024px) {
  /* Блокируем html элемент когда у body есть соответствующие классы */
  body.menu-open html,
  body.bside-is-active html, 
  body.aside-is-active html,
  /* И сам body */
  body.menu-open, 
  body.bside-is-active, 
  body.aside-is-active {
    overflow: hidden !important;
    touch-action: none !important;
  }
  
  /* Дополнительная блокировка для планшетов */
  body.menu-open *,
  body.bside-is-active *,
  body.aside-is-active * {
    overscroll-behavior: none !important;
  }
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 225, 94, 1) 0%, rgba(38, 244, 255, 1) 100%);
}
*::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-corner { display: none; background: transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-button:horizontal:decrement,
*::-webkit-scrollbar-button:horizontal:increment,
*::-webkit-scrollbar-button:vertical:decrement,
*::-webkit-scrollbar-button:vertical:increment { display: none; width: 0; height: 0; }

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

section {
  display: flex;
  width: 100%;
  position: relative;
}

.aside {
  width: 20%;
  padding: var(--lg);
  overflow: visible;
  position: relative;
  z-index: 10;
}

.bside {
  width: 20%;
  padding-left: var(--lg);
  position: relative;
  z-index: 10;
}

body.bside-is-active .bside {
  z-index: 1000;
}

.center {
  width: 60%;
  padding-left: var(--xl);
  padding-right: var(--xl);
  padding-top: calc(var(--hg)*2);
  padding-bottom: calc(var(--hg)*2);
  position: relative;
  z-index: 10;
}

a {
  text-decoration: none; /* убрано "!" — была опечатка */
  color: inherit;
}

/* Базовые ссылки внутри .center: без подчёркивания по умолчанию */
.center a { text-decoration: none; color: inherit; }

/* Внешние (http/https) или помеченные классом .link-ref ссылки — подчёркнуты и окрашены */
.center a[href^="http"]:not(.no-underline),
.center a.link-ref {     text-decoration: underline;
    color: #00ecff;
    font-weight: var(--sb); }

/* Специальные внутренние ссылки, например карточки — остаются без подчёркивания */
.center a.card-trigger-word,
.center a.no-underline { text-decoration: none; color: inherit; }



.blur__up{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 15;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  mask-image:
    radial-gradient(ellipse 120% 100% at 50% 100%, transparent 0%, transparent 35%, rgba(0,0,0,1) 70%),
    linear-gradient(to top, transparent 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-image:
    radial-gradient(ellipse 120% 100% at 50% 100%, transparent 0%, transparent 35%, rgba(0,0,0,1) 70%),
    linear-gradient(to top, transparent 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
}


.blur__btm{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  pointer-events: none;
  z-index: 15;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  background: linear-gradient(to top, rgba(0, 13, 12, 0.95) 0%, rgba(0, 13, 12, 0.7) 40%, rgba(0, 13, 12, 0.3) 70%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 120% 100% at 50% 0%, transparent 0%, transparent 20%, rgba(0,0,0,1) 60%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-image:
    radial-gradient(ellipse 120% 100% at 50% 0%, transparent 0%, transparent 20%, rgba(0,0,0,1) 60%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
}


header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: var(--lg);
  position: fixed;
  z-index: 990;
  width: 100%;
}

header.mobile {
  transform: translateY(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

header.mobile.hide-on-scroll {
  transform: translateY(calc(-100% - env(safe-area-inset-top, 0) - var(--xs)));
  opacity: 0;
  pointer-events: none;
}

#floating-play-btn {
  transition: transform 220ms ease, opacity 220ms ease;
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#floating-play-btn.hide-on-scroll {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.video-fullscreen-active header,
.video-fullscreen-active footer,
.video-fullscreen-active #floating-play-btn {
  display: none !important;
}

body.bside-is-active header,
body.bside-is-active footer {
  z-index: 999;
}

.uppercase {
  text-transform: uppercase;
}  



.align {
  text-align: justify
}

/* Предотвращаем горизонтальный скролл из-за длинных небьющихся последовательностей (много &nbsp; подряд) */
.subtitle, .align, .subtitle.align, p.subtitle.align {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  /*text-shadow: 0px 1px 5px rgba(255, 255, 255, 0.25);*/
}

/* Параграфы должны использовать динамический размер шрифта из настроек */
#main-column p.subtitle {
  font-size: var(--dynamic-font-size) !important;
  line-height: var(--dynamic-line-height) !important;
  text-align: var(--dynamic-text-align);
}

/* Страховка: если всё же что-то шире контейнера */
.center { overflow-x: hidden;  }

@media (min-width: 300px) and (max-width: 576px) {
  .center { overflow-x: hidden;  }
}
@media (min-width: 577px) and (max-width: 768px) {
.center { overflow-x: visible;  }

}

@media (min-width: 769px) and (max-width: 1600px) {
.center { overflow-x: visible; }
}


@media (min-width: 1600px) {
.center { overflow-x: visible; }
}


/* Для страниц с видео - позволяем ambient эффекту выходить за границы */
@supports selector(:has(*)) {
  .center:has(.video-block) {
    overflow-x: visible;
  }
}

figure img {
max-width: 100%;
    height: auto;
    border-radius: var(--xs);
}
.logo {
  background-image: url(/static/img/logo.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 164px;
  height: 32px;
  transition: transform 0.3s ease;
}

/* Динамический логотип в зависимости от языка */
html[lang="ru"] .logo {
  background-image: url(/static/img/logo_RU.svg);
}

html[lang="en"] .logo {
  background-image: url(/static/img/logo_EN.svg);
}

html[lang="es"] .logo {
  background-image: url(/static/img/logo_ES.svg);
}

html[lang="fr"] .logo {
  background-image: url(/static/img/logo_FR.svg);
}

html[lang="pt"] .logo {
  background-image: url(/static/img/logo_PR.svg);
}

html[lang="zh"] .logo {
  background-image: url(/static/img/logo_CZ.svg);
}

.logo:hover {
  transform: scale(1.05);
}

html {
  font-size: clamp(11px, 1.5vw + 8px, 18px);
  background-color: #000D0C;
}



.hidden { display: none !important; }

.white {
  color: var(--white);
}

.mobile {
  display: none;
}

ul {
    padding: 0;
    padding-left: calc(var(--xxl)*2);
    padding-top: var(--xxl);
    padding-bottom: var(--xxl);
    padding-right: var(--xxl);
    background: repeating-linear-gradient(-45deg, #ffffff0a, #ffffff08 1px, #e5e5f700 1px, #e5e5f705 5px);
    list-style: none; /* Убираем стандартную нумерацию */
    counter-reset: list-counter; /* Инициализируем счетчик */
    font-size: var(--dynamic-font-size);
    line-height: var(--dynamic-line-height);
    border-radius: var(--xs);
}

ul li {
    counter-increment: list-counter; /* Увеличиваем счетчик для каждого элемента */
    position: relative;
}

ul li::before {
    content: counter(list-counter, decimal-leading-zero) ". ";
    opacity: 0.35; /* Прозрачность только для маркеров */
    position: absolute;
    left: -2.5rem;
    font-family: inherit;
    font-size: var(--dynamic-font-size);
    line-height: var(--dynamic-line-height);
    font-weight: inherit;
}

/* Упорядоченные списки */
ol {
    padding: 0;
    padding-left: calc(var(--xxl)*2);
    padding-top: var(--xxl);
    padding-bottom: var(--xxl);
    padding-right: var(--xxl);
    background: repeating-linear-gradient(-45deg, #ffffff0a, #ffffff08 1px, #e5e5f700 1px, #e5e5f705 5px);
    list-style: none; /* Убираем стандартную нумерацию */
    counter-reset: ordered-list-counter; /* Инициализируем счетчик для упорядоченного списка */
    font-size: var(--dynamic-font-size);
    line-height: var(--dynamic-line-height);
}

ol li {
    counter-increment: ordered-list-counter; /* Увеличиваем счетчик для каждого элемента */
    position: relative;
}

ol li::before {
    content: counter(ordered-list-counter, decimal) ". ";
    opacity: 0.35; /* Прозрачность только для маркеров */
    position: absolute;
    left: -2.5rem;
    font-family: inherit;
    font-size: var(--dynamic-font-size);
    line-height: var(--dynamic-line-height);
    font-weight: inherit;
}

/* === External links (server-side marked) === */
a.external-link { 
    position: relative; 
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}
a.external-link:after {
  content: "\ea70"; /* ri-arrow-right-up-line */
  font-family: "remixicon" !important;
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  margin-left: 4px;
  font-size: .9em;
  line-height: 1;
  vertical-align: baseline;

}
a.external-link.mark:after,
a.external-link.marked:after,
a.external-link.telegram:after {
  content: "\f547"; /* custom requested icon code */
  color: #fff !important;
  /* На случай переопределений цветом родителя */
  opacity: 1;
}

/* Иконка Telegram для ссылок */
a.external-link.telegram:after {
  content: "\f547";
  font-family: "remixicon" !important;
  display: inline-block;
  margin-left: 4px;
  line-height: 1;
  color: #fff;
  vertical-align: middle;
}
a.external-link:hover:after { opacity: 1; }

li {
    font-size: var(--dynamic-font-size);
    line-height: var(--dynamic-line-height);
    text-align: var(--dynamic-text-align);
    /* font-weight: var(--rg); */
    text-transform: none;
    margin-top: var(--xl);
    margin-bottom: var(--xl);
    opacity: 0.75 !important;
    font-weight: var(--rg);
    font-family: var(--primary) !important;
    /* text-transform: uppercase; */
    margin-left: var(--xl);
    margin-right: var(--xl);
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* Ссылки внутри элементов списков должны переноситься */
li a {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* li внутри .center использует переменные контента */



.center li {
  font-family: var(--content-secondary);
}

@media (min-width: 300px) and (max-width: 576px) {

  .video-block figcaption {
    color: #ffffff;
  }







.play-text .pause-text {
      font-weight: var(--bd);
    font-size: var(--lg);
    font-weight: var(--bd);
}


.card.visible {
  border: none !important;
}

.mobilesidebar {

}
  .aside,
  .bside {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: translateY(-110%);
    z-index: 10002;
    visibility: hidden;
    pointer-events: none;
    padding: 0px;
    transition: transform 240ms ease, visibility 240ms ease;
  }

  .sidebar .title {
      text-align: left;
      font-size: 1rem;
      line-height: 1.5rem;
  }

  .card-text {
      font-size: 1rem;
      line-height: 1.5rem;
  }

  body.aside-is-active .aside,
  .aside-is-active .aside,
  body.bside-is-active .bside,
  .bside-is-active .bside {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .center {
    width: 100%;
    margin-top: cal(var(--hg)*4);
    padding-left: var(--xxl);
    padding-right: var(--xxl);
  }


  .web {
    display: none;
  }

  .mobile {
    display: flex;
    z-index: 991;
  }





  .bside {
    padding: 0;
  }

}



@media (min-width: 577px) and (max-width: 768px) {

    .video-block figcaption {
    color: #ffffff;
  }



.card.visible {
  border: none !important;
}

.play-text .pause-text {
      font-weight: var(--bd);
    font-size: var(--lg);
    font-weight: var(--bd);
}
.mobilesidebar {

}

  .sidebar .title {
      text-align: left;
      font-size: 1rem;
      line-height: 1.5rem;
  }

  .card-text {
      font-size: 1rem;
      line-height: 1.5rem;
  }

  .aside,
  .bside {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-110%);
    z-index: 10002;
    visibility: hidden;
    pointer-events: none;
    transition: transform 240ms ease, visibility 240ms ease;
  }

  body.aside-is-active .aside,
  .aside-is-active .aside,
  body.bside-is-active .bside,
  .bside-is-active .bside {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .center {
    width: 100%;

  }



  .web {
    display: none;
  }

  .mobile {
    display: flex;
    z-index: 991;
  }






    .bside {
    padding: 0;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {

    .video-block figcaption {
    color: #ffffff;
  }




  .card.visible {
  border: none;
}
  .play-text .pause-text {
      font-weight: var(--bd);
    font-size: var(--lg);
    font-weight: var(--bd);
}


.mobilesidebar {

}
  .sidebar .title {
      text-align: left;
      font-size: 1rem;
      line-height: 1.5rem;
  }

  .card-text {
      font-size: 1rem;
      line-height: 1.5rem;
  }


  .aside,
  .bside {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-110%);
    z-index: 10002;
    visibility: hidden;
    pointer-events: none;
    transition: transform 240ms ease, visibility 240ms ease;
  }

  body.aside-is-active .aside,
  .aside-is-active .aside,
  body.bside-is-active .bside,
  .bside-is-active .bside {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .center {
    width: 100%;
    padding: var(--hg);
  }



  .web {
    display: none;
  }

  .mobile {
    display: flex;
    z-index: 991;
  }




}


@media (min-width: 1024px) {



    .play-text .pause-text {
      font-weight: var(--bd);
    font-size: var(--sm);
    font-weight: var(--bd);
}

.mobilesidebar {

}

}

.img--static {
  width: 100%;
  height: auto;
  object-fit: cover;
  overflow: hidden;
  display: block;
}

.img--calc {
  width: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}

.opc__25 { filter: var(--opacity__25); }
.opc__50 { filter: var(--opacity__50); }
.opc__75 { filter: var(--opacity__75); }

.row { display: flex; flex-direction: row; min-width: 0; }
.col { flex-direction: column; display: flex; min-width: 0; }
.wrp { display: flex; flex-wrap: wrap; min-width: 0; }
.vrt { display: flex; align-items: center; }
.hrt { display: flex; justify-content: center; }
.spc { display: flex; justify-content: space-between; }
.ctr { display: flex; justify-content: center; }

.fs__xs { font-size: var(--xs); line-height: var(--xs); }
.fs__sm { font-size: var(--sm); line-height: var(--lg); }
.fs__md { font-size: var(--md); line-height: var(--xl); }
.fs__lg { font-size: var(--lg); line-height: var(--xxl); }
.fs__xl { font-size: var(--xl); line-height: var(--xxl); }
.fs__xxl { font-size: var(--xxl); line-height: var(--xxl); }
.fs__hg { font-size: var(--hg); line-height: var(--hg); }

.fw__rg { font-weight: var(--rg); }
.fw__md { font-weight: var(--sb); }
.fw__bd { font-weight: var(--bd); }

.pd__xs { padding: var(--xs); }
.pd__sm { padding: var(--sm); }
.pd__md { padding: var(--md); }
.pd__lg { padding: var(--lg); }
.pd__xl { padding: var(--xl); }
.pd__hg { padding: var(--hg); }
.pd__hg--4 { padding: calc(var(--hg) * 2); }
.pd__xxl { padding: var(--xxl); }
.pd__xs--rgt { padding-right: var(--xs); }
.pd__sm--rgt { padding-right: var(--sm); }
.pd__md--rgt { padding-right: var(--md); }
.pd__lg--rgt { padding-right: var(--lg); }
.pd__xl--rgt { padding-right: var(--xl); }
.pd__xxl--rgt { padding-right: var(--xxl); }
.pd__hg--rgt { padding-right: var(--hg); }
.pd__xs--lft { padding-left: var(--xs); }
.pd__sm--lft { padding-left: var(--sm); }
.pd__md--lft { padding-left: var(--md); }
.pd__lg--lft { padding-left: var(--lg); }
.pd__xl--lft { padding-left: var(--xl); }
.pd__xxl--lft { padding-left: var(--xxl); }
.pd__hg--lft { padding-left: var(--hg); }
.pd__xs--top { padding-top: var(--xs); }
.pd__sm--top { padding-top: var(--sm); }
.pd__md--top { padding-top: var(--md); }
.pd__lg--top { padding-top: var(--lg); }
.pd__xl--top { padding-top: var(--xl); }
.pd__xxl--top { padding-top: var(--xxl); }
.pd__hg--top { padding-top: var(--hg); }
.pd__xs--btm { padding-bottom: var(--xs); }
.pd__sm--btm { padding-bottom: var(--sm); }
.pd__md--btm { padding-bottom: var(--md); }
.pd__lg--btm { padding-bottom: var(--lg); }
.pd__xl--btm { padding-bottom: var(--xl); }
.pd__xxl--btm { padding-bottom: var(--xxl); }
.pd__hg--btm { padding-bottom: var(--hg); }

.mg__xs { margin: var(--xs); }
.mg__sm { margin: var(--sm); }
.mg__md { margin: var(--md); }
.mg__lg { margin: var(--lg); }
.mg__xl { margin: var(--xl); }
.mg__xxl { margin: var(--xxl); }
.mg__hg { margin: var(--hg); }
.mg__xs--rgt { margin-right: var(--xs); }
.mg__sm--rgt { margin-right: var(--sm); }
.mg__md--rgt { margin-right: var(--md); }
.mg__lg--rgt { margin-right: var(--lg); }
.mg__xl--rgt { margin-right: var(--xl); }
.mg__xxl--rgt { margin-right: var(--xxl); }
.mg__hg--rgt { margin-right: var(--hg); }
.mg__xs--lft { margin-left: var(--xs); }
.mg__sm--lft { margin-left: var(--sm); }
.mg__md--lft { margin-left: var(--md); }
.mg__lg--lft { margin-left: var(--lg); }
.mg__xl--lft { margin-left: var(--xl); }
.mg__xxl--lft { margin-left: var(--xxl); }
.mg__hg--lft { margin-left: var(--hg); }
.mg__xs--top { margin-top: var(--xs); }
.mg__sm--top { margin-top: var(--sm); }
.mg__md--top { margin-top: var(--md); }
.mg__lg--top { margin-top: var(--lg); }
.mg__xl--top { margin-top: var(--xl); }
.mg__xxl--top { margin-top: var(--xxl); }
.mg__hg--top { margin-top: var(--hg); }
.mg__xs--btm { margin-bottom: var(--xs); }
.mg__sm--btm { margin-bottom: var(--sm); }
.mg__md--btm { margin-bottom: var(--md); }
.mg__lg--btm { margin-bottom: var(--lg); }
.mg__xl--btm { margin-bottom: var(--xl); }
.mg__xxl--btm { margin-bottom: var(--xxl); }
.mg__hg--btm { margin-bottom: var(--hg); }

.gp__zr { gap: var(--zr); }
.gp__xs { gap: var(--xs); }
.gp__sm { gap: var(--sm); }
.gp__md { gap: var(--md); }
.gp__lg { gap: var(--lg); }
.gp__xl { gap: var(--xl); }
.gp__xxl { gap: var(--xxl); }
.gp__hg { gap: var(--hg); }




mark {
    background: var(--yellow);
    color: var(--black);
    padding: 0.1rem 0.2rem;
}
/* Скрываем стандартные плееры, которые должны быть заменены кастомными */
audio.card-audio {
    display: none;
}


/* Inline spoiler content */
.inline-spoiler {
    cursor: pointer;

    transition: color 0.2s ease;

    font-weight: var(--sb);
    color: #00ecff;
}

.inline-spoiler--ready:focus-visible {
    outline: 2px solid rgba(255,255,255,0.45);
    outline-offset: 2px;
}

.inline-spoiler--expanded {
    border-bottom-color: transparent;
}

/* Иконка плюс/минус */
.inline-spoiler::after {
    content: "\ea13"; /* ri-add-line */
    font-family: "remixicon" !important;
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    margin-left: 0;

    font-size: 0.85em;

    transition: opacity 0.2s ease;
    vertical-align: baseline;
        padding-left: calc(var(--xs) / 2);
    margin-right: calc(var(--xs) / 2);
}

.inline-spoiler--expanded::after {
    content: "\f1ae"; /* ri-subtract-fill */
}

.inline-spoiler__content {
    display: none;
    opacity: 0;
    transform: translateY(-8px);
}

.inline-spoiler__content.visible {
    display: block;
    margin: 12px 0 20px;
    animation: spoilerSlideIn 0.3s ease forwards;
    background: rgba(0, 206, 209, 0.25);
    padding: var(--xxl);
    border-radius: var(--md);
    background: repeating-linear-gradient(-45deg, rgba(0, 206, 209, 0.2), rgba(0, 206, 209, 0.18) 1px, rgba(64, 224, 208, 0.05) 1px, rgba(64, 224, 208, 0.15) 5px);
}

@keyframes spoilerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка закрытия спойлера - круглая кнопка в правом нижнем углу */
.inline-spoiler__close {
    position: absolute;
    bottom: var(--lg);
    right: var(--lg);
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    background: #ffffff0f;
    border-radius: var(--hg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #ffffff1c;
    color: #ffffff80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    mix-blend-mode: screen;
    padding: 0;
    z-index: 10;
}

/* Отключаем блик ::before */
.inline-spoiler__close::before {
    display: none !important;
}

/* Эффект ripple при клике */
.inline-spoiler__close::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--hg);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.inline-spoiler__close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 16px 3px rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateZ(0) scale(1.08) translateY(-1px);
}

.inline-spoiler__close:active {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 20px 4px rgba(255, 255, 255, 0.35),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateZ(0) scale(0.96) translateY(0);
    transition:
        transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.1s ease,
        background 0.1s ease;
}

.inline-spoiler__close:active::after {
    opacity: 1;
    transform: scale(1.2);
    transition: opacity 0.1s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inline-spoiler__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    box-shadow:
        0 0 16px 3px rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

.inline-spoiler__close i {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inline-spoiler__close:hover i {
    transform: scale(1.1);
}

/* Адаптация для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
    .inline-spoiler__close {
        mix-blend-mode: normal;
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
        filter: none;
    }

    .inline-spoiler__close::before,
    .inline-spoiler__close::after {
        display: none;
    }

    .inline-spoiler__close:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .inline-spoiler__close:active {
        transform: scale(0.94);
        background: rgba(255, 255, 255, 0.28);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    }
}

/* Параграфы в спойлере должны использовать динамические стили */
.inline-spoiler__content p {
    font-size: var(--dynamic-font-size) !important;
    line-height: var(--dynamic-line-height) !important;
    text-align: var(--dynamic-text-align) !important;
}

/* Гарантируем что содержимое спойлера всегда чёткое */
.inline-spoiler__content * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
}

.inline-spoiler__content[hidden] {
    display: none !important;
}

@media (min-width: 300px) and (max-width: 576px) {
}
@media (min-width: 577px) and (max-width: 768px) {
}

@media (min-width: 769px) and (max-width: 1024px){
      .bside {
    padding-left: 0;
  }

}

@media (min-width: 1025px) {

}

/* =========================================================
  CYBERPUNK 2077 ANIMATED BACKGROUND EFFECTS
  ========================================================= */

/* Эффект сканирования */
section::before {
  content: "";
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  animation: cyberpunk-scanner 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

@keyframes cyberpunk-scanner {
  0% {
    top: -100%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: -100%;
  }
}

/* Неоновые частицы */
@keyframes cyberpunk-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* Глитч эффект для акцента */
@keyframes cyberpunk-glitch {
  0%, 90%, 100% {
    opacity: 0;
  }
  92%, 94%, 96% {
    opacity: 0.3;
    transform: translateX(-2px);
  }
  93%, 95% {
    opacity: 0.2;
    transform: translateX(2px);
  }
}

/* Светящиеся шарики по углам экрана */

/* Верхний левый угол */
html::before {
  content: "";
  position: fixed;
  top: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(0, 181, 194, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(0, 181, 194, 0.15) 50%,
    transparent 70%
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: corner-glow-1 8s ease-in-out infinite, morph-1 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
}

@media (min-width: 300px) and (max-width: 576px) {
  html::before {
display: none;
}

html::after {
display: none;
}

.blur__btm::before {
display: none;
}

/* Нижний правый угол */
.blur__btm::after {
display: none;
}
}
@media (min-width: 577px) and (max-width: 768px) {
  html::before {
display: none;
}

html::after {
display: none;
}

.blur__btm::before {
display: none;
}

/* Нижний правый угол */
.blur__btm::after {
display: none;
}

}

@media (min-width: 769px) and (max-width: 1025px) {

}


@media (min-width: 1600px) {

}

/* Верхний правый угол */
html::after {
  content: "";
  position: fixed;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(0, 181, 194, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(0, 181, 194, 0.15) 50%,
    transparent 70%
  );
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation: corner-glow-2 8s ease-in-out infinite, morph-2 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
}

/* Нижний левый угол */
.blur__btm::before {
  content: "";
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(0, 181, 194, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(0, 181, 194, 0.15) 50%,
    transparent 70%
  );
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: corner-glow-3 8s ease-in-out infinite, morph-3 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 10000;
  filter: blur(40px);
}

/* Нижний правый угол */
.blur__btm::after {
  content: "";
  position: fixed;
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(0, 181, 194, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(0, 181, 194, 0.15) 50%,
    transparent 70%
  );
  border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
  animation: corner-glow-4 8s ease-in-out infinite, morph-4 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 10000;
  filter: blur(40px);
}

/* Анимации для каждого угла */
@keyframes corner-glow-1 {
  0%, 100% {
    opacity: 0.4;
    filter: blur(40px);
  }
  50% {
    opacity: 0.7;
    filter: blur(50px);
  }
}

@keyframes corner-glow-2 {
  0%, 100% {
    opacity: 0.5;
    filter: blur(40px);
  }
  50% {
    opacity: 0.8;
    filter: blur(50px);
  }
}

@keyframes corner-glow-3 {
  0%, 100% {
    opacity: 0.45;
    filter: blur(40px);
  }
  50% {
    opacity: 0.75;
    filter: blur(50px);
  }
}

@keyframes corner-glow-4 {
  0%, 100% {
    opacity: 0.35;
    filter: blur(40px);
  }
  50% {
    opacity: 0.65;
    filter: blur(50px);
  }
}

/* Анимации морфинга формы для каждого шарика */
@keyframes morph-1 {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@keyframes morph-2 {
  0%, 100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  25% {
    border-radius: 42% 58% 70% 30% / 45% 60% 40% 55%;
  }
  50% {
    border-radius: 67% 33% 47% 53% / 37% 20% 80% 63%;
  }
  75% {
    border-radius: 38% 62% 63% 37% / 70% 50% 50% 30%;
  }
}

@keyframes morph-3 {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 50%;
  }
  50% {
    border-radius: 75% 25% 55% 45% / 60% 50% 50% 40%;
  }
  75% {
    border-radius: 55% 45% 80% 20% / 35% 70% 30% 65%;
  }
}

@keyframes morph-4 {
  0%, 100% {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 40% 60% 70%;
  }
  50% {
    border-radius: 35% 65% 35% 65% / 55% 30% 70% 45%;
  }
  75% {
    border-radius: 65% 35% 60% 40% / 70% 55% 45% 30%;
  }
}




@media (min-width: 300px) and (max-width: 576px) {
  .quote span {
font-size: var(--lg);
  }
}
@media (min-width: 577px) and (max-width: 768px) {
  .quote span {
    font-size: var(--lg);
  }

}

@media (min-width: 769px) and (max-width: 1025px) {
  .quote span {
    
  }
}


@media (min-width: 1600px) {
  .quote span {
    
  }
}



@media (min-width: 300px) and (max-width: 576px) {
.audioplayer-footer .track-title {
  font-size: var(--lg);
}
}
@media (min-width: 577px) and (max-width: 768px) {
.audioplayer-footer .track-title {
  font-size: var(--lg);
}
}

@media (min-width: 769px) and (max-width: 1025px) {
.audioplayer-footer .track-title {
  font-size: var(--md);
}
}

@media (min-width: 1600px) {
.audioplayer-footer .track-title {
  font-size: var(--md);
}
}