/* --------------------------------------------------------------------------
   LINEUPS (val-lineups.php) — rejilla, filtros y modal de lineup
   --------------------------------------------------------------------------
   Era el grueso de pages/lineups.css, que cargaban 30 paginas aunque solo
   esta lo usara. Aqui queda lo exclusivo de la pagina.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   13. LINEUPS — Layout principal
   -------------------------------------------------------------------------- */
.lineups-main {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: var(--sp-11) var(--sp-9) 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--sp-10);
}

/* Cabecera (.val-page-header, components/ui-shared.css) a todo el ancho
   encima de sidebar + rejilla; el gap del grid ya separa. */
.lineups-main > .val-page-header { grid-column: 1 / -1; margin-bottom: 0; }

.sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}

.sidebar-card {
    overflow: hidden;
    padding: 0px;
}

.sidebar-head {
    padding: 0 var(--sp-5);
    min-height: 44px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

/* Titulo estilo widget (como en Stats/Overview): blanco, 13px/800, sin mayusculas. */
.sidebar-head h3 {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-extrabold);
    text-transform: none;
    letter-spacing: var(--ls-xs);
    color: var(--text-white);
}

.sidebar-body {
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-7);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.filter-group label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-lg);
    color: var(--text-muted);
}

.filter-group select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: var(--fs-md);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: var(--sp-10);
}

.filter-group select:focus { border-color: color-mix(in srgb, var(--brand-accent) 40%, transparent); }

.btn-apply {
    background: var(--brand-accent);
    color: var(--text-white);
    width: 100%;
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: var(--ls-md);
    transition: background var(--t-normal);
    font-family: inherit;
}

.btn-apply:hover { background: var(--brand-accent-hover); }

.btn-reset {
    background: none;
    color: var(--text-gray);
    width: 100%;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--t-normal);
    font-family: inherit;
}

.btn-reset:hover {
    border-color: var(--brand-accent);
    color: var(--text-white);
}

.sidebar-stats {
    padding: var(--sp-7) var(--sp-8);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
}

.stat-row span:first-child { color: var(--text-gray); }

.stat-row span:last-child  { font-weight: var(--fw-bold); color: var(--text-white); }

.grid-area {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.grid-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-5);
}

.results-count { font-size: var(--fs-md); color: var(--text-gray); }

.results-count strong { color: var(--text-white); }

/* El sort tab ahora usa el componente unificado .seg .seg--accent
   (components/buttons.css); el markup lleva sort-tab solo como hook de JS.
   Ya no hay estilos de boton duplicados aqui. */

/* --------------------------------------------------------------------------
   14. LINEUPS — Tarjetas
   -------------------------------------------------------------------------- */
.lineups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-8);
}

.lineup-card {
    /* superficie (fondo, borde, radio) = .card (components/cards.css) */
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
    cursor: pointer;
}

.lineup-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-md);
}

.card-thumb {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #0d1b2a 0%, #162032 100%);
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .65;
    transition: transform var(--t-slow);
}

.lineup-card:hover .card-thumb-img { transform: scale(1.05); }

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 17, 30, .8) 0%, transparent 60%);
}

.thumb-map-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-family: var(--font-sans);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: var(--ls-sm);
    line-height: var(--lh-none);
}

.thumb-badges {
    position: absolute;
    top: 10px;
    left: 12px;
    display: flex;
    gap: var(--sp-2);
}

.thumb-ability-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: rgba(0,0,0,.55);
    border-radius: var(--radius-sm);
    padding: 3px;
    filter: brightness(1.1);
}

.card-body {
    padding: var(--sp-7) var(--sp-7) var(--sp-7);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tags {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
}

.tag-agent  { background: #B663D1; color: var(--on-accent); }

.tag-type   { background: var(--cyan); color: var(--on-accent); }

.tag-easy   { background: var(--green); color: var(--on-accent); }

.tag-medium { background: var(--amber); color: var(--on-accent); }

.tag-hard   { background: var(--valorant-red); color: var(--on-accent); }

.card-body h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    margin-bottom: var(--sp-2);
    line-height: 1.35;
}

.card-body p {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    line-height: 1.55;
    flex: 1;
    margin-bottom: var(--sp-7);
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: var(--sp-5);
}

.card-agent-icon { width: 28px; height: 28px; object-fit: contain; border-radius: var(--radius-sm); opacity: .9; }

.btn-view {
    color: var(--brand-accent);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--ls-sm);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    transition: color var(--t-normal);
}

.btn-view:hover { color: var(--text-white); }

/* — Lineup locked overlay — */
.lineup-card.lineup-locked {
    cursor: pointer;
}

.lineup-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lineup-lock-icon {
    font-size: var(--fs-5xl);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

.lineup-card.lineup-locked .card-body {
    opacity: .5;
    pointer-events: none;
}

/* — Lineup video modal — */
.lineup-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: var(--z-modal-top);
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
}

.lineup-modal { /* superficie (fondo, borde, radio) = .card (components/cards.css) */ padding: 0;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lineup-modal-premium {
    max-width: 480px;
}

.lineup-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.1);
    border: none;
    color: var(--text-gray);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-circle);
    font-size: var(--fs-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), color var(--t-fast);
    z-index: var(--z-raised);
}

.lineup-modal-close:hover { background: rgba(255,255,255,.18); color: var(--text-white); }

.lineup-modal-body {
    padding: var(--sp-3) var(--sp-9) var(--sp-3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
    min-height: 0;
}

.lineup-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    flex-shrink: 0;
}

.lineup-modal-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    margin-bottom: var(--sp-1);
}

.lineup-modal-desc {
    color: var(--text-gray);
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
}

.lineup-video-wrap {
    flex: 1;
    min-height: 200px;
    border-radius: var(--radius-sm);
    overflow: visible;
    background: #000;
    position: relative;
}

.lineup-video-wrap iframe,
.lineup-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Clases que sustituyen a style="" de val-lineups.php ─────────────── */
.lu-plan            { color: var(--text-gray); }
.lu-plan.is-premium { color: var(--amber); }
.lu-link            { color: var(--brand-accent); }
.lineup-modal-body.lu-premium { text-align: center; padding: var(--sp-10) var(--sp-9); }
.lu-premium-ic   { margin-bottom: var(--sp-5); color: var(--amber); }
.lu-premium-t    { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.lu-premium-d    { color: var(--text-gray); margin-bottom: var(--sp-9); line-height: var(--lh-relaxed, 1.6); }
.btn-apply.lu-premium-btn { display: inline-block; text-decoration: none; padding: var(--sp-5) var(--sp-10); }
.lu-premium-foot { margin-top: var(--sp-7); font-size: var(--fs-md); color: var(--text-gray); }
.lu-video        { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   VSHELL — Lineups con el rediseño estilo Vercel (body.vshell)
   Su barra lateral de filtros pasa a ser una fila de filtros encima de la
   rejilla (mismo HTML e IDs): con la barra lateral del sitio no caben dos.
   Los filtros se aplican al cambiar; "Clear all" queda como boton de texto.
   -------------------------------------------------------------------------- */
.vshell .lineups-main { display: block; }
.vshell .lineups-main > .val-page-header { margin-bottom: var(--sp-9); }
.vshell .lineups-main .sidebar { position: static; margin-bottom: var(--sp-7); }
.vshell .lineups-main .sidebar-card { background: none; border: 0; padding: 0; overflow: visible; }
.vshell .lineups-main .sidebar-head { display: none; }
.vshell .lineups-main .sidebar-body {
    flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3) var(--sp-4);
    padding: 0 0 var(--sp-5); border-bottom: 1px solid var(--border-subtle);
}
.vshell .lineups-main .filter-group { gap: 4px; }
.vshell .lineups-main .filter-group label { font-size: var(--fs-xs); font-weight: var(--fw-medium); text-transform: none; letter-spacing: 0; color: var(--text-gray); }
.vshell .lineups-main .filter-group .cselect-trigger { min-width: 150px; height: 36px; padding: 0 var(--sp-4); background: none; border: 1px solid var(--border-subtle); border-radius: 6px; font-size: var(--fs-md); }
.vshell .lineups-main .filter-group .cselect.active .cselect-trigger { background: none; border-color: var(--brand-accent); }
.vshell .lineups-main #btnApply { display: none; }
.vshell .lineups-main .btn-reset { width: auto; height: 32px; padding: 0 var(--sp-4); border: 0; text-transform: none; font-weight: var(--fw-medium); }
.vshell .lineups-main .btn-reset:hover { color: var(--text-white); }
.vshell .lineups-main .sidebar-stats { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2) var(--sp-8); padding: var(--sp-4) 0 0; border-top: 0; }
.vshell .lineups-main .stat-row { gap: var(--sp-2); justify-content: flex-start; }
.vshell .lineups-main .stat-row span:last-child { color: var(--text-white); font-weight: var(--fw-semibold); }
.vshell .grid-area { gap: var(--sp-6); }
.vshell .lineups-grid { gap: var(--sp-7); }
.vshell .lineup-card { border-radius: var(--radius-sm); }
.vshell .lineup-card:hover { transform: none; border-color: var(--border-hover); box-shadow: none; }
.vshell .lineup-card:hover .card-thumb-img { transform: none; }

/* ==========================================================================
   MODAL LINEUP — opción B: vídeo grande + panel de detalles a la derecha
   ========================================================================== */
.lineup-modal.lineup-modal-b { max-width: 1120px; }
.lineup-modal-b .lineup-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.lineup-modal-b .lu-m-media { background: #000; display: flex; align-items: center; min-width: 0; }
.lineup-modal-b .lineup-video-wrap { flex: 1; min-height: 0; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; }
.lineup-modal-b .lu-novideo { display: grid; place-items: center; }
.lineup-modal-b .lu-m-side {
    display: flex; flex-direction: column; gap: var(--sp-5);
    padding: 22px 20px 20px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    min-height: 0;
}
.lineup-modal-b .lineup-modal-title { font-size: 20px; line-height: 1.3; margin: 0 36px 0 0; }
.lineup-modal-b .lineup-modal-desc { font-size: 14px; line-height: 1.55; margin: 0; }
.lu-d-list { display: flex; flex-direction: column; }
.lu-d-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--border); }
.lu-d-row:first-child { border-top: 0; }
.lu-d-k { width: 76px; flex: none; color: var(--text-gray); font-size: 12.8px; }
.lu-d-v { display: flex; align-items: center; gap: 8px; color: var(--text-white); font-size: 14px; min-width: 0; }
.lu-d-v svg { color: var(--text-gray); flex: none; }
.lu-d-img { width: 28px; height: 28px; object-fit: cover; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); flex: none; }
.lu-d-img.lu-d-ab { object-fit: contain; background: none; padding: 2px; }
.lu-d-img.lu-d-map { width: 40px; }   /* mapa apaisado (1,4:1), como en el Overview */
.lu-d-author { display: inline-flex; align-items: center; gap: 4px; color: var(--text-white); text-decoration: none; border-bottom: 1px solid transparent; }
.lu-d-author:hover { color: var(--brand-accent); }
.lu-d-author svg { color: currentColor; opacity: .7; }
.lu-diff { display: inline-flex; gap: 3px; margin-left: 2px; }
.lu-diff i { width: 4px; height: 12px; background: rgba(255,255,255,.18); }
.lu-diff-1 i:nth-child(-n+1),
.lu-diff-2 i:nth-child(-n+2),
.lu-diff-3 i:nth-child(-n+3) { background: var(--amber); }
.lu-diff-1 i:nth-child(-n+1) { background: var(--green); }
.lu-diff-3 i:nth-child(-n+3) { background: var(--valorant-red); }
.lu-m-acts { margin-top: auto; display: flex; gap: 8px; }
.lu-act {
    flex: 1; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: none;
    color: var(--text-white); font: 500 14px var(--font-sans); cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.lu-act:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }

/* ── Reproductor propio ── */
.lu-player { position: relative; width: 100%; height: 100%; background: #000; outline: none; }
.lu-player video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.lu-pl-big {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer;
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.lu-pl-big svg { width: 26px; height: 26px; margin-left: 4px; }
.lu-pl-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.lu-player.is-playing .lu-pl-big { opacity: 0; pointer-events: none; }
.lu-pl-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 10px; padding: 18px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff;
    transition: opacity .2s;
}
.lu-player.is-playing:not(:hover):not(:focus-within) .lu-pl-bar { opacity: 0; }
.lu-pl-btn { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; background: none; color: #fff; cursor: pointer; opacity: .9; padding: 0; }
.lu-pl-btn:hover { opacity: 1; }
.lu-pl-btn svg { width: 18px; height: 18px; }
.lu-pl-time { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.8); white-space: nowrap; }
.lu-pl-track { flex: 1; min-width: 60px; height: 16px; position: relative; cursor: pointer; touch-action: none; }
.lu-pl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 4px; background: rgba(255,255,255,.22); }
.lu-pl-track i { position: absolute; left: 0; top: 6px; height: 4px; width: 0; background: var(--brand-accent); }
.lu-pl-track b { position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.lu-pl-speeds { display: flex; gap: 4px; }
.lu-pl-chip {
    height: 24px; padding: 0 7px; display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); background: rgba(0,0,0,.35);
    color: #fff; font: 600 12px var(--font-mono); cursor: pointer;
}
.lu-pl-chip svg { width: 14px; height: 14px; }
.lu-pl-chip.on { border-color: var(--brand-accent); color: var(--brand-accent); }
.lu-player:fullscreen .lu-pl-bar { padding: 24px 20px 16px; }
/* Reproductor estrecho (panel de revisión, móvil): cabe todo sin salirse */
.lu-player { container-type: inline-size; }
@container (max-width: 600px) {
    .lu-pl-bar { gap: 4px; }
    .lu-pl-time { display: none; }
    .lu-pl-track { min-width: 40px; }
}
@container (max-width: 380px) {
    .lu-pl-back, .lu-pl-fwd { display: none; }
}

/* ── Móvil: vídeo arriba, detalles debajo ── */
@media (max-width: 860px) {
    .lineup-modal-overlay { padding: var(--sp-4); }
    .lineup-modal.lineup-modal-b { max-height: 92vh; }
    .lineup-modal-b .lineup-modal-body { grid-template-columns: 1fr; overflow-y: auto; }
    .lineup-modal-b .lu-m-side { border-left: 0; border-top: 1px solid var(--border); overflow: visible; }
    .lineup-modal-b .lineup-modal-close { background: rgba(0,0,0,.55); color: #fff; }
    .lu-pl-back, .lu-pl-fwd { display: none; }
    .lu-pl-bar { gap: 6px; padding: 14px 8px 6px; }
    .lu-pl-time { font-size: 11px; }
    .lu-pl-chip { padding: 0 5px; font-size: 11px; }
}
@media (max-width: 480px) {
    .lu-pl-time { display: none; }
}

/* ==========================================================================
   PÁGINA PROPIA DE UN LINEUP (val-lineup.php): misma ficha que el modal,
   en la página, y "More lineups" del mismo mapa debajo
   ========================================================================== */
a.lineup-card { color: inherit; text-decoration: none; }
.lu-page-main { display: block; }
.lu-crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-6); font-size: 14px; color: var(--text-gray); }
.lu-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-gray); text-decoration: none; }
.lu-crumbs a:hover { color: var(--text-white); }
.lu-page { padding: 0; overflow: hidden; }
.lu-page .lineup-modal-body { grid-template-columns: minmax(0, 1fr) 320px; }
.lu-page .lineup-modal-title { margin: 0; font-size: 22px; }
.lu-page .lu-m-side { overflow: visible; }
.lu-d-site { color: var(--text-gray); }
.lu-page-lock { position: relative; display: grid; place-items: center; background-size: cover; background-position: center; }
.lu-page-lock::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.lu-page-lock-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; }
.lu-page-lock-in b { font-size: 18px; }
.lu-page-lock-in p { margin: 0 0 6px; color: var(--text-gray); font-size: 14px; }
.lu-page-lock-in .lineup-lock-icon { color: var(--amber); }
.lu-more { margin-top: var(--sp-10); }
.lu-more-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-6); }
.lu-more-h h2 { margin: 0; font-size: 20px; }
@media (max-width: 860px) {
    .lu-page .lineup-modal-body { grid-template-columns: 1fr; }
    .lu-page .lu-m-side { border-left: 0; border-top: 1px solid var(--border); }
}

/* ── Rama colores: lado, agente y mapa con su color (--agent/--mc los pone val-lineups.php) ── */
.lineup-card .tag-type.is-atk { color: #ff6b76; background: rgba(255,70,85,.12); border-color: rgba(255,70,85,.3); }
.lineup-card .tag-type.is-def { color: #6cb8ff; background: rgba(59,166,255,.12); border-color: rgba(59,166,255,.3); }
.lineup-card[style*="--mc"] .thumb-map-label { box-shadow: inset 3px 0 0 var(--mc); padding-left: 8px; }
.lineup-card[style*="--agent"]:hover { border-color: color-mix(in srgb, var(--agent) 45%, transparent); }

/* ═══ Lineups v2: filtros visuales, mapas en miniatura, panel de detalle y modo mapa ═══ */
/* Los <select> de la barra lateral siguen siendo la fuente del estado; se ocultan */
.vshell .lineups-main .sidebar { display: none; }
.vshell .grid-area { position: relative; }

/* List/Map y orden en la barra superior */
.lu-tools { display: flex; align-items: center; gap: 8px; }

/* Barra de filtros */
.lu-fbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 12px); background: var(--bg-surface, #151515); }
.lu-fb-agents { display: flex; flex-wrap: wrap; gap: 4px; }
.lu-fb-ag { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.04); cursor: pointer; opacity: .5; transition: opacity .12s, box-shadow .12s; }
.lu-fb-ag img { width: 100%; height: 100%; border-radius: 8px; display: block; }
.lu-fb-ag:hover { opacity: .85; }
.lu-fb-ag.on { opacity: 1; box-shadow: 0 0 0 2px var(--valorant-red, #ff4655); }
.lu-fb-sep { width: 1px; height: 24px; background: var(--border-subtle); margin: 0 2px; }
.lu-fb-group { display: flex; gap: 4px; }
.lu-fb-chip { height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text-gray); font: 600 12.5px var(--font-sans); cursor: pointer; white-space: nowrap; }
.lu-fb-chip:hover { color: var(--text-white); }
.lu-fb-chip.on { background: var(--valorant-red, #ff4655); color: #fff; }
.lu-fb-key { min-width: 30px; padding: 0 8px; font-family: var(--font-mono, ui-monospace, monospace); }
.lu-fb-clear { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-gray); font: 500 12.5px var(--font-sans); cursor: pointer; }
.lu-fb-clear:hover { color: var(--text-white); }

/* Mapas en miniatura */
.lu-maps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lu-map-btn { position: relative; flex: 1 0 110px; height: 42px; padding: 0 10px 6px; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
    background: #1a1a1a center / cover no-repeat; color: #fff; font: 700 11.5px var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: flex-end; opacity: .5; transition: opacity .15s; }
.lu-map-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), transparent); }
.lu-map-btn span { position: relative; }
.lu-map-btn:hover { opacity: .85; }
.lu-map-btn.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--valorant-red, #ff4655); }
.lu-map-all { background: var(--bg-surface, #151515); border: 1px solid var(--border-subtle); }

/* Tarjeta abierta en el panel */
.lineup-card.is-sel { border-color: var(--valorant-red, #ff4655); box-shadow: 0 0 0 1px var(--valorant-red, #ff4655), 0 10px 30px rgba(0,0,0,.4); }

/* Panel de detalle (escritorio) */
.lu-drawer { display: none; }
@media (min-width: 1001px) {
    body.lu-has-drawer .grid-area { padding-right: 400px; }
    .lu-drawer:not([hidden]) { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 380px; z-index: 6; }
    .lu-drawer-body { position: sticky; top: calc(var(--vshell-top-h, 60px) + 16px); max-height: calc(100vh - var(--vshell-top-h, 60px) - 32px); overflow-y: auto;
        display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 12px); background: var(--bg-surface, #151515); scrollbar-width: thin; }
    .lu-drawer-close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
        background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
    .lu-drawer .lu-m-media { background: #000; border-radius: 12px 12px 0 0; overflow: hidden; }
    .lu-drawer .lineup-video-wrap { aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; }
    .lu-drawer .lu-novideo { display: grid; place-items: center; }
    .lu-drawer .lu-m-side { display: flex; flex-direction: column; gap: var(--sp-5); padding: 16px 18px 18px; }
    .lu-drawer .lineup-modal-title { font-size: 18px; line-height: 1.3; margin: 0; }
    .lu-drawer .lineup-modal-desc { font-size: 14px; line-height: 1.55; margin: 0; }
    .lu-drawer .lu-m-acts { flex-wrap: wrap; }
    .lu-drawer .lu-act { flex: 1 1 auto; text-decoration: none; }
}

/* ── Modo mapa: sin cabecera ni mapas en tira (el mapa tiene los suyos); la barra de filtros flota abajo ── */
body.lu-mapmode .lu-head-row, body.lu-mapmode .lu-maps, body.lu-mapmode .grid-topbar { display: none; }
body.lu-mapmode .lineups-main { padding-top: var(--sp-6); }
@media (min-width: 1001px) {
    body.lu-mapmode .grid-area { display: block; }
    body.lu-mapmode .lu-fbar { position: absolute; left: 16px; bottom: 16px; z-index: 5; width: max-content; max-width: calc(100% - 32px);
        background: rgba(18,18,20,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255,255,255,.1); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
    body.lu-mapmode.lu-has-drawer .grid-area { padding-right: 0; }
    body.lu-mapmode.lu-has-drawer .lu-fbar { max-width: calc(100% - 430px); }
    body.lu-mapmode .lu-drawer:not([hidden]) { top: 16px; right: 16px; bottom: 16px; }
    body.lu-mapmode .lu-drawer-body { position: static; height: 100%; max-height: none; background: rgba(18,18,20,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255,255,255,.1); }
    body.lu-mapmode.lu-has-drawer .lmap-tools { right: 412px; }
    body.lu-mapmode.lu-has-drawer .lmap-view { transform-origin: 50% 50%; }
    body.lu-mapmode.lu-has-drawer .lmap-stage { right: 396px; }
    /* Pantalla completa: la zona entera (mapa + filtros + panel) */
    .grid-area:fullscreen { padding: 0 !important; background: #0a0a0a; }
    .grid-area:fullscreen .lmap { height: 100vh; border: 0; border-radius: 0; }
}
.lu-map-all { flex: 0 0 auto; padding: 0 14px 6px; }
@media (max-width: 1000px) {
    .lu-fbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .lu-fb-agents { flex-wrap: nowrap; }
    .lu-fb-ag, .lu-fb-chip { flex: none; }
    .lu-map-btn { flex: 0 0 110px; }
}
/* Aire entre la cabecera (título + botón de enviar) y la barra de filtros */
.lineups-main .lu-head-row { margin-bottom: var(--sp-6); }

/* ═══ Filtros diseño A: desplegables con selector ═══ */
.lu-dd { position: relative; }
.lu-dd-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
    background: none; color: var(--text-gray); font: 500 var(--fs-sm) / 1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.lu-dd-btn:hover, .lu-dd.open .lu-dd-btn { color: var(--text-white); border-color: var(--border-hover); }
.lu-dd-btn.on { background: rgba(255,70,85,.14); border-color: rgba(255,70,85,.55); color: #ff8a94; }
.lu-dd-btn svg { opacity: .7; transition: transform .15s; }
.lu-dd.open .lu-dd-btn svg { transform: rotate(180deg); }
.lu-dd-ic:empty { display: none; }
.lu-dd-ic img { width: 18px; height: 18px; border-radius: 4px; display: block; margin-left: -4px; }
.lu-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; padding: 12px; border: 1px solid var(--border-hover); border-radius: 10px;
    background: var(--menu-bg, #1a1a1a); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.lu-pop[hidden] { display: none; }
.lu-pop-h { display: none; }
.lu-pop--agent { width: 392px; }
.lu-pop-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; margin-bottom: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-gray); }
.lu-pop-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text-white); font: 500 var(--fs-sm) var(--font-sans); outline: none; }
.lu-pop-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.lu-pop-faces { display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: 6px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.lu-face { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.04); cursor: pointer; opacity: .6; transition: opacity .12s, box-shadow .12s; }
.lu-face[hidden] { display: none; }
.lu-face img { width: 100%; height: 100%; border-radius: 8px; display: block; }
.lu-face span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lu-face:hover { opacity: 1; }
.lu-face.on { opacity: 1; box-shadow: 0 0 0 2px var(--brand-accent); }
.lu-pop-none { margin: 8px 0 0; color: var(--text-gray); font-size: var(--fs-sm); }
.lu-pop--map { width: 432px; }
.lu-pop-maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lu-pop-maps .lu-map-btn { height: 44px !important; flex: none; align-items: flex-end !important; padding: 0 8px 6px !important; }
.lu-pop--list { min-width: 170px; padding: 6px; display: grid; gap: 2px; }
.lu-pop-opt { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text-gray);
    font: 500 var(--fs-sm) / 1 var(--font-sans); text-align: left; cursor: pointer; }
.lu-pop-opt:hover { background: var(--bg-hover, rgba(255,255,255,.06)); color: var(--text-white); }
.lu-pop-opt.on { background: rgba(255,70,85,.14); color: #ff8a94; }
.lu-pop-opt kbd { min-width: 22px; height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border-subtle); border-radius: 5px; font: 600 11px var(--font-mono, ui-monospace, monospace); }

/* Lo elegido, debajo de la barra */
.lu-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.lu-picked[hidden] { display: none; }
.lu-pick { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 9px; border: 0; border-radius: 7px; background: rgba(255,255,255,.07);
    color: var(--text-white); font: 500 12px / 1 var(--font-sans); cursor: pointer; }
.lu-pick img { width: 16px; height: 16px; border-radius: 4px; margin-left: -3px; }
.lu-pick svg { color: var(--text-gray); }
.lu-pick:hover svg { color: var(--text-white); }

/* Modo mapa: la barra flota abajo → los desplegables se abren hacia arriba; los chips de elegidos no se muestran (ya se ven en la barra) */
body.lu-mapmode .lu-pop { top: auto; bottom: calc(100% + 6px); }
body.lu-mapmode .lu-picked { display: none; }

/* Móvil: los selectores se abren desde abajo a pantalla completa */
@media (max-width: 1000px) {
    .lu-fbar { overflow: visible; flex-wrap: wrap; }
    .lu-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto !important; max-height: 78vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 14px 16px 20px; z-index: 1300; }
    .lu-pop-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .lu-pop-h b { font-size: 16px; }
    .lu-pop-x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text-white); }
    .lu-pop-faces { grid-template-columns: repeat(auto-fill, 48px); max-height: none; }
    .lu-face { width: 48px; height: 48px; }
    .lu-pop-maps { grid-template-columns: repeat(2, 1fr); }
    body.lu-pop-open::after { content: ""; position: fixed; inset: 0; z-index: 1299; background: rgba(0,0,0,.55); }
    body.lu-mapmode .lu-pop { bottom: 0; }
}
