.ma-site-header {
    background: #063058;
}

#portalRadioAudio {
    display: none;
}

.ma-header-left {
    flex: 1 1 auto;
    min-width: 0;
}

.ma-header-actions {
    flex: 0 0 auto;
    margin-left: 18px;
}

.ma-radio-player {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #fff;
    font-family: 'PolySans', Arial, sans-serif;
    white-space: nowrap;
}

.ma-radio-player--desktop {
    min-width: 278px;
    height: 44px;
    padding: 4px 12px 4px 8px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 24px;
    background: rgba(3,36,67,.38);
}

.ma-radio-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 64px;
    max-height: 34px;
    overflow: hidden;
}

.ma-radio-logo {
    display: block;
    max-width: 64px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ma-radio-logo-fallback {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.ma-radio-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e84024;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(0,0,0,.18);
    transition: transform .18s ease, background-color .18s ease;
}

.ma-radio-play:hover {
    background: #f04a2d;
    transform: scale(1.04);
}

.ma-radio-play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ma-radio-play:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.ma-radio-play-icon {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
}

.ma-radio-pause-icon {
    display: none;
    width: 11px;
    height: 13px;
    border-left: 4px solid currentColor;
    border-right: 4px solid currentColor;
}

.ma-radio-play.is-playing .ma-radio-play-icon {
    display: none;
}

.ma-radio-play.is-playing .ma-radio-pause-icon {
    display: block;
}

.ma-radio-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}

.ma-radio-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.ma-radio-player.is-playing .ma-radio-live-dot {
    animation: ma-radio-live-pulse 1.35s ease-in-out infinite;
}

.ma-radio-eq {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    flex: 1 1 auto;
    min-width: 58px;
    height: 26px;
    margin: auto 0;
    gap: 2px;
    overflow: hidden;
}

.ma-radio-eq-bar {
    display: block;
    flex: 1 1 2px;
    width: 2px;
    max-width: 3px;
    height: 100%;
    border-radius: 999px;
    background: #f02bbd;
    transform: scaleY(.16);
    transform-origin: center;
    will-change: transform;
    transition: transform 70ms linear, opacity 160ms ease;
    opacity: .68;
}

/* Degradê horizontal inspirado na referência: roxo/rosa > coral > rosa/roxo. */
.ma-radio-eq-bar:nth-child(1)  { background: #c82cff; }
.ma-radio-eq-bar:nth-child(2)  { background: #d42af4; }
.ma-radio-eq-bar:nth-child(3)  { background: #e128df; }
.ma-radio-eq-bar:nth-child(4)  { background: #ed27c8; }
.ma-radio-eq-bar:nth-child(5)  { background: #f727aa; }
.ma-radio-eq-bar:nth-child(6)  { background: #ff2b8b; }
.ma-radio-eq-bar:nth-child(7)  { background: #ff326c; }
.ma-radio-eq-bar:nth-child(8)  { background: #ff3d58; }
.ma-radio-eq-bar:nth-child(9)  { background: #ff4652; }
.ma-radio-eq-bar:nth-child(10) { background: #ff3b61; }
.ma-radio-eq-bar:nth-child(11) { background: #ff2f7d; }
.ma-radio-eq-bar:nth-child(12) { background: #fa269e; }
.ma-radio-eq-bar:nth-child(13) { background: #f020bd; }
.ma-radio-eq-bar:nth-child(14) { background: #e31cda; }
.ma-radio-eq-bar:nth-child(15) { background: #d527ee; }
.ma-radio-eq-bar:nth-child(16) { background: #c333ff; }

.ma-radio-player.is-playing .ma-radio-eq-bar {
    opacity: 1;
}

.ma-radio-mobile-row {
    display: none;
}

@keyframes ma-radio-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.82); }
}

@keyframes ma-radio-wave-mobile {
    0%   { transform: scaleY(.14); }
    18%  { transform: scaleY(var(--ma-wave-a, .62)); }
    38%  { transform: scaleY(.24); }
    58%  { transform: scaleY(var(--ma-wave-b, .88)); }
    78%  { transform: scaleY(.31); }
    100% { transform: scaleY(var(--ma-wave-c, .54)); }
}

/* O mesmo waveform é usado no desktop e no mobile. */
.ma-radio-player.is-playing .ma-radio-eq-bar {
    animation-name: ma-radio-wave-mobile;
    animation-duration: var(--ma-wave-speed, .72s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transform-origin: center;
}

.ma-radio-player .ma-radio-eq-bar:nth-child(1)  { --ma-wave-a:.92; --ma-wave-b:.48; --ma-wave-c:.76; --ma-wave-speed:.61s; animation-delay:-.37s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(2)  { --ma-wave-a:.46; --ma-wave-b:.88; --ma-wave-c:.32; --ma-wave-speed:.77s; animation-delay:-.14s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(3)  { --ma-wave-a:.76; --ma-wave-b:.39; --ma-wave-c:.95; --ma-wave-speed:.68s; animation-delay:-.49s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(4)  { --ma-wave-a:.35; --ma-wave-b:.73; --ma-wave-c:.52; --ma-wave-speed:.83s; animation-delay:-.25s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(5)  { --ma-wave-a:.64; --ma-wave-b:.96; --ma-wave-c:.43; --ma-wave-speed:.57s; animation-delay:-.41s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(6)  { --ma-wave-a:.88; --ma-wave-b:.51; --ma-wave-c:.72; --ma-wave-speed:.74s; animation-delay:-.19s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(7)  { --ma-wave-a:.42; --ma-wave-b:.83; --ma-wave-c:.61; --ma-wave-speed:.64s; animation-delay:-.52s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(8)  { --ma-wave-a:.98; --ma-wave-b:.44; --ma-wave-c:.79; --ma-wave-speed:.79s; animation-delay:-.31s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(9)  { --ma-wave-a:.55; --ma-wave-b:.91; --ma-wave-c:.37; --ma-wave-speed:.59s; animation-delay:-.46s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(10) { --ma-wave-a:.81; --ma-wave-b:.33; --ma-wave-c:.93; --ma-wave-speed:.71s; animation-delay:-.11s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(11) { --ma-wave-a:.38; --ma-wave-b:.78; --ma-wave-c:.56; --ma-wave-speed:.66s; animation-delay:-.35s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(12) { --ma-wave-a:.73; --ma-wave-b:.94; --ma-wave-c:.45; --ma-wave-speed:.81s; animation-delay:-.23s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(13) { --ma-wave-a:.91; --ma-wave-b:.49; --ma-wave-c:.69; --ma-wave-speed:.62s; animation-delay:-.54s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(14) { --ma-wave-a:.48; --ma-wave-b:.86; --ma-wave-c:.34; --ma-wave-speed:.76s; animation-delay:-.17s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(15) { --ma-wave-a:.84; --ma-wave-b:.41; --ma-wave-c:.97; --ma-wave-speed:.69s; animation-delay:-.43s; }
.ma-radio-player .ma-radio-eq-bar:nth-child(16) { --ma-wave-a:.57; --ma-wave-b:.93; --ma-wave-c:.51; --ma-wave-speed:.58s; animation-delay:-.28s; }

@media (max-width: 1199px) and (min-width: 1024px) {
    .ma-radio-player--desktop {
        min-width: 228px;
        gap: 7px;
        padding-right: 8px;
    }
    .ma-radio-brand {
        width: 48px;
    }
    .ma-radio-logo {
        max-width: 48px;
    }
    .ma-radio-eq {
        min-width: 48px;
        gap: 1.5px;
    }
}

@media (max-width: 1023px) {
    .ma-radio-player--desktop {
        display: none;
    }

    .ma-radio-mobile-row {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 4px 14px;
        border-bottom: 1px solid rgba(255,255,255,.12);
        background: #052b50;
    }

    .ma-radio-player--mobile {
        width: calc(100% - 48px);
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        gap: 10px;
    }

    .ma-radio-player--mobile .ma-radio-brand {
        width: 70px;
    }

    .ma-radio-player--mobile .ma-radio-logo {
        max-width: 70px;
        max-height: 32px;
    }

    #menuOverlay {
        top: 7rem !important;
    }

    #sidebarMenu {
        top: 7rem !important;
        height: calc(100vh - 7rem) !important;
    }

    .ma-header-actions {
        margin-left: 8px;
    }
}

@media (max-width: 420px) {
    .ma-radio-mobile-row {
        padding-left: 8px;
        padding-right: 8px;
    }
    .ma-radio-player--mobile {
        gap: 7px;
    }
    .ma-radio-player--mobile .ma-radio-brand {
        width: 58px;
    }
    .ma-radio-player--mobile .ma-radio-logo {
        max-width: 58px;
    }
    .ma-radio-live {
        font-size: 9px;
    }

    .ma-radio-eq {
        min-width: 52px;
        gap: 1.5px;
    }
}

html.ma-pjax-loading main {
    opacity: .58;
    transition: opacity .12s ease;
}

@media (prefers-reduced-motion: reduce) {
    .ma-radio-live-dot,
    .ma-radio-play {
        animation: none !important;
        transition: none !important;
    }
}
