/* ========== КНОПКА ОТКРЫТИЯ ФИЛЬТРОВ ========== */
.mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #ff8c00);
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-filter-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.7);
}

.mobile-filter-toggle i {
    color: #0c0b0e;
    font-size: 1.8rem;
}

/* ========== САЙДБАР ФИЛЬТРОВ (СДВИГАЕТ КОНТЕНТ) ========== */
.filter-sidebar {
    position: fixed;
    top: 80px;
    bottom: 0;
    left: -400px;
    width: 380px;
    z-index: 1100;

    background: rgba(18, 16, 22, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid #3f3c48;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.7);

    padding: 20px 15px;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    scrollbar-width: thin;
    scrollbar-color: #5a5665 #1b1921;
}

.filter-sidebar.show {
    left: 0;
}

/* Контент с песнями сдвигается при открытом сайдбаре */
.content-wrapper {
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
}

.content-wrapper.sidebar-open {
    margin-left: 380px;
}

.filter-sidebar .btn-close {
    filter: invert(1);
    opacity: 0.8;
    background-color: transparent;
    border-radius: 50%;
    padding: 8px;
}

.filter-sidebar .btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #1b1921;
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #5a5665;
    border-radius: 3px;
}

/* Затемнение фона */
.filter-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1090;
    cursor: pointer;
}

.filter-overlay.show {
    display: block;
}

/* Стили для секций фильтров */
.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #3f3c48;
    padding-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    color: #d4af37;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
}

.filter-checkbox-group::-webkit-scrollbar {
    width: 5px;
}

.filter-checkbox-group::-webkit-scrollbar-thumb {
    background: #5a5665;
    border-radius: 2px;
}

.form-check {
    margin-bottom: 4px;
}

.form-check-label {
    color: #e5e5e5;
    font-size: 0.9rem;
}

.form-check-input {
    background-color: #1b1921;
    border-color: #5a5665;
}

.form-check-input:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.form-select, .form-control {
    background-color: #1b1921;
    border: 1px solid #5a5665;
    color: #e5e5e5;
}

.form-select:focus, .form-control:focus {
    background-color: #24212b;
    border-color: #d4af37;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    color: #fff;
}

.bpm-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bpm-range input {
    width: 80px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-tag {
    background: #2a2730;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tag i {
    cursor: pointer;
    opacity: 0.7;
}

.filter-tag i:hover {
    opacity: 1;
}

.btn-apply-filters {
    background: linear-gradient(135deg, #d4af37, #ff8c00);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    width: 100%;
    margin-top: 10px;
}

.btn-apply-filters:hover {
    background: linear-gradient(135deg, #e8c547, #ffa040);
    transform: translateY(-2px);
}

.btn-reset-filters {
    background: transparent;
    border: 1px solid #5a5665;
    color: #c0c0c0;
    padding: 8px 16px;
    border-radius: 30px;
    width: 100%;
    margin-top: 8px;
}

.btn-reset-filters:hover {
    background: #2a2730;
    border-color: #a0a0b0;
    color: #fff;
}
/* Центрирование контента когда сайдбар скрыт */
@media (min-width: 992px) {
    .content-wrapper {
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
        transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .content-wrapper.sidebar-open {
        margin-left: 380px !important;
        margin-right: 0 !important;
    }
}

/* Адаптив для мобильных */
@media (max-width: 991px) {
    .filter-overlay {
        top: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
    }
}

@media (max-width: 576px) {
    .filter-sidebar {
        width: 280px;
    }
}
/* ========== ДЕСКТОПНАЯ ВКЛАДКА ФИЛЬТРОВ ========== */
.filter-tab {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1080;

    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;

    background: linear-gradient(135deg, #d4af37, #ff8c00);
    border: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 20px rgba(212, 175, 55, 0.3);
    color: #0c0b0e;
    font-weight: 600;
    font-size: 1rem; /* было 0.8rem */
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    padding-left: 12px;
    box-shadow: 6px 0 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e8c547, #ffa040);
}

.filter-tab i {
    font-size: 1.2rem;
    writing-mode: horizontal-tb;
    margin-bottom: 4px;
}

.filter-tab span {
    display: inline-block;
    transform: rotate(180deg);
}

/* Показываем вкладку только на десктопе */
@media (min-width: 992px) {
    .filter-tab {
        display: flex;
    }

    /* Скрываем мобильную круглую кнопку */
    .mobile-filter-toggle {
        display: none !important;
    }
}
/* ===== ЗОЛОТЫЕ ФИКСИРОВАННЫЕ КНОПКИ (ПЕРВОНАЧАЛЬНЫЙ СТИЛЬ) ===== */
@media (max-width: 991px) {
    .fixed-contact-buttons {
        display: flex !important;
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 1080;
        justify-content: center;
        gap: 10px;
        pointer-events: none;
    }

    .fixed-contact-buttons a,
    .fixed-contact-buttons button {
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;        /* было 56px, -20% = 45px */
        height: 45px;       /* было 56px, -20% = 45px */
        border-radius: 24px; /* было 30px, -20% = 24px */
        background: rgba(20, 18, 15, 0.9);
        backdrop-filter: blur(10px);
        border: 1.5px solid #d4af37;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.3);
        transition: all 0.25s ease;
        text-decoration: none;
        color: #d4af37;
        font-size: 22px;    /* было 28px, -20% = 22px */
        padding: 0;
    }

    .fixed-contact-buttons a:hover,
    .fixed-contact-buttons button:hover {
        transform: translateY(-4px) scale(1.05);
        background: #2a241a;
        border-color: #ffd966;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 20px #ffd700;
        color: #ffd966;
    }

    .fixed-contact-buttons .max-btn img {
        width: 26px;        /* было 32px, -20% = 26px */
        height: 26px;       /* было 32px, -20% = 26px */
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    }

    body {
        padding-bottom: 90px !important; /* немного уменьшен отступ */
    }
}

@media (min-width: 992px) {
    .fixed-contact-buttons {
        display: none !important;
    }
}

/* Для очень маленьких экранов можно ещё немного уменьшить */
@media (max-width: 400px) {
    .fixed-contact-buttons a,
    .fixed-contact-buttons button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .fixed-contact-buttons .max-btn img {
        width: 22px;
        height: 22px;
    }
}
/* Дополнительные стили для иерархических категорий */
.category-item {
    margin-bottom: 2px;
}

.category-main {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.category-main .form-check-input {
    margin-right: 8px;
}

.category-children {
    margin-left: 22px;
    padding-left: 12px;
    border-left: 2px solid #3f3c48;
}

.age-group-child {
    margin-bottom: 4px;
}

.age-group-child .form-check-label {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.category-toggle {
    cursor: pointer;
    color: #d4af37;
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.category-toggle.collapsed {
    transform: rotate(-90deg);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* ========== ГОРИЗОНТАЛЬНАЯ КНОПКА "ПОДОБРАТЬ ПЕСНЮ" ДЛЯ МОБИЛЬНЫХ ========== */
.mobile-filter-chip-wrapper {
    display: none;
    justify-content: center;
    margin-bottom: 16px;
}

.mobile-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 140, 0, 0.05));
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: #d4af37;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-filter-chip i:first-child {
    font-size: 1.2rem;
    color: #d4af37;
}

.mobile-filter-chip i:last-child {
    font-size: 1rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.mobile-filter-chip:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 140, 0, 0.1));
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.mobile-filter-chip:hover i:last-child {
    transform: translateX(3px);
    opacity: 1;
}

/* Показываем только на мобильных */
@media (max-width: 991px) {
    .mobile-filter-chip-wrapper {
        display: flex;
    }

    /* Скрываем круглую кнопку фильтров */
    .mobile-filter-toggle {
        display: none !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-filter-chip {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .mobile-filter-chip i:first-child {
        font-size: 1.1rem;
    }
}
/* ========== ФУТЕР ВСЕГДА ВНИЗУ ========== */

/* Основная структура страницы */
body.bg-silver-dark {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* row с контентом занимает всё доступное пространство */
.container-fluid > .row {
    flex: 1 0 auto;
}

/* Футер прижат к низу */
footer {
    flex-shrink: 0;
}

/* Минимальная высота для области с песнями */
#songsList {
    min-height: 50vh;
}
