/* Blogger Sans font */
@font-face {
    font-family: 'Blogger Sans';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/BloggerSans/BloggerSans.woff2');
    font-weight: normal; /* 400 */
    font-style: normal;
}
@font-face {
    font-family: 'Blogger Sans';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/BloggerSans/BloggerSans-Medium.woff2');
    font-weight: 500; /* Medium */
    font-style: normal;
}
@font-face {
    font-family: 'Blogger Sans';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/BloggerSans/BloggerSans-Bold.woff2');
    font-weight: bold; /* 700 */
    font-style: normal;
}

/* Cera Pro font */
@font-face {
    font-family: 'Cera Pro';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/CeraPro/CeraPro-Light.woff2');
    font-weight: 300; /* Light */
    font-style: normal;
}
@font-face {
    font-family: 'Cera Pro';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/CeraPro/CeraPro-Regular.woff2');
    font-weight: normal; /* 400 */
    font-style: normal;
}
@font-face {
    font-family: 'Cera Pro';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/CeraPro/CeraPro-Medium.woff2');
    font-weight: 500; /* Medium */
    font-style: normal;
}
@font-face {
    font-family: 'Cera Pro';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/CeraPro/CeraPro-Bold.woff2');
    font-weight: bold; /* 700 */
    font-style: normal;
}
@font-face {
    font-family: 'Cera Pro';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/CeraPro/CeraPro-RegularItalic.woff2');
    font-weight: normal; /* 400 */
    font-style: italic;
}

/* Ubuntu Condensed font */
@font-face {
    font-family: 'Ubuntu Condensed';
    src: url('https://cdn.jsdelivr.net/gh/mysticfly/cdn/fonts/UbuntuCondensed/UbuntuCondensed-Regular.woff2');
    font-weight: normal; /* 400 */
    font-style: normal;
}

:root {
    --primary-text: #000; /*8E863E*/
    --background-color: #fff; /*220000*/
    --active-background-color: #2c0000;
    --active-text-color: #781;
    --content-padding: 20px;
    --link-color: #1E90FF; /* Цвет ссылок для дневной темы */
}

[data-theme="dark"] {
    --primary-text: #949081;
    --background-color: #333;
    --active-background-color: #222;
    --active-text-color: #081;
    --link-color: #87CEFA; /* Цвет ссылок для ночной темы */
    font-weight: 400; /* Тонкий текст */
}

body {
    font-family: "Cera Pro", "Ubuntu", sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Ubuntu Condensed", "Ubuntu", sans-serif;
    font-weight: bold;
    line-height: 1.1;
}

a {
    color: var(--link-color); /* #fc0067 */
    font-weight: 400;
}

/* Стиль для случая когда шапка скрыта, ротируем стрелку на 180 градусов */
.header-hidden .toggle-header {
    transform: rotate(180deg);
}

.header {
    display: flex;
    justify-content: space-between; /* Элементы шапки позиционируются на противоположных концах */
    align-items: center; /* Выравнивание элементов по центру по вертикали */
    padding: 1px 20px;
}

.toggle-header {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.2rem; /* Устанавливает размер кнопки */
    transition: transform 0.3s ease; /* Плавный эффект для стрелки */
    padding: 7px; /* Настраиваем отступы */
    line-height: 1; /* Устанавливаем высоту строки */
    align-self: flex-start; /* Располагаем кнопку в начале контента flex */
    background-color: transparent;
    position: relative;
    margin-left: auto;
    color: #18000C;
}

.toggle-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.05em; /* Можете увеличить размеры, если нужно больше места для света */
    height: 0.2em;
    background-color: white; /* Цвет фона - цвет света */
    border-radius: 50%; /* Создаем круг */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px 8px rgba(255, 255, 255, 0.3); /* Светлый ореол вокруг круга */
    z-index: -1;
}

.controls {
    display: flex; /* Если с новым стилем что-то не так, попробуйте вернуть 'flex' если он был тут */
    align-items: center; /* Выравниваем элементы по вертикали */
    margin-left: calc(100% - 353px);
    /* Остальные стили… */
}

/* Стиль, когда .controls скрыт */
.controls-hidden {
    display: none;
}

.font-size-controller,
.theme-switch-wrapper {
    margin-right: 0px; /* Обеспечивает расстояние между контроллами */
}

.content {
    padding: var(--content-padding);
    padding-top: 0;
    max-width: 800px;
    margin: auto;
}

/* Обновленные стили для регулятора размера шрифта */
.font-size-controller {
    background: none; /* Убрать фон */
    border: none; /* Убрать рамку */
    margin-bottom: 8px;
    text-align: center;
}

/* Стили для полосы регулирования шрифта */
#font-slider {
    -webkit-appearance: none; /* Сброс внешнего вида для WebKit */
    appearance: none;
    width: 150px;
    height: 3px; /* Высоту можно регулировать */
    background: #18000C; /* Черный цвет полосы */
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Стили для ползунка регулирования шрифта */
#font-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 20px; /* Высоту можно регулировать */
    background: #18000C; /* Черный цвет ползунка */
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.33);
}

#font-slider::-moz-range-thumb {
    width: 6px;
    height: 20px;
    background: #000;
    border: none;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

/* Адаптируем под Firefox */
#font-slider::-moz-range-progress {
    background: #18000C;
}

#font-slider::-moz-range-track {
    background: transparent;
}

/* Стили для кнопки "B" */
.bold-controller {
    display: inline-block;
    margin: 10px;
}

#bold-button {
    width: 30px;
    height: 30px;
    border: 3px solid #18000C;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-text);
    background-color: var(--background-color);
    text-align: center;
    /*line-height: 20px;*/ /* Центрирование текста по вертикали */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-family: Blogger Sans;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/*#bold-button:hover {
    background-color: #000;
    color: #fff;
}*/

/* Стили для переключателя темы */
.theme-switch-wrapper {
    display: flex;
    justify-content: flex-end;
}

.theme-switch {
    display: inline-block;
    height: 24px; /* Уменьшенная высота */
    position: relative;
    width: 50px; /* Уменьшенная ширина */
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #000000; /* Серый цвет фона */
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.5);
}

.slider:before {
    background-color: #ffffff;
    bottom: 4px;
    content: "";
    height: 16px; /* Уменьшенная высота */
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 16px; /* Уменьшенная ширина */
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.1); /* Тень для объёмного вида */
}

input:checked + .slider {
    background-color: #000000; /* Более тёмный серый при активации */
}

input:checked + .slider:before {
    transform: translateX(24px); /* Обновленное смещение для уменьшенного размера */
    background-color: #bcbda1;
}

.slider.round {
    border-radius: 24px; /* Увеличенный радиус для круглой формы */
}

input:checked + .slider.round {
    background-color: #18000c;
}

.slider.round:before {
    border-radius: 50%;
}

/* Стиль для изображений, которые можно увеличить */
.clickable-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

/* Стиль для модального окна увеличенного изображения */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: visibility 0.3s, opacity 0.3s;
}

/* Стиль для показа модального окна */
#lightbox.lightbox-visible {
    opacity: 1;
    visibility: visible;
}

/* Стиль для закрывающего элемента */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Стиль для увеличенного изображения */
.lightbox-content {
    max-width: 100%;
    max-height: 100%;
}

/* #lightbox-caption {
    text-align: center;
    color: white;
    padding: 10px 20px;
} */

/* Стиль для обертки изображения и описания */
figure {
    text-align: center;
    margin: auto;
}

/* Стиль для изображений, которые можно увеличить */
.clickable-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    display: block; /* Гарантируем, что элемент будет блочным */
    margin: auto; /* Центрировать изображение */
}

/* Стиль для текста описания под изображением */
figcaption {
    color: #757575; /* Цвет описания - выберите цвет, отличающийся от основного текста */
    font-size: 0.8em; /* Меньший размер шрифта для подписи */
    margin-top: 8px; /* Отступ от изображения */
}

@media (min-width: 992px) {
    .content {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .content {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .content {
        font-size: 14px;
        padding: 15px;
    }
}

/* Стиль для кнопки "к содержанию" */
.back-button {
    position: relative;
    text-align: center;
    width: 31px;
    height: 31px;
    color: #000;
    padding: 0 10px;
    border-radius: 50% 2px solid;
    border: 3px;
}

.back-button::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 31px; /* Ширина точки */
    height: 31px; /* Высота точки */
    background-color: #00000000;
    border-radius: 50%; /* Делает элемент кругом */
   box-shadow: 0 0 8px rgba(255, 255, 255, 0.55); /* Светлый ореол вокруг круга */
}

.back-button svg {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.3); /* Светлый ореол вокруг круга */
    background-color: #000;
}

.date {
    margin-top: -15px;
    font-style: italic;
    margin-left: 10px;
}


/*Плеер*/
/* Основные стили */
.player-box {
    font-family: "Blogger Sans", "Ubuntu", sans-serif;
    margin: 0;
    padding: 20px;
    padding-bottom: 80px; /* Отступ для фиксированного плеера */
}

.player-box h2 {
    font-family: "Ubuntu", "Ubuntu Condensed", "Blogger Sans", sans-serif;
    padding: var(--content-padding);
    max-width: 800px;
    margin: auto;
    font-weight: normal;
    font-size: 18px;
}

.track-list {
    list-style: none;
    padding: 0;
    padding: var(--content-padding);
    max-width: 800px;
    margin: auto;
}

.track-item {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.track-item h3 {
    margin: 0;
    padding: 4px 0;
    font-size: 17px;
    font-family:  "Blogger Sans", "Ubuntu Condensed", "Ubuntu", sans-serif;
    font-weight: 400;
    flex-grow: 1;
    white-space: nowrap; /* Запрещает перенос текста на новую строку */
    overflow: hidden; /* Скрывает переполняющийся текст */
    text-overflow: ellipsis; /* Добавляет многоточие в конце обрезанного текста */
}

.track-item span {
    font-size: 14px;
    color: var(--primary-text);
    font-weight: 400;
}

.track-item .track-number {
    font-size: 14px;
    color: var(--primary-text);
    margin-right: -10px;
    min-width: 30px; /* Достаточно места для двухзначных номеров */
    font-weight: 300;
}

.track-item.active {
    background-color: var(--active-background-color);
    color: var(--active-text-color);
}

.track-item.active span {
    
    color: var(--active-text-color);
}

#current-track {
    font-weight: 300;
}

.duration  {
    float: right;
}

.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--background-color);
    color: var(--primary-text);
    padding: 10px 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.audio-player audio {
    flex-grow: 1;
}



.audio-container {
    position: relative;
    flex-grow: 1;
    padding: 0 10px;
    height: 25px;
}

.audio-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px; /* Ширина, которая закроет полудуги */
    height: 25px;
    background: var(--background-color); /* Используйте тот же фон, что и у контейнера */
    z-index: 10; /* Убедитесь, что псевдоэлементы выше плеера */
}

.audio-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px; /* Ширина, которая закроет полудуги */
    height: 25px;
    right: 10px;
    background: var(--background-color); /* Используйте тот же фон, что и у контейнера */
    z-index: 10; /* Убедитесь, что псевдоэлементы выше плеера */
}

.audio-container::before {
    background-color: var(--background-color);
}

audio {
    width: 100%;
    height: 25px;
}

/* Кастомизация элементов управления */
audio::-webkit-media-controls-panel {
    background-color: var(--background-color);
    color: #fff;
}

audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider {
    background-color: transparent;
    display: none;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    position: absolute;
    right: 45px; /* Прикрепляем к правому краю */
    z-index: 100;
}

audio::-webkit-media-controls-timeline {
  background-color: #FF0000; /*#56AEFF;*/
  padding: 0 0.0001px;
  margin: 0 20px;
  border-radius: 20%;
}


/*@media (max-width: 600px) {
    .audio-player {
        padding: 10px;
    }
    .audio-player h3 {
        font-size: 14px;
        margin-right: 10px;
    }
}*/

.dot {
    color: red;
    font-weight: bold;
    font-size: 30px;
}

/* Стили для кнопки скрытия аудиоплеера */
.audio-player-hidden .toggle-audio-player {
    transform: rotate(180deg);
}

/* Дополнительные стили для кнопки скрытия аудиоплеера */
.toggle-audio-player {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.2rem; /* Устанавливает размер кнопки */
    transition: transform 0.3s ease; /* Плавный эффект для стрелки */
    padding: 7px; /* Настраиваем отступы */
    line-height: 1; /* Устанавливаем высоту строки */
    align-self: flex-start; /* Располагаем кнопку в начале контента flex */
    background-color: transparent;
    position: relative;
    margin-left: auto;
    color: #18000C;
}

.toggle-audio-player::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.05em; /* Можете увеличить размеры, если нужно больше места для света */
    height: 0.2em;
    background-color: white; /* Цвет фона - цвет света */
    border-radius: 50%; /* Создаем круг */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px 8px rgba(255, 255, 255, 0.3); /* Светлый ореол вокруг круга */
    z-index: -1;
}

/* Класс для поворота кнопки */
.toggle-audio-player.rotated {
    transform: rotate(360deg);
}
