* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #0a0a0a; color: #fff; padding: 10px; overflow-x: hidden; height: 100vh; display: flex; flex-direction: column; }

.marquesina-container { width: 100%; background: #00ffff; color: #000; padding: 5px 0; margin-bottom: 10px; overflow: hidden; white-space: nowrap; font-weight: bold; border-radius: 5px; box-shadow: 0 0 10px #00ffff; }
.marquesina-texto { display: inline-block; padding-left: 100%; animation: marquesina 35s linear infinite; font-size: 16px; letter-spacing: 2px; }
@keyframes marquesina { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

.modal-oculto { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-contenido { background: #111; border: 2px solid #00ffff; border-radius: 10px; width: 95%; max-width: 500px; padding: 20px; box-shadow: 0 0 25px rgba(0, 255, 255, 0.4); max-height: 80vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.modal-header h2 { color: #00ffff; font-size: 22px; text-shadow: 0 0 8px #00ffff; margin: 0; }
.btn-cerrar { background: transparent; border: none; color: #00ffff; font-size: 26px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-cerrar:hover { color: #fff; text-shadow: 0 0 10px #00ffff; }
.lista-cola-container { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; padding-right: 5px; }
.item-cola { display: flex; justify-content: space-between; align-items: center; background: #1a1a1a; padding: 12px; border-radius: 5px; border-left: 4px solid #00ffff; border-right: 1px solid #333; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.item-cola-texto { font-size: 15px; color: #fff; flex: 1; margin-right: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-eliminar-cola { background: #ff0033; border: none; color: #fff; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.2s; }

.header-neon { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 60px; margin-bottom: 15px; padding: 0 15px; background: #111; border-radius: 10px; border: 1px solid #00ffff; box-shadow: 0 0 10px rgba(0, 255, 255, 0.2); }
.header-titulo { display: flex; flex-direction: row; align-items: center; gap: 15px; }
.logo-app { height: 40px; width: auto; object-fit: contain; }
h1 { font-size: 22px; text-shadow: 0 0 10px #00ffff; color: #00ffff; margin: 0; white-space: nowrap; }
.btn-compartir { background: #00ffff; border: none; color: #000; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: bold; }

.dashboard { display: flex; flex-direction: row; gap: 15px; flex: 1; min-height: 0; }
.panel-izquierdo { width: 480px; border: 2px solid #00ffff; border-radius: 10px; padding: 15px; background: #0a0a0a; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.panel-derecho { flex: 1; border: 2px solid #00ffff; border-radius: 10px; padding: 15px; background: #0a0a0a; display: flex; flex-direction: column; height: 100%; overflow: hidden; justify-content: flex-start; }

.botones-generos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; justify-content: center; }
.btn-genero { background: #111; border: 1px solid #00ffff; color: #00ffff; padding: 8px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-genero:hover { background: #00ffff; color: #000; }
.buscador-container { display: flex; gap: 10px; margin-bottom: 15px; }
input { flex: 1; padding: 10px; background: #000; border: 1px solid #00ffff; color: #fff; border-radius: 5px; font-size: 16px; }
input:focus { outline: none; box-shadow: 0 0 8px #00ffff; } 
#btn-buscar { padding: 10px 20px; background: #00ffff; border: none; color: #000; border-radius: 5px; cursor: pointer; font-weight: bold; }

.grilla-resultados { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; padding-right: 5px; }
.item-cancion { display: flex; align-items: center; justify-content: space-between; background: #1a1a1a; padding: 10px; border-radius: 8px; border: 1px solid #333; }
.item-cancion img { width: 90px; border-radius: 5px; margin-right: 12px; }
.btn-cantar { background: #00ffff !important; border: none !important; padding: 8px 15px !important; color: #000 !important; border-radius: 5px !important; font-weight: bold !important; cursor: pointer !important; transition: 0.2s; }

.teclado-virtual { background: #111 !important; padding: 10px !important; border-radius: 8px !important; border: 1px solid #00ffff !important; display: flex; flex-direction: column; gap: 5px; }
.fila-teclado { display: flex; justify-content: center; gap: 5px; }
.tecla { background: #222 !important; border: 1px solid #00ffff !important; color: #fff !important; flex: 1; height: 40px !important; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 15px; display: flex; justify-content: center; align-items: center; }
.tecla:active { background: #00ffff !important; color: #000 !important; }
.tecla.especial { flex: 2; }
.tecla.borrar { border-color: #ff0033 !important; }

.visor-pantalla { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 2px solid #00ffff; border-radius: 8px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 0 15px rgba(0,255,255,0.1); }
.pantalla-estado { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.flyer-imagen { width: 100%; height: 100%; object-fit: cover; }
#yt-player { width: 100%; height: 100%; pointer-events: none; }
.cristal-invisible { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }

.logo-giratorio-mask { position: absolute; bottom: 15px; right: 15px; width: 85px; height: 85px; z-index: 20; border-radius: 50%; pointer-events: auto; animation: rotarNeones 15s linear infinite; box-shadow: 0 0 15px #ff00ff; background: #000; }
@keyframes rotarNeones { 
    0% { transform: rotate(0deg) scale(1); box-shadow: 0 0 10px #00ffff; } 
    50% { transform: rotate(180deg) scale(1.05); box-shadow: 0 0 25px #ff00ff; } 
    100% { transform: rotate(360deg) scale(1); box-shadow: 0 0 10px #00ffff; } 
}

.barra-inferior { display: flex; justify-content: center; align-items: center; min-height: 50px; width: 100%; }
.mensaje-inferior { text-align: center; }
.neon-text-small { font-size: 24px; color: #00ffff; text-shadow: 0 0 10px #00ffff; margin: 0; }
.texto-cola { color: #fff; font-weight: bold; margin-top: 5px; font-size: 16px; }

.panel-controles { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.btn-control { background: #111; border: 1px solid #00ffff; color: #00ffff; padding: 12px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s; font-size: 14px; }
.btn-control:hover { background: #333; }
.btn-saltar { border-color: #ff0033; color: #ff0033; }
.btn-externa { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.btn-externa:hover { background: #ffd700; color: #000; text-shadow: none; }

.oculto { display: none !important; }

@media (max-width: 900px) {
    body { height: auto; }
    .dashboard { flex-direction: column-reverse !important; height: auto !important; }
    .panel-izquierdo { width: 100% !important; min-height: 60vh !important; }
    .panel-derecho { width: 100% !important; min-height: 40vh !important; margin-bottom: 15px !important; }
    .logo-giratorio-mask { width: 50px; height: 50px; bottom: 10px; right: 10px; }
}