.station-description {
    color: #fff;
    opacity: 0.72;
}

.header-logo {
    display: flex;
    align-items: center;
    pointer-events: none;
}

.header-logo-img {
    display: block;
    width: clamp(150px, 16vw, 220px);
    height: auto;
    max-height: 86px;
    object-fit: contain;
}

.player-artwork {
    padding: 0.75rem;
    border-radius: 1rem;
    background-color: transparent;
}

.player-artwork img {
    border-radius: 0.65rem;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.player-cover-image {
    animation: r100-background 60s linear infinite;
    transition: opacity 0.25s ease;
}

@keyframes r100-background {
    50% { transform: scale(2); }
}

.items-start {
    align-items: flex-start;
    margin-top: 15px;
}

.history-title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
}

.history-item {
    width: 100%;
    padding: 0.65rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.07);
}

.history-image img {
    display: block;
    border-radius: 0.55rem;
    object-fit: cover;
}

.history-meta {
    min-width: 0;
    flex: 1;
}

.history-time {
    margin-top: 0.22rem;
    font-size: 0.8rem;
    opacity: 0.68;
}

.history-loading,
.connection-status {
    color: #fff;
    opacity: 0.72;
}

.connection-status {
    min-height: 1.3em;
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    text-align: center;
}


.now-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(255, 20, 48, 0.72);
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 0, 40, 0.20), transparent 42%),
        rgba(9, 9, 9, 0.52);
    box-shadow:
        0 0 0 1px rgba(255, 0, 38, 0.10),
        0 0 18px rgba(255, 0, 38, 0.34),
        0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
}

.now-live-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: #ff002f;
    box-shadow:
        0 0 7px rgba(255, 255, 255, 0.92),
        0 0 14px rgba(255, 0, 47, 1),
        0 0 0 0 rgba(255, 0, 47, 0.88);
    animation: r100-on-air-pulse 1.35s ease-out infinite;
}

.now-live-text {
    display: inline-block;
    color: rgba(244, 244, 244, 0.92);
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.48),
        0 0 6px rgba(255, 255, 255, 0.22);
    animation: r100-on-air-text 1.65s ease-in-out infinite;
}

@keyframes r100-on-air-pulse {
    0% {
        transform: scale(0.94);
        box-shadow:
            0 0 6px rgba(255, 255, 255, 0.86),
            0 0 12px rgba(255, 0, 47, 0.95),
            0 0 0 0 rgba(255, 0, 47, 0.88);
    }
    55% {
        transform: scale(1.08);
        box-shadow:
            0 0 10px rgba(255, 255, 255, 1),
            0 0 22px rgba(255, 0, 47, 1),
            0 0 0 0.62rem rgba(255, 0, 47, 0);
    }
    100% {
        transform: scale(0.94);
        box-shadow:
            0 0 6px rgba(255, 255, 255, 0.86),
            0 0 12px rgba(255, 0, 47, 0.95),
            0 0 0 0 rgba(255, 0, 47, 0);
    }
}

@keyframes r100-on-air-text {
    0%, 100% {
        opacity: 0.68;
        color: rgba(226, 226, 226, 0.82);
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.30),
            0 0 5px rgba(255, 255, 255, 0.14);
    }
    45%, 60% {
        opacity: 0.96;
        color: rgba(250, 250, 250, 0.96);
        text-shadow:
            0 0 3px rgba(255, 255, 255, 0.66),
            0 0 8px rgba(255, 255, 255, 0.34),
            0 0 14px rgba(255, 0, 47, 0.32);
    }
}

#offcanvas-history {
    width: min(92vw, 410px);
}

.player-controller {
    justify-content: center;
}

@media (max-width: 520px) {
    .toggle-options .btn {
        font-size: 0.78rem;
    }

    .header-logo-img {
        width: 145px;
        max-height: 62px;
    }

    .now-live-badge {
        margin-bottom: 0.5rem;
        font-size: 0.65rem;
    }
}

/* R100 v6: metadados preservados e NO AR equilibrado */
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

.app {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
}

.player {
    overflow: hidden !important;
    scrollbar-width: none;
}

.player::-webkit-scrollbar,
.offcanvas::-webkit-scrollbar,
.offcanvas-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.header-logo-img {
    filter:
        drop-shadow(0 1px 1px rgba(255, 255, 255, 0.92))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.52))
        drop-shadow(0 11px 15px rgba(0, 0, 0, 0.46));
    transform: translateZ(0);
    animation: r100-logo-float 6s ease-in-out infinite;
}

@keyframes r100-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.player-artwork {
    width: min(400px, 72vw, 48dvh);
    max-width: none;
}

.offcanvas {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

/* O input nativo fica invisível, mas recebe o arrasto do rato e do toque. */
.player-range-wrapper .player-volume {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: -8px;
    bottom: auto;
    left: -8px;
    width: calc(100% + 16px);
    height: 32px;
    opacity: 0.001;
    pointer-events: auto;
    cursor: pointer;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    touch-action: none;
}

.player-range-fill,
.player-range-thumb {
    pointer-events: none;
}

.player-range-thumb {
    z-index: 2;
}

@media (max-width: 991px) {
    .player-button-volume {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-height: 650px) {
    .player {
        padding-top: calc(1rem + 66px);
        padding-bottom: 0.75rem;
    }

    .player-cover {
        gap: 0.45rem;
    }

    .player-artwork {
        width: min(330px, 68vw, 43dvh);
        padding: 0.5rem;
    }

    .now-live-badge {
        margin-bottom: 0.3rem;
        padding-top: 0.34rem;
        padding-bottom: 0.34rem;
    }

    .player-controller {
        padding-top: 0.35rem;
    }

    .connection-status {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-logo-img,
    .now-live-dot,
    .now-live-text {
        animation: none;
    }

    .now-live-text {
        opacity: 1;
    }
}
