html {
    
}
        /* Основная сетка файлов */
        .file-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        /* Стиль элемента файла/папки */
        .file-item {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 18px 14px;
            text-align: center;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
        }

        .file-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
            border-color: #3699d9;
        }

        .file-icon {
            font-size: 40px;
            margin-bottom: 10px;
        }

        .folder .file-icon {
            color: #FFB300;
        }

        .file .file-icon {
            color: #BBDEFB;
        }

        .file-name {
            font-size: 15px;
            font-weight: 600;
            margin: 6px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            color: white;
        }

        .file-size {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
        }

        .loading {
            grid-column: 1 / -1;
            text-align: center;
            color: rgba(255, 255, 255, 0.8);
            font-style: italic;
            padding: 30px;
            font-size: 1.1rem;
        }

        /* Иконка скачивания в правом верхнем углу папки */
        .download-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
            z-index: 10;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .download-badge:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        /* Прогресс при создании ZIP */
        .loading-progress {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            z-index: 20;
            font-size: 0.9rem;
            text-align: center;
            padding: 10px;
        }

        /* Хлебные крошки */
        #breadcrumb {
            font-size: 1.1rem;
            color: white;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            margin-bottom: 15px;
        }

        #breadcrumb a {
            color: #BBDEFB;
            text-decoration: none;
            font-weight: 500;
        }

        #breadcrumb a:hover {
            text-decoration: underline;
        }

        /* Кнопка "Назад" */
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            margin-bottom: 20px;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

       /* === Управление: Поиск, фильтр, кнопки — фиксированная ширина под список файлов === */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* Ключевые свойства для совпадения ширины */
    width: 100%;
    max-width: 860px; /* Примерно ширина вашего file-list */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Остальные стили без изменений */
.controls input[type="text"],
.controls select {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #444;
    background-color: #2d3d50;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.controls input[type="text"]:focus,
.controls select:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

.controls select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}



/* Кнопка "Скачать всё как ZIP" — в стиле сайта */
.controls .cta-button.small {
    background-color: #2d3d50;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.controls .cta-button.small:hover {
    background-color: #0097a7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls .cta-button.small {
        justify-content: center;
    }
}