/* ========================================
   Обновления игр
   Стили в стиле igroprom.online / stream-schedule
   ======================================== */

/* === Кнопка «Добавить обновление» в кабинете === */
body .game-update-btn {
    display: inline-block;
    padding: 5px 14px;
    background: none;
    color: #999;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px auto;
    width: fit-content;
}
body .game-update-btn:hover {
    border-color: var(--iss-accent);
    color: var(--iss-accent);
}

/* === Последнее обновление в карточке === */
body .game-update-last {
    margin: 10px 15px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid var(--iss-accent);
    border-radius: 0 6px 6px 0;
    font-family: 'Inter', Arial, sans-serif;
}
body .game-update-last-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 2px;
}
body .game-update-last-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
body .game-update-last-date {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
body .game-update-last-count {
    color: var(--iss-accent);
    font-weight: 600;
}

/* === Модальное окно === */
body .game-update-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
body .game-update-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
body .game-update-modal-content {
    position: relative;
    background: #fff;
    padding: 30px 35px;
    border-radius: 14px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 460px;
    width: 90%;
    z-index: 1;
}
body .game-update-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
body .game-update-modal-close:hover {
    color: var(--iss-accent);
}
body .game-update-modal-title {
    font-size: 22px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    margin: 0 0 20px;
}

/* === Поля формы === */
body .game-update-form-group {
    margin-bottom: 16px;
}
body .game-update-form-group label {
    display: block;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}
body .game-update-form-group input[type="text"],
body .game-update-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dcdcdc;
    border-radius: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
body .game-update-form-group input[type="text"]:focus,
body .game-update-form-group textarea:focus {
    border-color: var(--iss-accent);
    outline: none;
}
body .game-update-form-group textarea {
    resize: none;
    height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: #dcdcdc transparent;
}
body .game-update-form-group textarea::-webkit-scrollbar {
    width: 5px;
}
body .game-update-form-group textarea::-webkit-scrollbar-track {
    background: transparent;
}
body .game-update-form-group textarea::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 10px;
}
body .game-update-form-group textarea::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
body .game-update-form-group .game-update-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* === Кнопка отправки === */
body .game-update-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--iss-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
}
body .game-update-submit:hover {
    opacity: 0.85;
}
body .game-update-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Статус === */
body .game-update-status {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}
body .game-update-status:empty{
    display: none;
}

/* === Секция обновлений на странице игры (аккордеон) === */
.game-updates-section {
    margin-bottom: 30px;
}

.game-update-item {
    border-bottom: 1px solid #f0f0f0;
}

.game-update-item:last-child {
    border-bottom: none;
}

.game-update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.game-update-header:hover {
    background: #f3f3f3;
}

.game-update-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.game-update-title-text {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.game-update-date {
    color: #999;
    font-size: 13px;
}

.game-update-toggle {
    transition: transform 0.2s;
    color: #999;
    flex-shrink: 0;
}

.game-update-item.active .game-update-toggle {
    transform: rotate(180deg);
}

.game-update-content {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 140%;
    color: #666;

}
.game-update-changes {
        max-height: 300px;
    overflow-y: auto;
}


/* === Правая часть хедера (удалить + стрелка) === */
.game-update-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* === Кнопка удаления обновления === */
body .game-update-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    color: #ccc;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}
body .game-update-delete:hover {
    color: #dc3232;
    background: rgba(220, 50, 50, 0.08);
}

/* === Адаптив === */
@media (max-width: 768px) {
    body .game-update-modal-content {
        padding: 20px;
    }
    body .game-update-modal-title {
        font-size: 18px;
    }
}
