/* ===== FONTE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

@keyframes lknwp-radio-shake {
    0% {
        transform: translate(0, 0) scale(1);
    }

    5% {
        transform: translate(-2px, 2px) scale(1.02);
    }

    10% {
        transform: translate(-4px, -2px) scale(1.04);
    }

    15% {
        transform: translate(4px, 2px) scale(1.02);
    }

    20% {
        transform: translate(-2px, -4px) scale(1.04);
    }

    25% {
        transform: translate(2px, 4px) scale(1.02);
    }

    30% {
        transform: translate(-4px, 2px) scale(1.04);
    }

    35% {
        transform: translate(4px, -2px) scale(1.02);
    }

    40% {
        transform: translate(-2px, 4px) scale(1.04);
    }

    45% {
        transform: translate(2px, -4px) scale(1.02);
    }

    50% {
        transform: translate(0, 0) scale(1);
    }

    60% {
        transform: translate(0, 0) scale(1);
    }

    70% {
        transform: translate(0, 0) scale(1);
    }

    80% {
        transform: translate(0, 0) scale(1);
    }

    90% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.lknwp-radio-shake {
    animation: lknwp-radio-shake 2s infinite linear;
}

#lknwp-radio-volume-value {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateX(-50%);
    transition: left 0.1s, opacity 0.2s;
    opacity: 0;
    display: none;
}

#lknwp-radio-custom-player {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    /* Mesmo degradê da lista de rádios (.lrt-radio-wrap) para manter o layout das cores. */
    background: radial-gradient(120% 80% at 15% -10%, #16123E 0%, #0B0925 40%, #080720 100%) !important;
    color: var(--lkn-text) !important;
}

#lknwp-radio-play-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.5) !important;
    outline: none;
}

#lknwp-radio-volume {
    -webkit-appearance: auto !important;
    accent-color: var(--lkn-accent) !important;
    cursor: grab !important;
}

#lknwp-radio-volume:hover {
    accent-color: var(--lkn-accent-light) !important;
}

#lknwp-radio-volume:active {
    cursor: grabbing !important;
}

/* ===== PLAYER WRAPPER ===== */
.lkp-player-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin: 32px auto;
    max-width: 800px;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* ===== PLAYER CONTAINER ===== */
.lkp-player-container {
    position: relative;
    flex: 0 0 380px;
    /* Largura fixa para manter o player centralizado */
    padding: 40px 18px;
    /* Mesmo degradê da lista de rádios (.lrt-radio-wrap). */
    background: radial-gradient(120% 80% at 15% -10%, #16123E 0%, #0B0925 40%, #080720 100%) !important;
    border: 1px solid var(--lkn-glass-border) !important;
    border-radius: 18px;
    box-shadow: var(--lkn-shadow), 0 0 0 1px rgba(124, 58, 237, 0.08) inset;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* Aurora violeta de fundo */
.lkp-player-container::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(124, 58, 237, 0.5), rgba(217, 70, 239, 0.2) 55%, transparent 100%);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

/* ===== SHARE SECTION ===== */
.lkp-share-section {
    position: absolute;
    top: 50%;
    right: 6%;
    /* Posicionado à direita do botão de play */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    /* Acima dos outros elementos */
}

.lkp-share-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    line-height: 1 !important;
    text-transform: none !important;
    background: var(--lkn-glass-bg-strong) !important;
    border: 1px solid var(--lkn-glass-border) !important;
    border-radius: 8px !important;
    color: var(--lkn-text-soft) !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lkp-share-btn:hover {
    background: var(--lkn-gradient-primary) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--lkn-glow) !important;
}

.lkp-share-btn:active {
    transform: translateY(0);
}

.lkp-share-btn svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto;
    pointer-events: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .lkp-player-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 16px;
    }

    .lkp-player-container {
        flex: none;
        width: 100%;
        max-width: 380px;
    }

    .lkp-share-section {
        right: 4%;
    }
}

/* ===== WARNING MESSAGE ===== */
.lkp-warning {
    background: rgba(251, 191, 36, 0.12) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    color: #FCD34D !important;
    padding: 14px 16px;
    border-radius: 9px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* ===== HEADER SECTION ===== */
.lkp-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0px;
    padding: 0px 20px;
    box-sizing: border-box;
    width: 100%;
}

.lkp-img-parent {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent !important;
    box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.3), var(--lkn-glow) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lkn-brand-900) !important;
}

.lkp-station-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lkp-station-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--lkn-text);
    text-align: left;
    line-height: 1.2;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* ===== AUDIO ELEMENT ===== */
.lkp-audio {
    display: none;
}

/* ===== PLAY BUTTON ===== */
.lkp-play-btn-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lkp-play-btn-wrap .lkp-play-btn {
    width: 158px !important;
    height: 158px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--lkn-gradient-primary) !important;
    border: 3px solid rgba(255, 255, 255, 0.22) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    /* Sem !important para não bloquear a animação de pulso (keyframes). */
    box-shadow: var(--lkn-glow), 0 10px 30px rgba(5, 2, 15, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Bola branca central com o ícone play/pause escuro */
.lkp-play-btn-wrap .lkp-play-btn .lkp-play-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 104px !important;
    height: 104px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 16px rgba(5, 2, 15, 0.25);
    line-height: 0 !important;
    pointer-events: none;
}

.lkp-play-btn-wrap .lkp-play-btn .lkp-play-icon svg {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
}

/* Neutraliza os pseudo-elementos que o tema injeta em todo <button> */
.lkp-share-btn::before,
.lkp-share-btn::after,
.lkp-play-btn:not(.lkp-play-btn--loading)::after {
    content: none !important;
}

/* Hover para Play (anel verde) */
.lkp-play-btn:not(.lkp-play-btn--playing):hover {
    background: linear-gradient(135deg, var(--lkn-success-dark) 0%, var(--lkn-success) 100%) !important;
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.35), 0 6px 32px rgba(46, 204, 113, 0.45) !important;
    transform: scale(1.05);
}

/* Hover para Pause (vermelho) */
.lkp-play-btn.lkp-play-btn--playing:hover {
    background: linear-gradient(135deg, var(--lkn-secondary-red-6) 0%, var(--lkn-secondary-red-5) 100%) !important;
    box-shadow: 0 6px 32px rgba(231, 76, 60, 0.45) !important;
    transform: scale(1.05);
}

/* Animação de clique - efeito ripple */
.lkp-play-btn:active {
    transform: scale(0.95);
}

.lkp-play-btn-wrap .lkp-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35) !important;
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lkp-play-btn-wrap .lkp-play-btn.lkp-play-btn--clicked::before {
    width: 220px;
    height: 220px;
}

/* Glow pulsante enquanto toca */
@keyframes lkp-glow-pulse {

    0%,
    100% {
        box-shadow: var(--lkn-glow), 0 10px 30px rgba(5, 2, 15, 0.5);
    }

    50% {
        box-shadow: var(--lkn-glow-strong), 0 10px 34px rgba(217, 70, 239, 0.5);
    }
}

.lkp-play-btn.lkp-play-btn--playing {
    animation: lkp-glow-pulse 2.4s ease-in-out infinite;
}

/* Animação de loading/spinning */
.lkp-play-btn.lkp-play-btn--loading {
    pointer-events: none;
    border: 3px solid rgba(255, 255, 255, 0.12) !important;
}

.lkp-play-btn-wrap .lkp-play-btn.lkp-play-btn--loading::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    opacity: 1;
    border: 3px solid transparent;
    border-top: 3px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    animation: lkp-spin 1s linear infinite;
}

@keyframes lkp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== CURRENT SONG SECTION ===== */
.lkp-current-song-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 15px;
    padding: 0px 16px;
    box-sizing: border-box;
    width: 100%;
}

.lkp-current-song-block-hidden {
    display: none !important;
}

.lkp-album-img {
    width: 60px;
    height: 60px;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: var(--lkn-shadow-soft) !important;
    border: 1px solid var(--lkn-glass-border) !important;
    background: var(--lkn-brand-900) !important;
    display: none;
    background-size: cover;
    background-position: center;
}

.lkp-song-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 100px;
}

.lkp-artist {
    font-size: small !important;
    color: var(--lkn-accent-light) !important;
    margin-bottom: 3px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.lkp-current-song {
    font-size: small !important;
    color: var(--lkn-text) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.lkp-station-stats {
    font-size: 13px;
    color: var(--lkn-text-muted) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.9;
    display: none;
    /* Oculto por padrão, mostrado via JS quando há dados */
}

/* ===== VOLUME CONTROL ===== */
.lkp-volume-section {
    margin-top: 26px;
    width: 100%;
    text-align: center;
    position: relative;
}

.lkp-volume-controls {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Linha do volume: botão de mute + slider */
.lkp-v2__play .lkp-volume-row,
.lkp-player-wrapper.lkp-v2 .lkp-volume-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.lkp-volume-row .lkp-volume-controls {
    flex: 1 1 auto;
    min-width: 0;
}

.lkp-mute-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--lkn-text-soft) !important;
    cursor: pointer;
    line-height: 0 !important;
    transition: color 0.2s ease;
}

.lkp-mute-btn:hover {
    color: #fff !important;
}

.lkp-mute-btn.is-muted {
    color: var(--lkn-accent-light) !important;
}

.lkp-mute-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.lkp-mute-btn .lkp-mute-icon-off {
    display: none;
}

.lkp-mute-btn.is-muted .lkp-mute-icon-on {
    display: none;
}

.lkp-mute-btn.is-muted .lkp-mute-icon-off {
    display: block;
}

.lkp-volume-slider {
    width: 90%;
    background: transparent;
    outline: none !important;
}

.lkp-volume-display {
    position: absolute;
    top: -30px;
    margin-top: 2px;
    font-size: 14px;
    color: var(--lkn-text) !important;
    background: var(--lkn-glass-bg-strong) !important;
    border: 1px solid var(--lkn-glass-border) !important;
    padding: 2px 10px;
    border-radius: 6px;
    box-shadow: var(--lkn-shadow-soft) !important;
    display: inline-block;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

/* ===== ERROR MESSAGE ===== */
.lkp-player-error {
    margin-top: 18px;
    color: #FDA4AF !important;
    background: rgba(244, 63, 94, 0.12) !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
    padding: 10px 16px;
    border-radius: 9px;
    font-weight: 600;
    text-align: center;
}

/* ===== RADIO ERROR MESSAGE ===== */
.lkp-radio-error {
    max-width: 360px;
    margin: 32px auto;
    padding: 28px 20px;
    background: var(--lkn-gradient-deep) !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    border-radius: 16px;
    box-shadow: var(--lkn-shadow) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.lkp-radio-error h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #FDA4AF !important;
    font-weight: 700;
}

.lkp-radio-error p {
    margin: 0;
    font-size: 14px;
    color: var(--lkn-text-soft) !important;
    line-height: 1.5;
}

/* ===== VOLUME VALUE DISPLAY STATES ===== */
.lkp-volume-display.lkp-volume-display--hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.lkp-volume-display.lkp-volume-display--visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease;
}

/* ===== PLAY SECTION COM VISUALIZER ===== */
.lkp-play-section {
    position: relative;
    width: 100%;
    padding: 86px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0;
    box-sizing: border-box;
}

/* ===== AUDIO VISUALIZER (ATRÁS DO BOTÃO) ===== */
.lkp-audio-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 290px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.lkp-audio-visualizer--active {
    opacity: 1;
}

/* Visualizer de cima (normal) */
.lkp-visualizer-top {
    width: 100%;
    height: 145px;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    box-sizing: border-box;
    background: none !important;
    border: none !important;
}

/* Visualizer de baixo (invertido) - colado com o de cima */
.lkp-visualizer-bottom {
    width: 100%;
    height: 145px;
    overflow: visible;
    transform: scaleY(-1);
    /* Inverte verticalmente */
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    box-sizing: border-box;
    background: none !important;
    border: none !important;
}

/* ===== VISUALIZER BARS ===== */
.lkp-visualizer-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 3px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: none !important;
    border: none !important;
}

.lkp-visualizer-bar {
    flex: 0 1 15px;
    width: 15px;
    max-width: 16px;
    min-width: 4px;
    background: linear-gradient(180deg, var(--lkn-brand-200) 0%, var(--lkn-brand-400) 50%, var(--lkn-accent) 100%) !important;
    border-radius: 5px;
    min-height: 5px;
    max-height: 145px;
    transition: background 0.05s ease;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5) !important;
    border: none !important;
    will-change: height;
}

.lkp-visualizer-bar--high {
    background: linear-gradient(180deg, var(--lkn-accent-light) 0%, var(--lkn-accent) 50%, var(--lkn-accent-dark) 100%) !important;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.55) !important;
    border: none !important;
}

.lkp-visualizer-bar--medium {
    background: linear-gradient(180deg, var(--lkn-brand-200) 0%, var(--lkn-brand-400) 50%, var(--lkn-accent) 100%) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5) !important;
    border: none !important;
}

.lkp-visualizer-bar--low {
    background: linear-gradient(180deg, var(--lkn-brand-300) 0%, var(--lkn-brand-400) 50%, var(--lkn-brand-500) 100%) !important;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.4) !important;
    border: none !important;
}

/* ===== PLAY BUTTON (NA FRENTE) ===== */
.lkp-play-btn-wrap {
    position: relative;
    z-index: 10;
}


/* ==========================================================================
   PLAYER v2 — ícone de fundo diagonal + dados + 4 cards + play + continue
   ========================================================================== */
.lkp-player-wrapper.lkp-v2 {
    max-width: min(1080px, 96vw);
    align-items: stretch;
}

.lkp-player-wrapper.lkp-v2 .lkp-player-container {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 30px;
    align-items: stretch;
}

/* Ícone decorativo de fundo: grande, no canto inferior esquerdo, com
   opacidade sumindo na diagonal (forte na base esquerda). */
.lkp-v2__bg {
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 540px;
    height: 540px;
    color: var(--lkn-accent-light);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to top right, #000 2%, rgba(0, 0, 0, 0.45) 45%, transparent 84%);
    mask-image: linear-gradient(to top right, #000 2%, rgba(0, 0, 0, 0.45) 45%, transparent 84%);
}

.lkp-v2__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lkp-v2__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ===== TOPO: ícone + título / agora tocando / tags ===== */
.lkp-v2__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Linha do topo: brand (esquerda) + favoritar (direita) */
.lkp-v2__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.lkp-v2__fav {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 16px !important;
    margin: 0 !important;
    border: 1px solid var(--lkn-glass-border-strong) !important;
    background: var(--lkn-glass-bg) !important;
    border-radius: 999px !important;
    color: var(--lkn-text-soft) !important;
    cursor: pointer;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lkp-v2__fav svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.lkp-v2__fav:hover {
    color: var(--lkn-text) !important;
    border-color: var(--lkn-accent-light) !important;
}

.lkp-v2__fav.is-active {
    color: #FF6BA6 !important;
    border-color: rgba(255, 107, 166, 0.55) !important;
    background: rgba(255, 107, 166, 0.12) !important;
}

.lkp-v2__fav.is-active svg path {
    fill: currentColor;
    stroke: currentColor;
}

.lkp-v2__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.lkp-v2__logo {
    flex: 0 0 auto;
}

.lkp-v2__name {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--lkn-text) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.lkp-v2__live {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--lkn-accent-light) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lkp-v2__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lkn-accent-light);
    box-shadow: 0 0 12px var(--lkn-accent-light);
    animation: lkp-v2-pulse 1.4s ease-in-out infinite;
}

@keyframes lkp-v2-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.lkp-v2__head .lkp-current-song-block {
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    width: 100%;
}

.lkp-v2__head .lkp-album-img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
}

.lkp-v2__head .lkp-current-song {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.lkp-v2__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.lkp-v2__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--lkn-glass-border-strong);
    background: var(--lkn-glass-bg);
    color: var(--lkn-text-soft) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: capitalize;
}

/* ===== MEIO: 4 cards | divisor | play + volume ===== */
.lkp-v2__mid {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--lkn-glass-border);
}

.lkp-v2__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    width: 288px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.lkp-v2__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--lkn-glass-border);
    background: var(--lkn-glass-bg);
    min-width: 0;
}

.lkp-v2__stat-ic {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--lkn-accent-light) !important;
    background: rgba(217, 70, 239, 0.12);
}

.lkp-v2__stat-ic svg {
    width: 18px;
    height: 18px;
}

.lkp-v2__stat-tx {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lkp-v2__stat-k {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lkn-text-muted) !important;
}

.lkp-v2__stat-v {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--lkn-text) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lkp-v2__stat-v .lkp-flag {
    font-size: 14px;
    line-height: 1;
}

/* Coluna do play + volume */
.lkp-v2__play {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.lkp-player-wrapper.lkp-v2 .lkp-play-section {
    padding: 18px 0;
    margin: 0;
}

.lkp-player-wrapper.lkp-v2 .lkp-audio-visualizer {
    /* Nunca passa da largura do card: no celular (card menor) o visualizador
       encolhe junto e o glow das barras não vaza para os lados. */
    width: min(360px, 100%);
    max-width: 100%;
    height: 210px;
    overflow: hidden;
    justify-content: center;
}

/* Metades proporcionais à nova altura (evita transbordar sobre os blocos abaixo) */
.lkp-player-wrapper.lkp-v2 .lkp-visualizer-top,
.lkp-player-wrapper.lkp-v2 .lkp-visualizer-bottom {
    height: 105px;
    overflow: hidden;
}

.lkp-player-wrapper.lkp-v2 .lkp-volume-section {
    margin-top: 4px;
    width: 240px;
}

/* ===== Embaixo do play: site da rádio + compartilhar ===== */
.lkp-v2__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.lkp-v2__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--lkn-glass-border-strong);
    background: var(--lkn-glass-bg);
    color: var(--lkn-text) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lkp-v2__home:hover {
    border-color: var(--lkn-accent-light);
    background: var(--lkn-glass-bg-strong);
}

.lkp-v2__home svg {
    width: 16px;
    height: 16px;
}

/* Share inline */
.lkp-player-wrapper.lkp-v2 .lkp-share-section {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

/* ===== CONTINUE OUVINDO ===== */
.lkp-v2__continue {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--lkn-glass-border);
}

.lkp-v2__continue[hidden] {
    display: none !important;
}

.lkp-v2__continue-head {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--lkn-text) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.lkp-v2__continue-head svg {
    width: 18px;
    height: 18px;
    color: var(--lkn-accent-light);
}

/* Navegação (anterior/próxima) pelas rádios já ouvidas. */
.lkp-v2__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lkp-v2__nav[hidden] {
    display: none !important;
}

.lkp-v2__nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 999px !important;
    border: 1px solid var(--lkn-glass-border) !important;
    background: var(--lkn-glass-bg) !important;
    color: var(--lkn-text-soft) !important;
    cursor: pointer;
    line-height: 0 !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lkp-v2__nav-btn:hover {
    color: #fff !important;
    border-color: var(--lkn-glass-border-strong) !important;
    background: var(--lkn-glass-bg-strong) !important;
}

.lkp-v2__nav-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.4) !important;
}

.lkp-v2__nav-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    color: inherit;
}

.lkp-v2__continue-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    /* Folga pra o hover que sobe o card (-2px) não ser cortado pelo overflow. */
    padding: 6px 2px 6px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 181, 253, 0.35) transparent;
}

.lkp-v2__continue-track::-webkit-scrollbar { height: 8px; }
.lkp-v2__continue-track::-webkit-scrollbar-thumb {
    background: rgba(196, 181, 253, 0.35);
    border-radius: 999px;
}

.lkp-v2__card {
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
    color: var(--lkn-text-soft) !important;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    text-decoration: none !important;
    text-align: center;
    transition: color 0.2s ease, transform 0.15s ease;
}

.lkp-v2__card:hover {
    color: var(--lkn-text) !important;
    transform: translateY(-2px);
}

.lkp-v2__card-cover {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--lkn-brand-900);
    box-shadow: var(--lkn-shadow-soft);
}

.lkp-v2__card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lkp-v2__card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    width: 100%;
}

/* Responsivo */
@media (max-width: 820px) {
    .lkp-v2__head-row {
        flex-wrap: wrap;
    }
    .lkp-v2__mid {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .lkp-v2__cards {
        width: 100%;
    }
    .lkp-v2__play {
        order: -1;
    }
    .lkp-v2__bottom {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .lkp-v2__name {
        font-size: 21px;
    }
    .lkp-v2__bg {
        width: 320px;
        height: 320px;
    }
}

/* ==========================================================================
   TEMA CLARO (light) no player + botão de tema [data-lknwp-theme-toggle]
   ========================================================================== */
[data-lknwp-theme-toggle] .lkn-theme-sun { display: block; }
[data-lknwp-theme-toggle] .lkn-theme-moon { display: none; }
html[data-lknwp-theme="light"] [data-lknwp-theme-toggle] .lkn-theme-sun { display: none; }
html[data-lknwp-theme="light"] [data-lknwp-theme-toggle] .lkn-theme-moon { display: block; }

/* Grupo de ações do topo: favoritar + tema */
.lkp-v2__head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* Botão de tema (só ícone), no estilo do favoritar */
.lkp-v2__theme {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--lkn-glass-border-strong) !important;
    background: var(--lkn-glass-bg) !important;
    border-radius: 999px !important;
    color: var(--lkn-text-soft) !important;
    cursor: pointer;
    line-height: 0 !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lkp-v2__theme:hover {
    color: var(--lkn-text) !important;
    border-color: var(--lkn-accent-light) !important;
}

.lkp-v2__theme:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.4) !important;
}

.lkp-v2__theme svg { width: 18px; height: 18px; display: block; }

/* --- Paleta clara --- */
html[data-lknwp-theme="light"] .lkp-player-wrapper.lkp-v2 {
    --lkn-text: #1B1430;
    --lkn-text-soft: #4A4468;
    --lkn-text-muted: #6B6490;
    --lkn-glass-bg: rgba(70, 50, 130, 0.05);
    --lkn-glass-bg-strong: rgba(70, 50, 130, 0.09);
    --lkn-glass-border: rgba(90, 60, 180, 0.18);
    --lkn-glass-border-strong: rgba(90, 60, 180, 0.32);
    --lkn-brand-900: #F1EEFA;
    --lkn-brand-850: #EDE8F8;
    --lkn-shadow: 0 18px 50px rgba(80, 60, 140, 0.16);
    --lkn-shadow-soft: 0 8px 24px rgba(80, 60, 140, 0.12);
}

html[data-lknwp-theme="light"] #lknwp-radio-custom-player,
html[data-lknwp-theme="light"] .lkp-player-container {
    background: radial-gradient(120% 80% at 15% -10%, #E9E1FB 0%, #FFFFFF 40%, #F5F3FB 100%) !important;
}

html[data-lknwp-theme="light"] .lkp-v2__bg {
    color: var(--lkn-brand-500);
    opacity: 0.28;
}

/* Aurora roxa do topo: mais suave (alfa/blur) no claro. */
html[data-lknwp-theme="light"] .lkp-player-container::before {
    background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), rgba(217, 70, 239, 0.10) 55%, transparent 100%);
    filter: blur(20px);
}

html[data-lknwp-theme="light"] .lkp-radio-error {
    background: #FFFFFF !important;
    color: #1B1430 !important;
}

html[data-lknwp-theme="light"] .lkp-radio-error h3,
html[data-lknwp-theme="light"] .lkp-radio-error p {
    color: #1B1430 !important;
}
