html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    cursor: none;
    color: #fff;
}

/* Contenedor del reproductor */
#player-container {
    position: fixed;
    inset: 0;
    z-index: 1;
}

/* Overlay pantalla completa */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

/* CONTENEDOR INTERNO */
.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

/* Textos */
#overlay h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

#overlay h2 {
    color: #fff;
    font-size: 3.5rem;
    margin: 0;
}

#overlay p {
    color: #fff;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* QR */
#qr-yape {
    width: 20vw;
    max-width: 150px;
    min-width: 15px;
    height: auto;
}

/* Número Yape */
.numero-yape {
    font-size: 28px;
    font-weight: 800;
}

/* Input + check */
.codigo-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

#codigoPago {
    padding: 14px;
    font-size: 24px;
    width: 260px;
    text-align: center;
    border-radius: 12px;
}

/* Iconos */
#estado-icono {
    font-size: 36px;
    font-weight: bold;
}

.estado-ok {
    color: #22c55e;
}

.estado-error {
    color: #ef4444;
}

/* Texto iniciar */
#tap-to-start {
    margin-top: 20px;
    font-size: 20px;
    color: #22c55e;
    font-weight: bold;
}

/* Utilidad */
.hidden {
    display: none;
}



/* Controles flotantes */
#controls-custom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}
.control-btn {
    padding: 12px 18px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.control-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* QR panel encima con gradiente animado */
#qr-panel {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 280px;
    height: 280px;

    /* GRADIENTE MULTICOLOR */
    background: linear-gradient(
        120deg,
        #ff0080,
        #ff8c00,
        #ffd700,
        #00e5ff,
        #7c4dff,
        #ff0080
    );

    background-size: 400% 400%;
    animation: gradientMove 6s ease infinite;

    border-radius: 1rem;
    padding: 1rem;

    box-shadow:
        0 0 20px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(0, 229, 255, 0.4);

    z-index: 50;
}


/* Chat panel encima */
#chat-panel {
    position: fixed;
    top: 5rem;
    right: 2rem;
    width: 300px;
    height: 500px;
    background: rgba(0,0,0,0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-y: auto;
    z-index: 50;
}
.chat-item {
    background: rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Ticker de mensajes encima */
#message-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 60;
}
#message-ticker-content {
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 15s linear infinite;
    font-size: 1.2rem;
    color: #fff;
}

@keyframes ticker-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    #chat-panel, #qr-panel { display: none; }
    #message-ticker { height: 40px; font-size: 1rem; }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
