/* ELDERCS – "Players online right now" (Dashboard) */
.ec-online { position: relative; }
.ec-online .on-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ec-online .on-title { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: 1.05rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.ec-online .on-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: 2px; color: #ff8a8a; background: rgba(255, 77, 77, .1); border: 1px solid rgba(255, 77, 77, .4); }
.ec-online .on-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: on-ping 1.5s infinite; }
@keyframes on-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, .7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); } }
.ec-online .on-count { font-family: 'Orbitron', sans-serif; font-weight: 900; color: #e58d27; font-size: 1.1rem; }
.ec-online .on-count small { font-family: inherit; color: rgba(255, 255, 255, .5); font-size: .75rem; font-weight: 700; letter-spacing: 1px; }
.ec-online .on-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.ec-online .on-player {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #fff;
    background: linear-gradient(110deg, rgba(229, 141, 39, .09), rgba(255, 255, 255, .02));
    border: 1px solid rgba(229, 141, 39, .22);
    opacity: 0; transform: translateY(10px); animation: on-in .45s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 40ms);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
@keyframes on-in { to { opacity: 1; transform: none; } }
.ec-online .on-player:hover { color: #fff; transform: translateY(-3px); border-color: rgba(229, 141, 39, .65); box-shadow: 0 12px 26px -12px rgba(229, 141, 39, .8); background: linear-gradient(110deg, rgba(229, 141, 39, .18), rgba(255, 255, 255, .03)); }
.ec-online .on-av-wrap { position: relative; flex: 0 0 46px; }
.ec-online .on-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(229, 141, 39, .6); background: #1a1a1d; transition: transform .2s ease; }
.ec-online .on-player:hover .on-av { transform: scale(1.08); }
.ec-online .on-dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid #121214; animation: on-ping-g 1.8s infinite; }
@keyframes on-ping-g { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
.ec-online .on-info { min-width: 0; flex: 1; }
.ec-online .on-name { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-online .on-meta { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; font-size: .78rem; color: rgba(255, 255, 255, .55); overflow: hidden; }
.ec-online .on-meta .sep { opacity: .35; }
.ec-online .on-meta b { color: #ffb454; font-weight: 700; }
.ec-online .on-steam { color: rgba(255, 255, 255, .35); font-size: 1.05rem; transition: color .2s ease; }
.ec-online .on-player:hover .on-steam { color: #66c0f4; }
.ec-online .on-player.top1 { border-color: rgba(255, 210, 74, .55); }
.ec-online .on-player.top1 .on-av { border-color: #ffd24a; box-shadow: 0 0 12px rgba(255, 210, 74, .5); }
.ec-online .on-crown { position: absolute; top: -9px; left: 26px; font-size: .9rem; color: #ffd24a; filter: drop-shadow(0 0 6px rgba(255, 210, 74, .8)); }
.ec-online .on-empty { padding: 26px 10px; text-align: center; color: rgba(255, 255, 255, .55); }
.ec-online .on-empty i { display: block; font-size: 2rem; margin-bottom: 10px; color: rgba(229, 141, 39, .5); }
.ec-online .on-foot { margin-top: 12px; font-size: .75rem; color: rgba(255, 255, 255, .35); text-align: right; }
@media (max-width: 560px) { .ec-online .on-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .ec-online .on-player { padding: 8px; gap: 8px; } .ec-online .on-av-wrap { flex-basis: 38px; } .ec-online .on-av { width: 38px; height: 38px; } .ec-online .on-steam { display: none; } }

/* ---------- v2 ---------- */
.ec-online .on-player { cursor: pointer; }
.ec-online .on-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ec-online .on-staff-count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: 1px;
    color: #c4b5fd; background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .35); }
.ec-online .on-staff-count.none { color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .1); }
.ec-online .on-join { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px; background: #e58d27; color: #0a0a0c !important; font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: filter .2s ease, transform .2s ease; }
.ec-online .on-join:hover { filter: brightness(1.12); transform: translateY(-2px); }
.ec-online .on-join small { font-weight: 700; opacity: .7; text-transform: none; letter-spacing: 0; }
.ec-online .on-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ec-online .on-name-row .on-name { min-width: 0; }
.ec-online .on-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0 3px; }
.ec-online .on-tag { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: .6rem; font-weight: 800; letter-spacing: .6px; line-height: 1.5; color: #fff; white-space: nowrap; }
.ec-online .on-tag.staff { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.ec-online .on-tag.new { color: #0a0a0c; background: #3ddc84; animation: on-blink 1.2s steps(2, start) infinite; }
@keyframes on-blink { to { opacity: .55; } }
.ec-online .on-tag.vip { color: #0a0a0c; background: linear-gradient(110deg, #ffd24a, #e58d27, #ffd24a); background-size: 200% 100%; animation: on-shine 3s linear infinite; }
@keyframes on-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ec-online .on-rating { font-family: 'Orbitron', sans-serif; font-weight: 900; font-style: italic; font-size: .72rem; color: var(--t); }
.ec-online .on-player.is-staff { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.ec-online .on-player.is-staff .on-av { border-color: var(--c); }
.ec-online .on-steam { position: relative; z-index: 2; padding: 4px; }
.ec-online .on-pos { font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .45); }
.ec-online .on-player { min-width: 0; }
@media (max-width: 560px) {
    .ec-online .on-grid { grid-template-columns: 1fr; }
    .ec-online .on-steam { display: inline-block; }
    .ec-online .on-head-right { width: 100%; justify-content: space-between; }
}
.ec-online .on-tags { align-items: center; gap: 5px; }
/* CS Rating estilo CS2: placa inclinada con el color del nivel */
.ec-online .on-rating { display: inline-flex; align-items: center; padding: 0 9px; height: 17px; transform: skewX(-14deg); border-radius: 3px;
    background: linear-gradient(90deg, var(--tb), transparent 140%); border-left: 3px solid var(--t); box-shadow: inset 0 0 0 1px var(--tb); }
.ec-online .on-rating b { transform: skewX(14deg); font-family: 'Orbitron', sans-serif; font-style: italic; font-weight: 900; font-size: .7rem; letter-spacing: .5px; color: var(--t); text-shadow: 0 0 8px var(--tb); }
/* puesto en el ranking */
.ec-online .on-pos { display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 7px; border-radius: 20px; font-size: .64rem; font-weight: 800;
    color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.ec-online .on-pos i { font-size: .58rem; opacity: .6; }
.ec-online .on-pos.gold   { color: #ffd24a; background: rgba(255, 210, 74, .12); border-color: rgba(255, 210, 74, .45); }
.ec-online .on-pos.silver { color: #d9dee6; background: rgba(217, 222, 230, .1); border-color: rgba(217, 222, 230, .4); }
.ec-online .on-pos.bronze { color: #e0965a; background: rgba(224, 150, 90, .12); border-color: rgba(224, 150, 90, .45); }
.ec-online .on-pos.gold i, .ec-online .on-pos.silver i, .ec-online .on-pos.bronze i { opacity: 1; }
/* VIP (seccion VIP) */
.ec-online .on-tag.vip i { font-size: .55rem; margin-right: 2px; }
.ec-online .on-tag.vip-pro     { color: #fff; background: linear-gradient(110deg, #0891b2, #38bdf8, #0891b2); background-size: 200% 100%; }
.ec-online .on-tag.vip-premium { color: #0a0a0c; background: linear-gradient(110deg, #e58d27, #ffb454, #e58d27); background-size: 200% 100%; }
.ec-online .on-tag.vip-extreme { color: #fff; background: linear-gradient(110deg, #be123c, #ff3d6e, #a855f7, #be123c); background-size: 250% 100%; box-shadow: 0 0 10px rgba(255, 61, 110, .45); }
/* ---------- efecto LIVE verde (en vez del rayo naranja) ---------- */
.ec-online.on-livefx > .ec-ray { display: none !important; }
.ec-online.on-livefx { border: 1px solid rgba(61, 220, 132, .28) !important; }
/* el borde "late" en verde como un pulso de directo */
.ec-online .on-pulse { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 5;
    border: 1px solid rgba(61, 220, 132, .75); animation: on-beat 2.4s ease-out infinite; }
@keyframes on-beat {
    0%   { opacity: .9; box-shadow: 0 0 0 0 rgba(61, 220, 132, .45), inset 0 0 18px rgba(61, 220, 132, .12); }
    70%  { opacity: 0;  box-shadow: 0 0 0 10px rgba(61, 220, 132, 0), inset 0 0 0 rgba(61, 220, 132, 0); }
    100% { opacity: 0; }
}
/* linea de escaneo verde que recorre la separacion de la cabecera */
.ec-online .card-header { position: relative; }
.ec-online .on-scan { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.ec-online .on-scan::before { content: ''; position: absolute; top: 0; bottom: 0; width: 28%; left: -30%;
    background: linear-gradient(90deg, transparent, rgba(61, 220, 132, .9), #b9ffd6, rgba(61, 220, 132, .9), transparent);
    box-shadow: 0 0 12px rgba(61, 220, 132, .9); animation: on-scan 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes on-scan { to { left: 102%; } }
/* el contador y el LIVE tambien en verde */
.ec-online .on-count { color: #3ddc84; text-shadow: 0 0 12px rgba(61, 220, 132, .5); }
/* movil / pestaña oculta: mas suave */
html.ec-lite .ec-online .on-pulse { animation-duration: 3.5s; }
.ec-online.ec-off .on-pulse, .ec-online.ec-off .on-scan::before { animation-play-state: paused; }
