/* Оверлей (фон) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none; /* Скрыто по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Контент окна */
.modal-content {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 320px;
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Заголовок и текст */
#modal-title { margin: 0 0 8px; font-size: 18px; color: #fff; }
#modal-text { margin: 0 0 24px; font-size: 14px; color: #8e8e93; line-height: 1.4; }

/* Кнопки */
.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary { background: #fff; color: #000; }
.btn-primary:active { background: #ccc; }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-secondary:active { background: rgba(255, 255, 255, 0.2); }

#shelf-content {
                height: calc(100% - 26px); 
                overflow-y: scroll; 
                -webkit-overflow-scrolling: touch; 
                background: #1c1c1e;
                position: relative;
                z-index: 5;
            }
.shelf-tabs {display:flex; gap:8px; margin-bottom:20px; position:sticky; top:0; background:#1c1c1e; padding:10px 0;}

/*******************/
/*Форма предложения*/

/*******************/
/* Контейнер формы */
.suggest-form-container {
    padding: 0px 15px 30px 15px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#suggestForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Поля ввода */
.s-input, .s-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    font-size: 16px;
    transition: border-color 0.2s;
}

.s-input:focus, .s-textarea:focus {
    border-color: #007bff;
}

.s-textarea {
    height: 100px;
    resize: none;
}

/* Сетка для рядов и жанров */
.row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.genres-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.genres-box label {
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.genres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.genre-item {
    font-size: 14px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Карточки загрузки файлов */
.upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.file-upload-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.file-upload-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #007bff;
}

.file-upload-card input[type="file"] {
    display: none;
}

.upload-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.05);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.upload-text strong {
    display: block;
    font-size: 13px;
    color: #fff;
    line-height: 1.2;
}

.upload-text span {
    font-size: 11px;
    color: #888;
}

/* Превью и состояния */
.preview-img {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.file-selected {
    border-style: solid;
    border-color: #34c759 !important;
    background: rgba(52, 199, 89, 0.05) !important;
}

/* Кнопка отправить 
.read-btn {    width: 100%;    height: 54px;    border: none;    background: #007bff;    color: white;    border-radius: 16px;    font-weight: 700;    cursor: pointer;    font-size: 16px;    margin-top: 10px;    transition: transform 0.1s, background 0.2s;}*/

/*.read-btn:active {    transform: scale(0.98);}*/

.read-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Инфо-блок для авторов */
.info-notice {
    margin: 10px 0 20px 0;
}
/* Вращение всего SVG */
.spinner-svg {
    width: 18px;
    height: 18px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Эффект "змеи" для линии круга */
.spinner-circle {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
.btn-primary-action {
    width: 100%;
    height: 54px;
    background: #007aff;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, background 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Эффект при нажатии */
.btn-primary-action:active {
    transform: scale(0.96); /* Кнопка слегка уменьшается */
    background: #0063ce;    /* Цвет становится чуть темнее */
}

/* Состояние, когда кнопка отключена (идет загрузка) */
.btn-primary-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: scale(1) !important;
}