/* Определение цветовых переменных для темной и светлой тем */

:root {
    /* --bg-color: #111827; */
    /* #16161e bg-[#0000002b] */
    --text-color: #e5e7eb;
    --header-bg: #111827;
    /* #1f2937 #232739 */
    --header-bg-rgb: 17, 24, 39;
    /* Для dark (#111827) */
    --volume-bg: #374151;
    /* #1e2b3b78; */
    --volume-bg-s: #374151;
    --volume-bg-b: #464f5e85;
    --modal-bg: #1f2937;
    --login-modal-bg: #111827d7;
    --chapter-hover-bg: #383c4cc0;
    --locked-bg: #7f1d1d;
    --card-bg: #1e2b3b78;
    /* --select-bg: #23344dc2; */
    --select-bg: #4b5563;
    --tag-bg: #232739;
    --circle-bg: #0000003b;
    --border-color: #253c61;
    /* #3b83f6 */
    --border-login-color: #7c7c7c80;
    --login-social-btn-bg: #4ba5ff40;
    --login-forgot-password: #3d84f5;
    --input-bg: #2b394f54;
    --commentdown-bg: #2b394f;
    --text-buttons-color: #339cff;
    --text-buttons-color-h: #7abfff;
    --bg-opacity: 0.2;
}

@media (min-width: 1000px) {
    .wrapper {
        position: unset !important;
        top: unset !important;
        left: unset !important;
        right: unset !important;
        bottom: unset !important;
        overflow-x: unset !important;
        overflow-y: unset !important;
    }
}


/* Стили для глав */

.volume {
    transition: background-color 0.2s ease;
    border: none;
    /* Убираем border */
    background: none;
    /* Без фона */
}

.part {
    transition: opacity 0.3s ease;
    /* Плавное побледнение */
}

.part-header {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.part-header.open {
    filter: saturate(0.2);
    /* Тусклость только для заголовка */
    opacity: 0.5;
}

.chapter {
    transition: background-color 0.2s;
}

.chapter:hover {
    background-color: var(--chapter-hover-bg);
}

.chapter .text-green-500 {
    color: #22c55e;
    /* Зелёный для "Открыто" */
}

.chapter .text-red-500 {
    color: #ef4444;
    /* Красный для "Доступно по подписке" */
}


.buy-btn {
    background: linear-gradient(90deg, #161449, #0d0c25);
    /* Градиент */
    border: 1px solid #8984ff;
    /* Border */
    transition: background 0.2s, transform 0.2s;
    font-size: 0.875rem;
    /* Маленький текст */
    padding: 0.25rem 1rem;
    /* Padding как на скрин */
}

.buy-btn:hover {
    transform: translateY(1px);
    /* Лёгкий hover-эффект */
    background: linear-gradient(90deg, #2a294c, #0d0c25);
}

.sort-select {
    background: var(--input-bg);
    border: 1px solid var(--border-login-color);
}

.chapter-date {
    font-size: 0.75rem;
    color: #9ca3af;
    display: inline-block;
    width: fit-content;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chapter-date:hover {
    color: #60a5fa !important;
}

@media (min-width: 640px) {
    .chapter-date {
        font-size: 0.875rem;
    }
}



/* Стили для кнопок */

.read-btn {
    background-color: #3b82f6;
    color: white;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.read-btn:hover {
    background-color: #2563eb;
}

.edit-btn,
.delete-btn {
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.edit-btn:hover {
    color: #3b82f6;
}

.delete-btn:hover {
    color: #dc2626;
}

.toggle-all-parts {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.toggle-all-parts:hover {
    transform: scale(1.1);
}

.admin-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.admin-toggle-button:hover {
    transform: scale(1.15);
    background: rgba(59, 130, 246, 0.15);
}

html.light .admin-toggle-button .admin-inactive {
    stroke: #6b7280;
}

html.dark .admin-toggle-button .admin-inactive {
    stroke: #9ca3af;
}

.admin-toggle-button .admin-active {
    stroke: #3b82f6;
}

.read-icon {
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
    transition: stroke 0.3s ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.read-container {
    position: relative;
    padding-left: 30px;
}

html.light .read-icon {
    stroke: #6b7280;
}

.read-icon:hover {
    stroke: #3b82f6;
}

/* Стиль FAQ */

.faq-link {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
    color: #ffffff;
}

.faq-link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

@media (max-width: 999px) {
    .faq-link-underline {
        transition: transform 0.1s ease;
    }
}

html.light .faq-link-underline {
    background-color: #000000;
}

html.dark .faq-link-underline {
    background-color: #ffffff;
}

.faq-link:hover .faq-link-underline {
    transform: scaleX(1);
}

/* Стили для уведомлений */

.locked-notice {
    background-color: #fef2f2;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

html.dark .locked-notice {
    background-color: #ef444433;
}

@media (max-width: 640px) {
    .locked-notice {
        padding: 0.25rem 0.5rem;
        gap: 1rem;
    }
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 4px;
    display: none;
}

/* Стили для пузырей жанров */

.tag-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.45rem;
    background-color: var(--tag-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.625rem;
    cursor: default;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-tag:hover {
    background-color: var(--chapter-hover-bg);
}


/* Стили для сайдбара */

header::before {
    content: '';
    position: absolute;
    bottom: 100%;
    /* Размещаем над header */
    left: 0;
    width: 100%;
    height: 4px;
    /* Высота градиента, регулируйте по необходимости */
    background: linear-gradient(to bottom, rgba(var(--header-bg-rgb), 0), rgba(var(--header-bg-rgb), 1));
    /* Градиент от transparent сверху к цвету header с opacity */
    pointer-events: none;
    /* Чтобы не мешал кликам */
    transition: background 0.3s ease;
    /* Плавный переход при смене темы */
}

.sidebar {
    position: fixed;
    right: 0;
    width: 260px;
    height: 100%;
    background: var(--header-bg);
    color: var(--text-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 30;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-content {
    padding: 1rem;
    height: 100%;
    overflow-y: auto;
}

.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: var(--header-bg);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 var(--header-bg);
}

html.light .sidebar-content::-webkit-scrollbar-track {
    background: var(--header-bg);
}

html.light .sidebar-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
}

html.light .sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

html.light .sidebar-content {
    scrollbar-color: #3b82f6 var(--header-bg);
}

.sidebar-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(107, 114, 128, 0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(107, 114, 128, 0.25);
    color: #3b82f6;
    transform: scale(1.1);
}

.sidebar-content a,
.sidebar-content button {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sidebar-content a:hover,
.sidebar-content button:hover {
    background: var(--chapter-hover-bg);
    transform: translateX(4px);
}

html.light .sidebar-content a,
html.light .sidebar-content button {
    color: #1f2937;
}

html.dark .sidebar-content a,
html.dark .sidebar-content button {
    color: #e5e7eb;
}

html.light .sidebar-content .admin-inactive {
    stroke: #6b7280;
}

html.dark .sidebar-content .admin-inactive {
    stroke: #9ca3af;
}

.sidebar-content .admin-active {
    stroke: #3b82f6;
}

/* Jinja-специфические стили */

    {
    % if is_authenticated %
}

.myc {
    /* border-top-left-radius: 35px;
    border-top-right-radius: 35px; */
    /* border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px; */
    /* overflow: hidden; */
}

    {
    % endif %
}

.myc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80%;
    background-image: linear-gradient(to bottom, #3a4866 0%, rgba(50, 66, 101, 0) 50%);
    /* background-image: linear-gradient(to bottom, #334356b5 0%, rgba(50, 66, 101, 0) 50%); */
    z-index: -10;
}

    {
    % if is_authenticated %
}

.cover-mask {
    /* mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 15%, #111827 75%, #111827 100%); */
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 0%, #111827 45%, #111827 100%);
}

    {
    % endif %
}

/* .myc2 {
    box-shadow: 0 -4px 6px -1px rgb(44 60 61 / 47%), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
} */



@media (min-width: 480px) {
    .alt-myc2 {
        opacity: 0 !important;
    }
}

.alt-myc2 {
    opacity: 0.5;
    filter: blur(0.5rem);
    margin-top: -10px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 15%, #111827 75%, #111827 100%);
    width: 100vw;
}

.alt-myc3 {
    opacity: 0.5;
    filter: blur(0.5rem) saturate(0.5);
    object-position: top;
    margin-top: -10px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 0%) 15%, #11182761 75%, #111827 100%);
    width: 100vw;
    max-height: 100vh;
}

.background-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 600px;
    margin-top: -60px;
    background-size: cover;
    background-position: bottom;
    z-index: -1;
    overflow: hidden;
    opacity: 1;
    transform: scaleX(-1);
    filter: saturate(0.65);
    /* mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.2) 55.33%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.2) 66.67%, rgba(0, 0, 0, 0) 100%); */
    mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.5) 20%,
            rgba(0, 0, 0, 0.2) 55.33%,
            rgba(0, 0, 0, 0) 100%),
        linear-gradient(to right,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.2) 66.67%,
            rgba(0, 0, 0, 0) 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

@media (min-width: 640px) {
    .background-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 500px !important;
        height: 120vh !important;

        background-size: cover;
        background-position-y: -3rem !important;
        background-position-x: -5rem !important;
        background-repeat: no-repeat !important;
        z-index: -1;
        overflow: hidden;
        opacity: 1;
        transform: scaleX(1);
        filter: saturate(0.5);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 53.33%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 66.67%, rgba(0, 0, 0, 0) 100%);
        mask-composite: intersect;
        -webkit-mask-composite: source-in;
    }
}

/* @media (min-width: 500px) and (max-width: 1023.99px) {
    .background-right {
        background-position: 15% !important;
    }
} */

@media (min-width: 1024px) and (max-width: 1920px) {
    .background-right {
        /* filter: saturate(1) blur(5px) !important; */
        width: 600px;
        /* background-position-y: -20rem !important; */
        background-position-y: 2rem !important;
    }
}

.background-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 120vh;
    margin-top: -60px;
    background-size: cover;
    background-position: 68%;
    background-position-y: -3rem;
    z-index: -1;
    overflow: hidden;
    opacity: 1;
    transform: scaleX(1);
    filter: saturate(0.5);
    mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0) 53.33%,
            rgba(0, 0, 0, 0) 100%),
        linear-gradient(to right,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 40%,
            rgba(0, 0, 0, 0) 66.67%,
            rgba(0, 0, 0, 0) 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

@media (max-width: 640px) {
    .read-btn {
        width: 100%;
        text-align: center;
    }

    .admin-toggle-button {
        width: 28px;
        height: 28px;
    }

    .admin-toggle-button svg {
        width: 28px;
        height: 28px;
    }
}

/* Стили tab-switcher */

.tab-switcher {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #9ca3af21;
    /* Серая рельса */
    position: relative;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tab-button.active {
    color: #ffffff;
    /* Белый при фокусе */
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    /* Белая линия */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.tab-button.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.tab-button:hover::after {
    transform: scaleX(1);
    opacity: 0.7;
}



.ILogo {
    fill: black;
    /* fill: var(--text-color); */
}

/* In your CSS file */
.blur-backdrop::before {
    background-color: rgba(0, 0, 0, 0.3);
    background-image: url(https://inlands.ru/assets/s-nulya-ostatsya-chelovekom.webp);
    content: '';
    filter: blur(2px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    inset: 0%;
    z-index: -1;
    background-size: cover;
    background-position: center;

}

.blur-backdrop::after {
    background-color: rgba(0, 0, 0, 0.6);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    inset: 0%;
    z-index: -1;

}





.description-text-block {
    max-width: 650px;
    /* Ограничение ширины текста */
    flex: 1;
}

@media (max-width: 640px) {
    .description-text-block {
        max-width: none;
        /* Снимаем ограничение на мобильных */
    }
}

.description-long {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* Количество строк по умолчанию (измените на нужное) */
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: -webkit-line-clamp 0.3s ease;
}

.description-hidden {
    display: none;
    /* По умолчанию скрыто */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.description-spacer {
    min-height: 12px;
    /* Перенос min-height */
}

.description-arrow-block {
    display: flex;
    align-items: flex-start;
    /* Стрелка сверху */
    justify-content: flex-end;
}

.description-arrow-img {
    color: transparent;
    /* Перенос color: transparent */
    transition: transform 0.3s ease;
    /* Перенос transition (изменил на 0.3s для плавности) */
}

.description-container.expanded .description-hidden {
    display: block;
    max-height: 500px;
    /* Анимация высоты */
    opacity: 1;
}

.description-container.expanded .description-long {
    -webkit-line-clamp: unset;
    /* Снимаем обрезку */
    display: block;
}

.description-container.expanded .description-arrow-img {
    transform: rotate(180deg);
    /* Поворот стрелки */
}

.description-creators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creator-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.creator-label {
    font-weight: bold;
    margin-right: 1rem;
}

.creator-value {
    flex: 1;
}




/* Стили для нижней строки статистики */
.stats-bar {
    height: 12px;
    /* Высота строки как на скрин (font-size + padding) */
    font-size: 12px;
    /* Базовый размер текста */
    align-items: center;
}

.rating {
    color: #42ff4c;
    /* Зелёный для 9.8 */
    font-weight: light;
    white-space: nowrap;
}

.highlight-blue {
    color: #3162c7;
    /* Синий цвет для выделения слова */
}


/* .blur-backdrop {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
} */

/*!!!*/
.no-transition {
    transition: none !important;
}




/* .chapter {
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.chapter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/736x/ce/e7/99/cee799b875b0b904a598b03039e505a8.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity);
    z-index: -1;
    transition: opacity 0.3s ease;
} */

/*!!!*/
body {
    visibility: hidden;
}

/*!!!*/
body.loaded {
    visibility: visible;
}


/* style="box-shadow: 0 6px 4px -5px #80a2dd;" */







/* Стили для Swiper */
.swiper-container {
    width: 100%;
    /* max-width: 500px; */
    padding-bottom: 2rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.swiper-pagination-bullet {
    background: #3b82f6 !important;
    opacity: 0.5;
    width: 8px;
    height: 8px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
    opacity: 1;
}




/* Стили для аккордеона "О произведении" */
.accordion-content-about {
    max-height: 0;
    opacity: 0;
    transition: max-height 0s ease, opacity 0s ease, padding 0s ease;
    padding: 0 1rem;
}

.accordion-content-about.open {
    max-height: 500px;
    /* Максимальная высота с overflow для скролла */
    opacity: 1;
    padding: 1rem;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Лёгкий разделитель */
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Тень для стиля */
}

#about-header:hover {
    background-color: var(--chapter-hover-bg);
    /* Hover как у других блоков */
}

#about-arrow {
    transition: transform 0.3s ease;
    /* Плавный поворот стрелки */
}

#about-arrow.rotate {
    transform: rotate(180deg);
    /* Поворот вниз при открытии */
}









/* Стили для модалки Free Pass */
#free-pass-modal .modal-content {
    background: var(--modal-bg);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    text-align: left;
    /* Текст слева, как на скрине */
}

#free-pass-modal ul li {
    list-style-type: disc;
    /* • как на скрине */
    margin-left: 1.25rem;
    line-height: 1.5;
}

#free-pass-modal .close-btn {
    color: var(--text-color);
    transition: color 0.2s ease;
}

#free-pass-modal .close-btn:hover {
    color: #3b82f6;
}


.wrapper {
    /* Ваш существующий код */
    transition: height 0.3s ease;
    /* Плавное изменение высоты */
    height: 99dvh;
    /* Используйте dynamic viewport units */
}














/* Стили для перетаскивания */

.reorder-btn {
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.reorder-btn:hover {
    color: #10b981;
    transform: scale(1.1);
}

.reorder-btn.active {
    color: #10b981;
    transform: scale(1.2);
}

.reorder-active .chapter {
    cursor: move;
    user-select: none;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.reorder-active .accordion-content ul {
    min-height: 48px;
    border: 2px dashed transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    padding: 8px 0;
    /* max-height: 50vh;
    overflow-y: auto; */
}

.reorder-active .accordion-content ul.draggable-hover-empty {
    border: 2px dashed #3b82f6;
    background-color: #3b82f61a;
    border-radius: 8px;
}

.chapter.dragging {
    opacity: 0.7;
    transform: scale(0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-color: var(--chapter-hover-bg);
    z-index: 100;
    border: 2px solid #3b82f6;
    border-radius: 8px;
}

.chapter.drag-between::before,
.chapter.drag-between-bottom::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    height: 4px;
    background-color: #3b82f6;
    border-radius: 2px;
    z-index: 50;
}

.chapter.drag-between::before {
    top: -6px;
}

.chapter.drag-between-bottom::before {
    bottom: -6px;
}

.chapter:not(.dragging) {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.reorder-active .accordion-content ul button.text-blue-600 {
    display: none;
}

.reorder-active .accordion-content ul.space-y-2 {
    margin: 0;
    padding: 8px 0;
}

.reorder-active .accordion-content ul.space-y-2>* {
    margin-top: 0;
    /* margin-bottom: 0; */
}

.reorder-active .accordion-content ul.space-y-2>.chapter+.chapter {
    margin-top: 8px;
}

.reorder-active .pseudo-chapter {
    pointer-events: none;
    opacity: 0.2;
}










@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInLogin {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLogin {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleX(0.99);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes fadeSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideInComment {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}