/* val-premier.css — /valorant/premier (games/valorant/val-premier.php).
   El aviso sin sesión / sin Riot usa val-connect.css (.vc-*). */

.pm-main { max-width: 1040px; margin: 0 auto; padding: var(--sp-12, 48px) var(--sp-9, 28px) 64px; box-sizing: border-box; }
.pm-intro { max-width: 620px; margin-bottom: 28px; }
.pm-intro h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--text-white); }

/* Crear / unirse */
.pm-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pm-opt { padding: 26px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 8px); background: var(--bg-surface); }
.pm-opt-ic { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--border-subtle); border-radius: 9px; color: var(--text-gray); }
.pm-opt-ic svg { width: 18px; height: 18px; }
.pm-opt h2 { margin: 0; font-size: 19px; color: var(--text-white); }
.pm-opt > p { margin: 6px 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.pm-opt .st-inp { max-width: none; }
.pm-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; margin-top: var(--sp-7, 20px); }
.pm-row .st-fld + .st-fld { margin-top: 0; }
.pm-code { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.pm-hint { display: block; margin: 6px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.pm-err { margin: 14px 0 0; color: var(--valorant-red); font-size: 13.5px; }
.pm-submit { width: 100%; margin-top: 20px; }
.st-btn.is-busy { opacity: .6; pointer-events: none; }

/* Invitaciones recibidas */
.pm-invites { margin-bottom: 16px; padding: 16px 18px; border: 1px solid rgba(255,70,85,.3); border-radius: var(--radius-md, 8px); background: rgba(255,70,85,.05); }
.pm-invites h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; color: var(--text-white); }
.pm-invites h2 svg { width: 16px; height: 16px; color: var(--valorant-red); }
.pm-invite { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,70,85,.15); }
.pm-invite:first-of-type { border-top: 0; }
.pm-invite b { color: var(--text-white); }
.pm-invite small { display: block; color: var(--text-muted); font-size: 12.5px; }
.pm-invite-acts { margin-left: auto; display: flex; gap: 8px; }
.pm-invite-acts .st-btn { height: 34px; }

/* Logo del equipo (iniciales del tag hasta que haya subida de logo) */
.pm-logo { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 12px;
    background: linear-gradient(135deg, var(--valorant-red), #7a1d26); color: #fff; font: 800 20px var(--font-sans); letter-spacing: .02em; }
.pm-logo--sm { width: 38px; height: 38px; border-radius: 8px; font-size: 12px; }
.pm-tag { color: var(--text-muted); font-weight: 500; }

/* Con equipo */
.pm-hero { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 16px;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 8px);
    background: linear-gradient(120deg, rgba(255,70,85,.08), var(--bg-surface) 60%); }
.pm-hero h1 { margin: 0; font-size: 26px; color: var(--text-white); letter-spacing: -.01em; }
.pm-sub { margin: 2px 0 0; color: var(--text-muted); font-size: 13.5px; }
.pm-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.pm-side { display: grid; gap: 16px; }
.pm-card { padding: 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 8px); background: var(--bg-surface); }
.pm-card h2 { margin: 0 0 12px; font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-gray); }
.pm-card--soon { border-style: dashed; background: none; }
.pm-sec { margin: 16px 0 4px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.pm-card h2 + .pm-sec { margin-top: 0; }
.pm-mem { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.pm-mem:last-child { border-bottom: 0; }
.pm-mem b { color: var(--text-white); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pm-mem small { color: var(--text-muted); font-size: 12.5px; }
.pm-mem--empty b, .pm-mem--empty .pm-av { color: var(--text-muted); }
.pm-mem--empty .pm-av { background: none; border: 1px dashed var(--border-hover); }
.pm-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
    background: rgba(255,255,255,.06); color: var(--text-white); font-size: 12px; font-weight: 700; }
.pm-av img { width: 100%; height: 100%; object-fit: cover; }
.pm-av svg { width: 15px; height: 15px; }
.pm-capt { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--valorant-red); }
.pm-capt svg { width: 12px; height: 12px; }
.pm-role { font-size: 12px; color: var(--text-muted); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 1px 9px; }
.pm-inline { display: flex; gap: 8px; }
.pm-inline .st-inp { max-width: none; flex: 1; }
.pm-pend { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-white); font-size: 14px; }
.pm-pend small { color: var(--text-muted); }
.pm-codebox { display: flex; gap: 8px; align-items: center; }
.pm-codebox code { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); background: var(--bg-dark); font: 600 15px var(--font-mono); letter-spacing: .16em; color: var(--text-white); }
.pm-leave { justify-self: start; }

@media (max-width: 820px) {
    .pm-main { padding: 20px 16px 48px; }
    .pm-choose, .pm-grid { grid-template-columns: 1fr; }
    .pm-invite { flex-wrap: wrap; }
    .pm-invite-acts { margin-left: 50px; }
}

/* ── Vista del equipo con pestañas (includes/valorant/premier-team-view.php) ── */
:root { --pm-blue: #3BA6FF; }
.pm-main--team { max-width: var(--page-max, 1440px); padding-top: 28px; }
.pm-main--team .pm-hero { border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0; margin-bottom: 0; }
.pm-hstats { margin-left: auto; display: flex; gap: 26px; text-align: right; }
.pm-hstats b { display: block; font-size: 20px; color: var(--text-white); }
.pm-hstats span:not(.pm-form) { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.pm-prev { color: var(--yellow, #E3B341); font-weight: 600; }
.pm-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; padding: 0 10px; margin-bottom: 18px;
    border: 1px solid var(--border-subtle); border-top: 0; border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px); background: var(--bg-surface); }
.pm-tabs button { display: flex; align-items: center; gap: 7px; padding: 12px 13px; border: 0; border-bottom: 2px solid transparent; background: none;
    color: var(--text-muted); font: 500 14px var(--font-sans); cursor: pointer; white-space: nowrap; }
.pm-tabs button svg { width: 15px; height: 15px; }
.pm-tabs button:hover:not(:disabled) { color: var(--text-white); }
.pm-tabs button.is-on { color: var(--text-white); border-bottom-color: var(--valorant-red); }
.pm-tabs button:disabled { cursor: default; opacity: .55; }
.pm-tabs-sep { width: 1px; margin: 10px 6px; background: var(--border-subtle); flex: none; }
.pm-soon { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--border-hover); border-radius: 999px; padding: 0 6px; }
.pm-pane > * + * { margin-top: 16px; }
.pm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pm-card h2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-link { border: 0; background: none; padding: 0; color: var(--valorant-red); font: 500 13px var(--font-sans); text-transform: none; letter-spacing: 0; cursor: pointer; }
.pm-mut { color: var(--text-muted); }
.w { color: var(--green, #3ccf91); } .l { color: var(--valorant-red); }

.pm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pm-kpi { padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 8px); background: var(--bg-surface); }
.pm-kpi span { display: block; color: var(--text-muted); font-size: 12.5px; }
.pm-kpi b { display: block; margin: 4px 0 2px; font-size: 24px; color: var(--text-white); letter-spacing: -.01em; }
.pm-kpi b em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.pm-kpi small { color: var(--text-muted); font-size: 12px; }
.pm-form { display: inline-flex; gap: 4px; vertical-align: middle; }
.pm-form i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; font: 700 11px var(--font-sans); font-style: normal; }
.pm-form i.w { background: rgba(60,207,145,.14); } .pm-form i.l { background: rgba(255,70,85,.14); } .pm-form i.d { background: rgba(255,255,255,.08); color: var(--text-gray); }

.pm-trend { width: 100%; height: auto; display: block; }
.pm-trend .g { stroke: var(--border-subtle); stroke-dasharray: 3 4; }
.pm-trend text { fill: var(--text-muted); font: 11px var(--font-sans); }
.pm-trend circle.w { fill: var(--green, #3ccf91); } .pm-trend circle.l { fill: var(--valorant-red); }

.pm-map { display: grid; grid-template-columns: 56px 80px 1fr 42px 40px; gap: 10px; align-items: center; padding: 6px 0; }
.pm-map b { color: var(--text-white); font-size: 14px; font-weight: 500; }
.pm-map-img { width: 56px; height: 40px; border-radius: 6px; background: #222 center/cover; }
.pm-bar { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.pm-bar i { display: block; height: 100%; border-radius: 4px; }
.pm-num { text-align: right; color: var(--text-white); font-size: 13.5px; }

.pm-match { display: grid; grid-template-columns: 4px 84px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.pm-match:last-child { border-bottom: 0; }
.pm-res { height: 38px; border-radius: 3px; background: var(--text-muted); }
.pm-res.w { background: var(--green, #3ccf91); } .pm-res.l { background: var(--valorant-red); }
.pm-mimg { width: 84px; height: 48px; border-radius: 7px; background: #222 center/cover; display: flex; align-items: flex-end; padding: 4px 6px; box-sizing: border-box;
    box-shadow: inset 0 -22px 18px -10px rgba(0,0,0,.75); }
.pm-mimg b { color: #fff; font-size: 11px; }
.pm-match b { color: var(--text-white); font-size: 14px; }
.pm-match small { display: block; color: var(--text-muted); font-size: 12.5px; }
.pm-score { text-align: right; font-weight: 700; font-size: 15px; }
.pm-score small { font-weight: 400; }

.pm-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-tbl th { text-align: left; font-weight: 500; color: var(--text-muted); font-size: 12px; padding: 0 8px 8px; border-bottom: 1px solid var(--border-subtle); }
.pm-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-gray); }
.pm-tbl td b { color: var(--text-white); font-weight: 500; }
.pm-tbl tr:last-child td { border-bottom: 0; }
.pm-tbl small { font-size: 11.5px; }
.pm-card:has(.pm-tbl) { overflow-x: auto; }

.pm-cmp { display: grid; grid-template-columns: 150px 1fr 1fr 50px; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.pm-cmp b { color: var(--text-white); font-weight: 500; font-size: 14px; }
.pm-cmp small { color: var(--text-muted); font-size: 12px; }
.pm-diff { text-align: right; font-weight: 700; }
.pm-legend { display: flex; align-items: center; gap: 6px; font: 400 12px var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.pm-legend i { width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }

.pm-empty { padding: 42px 20px; text-align: center; border: 1px dashed var(--border-hover); border-radius: var(--radius-md, 8px); color: var(--text-muted); }
.pm-empty svg { width: 26px; height: 26px; color: var(--text-gray); }
.pm-empty b { display: block; margin: 10px 0 4px; color: var(--text-white); font-size: 16px; }
.pm-empty p { max-width: 460px; margin: 0 auto; font-size: 14px; line-height: 1.5; }
.pm-empty-sm { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.pm-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: 13px; }
.pm-note svg { width: 15px; height: 15px; flex: none; }
.pm-note--warn { color: var(--yellow, #E3B341); margin-bottom: 16px; }

.pm-preview-tg { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border: 1px solid var(--border-hover); border-radius: 999px; background: var(--bg-surface); color: var(--text-white); font-size: 13px; text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.pm-preview-tg svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
    .pm-kpis { grid-template-columns: 1fr 1fr; }
    .pm-grid2 { grid-template-columns: 1fr; }
    .pm-hstats { display: none; }
    .pm-cmp { grid-template-columns: 100px 1fr 1fr 40px; gap: 8px; }
}
.pm-kpi b .pm-form { display: inline-flex; margin-top: 4px; }

/* Información y resumen tipo Tracker */
.pm-info { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 8px); background: var(--bg-surface); }
.pm-info > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 14px 18px; border-left: 1px solid var(--border-subtle); }
.pm-info > div:first-child { border-left: 0; }
.pm-info svg { grid-row: span 2; width: 22px; height: 22px; color: var(--text-gray); }
.pm-info span { color: var(--text-muted); font-size: 12px; }
.pm-info b { color: var(--text-white); font-size: 17px; }
@media (max-width: 1000px) {
    .pm-sum3 { grid-template-columns: 1fr; }
    .pm-info { grid-template-columns: 1fr 1fr; }
    .pm-info > div:nth-child(3) { border-left: 0; }
    .pm-info > div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
}

/* Tira de KPIs (kpi-strip.css): aquí no hay otra hoja que ponga la rejilla */
body.vshell .pm-kstrip .stats-kpi-grid { display: grid !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
body.vshell .pm-pane > .pm-kstrip:not(:first-child) { margin-top: 16px !important; }

/* Resumen General / Ataque / Defensa: tres tarjetas con cifra grande y barra */
.pm-sum3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pm-sc { --sc: var(--text-white); position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--border-subtle); border-radius: 12px;
    background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--sc) 12%, transparent), transparent 60%), var(--bg-surface); }
.pm-sc--atk { --sc: var(--valorant-red); }
.pm-sc--def { --sc: var(--pm-blue); }
.pm-sc--all { --sc: var(--green, #3ccf91); }
.pm-sc-head { display: flex; align-items: center; gap: 12px; }
.pm-sc-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--sc);
    background: color-mix(in srgb, var(--sc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent); }
.pm-sc-ic svg { width: 17px; height: 17px; }
.pm-sc-head h3 { margin: 0; font: 600 15px var(--font-sans); color: var(--text-white); }
.pm-sc-head span { color: var(--text-muted); font-size: 12px; }
.pm-sc-big { margin-left: auto; font: 700 28px/1 var(--font-sans); letter-spacing: -.02em; color: var(--sc); font-variant-numeric: tabular-nums; }
.pm-sc-bar { display: block; height: 4px; margin: 14px 0 16px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.pm-sc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--sc); }
.pm-sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
.pm-st b { display: block; font: 600 19px var(--font-sans); color: var(--text-white); font-variant-numeric: tabular-nums; }
.pm-st span { display: block; margin-top: 3px; font: 500 10.5px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }

/* Botón de la cabecera (Copy public link / Open team dashboard) */
.pm-hero-btn { margin-top: 10px; height: 32px; font-size: 13px; }

/* Buscador de partidas para Practice */
.pm-find summary { list-style: none; cursor: pointer; }
.pm-find summary::-webkit-details-marker { display: none; }
.pm-find summary h2 { margin: 0; }
.pm-find summary h2 > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pm-find summary h2 svg { width: 15px; height: 15px; }
.pm-find[open] summary { margin-bottom: 12px; }
.pm-badge { font: 600 11px var(--font-sans); letter-spacing: 0; text-transform: none; color: #fff; background: var(--valorant-red); border-radius: 999px; padding: 2px 8px; }
.pm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 6px; }
.pm-chips button { padding: 5px 12px; border: 1px solid var(--border-subtle); border-radius: 999px; background: none; color: var(--text-gray); font: 500 13px var(--font-sans); cursor: pointer; }
.pm-chips button.is-on { border-color: var(--text-white); color: var(--text-white); background: rgba(255,255,255,.06); }
.pm-chk { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.pm-flist { max-height: 420px; overflow-y: auto; }
.pm-frow { display: grid; grid-template-columns: 64px 1fr auto 100px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.pm-frow[hidden] { display: none; }
.pm-frow b { color: var(--text-white); font-size: 14px; }
.pm-frow small { display: block; color: var(--text-muted); font-size: 12.5px; }
.pm-mimg--sm { width: 64px; height: 38px; }
.pm-fbtn { height: 32px; justify-content: center; font-size: 13px; }
.pm-frow.is-added .pm-fbtn { color: var(--green, #3ccf91); }
.pm-match:has(.pm-x) { grid-template-columns: 4px 84px 1fr auto 30px; }
.pm-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-muted); cursor: pointer; }
.pm-x:hover { background: rgba(255,70,85,.12); color: var(--valorant-red); }
.pm-x svg { width: 15px; height: 15px; }

/* Official / Practice: 70 % | 30 % */
.pm-73 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.pm-col { display: grid; gap: 16px; min-width: 0; }
.pm-col--side .pm-frow { grid-template-columns: 52px 1fr auto; }
.pm-col--side .pm-frow .pm-score { display: none; }
.pm-col--side .pm-mimg--sm { width: 52px; height: 34px; }
.pm-col--side .pm-chk { margin-left: 0; width: 100%; }
.pm-col--side .pm-map { grid-template-columns: 48px 1fr 40px; }
.pm-col--side .pm-map .pm-bar { grid-column: 2 / 4; grid-row: 2; }
.pm-col--side .pm-map .pm-mut { display: none; }
.pm-col--side .pm-map-img { grid-row: span 2; width: 48px; height: 36px; }
@media (max-width: 1100px) { .pm-73 { grid-template-columns: 1fr; } }

/* Lista de partidas en la columna estrecha */
.pm-col--side .pm-match { grid-template-columns: 4px 56px 1fr auto; gap: 10px; }
.pm-col--side .pm-match:has(.pm-x) { grid-template-columns: 4px 56px 1fr auto 26px; }
.pm-col--side .pm-mimg { width: 56px; height: 36px; }
.pm-col--side .pm-mimg b { display: none; }
.pm-col--side .pm-score { font-size: 14px; }
.pm-col--side .pm-score small { display: none; }
.pm-col--side .pm-card:has(.pm-match) { max-height: 520px; overflow-y: auto; }

/* Brackets (torneos de comunidad del equipo) */
.pm-brk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.pm-brk-head a { color: var(--text-white); text-decoration: none; } .pm-brk-head a:hover b { color: var(--valorant-red); }
.pm-brk-head b { font-size: 16px; }
.pm-brk-head .pm-mut { flex-basis: 100%; font-size: 13px; }
.pm-comm { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px var(--font-sans);
    color: #2fb3be; background: rgba(32,121,129,.18); border: 1px solid rgba(47,179,190,.35); }
.pm-comm svg { width: 13px; height: 13px; }
.pm-st { font: 700 11px var(--font-sans); padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text-gray); }
.pm-st--live { background: rgba(255,70,85,.16); color: var(--valorant-red); }
.pm-st--open { background: rgba(60,207,145,.14); color: var(--green, #3ccf91); }
.pm-st--closed { background: rgba(227,179,65,.14); color: var(--yellow, #E3B341); }
.pm-brk .rb-team.rb-me { box-shadow: inset 3px 0 0 #2fb3be; }
.pm-brk .rb-team.rb-me .rb-name { color: #2fb3be; font-weight: 600; }

/* Schedule */
.pm-next { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid rgba(255,70,85,.4); border-radius: 12px; background: rgba(255,70,85,.06); }
.pm-next-d { text-align: center; padding-right: 18px; border-right: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.pm-next-d b { display: block; font-size: 26px; line-height: 1.1; color: var(--text-white); }
.pm-next-t { font-size: 17px; color: var(--text-white); margin-left: 6px; }
.pm-next p { margin: 4px 0 0; font-size: 13px; }
.pm-next-c { color: var(--text-gray); } .pm-warn { color: var(--yellow, #E3B341); }
.pm-rsvp { margin-left: auto; text-align: right; font-size: 12.5px; }
.pm-rsvp > div { display: flex; gap: 6px; margin-top: 6px; } .pm-rsvp .st-btn { height: 32px; padding: 0 14px; }
.pm-typ { display: inline-block; font: 700 11px var(--font-sans); padding: 1px 8px; border-radius: 999px; vertical-align: 1px; background: rgba(255,255,255,.08); color: var(--text-gray); }
.pm-typ--premier, .pm-typ--tournament { background: rgba(255,70,85,.15); color: var(--valorant-red); }
.pm-typ--scrim { background: rgba(47,179,190,.15); color: #2fb3be; }
.pm-typ--review { background: rgba(227,179,65,.15); color: var(--yellow, #E3B341); }
.pm-wknav { display: flex; gap: 6px; } .pm-wknav .st-btn { width: 32px; height: 32px; padding: 0; justify-content: center; }
.pm-wknav svg { width: 15px; height: 15px; }
.pm-cal { display: grid; grid-template-columns: 120px repeat(var(--cols, 7), minmax(0, 1fr)); gap: 4px; font-size: 13px; }
.pm-cal-h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 6px; color: var(--text-muted); font-size: 12px; }
.pm-cal-h b { color: var(--text-gray); font-weight: 600; } .pm-cal-h.is-today b, .pm-cal-h.is-today span { color: var(--valorant-red); }
.pm-evt { width: 100%; font: 700 10px var(--font-sans); font-style: normal; text-align: center; padding: 2px 3px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255,255,255,.08); color: var(--text-gray); }
.pm-evt--premier, .pm-evt--tournament { background: rgba(255,70,85,.18); color: var(--valorant-red); }
.pm-evt--scrim { background: rgba(47,179,190,.18); color: #2fb3be; } .pm-evt--review { background: rgba(227,179,65,.16); color: var(--yellow, #E3B341); }
.pm-cal-n { display: flex; align-items: center; gap: 6px; padding: 0 4px; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-cal-n small { color: var(--text-muted); font-size: 11px; } .pm-cal-n.is-me { color: #2fb3be; font-weight: 600; }
.pm-c { height: 34px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.03); border: 1px solid transparent; color: var(--text-muted); font: 700 13px var(--font-sans); }
.pm-c--yes { background: rgba(60,207,145,.13); color: var(--green, #3ccf91); }
.pm-c--maybe { background: rgba(227,179,65,.12); color: var(--yellow, #E3B341); }
.pm-c--no { background: rgba(255,70,85,.12); color: var(--valorant-red); }
button.pm-c { cursor: pointer; border-color: var(--border-subtle); } button.pm-c:hover { border-color: #2fb3be; }
.pm-c--none.is-mine { color: var(--text-muted); font-weight: 400; }
.pm-up { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.pm-up:last-child { border-bottom: 0; }
.pm-up-d { width: 44px; flex: none; text-align: center; border: 1px solid var(--border-subtle); border-radius: 8px; padding: 3px 0; font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; }
.pm-up-d b { display: block; font-size: 16px; color: var(--text-white); }
.pm-up-t { min-width: 0; flex: 1; } .pm-up-t b { color: var(--text-white); font-size: 14px; } .pm-up-t small { display: block; color: var(--text-muted); font-size: 12px; }
.pm-add summary { list-style: none; cursor: pointer; } .pm-add summary::-webkit-details-marker { display: none; }
.pm-add summary h2 { margin: 0; } .pm-add summary h2 span { display: inline-flex; align-items: center; gap: 8px; } .pm-add summary svg { width: 15px; height: 15px; }
.pm-add[open] summary { margin-bottom: 8px; }
.pm-add .st-inp { max-width: none; } .pm-add .st-fld { margin-top: 12px; }
@media (max-width: 900px) { .pm-next { flex-wrap: wrap; } .pm-rsvp { margin-left: 0; text-align: left; } .pm-cal { grid-template-columns: 80px repeat(var(--cols, 7), minmax(30px, 1fr)); } }

/* Team room */
.rm-sub { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-sub button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--border-subtle); border-radius: 999px; background: none; color: var(--text-gray); font: 500 13.5px var(--font-sans); cursor: pointer; }
.rm-sub button svg { width: 15px; height: 15px; }
.rm-sub button.is-on { color: var(--text-white); border-color: var(--text-white); background: rgba(255,255,255,.06); }
.rm-pick { display: flex; gap: 8px; } .rm-pick .st-inp { height: 34px; width: auto; min-width: 130px; font: 500 13px var(--font-sans); text-transform: none; letter-spacing: 0; }
.rm-name .st-inp { max-width: 320px; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.rm-pl { display: grid; grid-template-columns: 120px minmax(0, 220px) 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-subtle); }
.rm-pl b { color: var(--text-white); font-weight: 500; } .rm-pl small { color: var(--text-muted); font-weight: 400; }
.rm-pl .st-inp { height: 34px; max-width: none; font-size: 13.5px; }
.rm-ag { color: var(--text-muted); font-size: 13px; } .rm-ag b { color: var(--text-white); }
.rm-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 14px; }
.rm-sliders label { display: block; font-size: 13px; color: var(--text-gray); }
.rm-sliders label b { float: right; color: var(--text-white); font-weight: 500; }
.rm-sliders input { width: 100%; margin: 6px 0 4px; accent-color: var(--valorant-red); }
.rm-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; } .rm-actions > span { margin-right: auto; font-size: 12.5px; }
.rm-est { display: flex; align-items: baseline; gap: 10px; } .rm-est b { font-size: 40px; line-height: 1; color: var(--text-white); letter-spacing: -.02em; }
.rm-est span { color: var(--text-muted); font-size: 13px; }
.pm-card .pm-bar + .rm-why { margin-top: 14px; }
.rm-why { margin: 14px 0 0; padding-left: 18px; color: var(--text-gray); font-size: 13.5px; } .rm-why li { margin: 6px 0; } .rm-why b { color: var(--text-white); }
.rm-mapf { margin: 0 0 12px; }
.rm-play { padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); }
.rm-play[hidden] { display: none; }
.rm-play header { display: flex; align-items: center; gap: 10px; } .rm-play header b { color: var(--text-white); font-size: 15px; }
.rm-play header .pm-x { margin-left: auto; }
.rm-steps { margin: 10px 0 0; padding-left: 20px; color: var(--text-gray); font-size: 13.5px; } .rm-steps li { margin: 3px 0; }
.rm-lu { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--text-muted); font-size: 12.5px; } .rm-lu svg { width: 13px; height: 13px; }
.rm-rates { display: grid; gap: 6px; margin-top: 12px; }
.rm-rate { display: grid; grid-template-columns: 62px 1fr 42px 40px auto auto; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-muted); }
.rm-rate b { color: var(--text-white); text-align: right; }
.rm-cnt { padding: 3px 9px; border: 1px solid var(--border-subtle); border-radius: 6px; background: none; color: var(--text-gray); font: 500 11.5px var(--font-sans); cursor: pointer; }
.rm-cnt:hover { border-color: var(--border-hover); color: var(--text-white); } .rm-cnt--w:hover { border-color: var(--green, #3ccf91); color: var(--green, #3ccf91); }
.rm-noteform { display: grid; grid-template-columns: 1.3fr 64px 72px 3fr auto; gap: 8px; margin-bottom: 6px; }
.rm-noteform .st-inp { max-width: none; height: 36px; font-size: 13.5px; } .rm-noteform .pm-err { grid-column: 1 / -1; margin: 0; }
.rm-note { display: flex; align-items: baseline; gap: 10px; padding: 9px 0 9px 12px; border-left: 2px solid #2fb3be; margin: 8px 0; background: rgba(47,179,190,.04); border-radius: 0 8px 8px 0; }
.rm-note span { flex: 1; color: var(--text-gray); font-size: 14px; } .rm-note small { color: var(--text-muted); font-size: 12px; }
.rm-rd { flex: none; color: #2fb3be; font: 600 12px var(--font-mono); }
.rm-task { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.rm-task input { margin-top: 3px; accent-color: var(--green, #3ccf91); width: 16px; height: 16px; }
.rm-task div { flex: 1; min-width: 0; } .rm-task span { display: block; color: var(--text-white); font-size: 14px; } .rm-task small { color: var(--text-muted); font-size: 12px; }
.rm-task.is-done span { color: var(--text-muted); text-decoration: line-through; }
.rm-taskform { display: grid; gap: 8px; margin-top: 12px; } .rm-taskform .st-inp { max-width: none; height: 36px; font-size: 13.5px; } .rm-taskform .pm-err { margin: 0; }
@media (max-width: 900px) { .rm-pl { grid-template-columns: 90px 1fr; } .rm-ag { grid-column: 2; } .rm-sliders, .rm-noteform { grid-template-columns: 1fr; } .rm-rate { grid-template-columns: 56px 1fr 38px 36px; } .rm-rate .rm-cnt { display: none; } }

/* Team: controles del capitán e historial */
.pm-mgr { display: inline-flex; align-items: center; gap: 6px; }
.pm-mgr .st-inp { height: 30px; width: auto; min-width: 110px; padding: 0 28px 0 10px; font-size: 12.5px; }
.pm-hist { margin-top: 16px; }
.pm-hl { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; color: var(--text-gray); }
.pm-hl:last-child { border-bottom: 0; }
.pm-hl b { color: var(--text-white); font-weight: 600; }
.pm-hl-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text-gray); }
.pm-hl-ic svg { width: 14px; height: 14px; }
.pm-hl--ok .pm-hl-ic { background: rgba(60,207,145,.12); color: var(--green, #3ccf91); }
.pm-hl--bad .pm-hl-ic { background: rgba(255,70,85,.12); color: var(--valorant-red); }
.pm-hl--gold .pm-hl-ic { background: rgba(227,179,65,.14); color: var(--yellow, #E3B341); }
.pm-hl-t { flex: 1; min-width: 0; }
.pm-hl time { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
/* Overview · Tournaments (historial de torneos de comunidad) */
.pm-tres { margin-top: 16px; }
.pm-tres-r { display: grid; grid-template-columns: 92px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid rgba(255, 255, 255, .06); color: inherit; text-decoration: none; border-radius: 8px; }
.pm-tres-r:first-of-type { border-top: 0; }
.pm-tres-r:hover { background: rgba(255, 255, 255, .03); }
.pm-tres-r > svg { width: 16px; height: 16px; color: var(--muted, #8a93a3); }
.pm-tres-n { display: grid; gap: 2px; min-width: 0; }
.pm-tres-n b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-tres-n small { color: var(--muted, #8a93a3); font-size: .8rem; }
.pm-tres-p { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--muted, #8a93a3); white-space: nowrap; }
.pm-tres-p svg { width: 13px; height: 13px; }
.pm-tres-p.is-p1 { background: rgba(240, 196, 25, .16); color: #f0c419; }
.pm-tres-p.is-p2 { background: rgba(200, 208, 220, .14); color: #cfd6e2; }
.pm-tres-p.is-p3 { background: rgba(205, 127, 50, .16); color: #e09a5a; }
.pm-tres-p.is-live { background: rgba(47, 179, 190, .16); color: #2fb3be; }
.pm-tres-p.is-soon { background: rgba(32, 121, 129, .12); color: #7fc3c9; }
/* Team room en directo (premier-room.js · premier_room_live.sql) */
.rm-live { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(47, 179, 190, .08); border: 1px solid rgba(47, 179, 190, .25); font-size: .85rem; }
.rm-live > b { color: #2fb3be; font-weight: 600; margin-right: 2px; }
.rm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 0 rgba(60, 207, 122, .6); animation: rmPulse 1.8s infinite; }
@keyframes rmPulse { 70% { box-shadow: 0 0 0 7px rgba(60, 207, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .rm-live-dot { animation: none; } }
.rm-live-u { display: inline-flex; align-items: center; gap: 6px; }
.rm-live-u i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; background: #207981; color: #fff; }
.rm-live-u small { color: var(--muted, #8a93a3); }
.rm-typing { display: block; margin-bottom: 4px; font-size: .75rem; color: #2fb3be; }
.rm-typing::before { content: "✎ "; }
.rm-flash { animation: rmFlash 1.6s ease; }
@keyframes rmFlash { 0% { color: #2fb3be; } 100% { color: inherit; } }
.rm-typing[hidden] { display: none; }
/* Strategy lab · sliders con más estilo */
.rm-sliders { gap: 12px; margin-top: 16px; }
.rm-sl { --rgb: 47 179 190; --rgb2: 32 121 129; }
.rm-sl--tempo  { --rgb: 255 70 85;  --rgb2: 170 34 48; }
.rm-sl--util   { --rgb: 164 107 255; --rgb2: 98 58 170; }
.rm-sl--stack  { --rgb: 79 140 255; --rgb2: 40 82 170; }
.rm-sl--retake { --rgb: 240 196 25; --rgb2: 168 128 10; }
.rm-sl { display: grid; gap: 10px; padding: 12px 14px 10px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)); border: 1px solid var(--border-subtle); cursor: default; transition: border-color .15s ease; }
.rm-sl:hover, .rm-sl:focus-within { border-color: rgb(var(--rgb) / .5); }
.rm-sl-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-gray); }
.rm-sl-h > svg { width: 15px; height: 15px; color: rgb(var(--rgb)); flex: none; }
.rm-sl-h > span { flex: 1; min-width: 0; }
.rm-sl-h b { float: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgb(var(--rgb) / .18); box-shadow: inset 0 0 0 1px rgb(var(--rgb) / .4); white-space: nowrap; }
.rm-sl-h b::first-letter { text-transform: uppercase; }
.rm-sl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.rm-sl input[type=range]:focus { outline: none; }
.rm-sl input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--rgb2)), rgb(var(--rgb))) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, .08); }
.rm-sl input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.rm-sl input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--rgb2)), rgb(var(--rgb))); }
.rm-sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: #fff; border: 3px solid rgb(var(--rgb)); box-shadow: 0 0 0 4px rgb(var(--rgb) / .18), 0 2px 6px rgba(0, 0, 0, .4); transition: transform .12s ease, box-shadow .12s ease; }
.rm-sl input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid rgb(var(--rgb)); box-shadow: 0 0 0 4px rgb(var(--rgb) / .18); }
.rm-sl input[type=range]:hover::-webkit-slider-thumb, .rm-sl input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 7px rgb(var(--rgb) / .24), 0 2px 6px rgba(0, 0, 0, .4); }
.rm-sl input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.rm-sl-e { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .rm-sl, .rm-sl input[type=range]::-webkit-slider-thumb { transition: none; } }
.rm-live[hidden] { display: none; }
.pm-sc-grid .pm-st { padding: 0; border-radius: 0; background: none; font: inherit; color: inherit; }   /* no heredar la pill de estado de brackets */

@media (max-width: 480px) { .pm-tres-r { grid-template-columns: 78px auto minmax(0, 1fr) auto; gap: 10px; } }

/* ── Color de equipo (--tc/--tcd los pone premier-team-view.php, premier_team_color.sql) ── */
.pm-main[style*="--tc"] .pm-logo { background: linear-gradient(135deg, var(--tc), var(--tcd)); }
.pm-main[style*="--tc"] .pm-hero { background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 16%, transparent), var(--bg-surface) 60%); border-color: color-mix(in srgb, var(--tc) 20%, var(--border-subtle)); }
.pm-main[style*="--tc"] .pm-tabs button.is-on { border-bottom-color: var(--tc); }
.pm-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-color { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--c1), var(--c0)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.pm-color.is-on { box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--c1); }
.pm-color:focus-visible { outline: 2px solid var(--c-info, #2BD4C4); outline-offset: 3px; }
