/* download.css */
.download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    opacity: 0;
}
.download-modal-overlay.hidden {
    display: none;
}
.download-modal-container {
    background: var(--bg-sidebar);
    border-radius: 28px;
    max-width: 480px;
    width: 90%;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.download-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}
.download-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.download-modal-header h3 i {
    color: var(--accent);
}
.download-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.download-modal-close:hover {
    color: var(--accent);
}
.download-modal-body {
    padding: 20px 24px;
}
.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.download-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}
.download-option:hover {
    border-color: var(--accent);
    background: var(--nav-item-hover-bg);
    transform: translateX(4px);
}
.download-option i:first-child {
    font-size: 28px;
    color: var(--accent);
    width: 40px;
}
.option-info {
    flex: 1;
}
.option-info strong {
    font-size: 16px;
    color: var(--text-primary);
    display: block;
}
.option-info span {
    font-size: 13px;
    color: var(--text-secondary);
}
.download-option i:last-child {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}
.download-option:hover i:last-child {
    transform: translateX(4px);
    color: var(--accent);
}
.download-note {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 102, 46, 0.08);
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.download-note i {
    color: var(--accent);
    font-size: 18px;
}

/* Стили для временного модального окна стемов */
.stems-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stems-modal-container {
    background: var(--bg-sidebar);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-light);
}
.stems-modal-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.stems-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
.stems-list-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stems-list-modal li {
    margin: 12px 0;
}
.stems-list-modal a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.2s;
}
.stems-list-modal a:hover {
    border-color: var(--accent);
    background: var(--nav-item-hover-bg);
}