:root {
  --bg: #0d0019; --card: rgba(255,255,255,.06); --borde: rgba(255,255,255,.12);
  --txt: #f6f2ff; --sub: #b9a9d9; --acento: #f72585; --acento2: #7209b7; --ok: #2ec4b6; --mal: #ff5a5f; --espera: #f9c74f;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
[hidden] { display: none !important; }
body {
  min-height: 100dvh; color: var(--txt); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(120% 60% at 50% -10%, #3a0ca3 0%, transparent 60%), radial-gradient(80% 40% at 100% 100%, #5a0b4d 0%, transparent 70%), var(--bg);
  padding: env(safe-area-inset-top) 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
}
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; }
.marca { font-weight: 900; font-size: 22px; letter-spacing: .02em; background: linear-gradient(90deg, #fff, #ffb3d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vivo { font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--mal); box-shadow: 0 0 0 0 rgba(255,90,95,.7); animation: pulso 1.6s infinite; }
.vivo.off .punto { background: #777; animation: none; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(255,90,95,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,95,0); } }

.cantante-card { background: linear-gradient(135deg, rgba(247,37,133,.25), rgba(114,9,183,.25)); border: 1px solid var(--borde); border-radius: 20px; padding: 16px 18px; margin-bottom: 14px; }
.cc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--sub); }
.cc-nombre { font-size: 26px; font-weight: 900; line-height: 1.15; margin: 4px 0 2px; }
.cantante-card.vacia .cc-nombre { font-size: 17px; font-weight: 600; color: var(--sub); }
.cc-meta { font-size: 14px; color: var(--sub); }
#cc-reacciones { font-weight: 800; color: var(--txt); display: inline-block; }
#cc-reacciones.pop { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.4); color: var(--acento); } }
.hype { margin-top: 12px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.hype-relleno { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #4cc9f0, #f9c74f, #f94144); transition: width .5s; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--card); border: 1px solid var(--borde); padding: 5px; border-radius: 16px; margin-bottom: 14px; position: sticky; top: 6px; z-index: 5; backdrop-filter: blur(10px); }
.tab { border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 14px; font-weight: 700; padding: 10px 4px; border-radius: 12px; cursor: pointer; }
.tab.activa { background: linear-gradient(135deg, var(--acento), var(--acento2)); color: #fff; box-shadow: 0 6px 18px rgba(247,37,133,.35); }

.panel { display: none; animation: entrar .25s ease; }
.panel.activo { display: block; }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } }
.ayuda { color: var(--sub); font-size: 14px; margin-bottom: 12px; }

.reacciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.reac { position: relative; aspect-ratio: 1; border: 1px solid var(--borde); background: var(--card); border-radius: 18px; font-size: 38px; cursor: pointer; user-select: none; transition: transform .08s; overflow: visible; }
.reac:active { transform: scale(.9); background: rgba(255,255,255,.14); }
.reac.espera { opacity: .4; }
.volando { position: fixed; pointer-events: none; font-size: 34px; z-index: 20; animation: volar .9s ease-out forwards; }
@keyframes volar { to { transform: translate(var(--dx), -160px) scale(1.6); opacity: 0; } }

form { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 13px; color: var(--sub); font-weight: 600; margin-top: 4px; }
textarea, input { width: 100%; font: inherit; font-size: 16px; color: var(--txt); background: rgba(0,0,0,.25); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 14px; resize: none; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea:focus, input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(247,37,133,.25); }
.fila-info { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--sub); }
.contador.casi { color: var(--espera); }
.vista { display: inline-flex; align-items: center; gap: 6px; }
.vista-dot { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, #3a0ca3, #f72585); box-shadow: 0 0 10px #f72585; transition: all .4s; }
.enviar { margin-top: 8px; border: 0; border-radius: 16px; padding: 15px; font: inherit; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--acento), var(--acento2)); box-shadow: 0 10px 24px rgba(247,37,133,.35); cursor: pointer; }
.enviar:disabled { opacity: .5; }
.nota { font-size: 12px; color: var(--sub); text-align: center; margin-top: 4px; }

.mis { margin-top: 24px; }
.mis h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--sub); margin-bottom: 8px; }
.mis ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mis li { background: var(--card); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.mis .t { flex: 1; font-size: 14px; overflow-wrap: anywhere; }
.estado { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.estado.aprobado { background: rgba(46,196,182,.18); color: var(--ok); }
.estado.pendiente { background: rgba(249,199,79,.18); color: var(--espera); }
.estado.rechazado { background: rgba(255,90,95,.18); color: var(--mal); }
.mis .vacio { color: var(--sub); font-size: 14px; background: none; border: 0; padding: 0; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 60px)); background: #1d0b36; border: 1px solid var(--borde); color: var(--txt); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,1.4,.4,1); z-index: 30; text-align: center; }
.toast.ver { transform: translate(-50%, 0); }
.toast.mal { border-color: var(--mal); }
.toast.ok { border-color: var(--ok); }
