#cfmp-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 999999;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    pointer-events: none;
}

#cfmp-bar audio {
    display: none;
}

#cfmp-bar * {
    pointer-events: auto;
}

.cfmp-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: calc(100% - 24px);
    max-width: 420px;
    background: linear-gradient(135deg, var(--cfmp-bg-light, #13284a), var(--cfmp-bg, #0b1830));
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cfmp-underline {
    display: none;
}

.cfmp-play-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfmp-play-wrap::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--cfmp-accent);
    opacity: 0.18;
}

#cfmp-play {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--cfmp-accent);
    color: var(--cfmp-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

#cfmp-play:hover { transform: scale(1.06); }
#cfmp-play:active { transform: scale(0.94); }
#cfmp-icon-play { margin-left: 2px; }

.cfmp-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cfmp-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cfmp-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfmp-live {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--cfmp-accent);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.cfmp-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cfmp-accent);
    animation: cfmp-pulse 2s infinite;
}

@keyframes cfmp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(94, 200, 248, 0.5); }
    70% { box-shadow: 0 0 0 5px rgba(94, 200, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 200, 248, 0); }
}

.cfmp-now {
    color: #7c93b8;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfmp-bars {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 22px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#cfmp-bar.is-playing .cfmp-bars { opacity: 1; }

.cfmp-bars span {
    display: block;
    width: 3px;
    background: var(--cfmp-accent);
    border-radius: 2px;
    height: 30%;
    animation: cfmp-bounce 1s ease-in-out infinite;
    animation-play-state: paused;
}

#cfmp-bar.is-playing .cfmp-bars span { animation-play-state: running; }

#cfmp-bar.cfmp-real .cfmp-bars span {
    animation: none;
    transition: height 0.1s ease;
}

.cfmp-bars span:nth-child(1) { animation-delay: 0s; }
.cfmp-bars span:nth-child(2) { animation-delay: 0.15s; }
.cfmp-bars span:nth-child(3) { animation-delay: 0.3s; }
.cfmp-bars span:nth-child(4) { animation-delay: 0.45s; }
.cfmp-bars span:nth-child(5) { animation-delay: 0.6s; }

@keyframes cfmp-bounce {
    0%, 100% { height: 25%; }
    50% { height: 100%; }
}

@media (max-width: 600px) {
    #cfmp-bar {
        height: 66px;
    }

    .cfmp-card {
        left: 8px;
        transform: none;
        width: calc(100% - 16px);
        max-width: none;
        bottom: 8px;
        padding: 8px 12px;
        gap: 10px;
    }

    .cfmp-play-wrap,
    #cfmp-play {
        width: 42px;
        height: 42px;
    }

    .cfmp-name { font-size: 13px; }
    .cfmp-now { font-size: 11px; }
}
