/* ===============================
   CSS ПЕРЕМЕННЫЕ
   =============================== */
:root {
    --bg-primary: #182f39;
	--bg-secondary: #13212b;
	--bg-card: #2d434e;
	--bg-hover: #344c58;
	--text-primary: #e4c075;
	--text-secondary: #b6c6d0;
	--text-muted: #8f9da6;
	--accent-primary: #95b277;
	--accent-hover: #a7c28a;
	--accent-secondary: #ac4b57;
	--accent-warning: #c0715b;
	--border-color: #3b515c;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.04);
}

.light {
    --bg-primary: #ccd5e1;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-hover: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-primary: #359489;
    --accent-hover: #35966a;
    --accent-secondary: #8fcc21;
    --accent-warning: #ff9500;
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.04);
}

/* ===============================
   БАЗОВЫЕ СТИЛИ
   =============================== */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===============================
   СТАТИСТИКА И ПАНЕЛИ
   =============================== */
.stats-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 6px 12px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-light);
    flex: 1
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    i {
        display: none
    }
}

.stats-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ===============================
   ХЛЕБНЫЕ КРОШКИ
   =============================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    line-height: 1.6;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-hover);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-muted);
    margin: 0 8px;
}

/* ===============================
   КОНТРОЛЫ ПЕРЕКЛЮЧЕНИЯ
   =============================== */
.view-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.view-toggle,
.size-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3px;
    border: 1px solid var(--border-color);
}

.view-button,
.size-button {
    background: transparent;
    border: none;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    font-weight: 500;
}

.view-button.active,
.size-button.active {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.size-toggle {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.size-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===============================
   СЕТКА МУЗЫКИ - ОСНОВНАЯ
   =============================== */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0;
}

.music-grid:has(.empty-state) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Размеры сетки */
.music-grid.grid-small {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.music-grid.grid-medium {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.music-grid.grid-large {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

/* ===============================
   КАРТОЧКИ ПАПОК - НОВЫЙ ПОДХОД
   =============================== */
.folder-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.folder-card:hover {
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateY(-2px);
}

.folder-card.album {
    cursor: default;
}

/* Обложка */
.folder-cover {
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 0;
    position: relative;
    background: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
	overflow: hidden;
}

.folder-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-cover-placeholder {
    color: white;
    background: #93a1b7;
    font-size: 48px;

    position: absolute;
    inset: 0;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Информация о папке - всегда видимая */
.folder-info {
    color: var(--text-primary);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-name {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: #f5bc1e
}

.folder-stats {
    font-size: 13px;
    color: #ccd5e1;
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0;
}

.folder-stats i {
    font-size: 12px;
}

/* Кнопки управления - всегда видимые снизу */
.folder-controls {
    padding: 0;
    display: flex;
    margin-top: 8px;
    gap: 4px;
    align-items: center;
}

.folder-controls button {
    flex: 1;
    min-height: 36px;
    background: rgba(255,255,255,0.1) !important
}


.folder-controls button:hover {
    background: rgba(255,255,255,0.15) !important
}


/* Наложение только для плей кнопки на обложке */
.folder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:linear-gradient(13deg,rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 78%);
    display: flex;
    align-items: flex-end;
	justify-content: flex-start;
	padding: 16px;
    transition: opacity 0.2s ease;

}

.folder-card:hover .folder-overlay {
    opacity: 1;
}

.folder-overlay-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Бейдж альбома */
.album-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-primary);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* ===============================
   КНОПКИ УПРАВЛЕНИЯ
   =============================== */
.scan-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.scan-button:hover {
    background: var(--accent-hover);
}

.scan-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
}

/* Кнопка воспроизведения */

.folder-controls .play-button {
    background: var(--accent-primary) !important;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.folder-controls  .play-button:hover {
    background: var(--accent-hover) !important;
}

/* Большая плей кнопка для overlay */
.play-button-overlay {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.play-button-overlay:hover {
    background: white;
    transform: scale(1.05);
}

.play-button-list {
    display: flex !important;
}

/* Кнопка обновления */
.refresh-button {
    background: var(--accent-warning);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.refresh-button:hover {
    background: #e6860a;
}

/* Кнопка добавления */
.add-button {
    background: var(--accent-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.add-button:hover {
    background: #b6505d;
}

.add-button.added {
    background: var(--accent-primary);
    color: white;
}

/* Кнопка M3U8 */
.m3u8-button {
    background: #0081ab;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.m3u8-button:hover {
    background: #00cbf1;
}

/* ===============================
   LIST VIEW - УЛУЧШЕННЫЙ
   =============================== */
.music-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.music-grid.list-view .folder-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-card);
    min-height: 80px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.music-grid.list-view .folder-card:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.music-grid.list-view .folder-cover {
    width: 64px;
    height: 64px;
    margin-right: 16px;
    margin-bottom: 0;
    border-radius: 12px;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.music-grid.list-view .folder-card.album .folder-cover {
    border-radius: 50%;
}

.music-grid.list-view .folder-overlay {
    display: none;
}

.music-grid.list-view .folder-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.music-grid.list-view .folder-name {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.music-grid.list-view .folder-stats {
    margin: 0;
}

.music-grid.list-view .folder-controls {
    padding: 0;
    margin-top: 0;
    flex-shrink: 0;
    gap: 8px;
    border-top: none;
    flex-direction: row;
}

.music-grid.list-view .folder-controls button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 8px;
    font-size: 13px;
    flex: none;
}

.music-grid.list-view .album-badge {
    display: none;
}

/* Скрываем некоторые элементы в grid режиме */
.hide-grid {
    display: none;
}

.music-grid.list-view .hide-grid {
    display: flex;
    gap: 10px
}

/* ===============================
   ПЛЕЙЛИСТЫ
   =============================== */
.selected-folders {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-light);
}

.selected-folders:has(.selected-folders-list:empty) {
    display: none;
}

.selected-folders-header {
    display: none;
}

.selected-folders-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.folder-tag {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-tag-remove {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: color 0.2s ease;
}

.folder-tag-remove:hover {
    color: var(--accent-secondary);
}

.selected-folders-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.playlist-action-btn {
    border: none;
    background: var(--accent-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-action-btn:hover {
    background: var(--accent-hover);
}

.playlist-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===============================
   УВЕДОМЛЕНИЯ
   =============================== */
.alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 16px;
    margin-bottom: 16px;
    position: fixed;

    max-width: 300px;
    z-index: 9999
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.btn-close {
    background: transparent;
    border: none;
    float: right;
    font-size: 16px;
    cursor: pointer;
}

/* Уведомление о воспроизведении */
.play-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    min-width: 360px;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow);
    color: var(--text-primary);
    padding: 20px;
    animation: slideInRight 0.3s ease;
}

.play-notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.play-notification-icon {
    font-size: 20px;
    margin-right: 12px;
    color: var(--accent-primary);
}

.play-notification-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.play-notification-content {
    margin-bottom: 16px;
}

.play-notification-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.play-notification-folder {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.play-notification-url {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    word-break: break-all;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 8px;
}

.play-notification-buttons {
    display: flex;
    gap: 10px;
}

.play-notification-btn {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.play-notification-btn:hover {
    background: var(--accent-hover);
}

.play-notification-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.play-notification-close:hover {
    background: var(--bg-secondary);
}

.play-notification-close:before {
    content: "×";
    font-weight: 500;
    line-height: 1;
}

/* ===============================
   ПУСТОЕ СОСТОЯНИЕ
   =============================== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin: 40px auto;
    max-width: 400px;
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.empty-state h5 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 18px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===============================
   АНИМАЦИИ
   =============================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.play-notification.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

/* ===============================
   АДАПТИВНОСТЬ
   =============================== */
@media (max-width: 768px) {
    .main-container {
        padding: 16px;
    }

    .stats-panel {
        padding: 20px;
        margin-bottom: 24px;
    }

    .stats-row {
        gap: 16px;
    }

    .stats-item {
        gap: 8px;
    }

    .stats-number {
        font-size: 20px;
    }

    .view-controls {
        gap: 12px;
    }

    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

    }

    .music-grid.grid-small {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));


    }

    .music-grid.grid-medium {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

    }

    .music-grid.grid-large {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    }

    .folder-card {
        border-radius: 16px;
    }

    .folder-info {
    }

    .folder-controls {

    }

    .music-grid.list-view .folder-card {
        padding: 12px;
        min-height: 70px;
    }

    .music-grid.list-view .folder-cover {
        width: 52px;
        height: 52px;
        margin-right: 12px;
    }

    .music-grid.list-view .folder-name {
        font-size: 15px;
    }

    .music-grid.list-view .folder-stats {
        font-size: 12px;
        white-space:nowrap
    }

    .music-grid.list-view .folder-controls {

        gap: 6px;
    }

    .music-grid.list-view .folder-controls button {
        width: 56px;
        height: 36px;
        min-height: 36px;
        font-size: 12px;
    }

    .play-notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: auto;
        max-width: none;
    }

    .play-notification-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .play-notification-btn {
        justify-content: center;
    }

    .selected-folders {
        padding: 20px;
        margin-bottom: 24px;
    }

    .playlist-action-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 12px;
    }


    .folder-overlay {
        padding: 8px;
    }

    .stats-panel {
        padding: 0px;
        margin-bottom: 10px;
        background: unset;
        border: unset
    }

    .stats-row {
        gap: 12px;
    }

    .stats-item {
        gap: 6px;
        min-width: auto;
        padding: 0 5px;
        display: none
    }

    .stats-item i {
        display: none;
    }

    .stats-number {
        font-size: 18px;
    }

    .stats-label {
        font-size: 12px;
    }

    .view-controls {
        gap: 8px;
        justify-content: center;
        width: 100%
    }

    .view-button,
    .size-button {
        padding: 12px 12px;
        min-width: 32px;
    }

    .scan-button {
        padding: 15px 22px;
        font-size: 12px;
        gap: 6px;
        margin-left: auto
    }

    .music-grid {
        grid-template-columns: repeat(2, 1fr);

    }

    .music-grid.grid-small {
        grid-template-columns: repeat(3, 1fr);

    }

    .music-grid.grid-medium {
        grid-template-columns: repeat(2, 1fr);


    }

    .music-grid.grid-large {
        grid-template-columns: repeat(1, 1fr);

    }

    .folder-card {
        border-radius: 12px;
    }

    .folder-cover-placeholder i{
        font-size: 20px
    }

    .folder-info {
        gap: 6px;
    }

    .folder-name {
        font-size: 14px;
    }

    .folder-stats {
        font-size: 12px;
        gap: 12px;
    }

    .folder-controls {

        gap: 6px;
    }

    .folder-controls button {
        min-height: 32px;
        padding: 6px;
        font-size: 12px;
    }

    .album-badge {
        padding: 4px 8px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }

    .music-grid.list-view .folder-card {
        padding: 5px;
        min-height: 40px;
        border-radius: 12px;
    }

    .music-grid.list-view .folder-cover {
        width: 44px;
        height: 44px;
        margin-right: 10px;
        border-radius: 8px;
    }

    .music-grid.list-view .folder-name {
        font-size: 14px;
    }

    .music-grid.list-view .folder-stats {
        display: none;
    }

    .music-grid.list-view .folder-controls {

        gap: 4px;
    }

    .music-grid.list-view .folder-controls button {
        width: 52px;
        height: 32px;
        min-height: 32px;
        font-size: 11px;
    }

    .empty-state {
        padding: 60px 20px;
        margin: 20px auto;
        border-radius: 16px;
    }

    .empty-state i {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .empty-state h5 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .empty-state p {
        font-size: 13px;
    }

    .selected-folders {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 16px;
        gap: 12px;
    }

    .folder-tag {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .folder-tag-remove {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .playlist-action-btn {
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .play-notification {
        padding: 16px;
        border-radius: 12px;
    }

    .play-notification-folder {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .play-notification-url {
        padding: 10px;
        font-size: 11px;
        border-radius: 6px;
    }

    .play-notification-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
}




/* Кнопка открытия сайдбара */
.sidebar-toggle-btn {
    flex-shrink: 0;
    background: var(--bg-card);
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    border: 1px solid var(--border-color);
	box-shadow: 0 1px 3px var(--shadow-light);
    transition: all 0.3s;
}


/* Сайдбар */
.collections-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    border-right: 1px solid var(--border-color)
}

.collections-sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--bg-primary);
    display: none
}

.sidebar-header h4 {
    margin: 0;
}

.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 51px;
    height: 41px;
    opacity: 0.5
}

.sidebar-close-btn:hover {
    opacity: 1
}

.sidebar-content {
    padding: 15px;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Карточки коллекций в сайдбаре */
.collection-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: all 0.2s;
}

.collection-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}


.collection-header .badge {
    display: none
}

.collection-header h5 {
    margin: 0;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-folders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.folder-badge {
    background: rgba(255,255,255,0.1) ;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    max-width: 100%;
    border: 1px solid var(--border-color);
    filter: brightness(1.2)
}

.collection-actions {
    display: flex;
    gap: 6px;
}

.collection-actions .btn {
    font-size: 0.8rem;
    padding: 4px 8px;
    flex: 1;
    background: rgba(0,0,0,0.2);
    color: var(--accent-primary);
    border: unset;
    border-radius: 5px;
    height: 40px;
    cursor: pointer
}


.header {
    display: flex;
    gap: 15px;
}

.stats-update {
    padding: 5px;
    width: 100%;
	padding: 5px;
	display: flex;
	> div {
	    width: 100%;
	    display: flex;
	    gap: 5px;
	    align-items: center;
	    justify-content: center
	}
}