/* YouTube Live Scheduler - Cinema Mode */

/* Container principal com efeito cinema */
.yls-cinema-mode {
    background: #000;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Borda degradê vermelha (efeito glow) */
.yls-cinema-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3px;
    background: linear-gradient(
        135deg,
        rgba(255, 0, 0, 0.6) 0%,
        rgba(220, 0, 0, 0.4) 25%,
        rgba(180, 0, 0, 0.2) 50%,
        rgba(220, 0, 0, 0.4) 75%,
        rgba(255, 0, 0, 0.6) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: ylsCinemaGlow 3s ease-in-out infinite;
}

/* Animação do glow */
@keyframes ylsCinemaGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Container do vídeo */
.yls-cinema-video-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Countdown sobre o vídeo */
.yls-cinema-countdown {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
    border: 2px solid rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 300px;
}

.yls-cinema-countdown.yls-live-now {
    background: rgba(255, 0, 0, 0.9);
    border-color: #fff;
    animation: ylsPulse 2s ease-in-out infinite;
}

@keyframes ylsPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 6px 30px rgba(255, 0, 0, 0.8);
    }
}

/* Wrapper do vídeo (aspect ratio 16:9) */
.yls-cinema-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(255, 0, 0, 0.2);
}

/* Iframe do vídeo */
.yls-cinema-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Chat ao lado (se habilitado) */
.yls-cinema-with-chat {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.yls-cinema-with-chat .yls-cinema-video-wrapper {
    flex: 1;
    min-width: 0;
}

.yls-cinema-chat {
    width: 340px;
    flex-shrink: 0;
    background: #181818;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.yls-cinema-chat iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Informações do vídeo */
.yls-cinema-info {
    max-width: 1400px;
    margin: 30px auto 0;
    color: #fff;
}

.yls-cinema-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
    line-height: 1.3;
}

.yls-cinema-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #aaa;
}

.yls-cinema-date,
.yls-cinema-channel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yls-cinema-date svg,
.yls-cinema-channel svg {
    width: 18px;
    height: 18px;
    fill: #aaa;
}

.yls-cinema-description {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* Badge AO VIVO */
.yls-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff0000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: ylsPulse 2s ease-in-out infinite;
}

.yls-badge-live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: ylsBlink 1s ease-in-out infinite;
}

@keyframes ylsBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Badge PROGRAMADA */
.yls-badge-upcoming {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsivo */
@media (max-width: 1024px) {
    .yls-cinema-with-chat {
        flex-direction: column;
    }
    
    .yls-cinema-chat {
        width: 100%;
    }
    
    .yls-cinema-chat iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .yls-cinema-mode {
        padding: 30px 20px;
    }
    
    .yls-cinema-countdown {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 250px;
    }
    
    .yls-cinema-title {
        font-size: 22px;
    }
    
    .yls-cinema-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .yls-cinema-mode {
        padding: 20px 15px;
    }
    
    .yls-cinema-countdown {
        font-size: 12px;
        padding: 8px 15px;
        min-width: 200px;
        top: 10px;
    }
    
    .yls-cinema-title {
        font-size: 18px;
    }
    
    .yls-cinema-description {
        font-size: 14px;
    }
}

/* Estado: Nenhuma live disponível */
.yls-cinema-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.yls-cinema-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.yls-cinema-empty-message {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
