@font-face {
    font-family: 'GOST_A';
    src: url('../css/fonts/GOST_A.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    background: #FFFFFF;
    color: #e6e6e6;
    font-family: "GOST_A", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    display: flex;
    /* Включаем flex для горизонтального расположения элементов */
    align-items: center;
    /* Выравниваем по центру вертикально */
    padding: 20px 50px;
    /* Твои отступы */
    text-align: left;
    color: #000000;
    border-bottom: 1px solid #1d1d1d;
    gap: 10px;
    /* Расстояние между иконкой и текстом */
}

.header img {
    width: 64px;
    /* Размер иконки */
    height: 64px;
}

.header h1 {
    margin: 0;
    font-size: 64px;
    font-weight: 600;
}

.header p {
    margin-top: 8px;
    color: #777;
    font-size: 16px;
}

.text {
    font-size: 24px;
    color: black;
    padding: 0px 50px 0px;
}

.text h1 {
    font-size: 48px;
    color: black;
    margin: 0;
    /* Убираем стандартные отступы */
}

.text h2 {
    font-size: 24px;
    color: black;
    margin-top: 0px;
    /* Отступ сверху под h1 */
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.content {
    flex-grow: 1;
    display: flex;
    /* Три колонки */
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 50px;
    box-sizing: border-box;
}

/* ===== КОЛОНКИ ===== */
.left-column,
.right-column,
.chat-column {
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ===== ОБЩИЕ СТИЛИ БЛОКОВ ===== */
.player-block,
.track-details,
.track-history,
.listeners-info,
.download-block,
.news-block,
.chat-column,
.chat-label,
.chat-messages-container,
.chat-input-container,
.chat-notice {
    width: 100%;
    max-width: 600px;
    font-size: 20px;
    background: #141414;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 32px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ===== ИСТОРИЯ ТРЕКОВ ===== */
.track-history {
    color: #eee;
}

.track-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-history li {
    margin-bottom: 5px;
}

/* ===== ЗАГОЛОВКИ ===== */
.label {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
}

/* ===== ТЕКУЩИЙ ТРЕК ===== */
.track-title {
    font-size: 22px;
    margin-top: 5px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.track-title.visible {
    opacity: 1;
}

/* ===== БЛОК СКАЧИВАНИЯ ===== */
.download-block {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.download-block a {
    color: #eee;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 18px;
}

.download-block a:hover {
    color: #eee;
}

/* ===== НОВОСТИ ===== */
.news-block {
    width: 100%;
    background: #141414;
    border: 1px solid #222;
    border-radius: 32px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

/* ОДНО новое правило для контейнера заголовка */
.news-label {
    position: relative;
    display: block;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Слово "Новости" остаётся как было (стили из .label переносим сюда) */
.news-label-text {
    color: #fff;
    display: inline-block;
}

/* ВТОРОЕ новое правило для ссылки "Все новости" */
.all-news-link {
    position: absolute;
    right: 0;
    top: 0;
    color: #ffcc00;
    /* или другой цвет из вашей палитры */
    text-decoration: none;
    font-size: 15px;
    font-weight: normal;
    white-space: nowrap;
}

.news-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.news-header {
    font-size: 14px;
    /* поменьше для даты и заголовка */
    color: #999;
    margin-bottom: 10px;
}

.news-title {
    font-weight: 600;
    color: #eee;
}

.news-content {
    font-size: 18px;
    /* побольше для текста новости */
    color: #eee;
}

audio {
    width: 100%;
    margin-top: 20px;
    filter: invert(90%) brightness(120%);
}

.text2 {
    font-size: 24px;
    color: black;
    padding: 0px 50px 0px;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #1d1d1d;
}


/* Заголовок чата */
.chat-label {
    display: flex;
    align-items: center;
    height: auto;
    padding: 10px 10px;
    border-radius: 12px;
    background-color: #000000;
}

.chat-label-text {
    color: #fff;
    font-size: 22px;
}

/* Контейнер для сообщений */
.chat-messages-container {
    flex-grow: 1;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid #333;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

/* Отдельное сообщение в чате */
.chat-message-time {
    font-size: 14px;
    color: #999;
    margin-right: 2px;
    font-family: monospace;
    display: inline-block;
    min-width: 70px;
}

.chat-message-text {
    color: #eee;
    display: inline;
}

/* Ввод в чате */
.chat-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px 5px;
    border-radius: 12px;
}

#chat-input {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 12px;
    color: #eee;
    font-size: 14px;
    outline: none;
}

#chat-input:focus {
    border-color: black;
}

#chat-input::placeholder {
    color: #888;
}

#chat-send-btn {
    padding: 12px 25px;
    background: black;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chat-send-btn:active {
    transform: translateY(0);
}

#chat-send-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Сообщение о загрузке */
.chat-loading {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
    margin: auto;
}

/* Полоса прокрутки для чата */
.chat-messages-container::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    .content {
        flex-wrap: wrap;
    }
    
    .chat-column {
        order: 3;
        width: 100%;
        margin-top: 20px;
    }
}