/* ========== МОДАЛКА ЗАГРУЗКИ ИСТОРИИ ========== */
.story-uploader-modal {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
}

.story-uploader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.story-uploader-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.story-uploader-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.story-uploader-body {
    padding: 24px;
    min-height: 300px;
}

.story-upload-area {
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.story-upload-area:hover {
    background: #f9f9f9;
}

.story-upload-area i {
    font-size: 48px;
    color: #0d6efd;
    margin-bottom: 12px;
    display: inline-block;
}

.story-upload-area span {
    display: block;
    color: #555;
    font-size: 14px;
}

.story-preview {
    text-align: center;
}

.story-preview img,
.story-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.story-caption-input {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid #ddd;
    margin: 12px 0;
    font-size: 14px;
}

.story-uploader-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.story-uploader-actions button {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    background: #0d6efd;
    color: white;
    cursor: pointer;
}

.story-uploader-actions button:first-child {
    background: #e9ecef;
    color: #333;
}

/* z-index для модалок загрузки */
.story-upload-modal-content {
    z-index: 1100 !important;
}
.story-upload-modal .modal-overlay,
.story-uploader-modal {
    z-index: 1100 !important;
}
.modal-overlay:has(.story-uploader-modal) {
    z-index: 1100 !important;
}
.story-upload-modal-content {
    position: relative;
    z-index: 1100;
}
.modal-overlay:has(.story-upload-modal-content),
.modal-overlay:has(.story-uploader-modal) {
    z-index: 1150 !important;
}
.story-upload-modal-content {
    z-index: 1151 !important;
}