/* ========================================
   FC Live Banner - Frontend Styles v2.0.2
   ======================================== */

#fclb-live-banner,
#fclb-live-banner * {
    box-sizing: border-box;
}

#fclb-live-banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99 !important;
    clear: both;
    float: none !important;
    width: 100%;
    max-width: var(--fclb-max-width, 1200px);
    padding-top: var(--fclb-mt, 20px) !important;
    padding-bottom: var(--fclb-mb, 20px) !important;
    margin: 0 auto !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: visible;
}

.fclb-banner-inner {
    background: linear-gradient(135deg, var(--fclb-bg-1, #6B21A8) 0%, var(--fclb-bg-2, #7C3AED) 40%, var(--fclb-bg-3, #DC2626) 100%);
    border-radius: var(--fclb-radius, 16px);
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: block !important;
    visibility: visible !important;
}

.fclb-confetti-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fclb-confetti-svg {
    width: 100%; height: 100%;
    position: absolute;
    top: 0; left: 0;
}

/* Content Layout - Desktop */
.fclb-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 220px;
}

.fclb-text-side {
    flex: 1;
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.fclb-player-side {
    width: 42%;
    max-width: 480px;
    padding: 20px 20px 20px 0;
    flex-shrink: 0;
}

/* Badge */
.fclb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fclb-badge-bg, #DC2626);
    color: var(--fclb-badge-tc, #fff);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.fclb-badge-dot {
    width: 10px; height: 10px;
    background: var(--fclb-badge-tc, #fff);
    border-radius: 50%;
    animation: fclb-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes fclb-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Title */
.fclb-title {
    color: var(--fclb-title-color, #fff);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px 0;
}

.fclb-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Controls */
.fclb-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.fclb-btn-volume,
.fclb-btn-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.fclb-btn-volume:hover,
.fclb-btn-expand:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Volume Slider */
.fclb-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px; height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.fclb-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.fclb-volume-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Player */
.fclb-player-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.fclb-player-wrapper iframe,
.fclb-player-wrapper #fclb-yt-player {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Sound Tooltip */
.fclb-volume-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fclb-sound-tip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fclb-tip-appear 0.4s ease, fclb-tip-pulse 2s ease-in-out 0.4s infinite;
    pointer-events: none;
    z-index: 20;
}

.fclb-sound-tip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #fff;
    border-left: none;
}

@keyframes fclb-tip-appear {
    from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes fclb-tip-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fclb-sound-tip.fclb-tip-hide {
    animation: fclb-tip-fade 0.3s ease forwards;
}

@keyframes fclb-tip-fade {
    to { opacity: 0; transform: translateY(-50%) translateX(8px); }
}

/* ========================================
   MOBILE - Até 1024px
   Layout: Fundo gradiente com badge + título + botões acima, player abaixo
   Igual à Imagem 1 de referência
   ======================================== */
@media (max-width: 1024px) {

    #fclb-live-banner {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: var(--fclb-mobile-mb, 15px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .fclb-banner-inner {
        border-radius: 0 !important;
        min-height: auto !important;
        border-top: 1px solid rgba(255,255,255,0.3) !important;
    }

    .fclb-confetti-container {
        display: none !important;
    }

    .fclb-content {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        gap: 0 !important;
        position: relative !important;
    }

    /* TEXTO: badge + título + subtítulo */
    .fclb-text-side {
        order: 1 !important;
        padding: 20px 16px 10px !important;
        text-align: left !important;
        align-items: flex-start !important;
        position: relative !important;
    }

    .fclb-badge {
        display: inline-flex !important;
        margin-bottom: 10px !important;
    }

    .fclb-title {
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: var(--fclb-title-color, #fff) !important;
    }

    .fclb-subtitle {
        display: block !important;
        font-size: 14px !important;
        margin: 6px 0 0 !important;
    }

    /* BOTÕES: posição absoluta no topo direito do banner */
    .fclb-controls {
        display: flex !important;
        position: absolute !important;
        top: 20px !important;
        right: 16px !important;
        margin: 0 !important;
        gap: 8px !important;
    }

    .fclb-btn-volume,
    .fclb-btn-expand {
        width: 36px !important;
        height: 36px !important;
        background: rgba(255,255,255,0.2) !important;
        border: none !important;
        border-radius: 8px !important;
    }

    .fclb-btn-volume svg,
    .fclb-btn-expand svg {
        width: 18px !important;
        height: 18px !important;
    }

    .fclb-volume-slider {
        display: inline-block !important;
        width: 80px !important;
    }

    /* PLAYER: abaixo do texto, dentro do gradiente */
    .fclb-player-side {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 16px 16px !important;
    }

    .fclb-player-wrapper {
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Esconder pseudo-elements do badge (não necessários neste layout) */
    .fclb-player-side::before,
    .fclb-player-side::after {
        display: none !important;
    }

    /* Esconder controles mobile separados */
    .fclb-mobile-controls {
        display: none !important;
    }

    /* Tooltip no mobile: abaixo do botão */
    .fclb-sound-tip {
        left: auto !important;
        right: 0 !important;
        top: calc(100% + 8px) !important;
        transform: none !important;
    }

    .fclb-sound-tip::before {
        left: auto !important;
        right: 12px !important;
        top: -6px !important;
        transform: none !important;
        border: 6px solid transparent !important;
        border-bottom-color: #fff !important;
        border-top: none !important;
        border-right-color: transparent !important;
    }

    @keyframes fclb-tip-appear {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .fclb-sound-tip.fclb-tip-hide {
        animation: fclb-tip-fade 0.3s ease forwards;
    }

    @keyframes fclb-tip-fade {
        to { opacity: 0; transform: translateY(8px); }
    }
}

/* ========================================
   Fullscreen overlay
   ======================================== */
.fclb-fullscreen-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fclb-fade-in 0.3s ease;
}

@keyframes fclb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fclb-fullscreen-player {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    position: relative;
}

.fclb-fullscreen-player iframe {
    width: 100%; height: 100%;
    border: 0;
    border-radius: 8px;
}

.fclb-fullscreen-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: all 0.3s;
}

.fclb-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
