#vanta-birds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    pointer-events: none; 
}

.u-section-1, body {
    background-color: transparent !important;
    background-image: none !important;
}

.custom-footer-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.custom-footer-link:hover {
    color: #d92a58 !important;
}

.footer-row {
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block; 
}

.footer-icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    margin-right: 3px;
    fill: currentColor;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Основной контейнер плеера (верхний отступ 50px, нижний минимальный) */
#muz-player-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 0px auto !important;
    position: relative;
    padding: 10px 10px 0px 10px !important;
    background: transparent;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Нижняя панель управления с точным центрированием Play через Grid */
.player-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Укрупненный бегунок ползунка громкости */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e91e63;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e91e63;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

/* ДВУХСТРОЧНЫЙ ЦЕНТРИРОВАННЫЙ БЛОК ТЕКСТА В ПЛЕЕРЕ */
.track-title-responsive {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 4px;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
}

/* первая строка: Title / Спонсор (Крупный розовый заголовок) */
.player-title-line {
    font-size: clamp(16px, 2.4vw, 22px);
    font-weight: 700;
    color: #d92a58;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    word-break: break-word;
}

/* вторая строка: Artist / Описание (Белый/серый подзаголовок меньшим кеглем) */
.player-artist-line {
    font-size: clamp(13px, 1.8vw, 16px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
    word-break: break-word;
}

/* Ссылка спонсора внутри плеера */
.track-title-responsive a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: inherit !important;
}

.track-title-responsive a:hover .player-title-line {
    color: #ff007f !important;
}

.team-link {
    color: #d92a58 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    transition: opacity 0.2s ease;
}

.team-link:hover {
    opacity: 0.8;
}

@media (max-width: 600px) {
    #player-cover {
        width: 220px !important;
        height: 220px !important;
    }
    .track-title-responsive {
        white-space: normal !important;
    }
    .player-bottom-bar {
        padding: 0 5px !important;
    }
}

/* Istoric piese */
.history-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.history-card {
    display: flex;
    align-items: center;
    background: rgba(18, 18, 22, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.history-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 42, 88, 0.5);
}

.history-cover {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.history-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 15px;
}

.history-song {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-artist {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    color: #d92a58;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(217, 42, 88, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

/* Promo section */
.muz-promo-section {
    position: relative;
    z-index: 2;
    padding: 30px 15px 40px 15px;
    text-align: center;
    background: transparent;
}

.muz-promo-container {
    max-width: 900px;
    margin: 0 auto;
}

.muz-app-title {
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.muz-apps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.muz-app-btn img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.muz-app-btn:hover img {
    transform: scale(1.05);
}

.muz-calc-wrapper {
    margin-bottom: 18px;
}

.muz-calc-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d92a58, #ff007f);
    color: #ffffff !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(217, 42, 88, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: pulse-pink 2s infinite;
}

.muz-calc-btn:hover {
    background: linear-gradient(135deg, #ff007f, #d92a58);
    box-shadow: 0 8px 25px rgba(217, 42, 88, 0.7);
    transform: translateY(-2px);
}

@keyframes pulse-pink {
    0% { box-shadow: 0 0 0 0 rgba(217, 42, 88, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(217, 42, 88, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 42, 88, 0); }
}

.muz-promo-text {
    color: #cccccc;
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 650px;
    line-height: 1.4;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ УМЕНЬШЕНИЯ ОТСТУПА И СОХРАНЕНИЯ РАЗМЕРА ПЛЕЕРА */
@media (max-width: 768px) {
    #muz-player-wrapper {
        margin-top: 50px !important;
        margin-bottom: 0px !important;
        padding-top: 10px !important;
        padding-bottom: 0px !important;
    }

    /* Подтягиваем заголовок истории вверх принудительно */
    .history-section,
    .ce-piesa-section,
    div[class*="u-section-"] + div {
        margin-top: 0px !important;
        padding-top: 5px !important;
    }

    .history-title-mobile {
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
    }

    .footer-row {
        font-size: 11px;
        white-space: normal;
        padding: 0 5px;
    }

    .history-card { padding: 10px 12px; }
    .history-cover { width: 52px; height: 52px; margin-right: 12px; }
    .history-info { padding-right: 5px; }
    .history-song { font-size: 0.92rem; margin-bottom: 2px; }
    .history-artist { font-size: 0.82rem; }
    .history-meta { font-size: 0.75rem; padding: 4px 8px; }
    .muz-app-title { font-size: 1.1rem; }
    .muz-apps-row { gap: 12px; }
    .muz-app-btn img { height: 40px; }
    .muz-calc-btn { font-size: 0.95rem; padding: 12px 20px; width: 90%; box-sizing: border-box; }
    .muz-promo-text { font-size: 0.85rem; padding: 0 10px; }
}