.audio-player {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    background: linear-gradient(135deg, #7f1010 0%, #b71c1c 45%, #d32f2f 100%);
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    z-index: 9999;
    min-height: 64px;
    border-radius: 18px;
    gap: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.audio-player::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.logo-shell {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.live-label {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Arial, sans-serif;
    letter-spacing: 0.2px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
}

.audio-player button {
    border: none;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.audio-player button:hover {
    transform: translateY(-1px);
}

#playPauseBtn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    flex-shrink: 0;
}

#playPauseBtn:hover {
    background: #1f1f1f;
}

#togglePlayer {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#togglePlayer:hover {
    background: rgba(0,0,0,0.3);
}

#volumeIcon {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

#volumeControl {
    width: 92px;
    accent-color: #f4d03f;
    background: transparent;
}

#bufferingIndicator {
    display: none;
    color: white;
    font-size: 12px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.72);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

@media (prefers-color-scheme: dark) {
    .audio-player {
        background: linear-gradient(135deg, #1f1f1f 0%, #2b2b2b 100%);
    }
}

@media (max-width: 768px) {
    .audio-player {
        left: 8px;
        right: 8px;
        bottom: 8px;
        min-height: 58px;
        padding: 8px 10px;
        gap: 10px;
        border-radius: 16px;
    }

    .logo-shell {
        width: 48px;
        height: 48px;
        padding: 5px;
        border-radius: 12px;
    }

    .live-label {
        font-size: 13px;
    }

    #playPauseBtn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    #volumeControl {
        width: 74px;
    }

    .volume-container {
        padding: 6px 8px;
        gap: 6px;
    }

    #togglePlayer {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .audio-player {
        left: 6px;
        right: 6px;
        bottom: 6px;
        min-height: 52px;
        padding: 7px 8px;
        gap: 8px;
        border-radius: 14px;
    }

    .logo-shell {
        width: 42px;
        height: 42px;
        padding: 4px;
        border-radius: 10px;
    }

    .live-label {
        font-size: 12px;
    }

    #playPauseBtn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    #volumeControl {
        width: 56px;
    }

    .volume-container {
        padding: 5px 7px;
        gap: 5px;
    }

    #volumeIcon {
        font-size: 12px;
    }

    #togglePlayer {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
}

.audio-player.minimized {
    min-height: 34px;
    padding: 6px 10px;
    justify-content: center;
}

.audio-player.minimized .logo-link,
.audio-player.minimized .live-label,
.audio-player.minimized .controls,
.audio-player.minimized #bufferingIndicator {
    display: none;
}

.audio-player.minimized #togglePlayer {
    display: inline-flex;
}