.stream-archive-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stream-archive-download h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
}

.stream-archive-download p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 16px;
}

.stream-archive-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stream-archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stream-archive-btn:active {
    transform: translateY(0);
}

/* Модальное окно для ввода пароля */
.stream-archive-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stream-archive-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stream-archive-modal h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
}

.stream-archive-modal input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.stream-archive-modal input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.stream-archive-modal-buttons {
    display: flex;
    gap: 10px;
}

.stream-archive-modal button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stream-archive-submit {
    background: #667eea;
    color: white;
}

.stream-archive-submit:hover {
    background: #5568d3;
}

.stream-archive-cancel {
    background: #e0e0e0;
    color: #333;
}

.stream-archive-cancel:hover {
    background: #d0d0d0;
}

.stream-archive-error {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.stream-archive-loading {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.stream-archive-loading::after {
    content: '⏳ Проверка пароля...';
    color: #667eea;
}
