/* ==========================================================================
   RÁDIO MCJ - Interactive Audio Player & Floating Card Styling
   ========================================================================== */

.mcj-player-card {
    background: var(--mcj-bg-card);
    border: 1px solid var(--mcj-border);
    border-radius: var(--mcj-radius-lg);
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.mcj-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mcj-onair-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.mcj-onair-dot {
    width: 10px;
    height: 10px;
    background-color: var(--mcj-purple);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--mcj-purple);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.mcj-player-popup-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mcj-border);
    color: var(--mcj-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mcj-player-popup-btn:hover {
    background: var(--mcj-purple);
    color: #fff;
}

.mcj-player-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mcj-locutor-avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 18px;
}

.mcj-locutor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--mcj-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mcj-player-info h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mcj-player-info p {
    font-size: 14px;
    color: var(--mcj-text-muted);
    margin-bottom: 4px;
}

.mcj-player-time {
    font-size: 12px;
    color: var(--mcj-text-dim);
    margin-bottom: 20px;
}

/* Audio Controls Bar */
.mcj-player-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.mcj-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mcj-purple-gradient);
    color: #fff;
    font-size: 22px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: var(--mcj-transition);
}

.mcj-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.mcj-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--mcj-border);
    outline: none;
}

.mcj-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--mcj-purple);
    cursor: pointer;
}

/* Next Program Footer */
.mcj-next-program {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--mcj-border);
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.mcj-next-icon {
    color: var(--mcj-purple);
    font-size: 16px;
}

.mcj-next-info h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--mcj-text-dim);
    letter-spacing: 0.5px;
}

.mcj-next-info p {
    font-size: 13px;
    font-weight: 600;
    color: var(--mcj-text-muted);
}

.mcj-avatar-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.mcj-volume-range {
    max-width: 150px;
}

.mcj-play-btn-circle {
    width: 58px;
    height: 58px;
}

.mcj-next-icon-box {
    width: 38px;
    height: 38px;
}

/* ==========================================================================
   Topbar Compact Web Radio Player (mod_custom radioplayer override)
   ========================================================================== */

.mcj-topbar-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 10px;
    height: 48px;
    width: 100%;
    max-width: 100%;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.mcj-topbar-play-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.mcj-topbar-play-btn:hover {
    transform: scale(1.08);
    background: var(--mcj-yellow, #f59e0b);
    color: #000000;
}

.mcj-topbar-play-icon {
    line-height: 1;
    margin-left: 2px;
}

.mcj-topbar-play-btn .fa-pause,
.mcj-topbar-play-btn .fa-circle-notch {
    margin-left: 0;
}

.mcj-topbar-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.mcj-topbar-station {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a0aec0;
    letter-spacing: 0.5px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcj-topbar-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.mcj-topbar-track {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    animation: mcj-track-scroll 18s linear infinite alternate;
}

@keyframes mcj-track-scroll {
    0%, 20% { transform: translateX(0%); }
    80%, 100% { transform: translateX(calc(-100% + 160px)); }
}

.mcj-topbar-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    min-width: 75px;
}

.mcj-topbar-live {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ef4444;
    letter-spacing: 0.5px;
    line-height: 1;
}

.mcj-live-icon {
    font-size: 10px;
    animation: mcj-live-pulse 1.5s infinite;
}

@keyframes mcj-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.mcj-topbar-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #a0aec0;
}

.mcj-topbar-vol-btn {
    background: none;
    border: none;
    color: #a0aec0;
    padding: 0;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
}

.mcj-topbar-vol-btn:hover {
    color: #ffffff;
}

.mcj-topbar-vol-pct {
    font-size: 10px;
    font-weight: 600;
    min-width: 26px;
    text-align: right;
}

.mcj-topbar-vol-slider {
    width: 45px;
    height: 4px;
    accent-color: var(--mcj-yellow, #f59e0b);
    cursor: pointer;
}

/* Vinyl Disc & Album Artwork */
.mcj-topbar-disc-container {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcj-topbar-disc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111827;
    transition: transform 0.5s ease;
}

.mcj-topbar-disc.is-spinning {
    animation: mcj-disc-spin 3.5s linear infinite;
}

@keyframes mcj-disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mcj-topbar-disc-center {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
}

.mcj-topbar-disc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.mcj-topbar-disc-fallback {
    font-size: 16px;
    color: #e2e8f0;
}

@media (max-width: 576px) {
    .mcj-topbar-vol-slider {
        display: none;
    }
}

