/* ========================================
   AMSTV19 Desenvolvimento - VideoKê System
   CSS do Player (Tela Pública)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container do Player */
#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 120px);
    background: #000;
}

#youtube-player {
    width: 100%;
    height: 100%;
}

/* QR Code Box */
#qrcode-box {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#qrcode-box img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
}

#qrcode-box p {
    margin-top: 10px;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Música Atual */
#musica-atual {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#titulo-atual {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Overlay de Efeitos */
#overlay-efeitos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Efeitos animados */
.efeito-emoji {
    position: absolute;
    font-size: 4rem;
    animation: flutuar 3s ease-out forwards;
}

@keyframes flutuar {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-200px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-400px) scale(0.8);
        opacity: 0;
    }
}

.efeito-comentario {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 2rem;
    font-weight: bold;
    animation: aparecer-desaparecer 5s ease-in-out forwards;
    max-width: 80%;
    text-align: center;
}

@keyframes aparecer-desaparecer {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    10%, 90% { opacity: 1; transform: scale(1); }
}

/* Fila no Rodapé */
#fila-rodape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.fila-header {
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.fila-scroll {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 15px;
    height: calc(100% - 45px);
}

.fila-scroll::-webkit-scrollbar {
    height: 8px;
}

.fila-scroll::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 10px;
}

.fila-item {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.fila-item img {
    width: 60px;
    height: 45px;
    border-radius: 5px;
    object-fit: cover;
}

.fila-item-info {
    flex: 1;
    color: white;
}

.fila-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fila-item-info p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    #qrcode-box {
        top: 10px;
        right: 10px;
        padding: 10px;
    }

    #qrcode-box img {
        width: 120px;
        height: 120px;
    }

    #musica-atual {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
    }

    #titulo-atual {
        font-size: 1rem;
    }

    .fila-item {
        min-width: 150px;
    }
}