/* Стили body УПРОЩЕНЫ, они больше не отвечают за фон и макет */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #ffeebb;
    text-shadow: 1px 1px 2px #000;
    min-height: 100vh;
}

/* Стили для нового контейнера-обертки */
.site-wrapper {
    display: flex; /* Возвращаем flexbox сюда */
    flex-direction: column;
    min-height: 100vh; /* Гарантируем, что обертка занимает весь экран */
    position: relative; /* Создаем новый контекст позиционирования */
    z-index: 1; /* Поднимаем весь контент над видео */
}

/* Стили для фонового видео (использует position: absolute относительно ОБЕРТКИ) */
#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Отправляем видео на задний план ОБЕРТКИ */
    object-fit: cover; /* Масштабируем, чтобы покрыть весь контейнер без искажений */
    object-position: top center; /* Фокусируемся на верхней части (голова) */
    filter: brightness(1.2) contrast(1.0); /* Затемнение */
}

.main-header-links { position: absolute; top: 10px; right: 20px; z-index: 10; }
.main-header-links a { margin-left: 15px; color: #d4af37; text-decoration: none; font-weight: bold; }
.main-header-links a:hover { text-decoration: underline; }

.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 50px;
    flex-grow: 1;
}

.block {
    background: rgba(30, 20, 15, 0.85);
    border-radius: 4px;
    border: 1px solid rgba(119, 102, 85, 0.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.7);
    margin-bottom: 20px;
    overflow: hidden;
}

.block h2 {
    background-color: rgba(20, 10, 5, 0.9);
    padding: 8px 15px;
    margin: 0;
    font-size: 1em;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(119, 102, 85, 0.5);
    position: relative;
}

.block h2::before {
    content: ''; position: absolute; top: 0px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 10px; background: linear-gradient(to right, transparent 0%, #d4af37 50%, transparent 100%);
}

.block-content { padding: 15px; }

/* УВЕЛИЧЕННАЯ ВЫСОТА ДЛЯ ТОП 10 (примерно на 10 записей) */
.top-players-content { min-height: 200px; }
.server-rates {
    margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(119, 102, 85, 0.5);
    display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
}
.server-rates p { margin: 0; }
.highlight-text { color: #ff4444; font-weight: bold; text-shadow: 0 0 5px rgba(255, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.3); }
.server-title-text { text-align: center; margin-bottom: 20px; }
.l2-logo-text { display: block; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.la2hard { font-size: 2.5em; color: #d4af37; text-shadow: 2px 2px 4px #000, 0 0 10px rgba(212, 175, 55, 0.7); margin-bottom: 5px; }
.full-title-line { font-size: 1.2em; color: #ffeebb; }
.left-sidebar { width: 400px; }
.right-sidebar { width: 350px; }
/*.news-content { min-height: 300px; }*/
.main-content { flex-grow: 1; margin: 0 20px; }
.footer-text { text-align: center; padding: 5px 20px; color: #ffeebb; font-size: 0.8em; text-shadow: 1px 1px 2px #000; width: 100%; box-sizing: border-box; margin-top: 20px; }


/* =========================================== */
/* НОВЫЕ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА */
/* =========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.modal-overlay.active { opacity: 1; display: flex; }
.modal-content {
    background: rgba(30, 20, 15, 0.95);
    border-radius: 4px;
    border: 1px solid rgba(119, 102, 85, 0.5);
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    padding: 30px;
    width: 80%;
    max-width: 400px;
    color: #ffeebb;
    transform: scale(0.7);
    transition: transform 0.5s ease-in-out;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-content h2 {
    color: #d4af37;
    border-bottom: 1px solid rgba(119, 102, 85, 0.5);
    padding-bottom: 10px;
    margin-top: 0;
}
.close-btn {
    color: #d4af37;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover, .close-btn:focus { color: #fff; }
.modal-content input,
.modal-content input[type="password"],
.modal-content input[type="email"] {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(119, 102, 85, 0.5);
    color: #ffeebb;
    padding: 10px;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 3px;
}
.modal-content button {
    background-color: #d4af37;
    color: #1e140f;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    width: 100%;
}
.modal-content button:hover { background-color: #ffebbe; }

/* Стили для маленького popup-окна с сообщениями */
#message-popup-content {
    max-width: 350px; /* Делаем его меньше, чем формы логина/регистрации */
    border-color: #d4af37; /* Золотистая рамка */
}

.voting-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(119, 102, 85, 0.5);
}

.voting-container h3 {
    margin-top: 0;
    font-size: 0.9em;
    color: #d4af37;
}

.voting-container button {
    background-color: #d4af37;
    color: #1e140f;
    border: none;
    padding: 5px 10px;
    margin: 5px 0;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    width: 100%; /* Занимает всю ширину блока, как ваши кнопки в модалках */
    box-sizing: border-box;
}

.voting-container button:hover {
    background-color: #ffebbe;
}

/* Дополнительный стиль, чтобы информация о статусе не "прилипала" к голосованию */
.server-status-info {
    margin-bottom: 10px;
}

/* === Стили для полосок прогресса голосования === */
.vote-results-container {
    margin-top: 15px;
}

.vote-option-result {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.option-label {
    width: 30px; /* Фиксированная ширина для x1, x2, x3 */
    font-weight: bold;
    margin-right: 10px;
    color: #d4af37;
}

.progress-bar-container {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(119, 102, 85, 0.5);
    border-radius: 3px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background-color: #d4af37; /* Золотистый цвет */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    transition: width 0.5s ease-in-out; /* Плавное изменение ширины */
    min-width: 0%; /* Ensure it starts from 0 */
}

.progress-label {
    color: #1e140f; /* Темный текст на золотистом фоне */
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: none; /* Убираем тень текста */
}

.news-content {
    max-height: 400px; /* Подберите оптимальную высоту по вашему вкусу */
    overflow-y: auto;  /* Добавляет вертикальный скролл при необходимости */
    overflow-x: hidden; /* Скрывает горизонтальный скролл */
}

/* Добавьте это в ваш файл style.css */
#full-news-list {
    max-height: 70vh; /* Занимает 70% высоты окна просмотра */
    overflow-y: auto;
    padding-right: 15px; /* Для компенсации полосы прокрутки */
}

.full-news-item h3 {
    color: #d4af37;
    margin-bottom: 5px;
}

/* Устанавливает стандартный цвет для всех ссылок на сайте */
a:link,
a:visited,
a:hover,
a:active {
    color: #ffaa00; /* Белый цвет. Можете заменить на любой другой HEX-код */
    text-decoration: none; /* Убирает подчеркивание по умолчанию */
    }


    /* Добавляем плавный переход для всех ссылок */
    a {
        transition: color 0.3s ease; /* Плавное изменение цвета за 0.3 секунды */
    }

    /* Изменяем цвет ссылки при наведении курсора */
    a:hover {
        color: #ffd700; /* Ярко-оранжевый цвет при наведении. Можете выбрать свой */
        cursor: pointer; /* Делает курсор в виде руки при наведении */}

        /* Цвет для статуса "Онлайн" и количества игроков */
        .status-online {
            color: #00ff00; /* Ярко-зеленый цвет */
            font-weight: bold;
        }

        /* Цвет для статуса "Офлайн" */
        .status-offline {
            color: #ff0000; /* Ярко-красный цвет */
            font-weight: bold;
        }

        /* Делает модальное окно личного кабинета шире */
        .full-width-modal {
            width: 90%; /* Ширина почти на весь экран */
            max-width: 1200px; /* Ограничиваем максимальную ширину для очень больших мониторов */
            margin: 20px auto; /* Центрируем окно */
            box-sizing: border-box;
        }

        /* При необходимости можно добавить медиа-запросы для мобильных устройств, чтобы оно занимало 100% ширины */
        @media (max-width: 768px) {
            .full-width-modal {
                width: 100%;
                margin: 0;
                border-radius: 0; /* Убираем скругление углов на мобильных устройствах */
                height: 100vh; /* Высота на весь экран */
                overflow-y: auto; /* Добавляем прокрутку, если контент не помещается */
            }
        }
/* === Конец стилей полосок прогресса === */