:root {
    --live-violet: #35116f;
    --live-indigo: #102b78;
    --live-orange: #ff7b17;
    --live-panel: rgba(5, 20, 62, .72);
}

.live-page {
    background: #07183f;
}

.live-main {
    overflow: hidden;
}

.live-stage {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 78px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 52% 26%, rgba(44, 78, 232, .46), transparent 55%),
        radial-gradient(ellipse at 101% 94%, rgba(112, 54, 139, .65), transparent 58%),
        linear-gradient(115deg, #10185e 0%, #152990 49%, #291268 100%);
}

.live-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .11;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.4' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

.live-site-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.live-site-ribbons {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .8;
}

.live-site-halo {
    position: absolute;
    top: -390px;
    left: -380px;
    width: 680px;
    height: 680px;
    border: 80px solid rgba(55, 85, 231, .1);
    border-radius: 50%;
}

.live-site-star {
    position: absolute;
    width: 19px;
    height: 19px;
    color: var(--yellow);
    opacity: .8;
}

.live-site-star::before,
.live-site-star::after {
    content: "";
    position: absolute;
    border-radius: 10px;
    background: currentColor;
}

.live-site-star::before {
    left: 8px;
    width: 2px;
    height: 19px;
}

.live-site-star::after {
    top: 8px;
    width: 19px;
    height: 2px;
}

.live-site-star-one {
    top: 23%;
    left: 50%;
    transform: rotate(16deg);
}

.live-site-star-two {
    right: 5.5%;
    bottom: 21%;
    opacity: .5;
    transform: scale(.55) rotate(16deg);
}

.live-ambient {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 0;
    height: 0;
    pointer-events: none;
}

.live-wave-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 18rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 179, 91, .2);
    border-radius: 50%;
    opacity: .7;
    transform: translate(-50%, -50%) scale(var(--ring-scale));
}

.live-wave-ring-1 { --ring-scale: .72; }
.live-wave-ring-2 { --ring-scale: 1.22; }
.live-wave-ring-3 { --ring-scale: 1.72; }
.live-wave-ring-4 { --ring-scale: 2.22; }
.live-wave-ring-5 { --ring-scale: 2.72; }

.live-stage.is-playing .live-wave-ring {
    animation: live-ring-broadcast 3.8s cubic-bezier(.22, .61, .36, 1) infinite;
}

.live-stage.is-playing .live-wave-ring-2 { animation-delay: -.76s; }
.live-stage.is-playing .live-wave-ring-3 { animation-delay: -1.52s; }
.live-stage.is-playing .live-wave-ring-4 { animation-delay: -2.28s; }
.live-stage.is-playing .live-wave-ring-5 { animation-delay: -3.04s; }

@keyframes live-ring-broadcast {
    0% { opacity: .12; transform: translate(-50%, -50%) scale(var(--ring-scale)); }
    42% { opacity: .62; }
    100% { opacity: .08; transform: translate(-50%, -50%) scale(calc(var(--ring-scale) + .22)); }
}

.live-stage-inner {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: calc(100svh - 78px);
    padding-top: 28px;
    padding-bottom: 30px;
}

.live-toolbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(240px, .95fr) minmax(210px, .7fr) minmax(240px, .95fr);
    align-items: center;
    gap: 42px;
    margin-bottom: 18px;
}

.live-station-id,
.live-whatsapp {
    display: inline-flex;
    align-items: center;
}

.live-station-id {
    grid-column: 1;
    justify-self: end;
    gap: 11px;
}

.live-status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #ff3b4f;
    box-shadow: 0 0 0 6px rgba(255, 59, 79, .14);
}

.live-station-id span:last-child,
.live-whatsapp span {
    display: grid;
    gap: 2px;
}

.live-station-id strong,
.live-whatsapp strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.live-station-id small,
.live-whatsapp small {
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    line-height: 1.2;
}

.live-whatsapp {
    grid-column: 3;
    justify-self: start;
    gap: 10px;
    min-height: 48px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.live-whatsapp:hover,
.live-whatsapp:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.live-whatsapp svg {
    width: 25px;
    height: 25px;
}

.live-player-layout {
    display: grid;
    grid-template-columns: minmax(240px, .95fr) minmax(210px, .7fr) minmax(240px, .95fr);
    align-items: start;
    gap: 42px;
}

.live-track,
.live-program {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.live-track {
    display: grid;
    justify-items: start;
}

.live-cover {
    position: relative;
    width: min(100%, 230px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(4, 16, 53, .78);
    box-shadow: 0 28px 72px rgba(0, 8, 34, .38);
}

.live-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: inherit;
    pointer-events: none;
}

.live-cover img {
    width: 100%;
    height: 100%;
    padding: 18%;
    object-fit: contain;
    background: linear-gradient(145deg, rgba(13, 75, 160, .72), rgba(4, 16, 53, .92));
    transition: opacity .25s ease;
}

.live-cover.is-track img {
    padding: 0;
    object-fit: cover;
    background: #07183f;
}

.live-cover.is-track > span { display: none; }

.live-cover > span {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
}

.live-track-copy > span,
.live-program-copy > span,
.live-control-label {
    color: #ffb258;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-track-copy {
    display: grid;
    width: min(100%, 230px);
    min-width: 0;
    margin-top: 18px;
}

.live-track-copy[hidden] { display: none; }

.live-track-copy h1 {
    max-width: 100%;
    margin: 5px 0 3px;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.live-track-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.live-control {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    align-self: center;
    text-align: center;
}

.live-play-origin {
    position: relative;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 112px;
    aspect-ratio: 1;
    margin-bottom: 18px;
}

.live-play {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 50%;
    color: #08235f;
    background: var(--yellow);
    box-shadow: 0 20px 48px rgba(255, 126, 0, .32);
    transition: transform .2s ease, box-shadow .2s ease;
}

.live-play:hover,
.live-play:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 24px 56px rgba(255, 126, 0, .46);
}

.live-play .play-mark {
    margin-left: 7px;
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 22px;
}

.live-control strong {
    margin-top: 4px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.live-control small {
    margin-top: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
}

.live-feedback {
    margin-top: 18px;
}

.live-feedback .feedback-actions {
    justify-content: center;
    gap: 20px;
}

.live-feedback .feedback-button {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 21px 12px;
    gap: 1px;
    width: 52px;
    height: 52px;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.live-feedback .feedback-button svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke-width: 1.4;
}

.live-feedback .feedback-button strong {
    min-width: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    line-height: 12px;
    font-variant-numeric: tabular-nums;
}

.live-feedback .feedback-button.like {
    color: #36d982;
}

.live-feedback .feedback-button.dislike {
    color: #ff5873;
}

.live-feedback .feedback-button[aria-pressed="true"] {
    box-shadow: inset 0 0 0 2px currentColor;
}

.live-feedback .feedback-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.live-stage.is-playing .live-control small::after {
    content: "Ouvindo agora";
}

.live-stage.is-playing .live-control small {
    font-size: 0;
}

.live-stage.is-playing .live-control small::after {
    font-size: 10px;
}

.live-program {
    justify-self: end;
    width: min(100%, 230px);
}

.live-program-visual {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #061741;
    box-shadow: 0 28px 72px rgba(0, 8, 34, .34);
}

.live-program-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: inherit;
    pointer-events: none;
}

.live-program-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.live-program-host {
    object-fit: cover;
    object-position: center top;
    animation: live-host-cycle 15s ease-in-out infinite;
}

.live-program-host.is-station-logo {
    padding: 15%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(145deg, #0c3d94, #061741);
}

.live-program-art {
    padding: 4%;
    object-fit: contain;
    background: linear-gradient(145deg, #0c3d94, #061741);
    animation: live-art-cycle 15s ease-in-out infinite;
}

@keyframes live-host-cycle {
    0%, 64% { opacity: 1; transform: scale(1); }
    66.667%, 97.333% { opacity: 0; transform: scale(1.025); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes live-art-cycle {
    0%, 64% { opacity: 0; transform: scale(1.025); }
    66.667%, 97.333% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.025); }
}

.live-program-copy {
    display: grid;
    gap: 4px;
    height: 62px;
    margin-top: 16px;
    overflow: hidden;
}

.live-program-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-program-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-program-progress {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    margin: 20px auto 0;
    padding: 14px 20px 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: var(--live-panel);
    box-shadow: 0 18px 44px rgba(0, 8, 34, .24);
    font-variant-numeric: tabular-nums;
}

.live-progress-heading,
.live-progress-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.live-progress-heading {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-progress-track {
    position: relative;
    height: 8px;
    margin: 28px 0 10px;
    border-radius: 999px;
    background-color: rgba(236, 240, 246, .18);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, .18) 7px, rgba(194, 204, 218, .08) 7px, rgba(194, 204, 218, .08) 14px);
    background-size: 20px 20px;
    animation: live-progress-flow 1.25s linear infinite;
}

.live-progress-track [data-progress-bar] {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--yellow), var(--live-orange));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .8s linear;
}

.live-progress-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(8px, var(--program-progress, 0%), calc(100% - 8px));
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--live-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
    transform: translate(-50%, -50%);
    transition: left .8s linear;
}

.live-progress-marker [data-progress-percent] {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    min-width: 36px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #09215a;
    background: var(--yellow);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transform: translateX(-50%);
}

.live-progress-details {
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    font-weight: 500;
}

@keyframes live-progress-flow {
    to { background-position: 20px 0; }
}

.live-page .site-footer {
    margin-top: 0;
}

@media (max-width: 900px) {
    .live-stage-inner {
        padding-top: 42px;
        padding-bottom: 54px;
    }

    .live-toolbar {
        grid-template-columns: minmax(190px, 1fr) 150px minmax(190px, 1fr);
        gap: 24px;
    }

    .live-player-layout {
        grid-template-columns: minmax(190px, 1fr) 150px minmax(190px, 1fr);
        gap: 24px;
    }

    .live-play {
        width: 100%;
    }

    .live-play-origin {
        width: 92px;
    }
}

@media (max-width: 700px) {
    .live-stage-inner {
        min-height: auto;
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .live-toolbar {
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
        margin-bottom: 30px;
    }

    .live-whatsapp {
        grid-column: auto;
    }

    .live-station-id {
        display: none;
    }

    .live-player-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "control"
            "track"
            "program";
        gap: 30px;
    }

    .live-track {
        grid-area: track;
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: center;
        gap: 18px;
        justify-items: stretch;
        padding-bottom: 0;
    }

    .live-control {
        grid-area: control;
        justify-self: center;
        width: min(100%, 180px);
    }

    .live-program {
        grid-area: program;
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: center;
        gap: 18px;
        justify-self: stretch;
        width: 100%;
    }

    .live-program-copy {
        margin-top: 0;
    }

    .live-cover {
        width: 116px;
    }

    .live-track-copy {
        width: 100%;
        margin-top: 0;
    }

    .live-track-copy h1 {
        font-size: 19px;
    }

    .live-play {
        width: 100%;
    }

    .live-play-origin {
        width: 82px;
    }

    .live-control strong {
        font-size: 19px;
    }

    .live-program-progress {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .live-toolbar {
        display: flex;
        gap: 16px;
    }

    .live-whatsapp {
        justify-content: center;
        width: 100%;
    }

    .live-player-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .live-play {
        width: 100%;
    }

    .live-play-origin {
        width: 82px;
        margin-bottom: 12px;
    }

    .live-track {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
    }

    .live-cover {
        width: 92px;
    }

    .live-cover > span {
        right: 10px;
        bottom: 9px;
        font-size: 10px;
    }

    .live-track-copy h1 {
        font-size: 17px;
    }

    .live-track-copy p {
        font-size: 12px;
    }

    .live-program {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
    }

    .live-feedback {
        margin-top: 14px;
    }

    .live-feedback .feedback-actions {
        gap: 6px;
    }

    .live-feedback .feedback-button {
        grid-template-rows: 15px 9px;
        width: 35px;
        height: 35px;
        padding: 4px 3px;
    }

    .live-feedback .feedback-button svg {
        width: 15px;
        height: 15px;
    }

    .live-feedback .feedback-button strong {
        font-size: 8px;
        line-height: 9px;
    }

    .live-program-copy strong {
        font-size: 17px;
    }

    .live-program-progress {
        padding: 16px 14px 15px;
    }

    .live-progress-heading,
    .live-progress-details {
        gap: 10px;
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-wave-ring,
    .live-program-host,
    .live-program-art,
    .live-progress-track {
        animation: none;
    }

    .live-program-art {
        display: none;
    }

    .live-progress-track [data-progress-bar],
    .live-progress-marker {
        transition: none;
    }
}
