/* =========================================
   VA-53 RADIO STYLES
   CLEAN FIXED VERSION
   ========================================= */

/* 1. БАЗОВЫЕ СТИЛИ СТРАНИЦЫ */

body.theme-dark {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
}

/* 2. ШАПКА */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.logo-center {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.header-icon:hover {
    opacity: 1;
}

/* 3. КАРТОЧКА ПЛЕЕРА */

.release-card.radio-player-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 0 auto;
    box-sizing: border-box;
}

/* 4. ОБЛОЖКА */

.cover-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#radio-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Затемнение при паузе */

.radio-paused #radio-cover-img {
    filter: grayscale(1) brightness(0.4);
    transform: scale(0.95);
}

/* Индикатор LIVE */

.live-indicator-static {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #8affc6;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-weight: bold;
    z-index: 10;
}

/* 5. ТЕКСТ ИНФО-БЛОКА */

.info-block {
    padding: 0;
    margin-top: 10px;
}

.track-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
    min-height: 2rem;
    text-transform: none !important;
}

.artist-name {
    font-size: 0.9rem;
    color: #8affc6;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: none !important;
}

.description {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 6. КНОПКА PLAY / PAUSE */

.controls-area {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

#btn-radio-play {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(138, 255, 198, 0.4);
    color: #8affc6;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    outline: none;
}

#btn-radio-play:hover {
    background: #8affc6;
    color: #000;
    box-shadow: 0 0 20px rgba(138, 255, 198, 0.3);
    transform: scale(1.05);
}

#btn-radio-play svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 7. БЛОК КНОПОК TELEGRAM И HOME */

/* На компьютере кнопки растягиваются
   до внутренних краёв карточки */

.internal-buttons {
    width: calc(100% + 40px);
    margin: 10px 0 0 -20px;
    padding: 20px 0 0;
    box-sizing: border-box;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Сами кнопки */

.internal-buttons .btn-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 15px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    text-decoration: none;
    color: #ccc;

    transition: all 0.3s ease;
    cursor: pointer;
}

.internal-buttons .btn-platform:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8affc6;
    color: #fff;
}

/* Иконки слева */

.internal-buttons .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    margin-right: 10px;
    flex-shrink: 0;
}

.internal-buttons .icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

/* Названия кнопок */

.internal-buttons .text {
    flex-grow: 1;
    min-width: 0;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-align: left;
}

/* Действия справа */

.internal-buttons .action {
    font-size: 11px;
    text-transform: uppercase;

    color: #8affc6;
    font-weight: 700;
    letter-spacing: 1px;

    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 8. ФУТЕР */

.site-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #666;
    padding-bottom: 20px;
}

/* =========================================
   9. МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================= */

@media screen and (max-width: 1024px) {
    .site-header { display: none; }

    /* Карточка */

    .release-card.radio-player-card {
        padding-left: 15px !important;
        padding-right: 15px !important;

        margin: 0 auto !important;
        width: calc(100% - 30px) !important;

        box-sizing: border-box;
    }

    /* Блок кнопок */

    .internal-buttons {
        width: calc(100% + 30px) !important;
        max-width: none !important;

        margin: 10px 0 0 -15px !important;
        padding: 20px 0 0 !important;

        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Кнопки */

    .internal-buttons .btn-platform {
        width: 100% !important;
        max-width: none !important;

        box-sizing: border-box;
        padding: 12px 15px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    /* Иконки */

    .internal-buttons .icon-wrap {
        width: 24px;
        min-width: 24px;
        height: 24px;

        margin-right: 8px !important;
        flex-shrink: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .internal-buttons .icon-wrap img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    /* Названия */

    .internal-buttons .text {
        flex-grow: 1;
        min-width: 0;

        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        text-align: left;
        margin: 0 !important;
    }

    /* Действия справа */

    .internal-buttons .action {
        font-size: 11px;
        font-weight: 700;

        letter-spacing: 1px;
        color: #8affc6;

        margin-left: 10px;
        white-space: nowrap;

        text-align: right;
        flex-shrink: 0;
    }
}

/* =========================================
   10. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
   ========================================= */

@media screen and (max-width: 400px) {

    .release-card.radio-player-card {
        padding-left: 10px !important;
        padding-right: 10px !important;

        width: calc(100% - 20px) !important;
    }

    .internal-buttons {
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
    }

    .internal-buttons .btn-platform {
        padding: 10px 12px !important;
    }

    .internal-buttons .icon-wrap {
        margin-right: 6px !important;
    }

    .internal-buttons .text {
        font-size: 12px;
    }

    .internal-buttons .action {
        font-size: 10px;
    }
}

/* Анимация спиннера загрузки */
.spinner-icon {
    width: 24px;
    height: 24px;
    color: #fff; /* Цвет линии спиннера */
}

.btn-control-simple.is-loading {
    cursor: wait; /* Курсор ожидания */
    opacity: 0.7; /* Чуть затемняем кнопку во время загрузки */
    border-color: #555;
}

/* =========================================
   ФИКС РЕГИСТРА ДЛЯ ЛОГОТИПА В ШАПЕ РАДИО
   ========================================= */

/* Отключаем принудительный капс для текста "NeyRoДЕД" в центре шапки */
.site-header .logo-center {
    text-transform: none !important; /* Разрешаем смешанный регистр */
}