/* ================================== */
/* ОБЩИЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН     */
/* ================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: transparent;
    border: none;
    outline: none;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

/* Скрываем полосу прокрутки для горизонтальных списков */
.no-scrollbar {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ================================== */
/* АЛЬБОМЫ / КАТЕГОРИИ (ТАБЫ) – КОМПАКТНО */
/* ================================== */
.profile-albums-tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.profile-albums-tabs::-webkit-scrollbar {
    display: none;
}

.album-tab {
    flex-shrink: 0;
    padding: 6px 0;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.album-tab.active {
    color: var(--primary);
}

.album-tab:hover:not(.active) {
    color: var(--text);
}

/* ================================== */
/* СВЕТЛАЯ ТЕМА                       */
/* ================================== */
body.light-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.light-theme .album-tab.active {
    color: var(--primary);
}

body.light-theme .album-tab:hover:not(.active) {
    color: var(--text);
}