:root {
  --bg: #141619; --bg2: #1b1e22; --bg3: #242830; --line: #2e333b; --text: #eceff3; --mute: #9aa3af;
  --red: #ee3b32; --blue: #3da5e8; --gold: #d09a42; --silver: #b9c2cc; --bronze: #c27a4b;
  --ok: #4cc38a; --err: #ff6b62;
  --f-head: 'Chakra Petch', system-ui, sans-serif; --f-body: 'Barlow Semi Condensed', system-ui, sans-serif;
  --tab-h: 64px; --rail: 224px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--f-body); min-height: 100dvh;
  background-image: radial-gradient(ellipse 80% 40% at 50% -5%, rgba(255,255,255,.07), transparent 70%), radial-gradient(ellipse 60% 30% at 90% 100%, rgba(61,165,232,.05), transparent 70%); background-attachment: fixed; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0 0 .6rem; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); } h2 { font-size: 1.25rem; margin-top: 1.8rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8rem; } code { background: var(--bg3); padding: .1em .35em; border-radius: 4px; }
.mute { color: var(--mute); } .sub { margin: -.2rem 0 .8rem; font-size: .95rem; } .sub.tight { margin: .6rem 0 .1rem; } .hide { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
/* Aro partido del logo: rojo arriba, azul abajo → se usa como subrayado de títulos */
.duo { position: relative; padding-bottom: .55rem; }
.duo::after { content: ''; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 3px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); border-radius: 2px; }

/* ---------- estructura ---------- */
.shell { display: block; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; background: rgba(20,22,25,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: calc(.55rem + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font: 600 1rem var(--f-head); } .brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; } .top .who { display: none; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
#view { padding: 1.2rem 1rem 2rem; max-width: 1100px; margin: 0 auto; outline: none; }
.nav { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg2); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button, .sheet a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--mute); font: 500 .72rem var(--f-body); background: none; border: 0; cursor: pointer; text-decoration: none; }
.tabbar [aria-current], .nav [aria-current], .sheet [aria-current] { color: var(--text); }
.tabbar a[aria-current] svg { color: var(--red); }
.sheet { position: fixed; left: .6rem; right: .6rem; bottom: calc(var(--tab-h) + .5rem + env(safe-area-inset-bottom)); z-index: 29; background: var(--bg3); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.sheet[hidden] { display: none; } .sheet a, .sheet button { padding: .7rem .2rem; border-radius: 10px; } .sheet .out { grid-column: 1 / -1; color: var(--err); font-size: .9rem; flex-direction: row; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--rail) 1fr; grid-template-rows: auto 1fr; padding-bottom: 0; min-height: 100dvh; }
  .top { grid-column: 1 / -1; } .tabbar, .sheet { display: none; }
  .nav { display: flex; flex-direction: column; gap: 2px; padding: 1rem .7rem; position: sticky; top: 61px; align-self: start; height: calc(100dvh - 61px); border-right: 1px solid var(--line); }
  .nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 10px; color: var(--mute); font-weight: 500; } .nav a:hover { background: var(--bg2); color: var(--text); text-decoration: none; }
  .nav a[aria-current] { background: var(--bg3); box-shadow: inset 3px 0 0 var(--red); }
  #view { padding: 1.8rem 2rem 3rem; width: 100%; } .top .who { display: block; max-width: none; }
}

/* ---------- acceso ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 2.5rem 1.2rem; text-align: center; }
.auth-logo { border-radius: 50%; margin-bottom: .6rem; box-shadow: 0 0 60px rgba(238,59,50,.15), 0 0 60px rgba(61,165,232,.12); }
.spin { animation: breathe 1.8s ease-in-out infinite; } @keyframes breathe { 50% { transform: scale(.94); opacity: .8; } }
.auth .seg { margin: 1.2rem auto; } .auth form { text-align: left; }
.form-msg { color: var(--err); font-size: .92rem; margin: 0; min-height: 0; display: none; } .form-msg.show { display: block; }
.link { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: .4rem 0; align-self: center; }
.chk { display: flex; gap: .5rem; align-items: center; color: var(--mute); }

/* ---------- controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .5rem 1.1rem; border-radius: 10px; border: 1px solid transparent; background: var(--red); color: #fff; font: 600 .95rem var(--f-head); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); text-decoration: none; } .btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); } .btn.ghost:hover { background: var(--bg3); }
.btn.danger { background: #b3261e; } .btn.danger.ghost { background: transparent; color: var(--err); border-color: #5b2a27; }
.btn.sm { min-height: 32px; padding: .2rem .7rem; font-size: .85rem; }
.fl { display: flex; flex-direction: column; gap: .3rem; min-width: 0; } .fl > span { font-size: .85rem; color: var(--mute); }
input, select, textarea { width: 100%; min-height: 42px; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: .45rem .7rem; font: inherit; }
textarea { resize: vertical; min-height: 80px; } input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--red); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(61,165,232,.2); }
.card-form, .inline-form { display: grid; gap: .9rem; margin: 1rem 0; }
.inline-form { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; } .row.end { justify-content: flex-end; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .6rem; margin: 1rem 0 .7rem; }
.search { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; } .search input { max-width: 340px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; margin: .4rem 0 1rem; flex-wrap: wrap; }
.seg > * { padding: .4rem .9rem; border-radius: 8px; border: 0; background: none; color: var(--mute); font: 500 .95rem var(--f-body); cursor: pointer; text-decoration: none; }
.seg > [aria-selected=true] { background: var(--bg3); color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .6rem; scrollbar-width: thin; }
.chip { flex: none; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); font-size: .92rem; text-decoration: none; background: var(--bg2); }
.chip.on { color: var(--text); border-color: var(--blue); background: rgba(61,165,232,.12); } .chips.sm { flex-wrap: wrap; overflow: visible; } .chips.sm .chip { font-size: .85rem; }
.more { text-align: center; margin: 1rem 0; }

/* ---------- tablas ---------- */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); margin: .6rem 0 1rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font: 500 .8rem var(--f-body); color: var(--mute); padding: .6rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg2); position: sticky; top: 0; }
td { padding: .5rem .6rem; border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: rgba(255,255,255,.025); }
.n { text-align: right; } th.n { text-align: right; } .b { font-weight: 600; color: var(--text); }
table.rk .sticky { position: sticky; left: 0; background: var(--bg2); z-index: 1; box-shadow: 1px 0 0 var(--line); } table.rk th.sticky { z-index: 2; }
.tl { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; } .tl:hover { color: var(--blue); text-decoration: none; }
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: none; display: inline-block; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.pos { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font: 600 .85rem var(--f-head); color: var(--mute); }
.pos.p1 { color: #1b1305; background: var(--gold); } .pos.p2 { color: #12161a; background: var(--silver); } .pos.p3 { color: #1c0f06; background: var(--bronze); }
.g1 { color: var(--gold); } .g2 { color: var(--silver); } .g3 { color: var(--bronze); }
table.ed input, table.ed select { min-height: 34px; padding: .2rem .4rem; min-width: 56px; } table.ed td { padding: .25rem .3rem; } table.ed .w-team { min-width: 170px; } table.ed select { min-width: 120px; }
table.cal td { white-space: normal; vertical-align: top; min-width: 110px; } table.cal td b { display: block; font-size: .85rem; } table.cal td span { color: var(--text); font-weight: 500; } table.cal td.rest span { color: var(--mute); font-weight: 400; }

/* ---------- inicio ---------- */
.hero { position: relative; display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem 1.2rem 1.6rem; margin: -1.2rem -1rem 1.4rem; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 55% 130% at 18% -20%, rgba(255,255,255,.2), transparent 65%), linear-gradient(180deg, #1d2025, var(--bg)); }
.hero::before { content: ''; position: absolute; inset: 0; background: url(../img/liga.jpg) right center / cover no-repeat; opacity: .11; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero > * { position: relative; } .hero-logo { border-radius: 50%; width: 112px; height: 112px; box-shadow: 0 0 50px rgba(238,59,50,.18), 0 0 50px rgba(61,165,232,.15); flex: none; }
.hero h1 { margin: 0 0 .2rem; font-size: clamp(1.8rem, 6vw, 2.8rem); } .hero p { margin: 0; }
@media (min-width: 900px) { .hero { margin: -1.8rem -2rem 1.8rem; padding: 2.2rem 2rem; } .hero-logo { width: 150px; height: 150px; } }
.mine { display: grid; gap: .1rem; padding: .9rem 1.1rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; background: var(--bg2); color: var(--text); text-decoration: none !important; } .mine strong { font: 600 1.15rem var(--f-head); }
.grid2 { display: grid; gap: 1.5rem; } @media (min-width: 900px) { .grid2 { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; } } .grid2 h2 { margin-top: 0; }
.champs { list-style: none; margin: .6rem 0 1rem; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.champs a { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .9rem; background: var(--bg2); color: var(--text); text-decoration: none; } .champs a:hover { background: var(--bg3); }
.champs .ed { color: var(--mute); } .champs .who { font-weight: 600; }
.news { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .7rem; } .news li { padding: .8rem 1rem; background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; } .news p { margin: .2rem 0 0; color: var(--mute); white-space: pre-line; }
.foot { margin-top: 2rem; font-size: .9rem; }

/* ---------- equipo / duelos ---------- */
.team-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; } .team-head .flag { width: 44px; height: 30px; } .team-head h1 { margin: 0; word-break: break-word; }
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.statline > div { background: var(--bg2); padding: .7rem .9rem; display: grid; } .statline b { font: 600 1.5rem var(--f-head); } .statline span { color: var(--mute); font-size: .85rem; }
.bar3 { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: .9rem 0 .4rem; background: var(--bg3); } .bar3 i { display: block; } .bar3 .w { background: var(--ok); } .bar3 .d { background: #596270; } .bar3 .l { background: var(--err); } .bar3 .red { background: var(--red); } .bar3 .blue { background: var(--blue); }
.h2h-form { display: grid; gap: .7rem; align-items: end; margin: 1rem 0 1.4rem; } @media (min-width: 700px) { .h2h-form { grid-template-columns: 1fr 1fr auto; } }
.fl.red input { border-color: rgba(238,59,50,.55); } .fl.blue input { border-color: rgba(61,165,232,.55); }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; text-align: center; margin-top: .5rem; } .vs .side { display: grid; gap: .1rem; padding: .8rem .4rem; border-radius: 12px; background: var(--bg2); overflow-wrap: anywhere; }
.vs .side b { font-size: .95rem; }
.vs .side.red { border-top: 3px solid var(--red); } .vs .side.blue { border-top: 3px solid var(--blue); } .vs .big { font: 700 2.6rem/1 var(--f-head); } .vs .mid { display: grid; color: var(--mute); } .vs .mid .big { color: var(--text); font-size: 1.8rem; }
.matches { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.matches li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; padding: .55rem .9rem; background: var(--bg2); }
.matches .h { text-align: right; padding-right: .6rem; border-right: 3px solid var(--red); } .matches .a { padding-left: .6rem; border-left: 3px solid var(--blue); }
.matches .sc { display: inline-flex; gap: .45rem; font: 700 1.1rem var(--f-head); } .matches .sc i { width: 1px; background: var(--line); }
.matches .w-h .h, .matches .w-a .a { font-weight: 600; color: var(--text); } .matches .w-h .a, .matches .w-a .h { color: var(--mute); } .matches em { grid-column: 1 / -1; text-align: center; font-style: normal; font-size: .8rem; color: var(--mute); margin-top: -.2rem; }

/* ---------- varios ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: 14px; margin: 1.5rem 0; } .empty .btn { margin-top: .6rem; }
.acc { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); margin: .6rem 0; } .acc summary { padding: .8rem 1rem; cursor: pointer; font: 600 1rem var(--f-head); } .acc > div { padding: 0 1rem 1rem; color: var(--text); line-height: 1.6; }
.subnav { display: flex; gap: .3rem; overflow-x: auto; margin: .6rem 0 1.2rem; border-bottom: 1px solid var(--line); } .subnav a { padding: .55rem .8rem; color: var(--mute); white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; } .subnav [aria-current] { color: var(--text); border-color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin: 1rem 0; } .cards.one { grid-template-columns: 1fr; }
.card { display: grid; gap: .1rem; padding: 1rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none !important; } a.card:hover { border-color: var(--blue); }
.card b { font: 700 1.9rem var(--f-head); } .card small { color: var(--mute); } .card.plain h3 { margin-bottom: .3rem; }
.rule { display: grid; gap: .5rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: var(--bg2); } .rule .btn { justify-self: start; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 1rem + env(safe-area-inset-bottom)); z-index: 100; display: grid; gap: .5rem; width: min(92vw, 420px); }
.toast { padding: .7rem 1rem; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: pop .2s ease-out; } .toast.ok { border-left: 3px solid var(--ok); } .toast.err { border-left: 3px solid var(--err); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.dlg { border: 1px solid var(--line); border-radius: 14px; background: var(--bg3); color: var(--text); padding: 1.2rem; max-width: min(92vw, 420px); } .dlg::backdrop { background: rgba(0,0,0,.6); }
@media (min-width: 900px) { #toasts { bottom: 1.5rem; } }
@media (max-width: 520px) { .vs .big { font-size: 2rem; } .hero { gap: 1rem; } .hero-logo { width: 88px; height: 88px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- seguidores y visitas (esquina del encabezado) ---------- */
.stats { display: flex; gap: .9rem; margin-left: auto; align-items: center; color: var(--mute); }
.stats span { display: inline-flex; align-items: center; gap: .3rem; line-height: 1; } .stats b { color: var(--text); font: 600 .95rem var(--f-head); } .stats small { font-size: .78rem; }
.stats svg { color: var(--blue); } .stats span + span svg { color: var(--red); }
@media (max-width: 520px) { .brand span { font-size: .9rem; } .stats { gap: .6rem; } .stats small { display: none; } }
@media (min-width: 900px) { .stats { margin-left: auto; margin-right: 1.2rem; } .stats small { font-size: .85rem; } }

/* ---------- selector de equipos con filtro por país ---------- */
.picker { position: relative; display: grid; gap: .4rem; min-width: 0; } .picker .plabel { font-size: .85rem; color: var(--mute); }
.picker.red input, .picker.red select { border-color: rgba(238,59,50,.55); } .picker.blue input, .picker.blue select { border-color: rgba(61,165,232,.55); }
.pk-list { position: absolute; z-index: 15; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.pk-list[hidden] { display: none; } .pk-item { width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 46px; padding: .4rem .6rem; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 1rem var(--f-body); text-align: left; cursor: pointer; }
.pk-item:hover, .pk-item:focus-visible { background: rgba(255,255,255,.07); } .pk-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; } .pk-item small { color: var(--mute); flex: none; }
.pk-empty { padding: .7rem .8rem; color: var(--mute); font-size: .9rem; }
.h2h-form .picker { margin-bottom: .2rem; }

/* ---------- estadísticas ---------- */
.bars { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: 1.6rem minmax(0, 11rem) 1fr auto; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.bars .rk { color: var(--mute); font: 600 .85rem var(--f-head); text-align: right; } .bars .tl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .track { height: 10px; background: var(--bg3); border-radius: 5px; overflow: hidden; } .bars .track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--blue)); } .bars .track i.neg { background: var(--err); }
.bars b { font: 600 .95rem var(--f-head); min-width: 3.4rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1.4rem 1fr auto; } .bars .track { grid-column: 2 / -1; grid-row: 2; } }

/* ---------- redes / instalar ---------- */
.socials { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.2rem 0; }
.social { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.social:hover { border-color: var(--blue); } .social b { display: block; font: 600 1.15rem var(--f-head); } .social small { color: var(--mute); font-size: .92rem; } .social.yt svg { color: var(--red); } .social.tk svg { color: var(--blue); } .social.cf svg { color: #e1306c; }
.install { width: 100%; margin-top: 1rem; } .steps { padding-left: 1.2rem; display: grid; gap: .4rem; } .dlg h3 { margin-bottom: .5rem; }
.champs .who { min-width: 0; text-align: right; overflow-wrap: anywhere; } .champs a { align-items: center; }

.export { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .9rem; }
.btn.sm { padding: .5rem .85rem; font-size: .9rem; }
.btn.wa { background: #25a85a; border-color: #25a85a; color: #fff; }

/* ---- Categorías y menú interno ---- */
.catlist { list-style: none; margin: 0; padding: 0; } .catlist li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cbadge { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 1.5rem var(--f-head); background: var(--c); border: 3px solid #0e1013; box-shadow: 0 0 0 2px var(--c); text-decoration: none; }
.cbadge.sm { width: 44px; height: 44px; font-size: 1.15rem; }
.cname { flex: 1; min-width: 0; padding: .45rem .8rem; border-radius: 6px; font: 600 .98rem var(--f-head); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp, .go { background: none; border: 0; color: var(--mute); cursor: pointer; padding: .3rem; display: grid; } .go { color: var(--text); }
.crumb { margin: 0 0 .4rem; }
.catnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin-bottom: 1rem; position: sticky; top: 60px; z-index: 6; padding: .4rem 0; background: var(--bg); }
.catnav a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; border-radius: 12px; background: var(--bg3); color: var(--text); text-decoration: none; font: 600 .85rem var(--f-head); }
.catnav a span { display: none; } .catnav a[aria-current] { background: var(--text); color: var(--bg); } .catnav a[aria-current] span { display: inline; }
@media (min-width: 700px) { .catnav a span { display: inline; } }
.chead { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; } .chead h1 { margin: 0; font-size: 1.4rem; }
.seasel { max-width: 260px; } .fl.inl { flex-direction: row; align-items: center; gap: .5rem; } .fl.inl select { width: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem 1rem; margin: 1rem 0; } .facts dt { color: var(--mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; } .facts dd { margin: .15rem 0 0; font-weight: 600; }
.state { display: inline-block; padding: .1rem .6rem; border-radius: 99px; background: var(--bg3); } .state.live { background: #134e32; color: #6ee7a8; } .state.end { background: #3a2a14; color: #f3c27a; } .state.soon { background: #123a58; color: #7cc4f5; }
.pre { white-space: pre-line; margin: 0; }
.chips.fechas { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; } .chips.fechas .chip { flex: none; }
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 1rem 0; border-block: 1px solid var(--line); } .statbar div { padding: .8rem .3rem; border-right: 1px solid var(--line); } .statbar div:last-child { border: 0; }
.statbar b { display: block; font: 700 1.7rem var(--f-head); } .statbar span { font-size: .68rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
details.acc.center summary { text-align: center; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.mcards { list-style: none; padding: 0; margin: 0; } .mc { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mt { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; text-align: center; }
.tm { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 0; } .tm .flag { width: 56px; height: 38px; object-fit: cover; border-radius: 3px; } .tm b { font-size: .9rem; word-break: break-word; }
.mid { display: flex; flex-direction: column; align-items: center; gap: .3rem; } .mid em { font: 600 .65rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; background: var(--bg3); padding: .15rem .6rem; border-radius: 99px; font-style: normal; color: var(--mute); } .mid strong { font: 700 2rem var(--f-head); white-space: nowrap; }
.prob { margin-top: .8rem; } .prob .bar3 { margin: 0 0 .4rem; } .pr3 { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; font: 700 1rem var(--f-head); } .pr3 small { display: block; font: 500 .7rem var(--f-body); color: var(--mute); } .prob p, .prob-none { text-align: center; font-size: .75rem; margin: .2rem 0 0; }
.vslist { list-style: none; padding: 0; margin: 0; } .vsc { border-bottom: 1px solid var(--line); padding: .6rem 0; } .vsc summary { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; cursor: pointer; list-style: none; }
.vsc summary small { grid-column: 1 / -1; text-align: center; color: var(--mute); } .vt { font-weight: 600; } .vt:last-of-type { text-align: right; } .vt.win { color: var(--gold); }
.vsc-sc { font: 700 1.5rem var(--f-head); display: flex; gap: .4rem; align-items: center; } .vsc-sc i { font-style: normal; color: var(--mute); }
.tabla tbody tr:first-child td:first-child { box-shadow: inset 3px 0 var(--blue); } .tabla tbody tr:nth-last-child(-n+2) td:first-child { box-shadow: inset 3px 0 var(--red); }

/* ---- Modo claro ---- */
:root[data-theme="light"] { --bg: #f3f5f8; --bg2: #ffffff; --bg3: #e8ecf1; --line: #d7dde5; --text: #151a21; --mute: #5a6472; --gold: #a8740f; --silver: #7c8795; --bronze: #a8643a; --blue: #1b78bd; --ok: #1d8a58; --err: #c8372e; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="light"] body { background-image: radial-gradient(ellipse 80% 40% at 50% -5%, rgba(0,0,0,.035), transparent 70%); }
:root[data-theme="light"] .top { background: rgba(243,245,248,.94); }
:root[data-theme="light"] tbody tr:hover td, :root[data-theme="light"] .pk-item:hover { background: rgba(0,0,0,.04); }
:root[data-theme="light"] .tabbar { background: rgba(255,255,255,.96); }
:root[data-theme="light"] .hero::before { opacity: .07; }
:root[data-theme="light"] .state.live { background: #d6f5e6; color: #14653f; } :root[data-theme="light"] .state.end { background: #fbead0; color: #8a5a0e; } :root[data-theme="light"] .state.soon { background: #d9ecfa; color: #14598f; }
:root[data-theme="light"] .btn.danger.ghost { border-color: #e7b6b2; }

/* ---- Tema (botón), perfil, imágenes ---- */
.theme { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; } .theme svg { width: 20px; height: 20px; }
.top { gap: .6rem; } .top .stats { margin-left: auto; }
.avatar-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--bg3); border: 2px solid var(--line); } .avatar.ph { display: inline-block; }
.bannerp { width: 180px; height: 80px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.filebtn { cursor: pointer; display: inline-flex; align-items: center; } .filebtn input { display: none; }
.cimg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; } .cbadge:has(.cimg) { background: #0e1013; padding: 0; overflow: hidden; }
.cbl { text-decoration: none; display: contents; }
.team-head { align-items: center; } .team-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); margin-right: .2rem; }
.team-photo[hidden] { display: none; }
.hero { isolation: isolate; } .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero[data-banner]::before { display: none; }
.champs .ed small { color: var(--mute); font-weight: 400; }
.sponsors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.sp { display: flex; flex-direction: column; gap: .25rem; align-items: center; text-align: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; } .sp a { display: block; width: 100%; } .sp-img { display: block; width: 100%; height: 76px; object-fit: contain; border-radius: 8px; background: #fff; } .sp span { font-weight: 600; font-size: .8rem; }
.res { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 6px; font: 700 .8rem var(--f-head); color: #10131a; background: var(--mute); } .res.G { background: var(--ok); } .res.P { background: var(--err); }
.clr { padding-inline: .8rem; } .h2h-form { align-items: end; }
td.tn { display: flex; align-items: center; gap: .5rem; } td.tn .w-team { flex: 1; min-width: 9rem; }
/* ---- Cronograma ---- */
.cron-m { text-transform: capitalize; margin: 1.4rem 0 .4rem; color: var(--blue); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 .6rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; gap: .9rem; padding: .6rem 0 .6rem 1.1rem; } .timeline .dot { position: absolute; left: -.42rem; top: 1.15rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--bg); }
.tl-d { text-align: center; min-width: 2.6rem; } .tl-d b { display: block; font: 700 1.5rem/1 var(--f-head); } .tl-d small { color: var(--mute); text-transform: uppercase; font-size: .7rem; }
.tl-b strong { display: block; font-family: var(--f-head); } .tl-c { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.chip.dv { background: var(--c); color: #fff; border-color: transparent; font-size: .8rem; padding: .15rem .6rem; text-decoration: none; }

:root[data-theme="light"] .hero { background: linear-gradient(180deg, #e2e7ee, var(--bg)); }


/* Cronograma mensual interactivo */
.month-calendar { margin:1rem 0 1.6rem; }
.month-toolbar { display:flex; align-items:end; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.month-toolbar h2 { margin-bottom:.2rem; }
.month-select { min-width:190px; }
.month-heading { text-transform:capitalize; text-align:center; margin:.8rem 0; font:600 1.15rem var(--f-head); }
.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.month-weekdays > div { padding:.55rem .35rem; text-align:center; color:var(--mute); font-size:.8rem; background:var(--bg2); border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.month-day { min-height:108px; padding:.45rem; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--bg); min-width:0; }
.month-day.empty { background:var(--bg2); opacity:.45; }
.month-number { display:block; font-weight:700; margin-bottom:.35rem; }
.month-day.has-events { background:var(--bg2); }
.month-event { border-left:3px solid var(--red); padding:.25rem .35rem; margin:.25rem 0; border-radius:4px; background:rgba(255,255,255,.025); }
.month-event > b { display:block; font-size:.82rem; margin-bottom:.25rem; }
.month-divs { display:flex; flex-wrap:wrap; gap:.2rem; }
.month-divs .chip { font-size:.68rem; padding:.1rem .35rem; }
@media(max-width:650px) {
 .month-day { min-height:76px; padding:.25rem; }
 .month-number { font-size:.8rem; }
 .month-event { padding:.2rem; border-left-width:2px; }
 .month-event > b { font-size:.68rem; }
 .month-divs .chip { font-size:.58rem; padding:.05rem .2rem; }
 .month-weekdays > div { font-size:.65rem; padding:.4rem .1rem; }
}
/* Filas de campeones */
.champ-pending {
  cursor: default;
  pointer-events: none;
}

.champ-pending .who {
  color: var(--mute);
}

.champions li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  width: 100%;
  box-sizing: border-box;
}

.champions li {
  list-style: none;
}

/* Publicidad en Inicio: franja ancha y baja con rotación */
.adslot { margin: 0 0 1.2rem; } .adslot > small { display: block; text-align: right; color: var(--mute); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.ad-track { position: relative; height: 90px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.ad-s { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; } .ad-s.on { opacity: 1; pointer-events: auto; }
.ad-s a { display: block; height: 100%; } .ad-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-logo { object-fit: cover; }

/* Editor de recorte */
.dlg.crop { max-width: 420px; } .crop-vp { position: relative; margin: .6rem auto; background: #fff; overflow: hidden; touch-action: none; border-radius: 10px; }
.crop-vp canvas { display: block; cursor: grab; touch-action: none; } .crop-vp::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.crop-vp.circle::after { border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.6); outline: 2px solid #fff; outline-offset: -2px; }
.crop-vp.rect::after { box-shadow: inset 0 0 0 2px #fff; }
.crop-zoom { width: 100%; margin: .4rem 0 .8rem; }
/* Calendario: hasta 12 torneos por día */
.month-divs { gap: .15rem; } .month-divs .chip .t { }
@media (max-width: 900px) { .month-divs .chip .t { display: none; } .month-divs .chip { min-width: 1.5rem; text-align: center; justify-content: center; padding: .1rem .25rem; } }
@media (max-width: 900px) { .month-divs { display: grid; grid-template-columns: repeat(auto-fill, minmax(1.15rem, 1fr)); gap: 2px; } .month-divs .chip { min-width: 0; padding: .1rem 0; font-size: .6rem; border-radius: 6px; } .month-event { padding: .15rem; } }
@media (min-width: 901px) { .month-divs .chip { padding: .1rem .3rem; } }
@media (max-width: 900px) { .month-calendar { overflow-x: auto; } .month-calendar .month-grid { min-width: 760px; } .month-day { min-height: 90px; } .month-divs { grid-template-columns: repeat(auto-fill, minmax(1.5rem, 1fr)); } .month-divs .chip { font-size: .7rem; } }

/* Patrocinio con ubicaciones: banner superior ancho y lateral vertical */
.ad-track { height: auto; aspect-ratio: 6 / 1; max-width: 980px; margin: 0 auto; }
.adside { margin: 0 0 1.2rem; } .adside > small { display: block; text-align: right; color: var(--mute); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.adside .ad-track { aspect-ratio: 3 / 4; max-width: 300px; } .ad-img { object-fit: cover; }
.sponsors.wide { grid-template-columns: 1fr; max-width: 700px; } .sponsors.tall { grid-template-columns: repeat(auto-fill, minmax(140px, 190px)); margin-top: .8rem; }
.sp-img.w { height: auto; aspect-ratio: 6 / 1; object-fit: cover; } .sp-img.v { height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

/* Foto de perfil cuadrada */
.avatar.sq { border-radius: 14px; width: 96px; height: 96px; }
/* Banner sin filtro */
.hero-bg { opacity: 1; mask-image: none; -webkit-mask-image: none; }
.hero[data-banner] { background: none; } .hero[data-banner] h1, .hero[data-banner] p { text-shadow: 0 2px 10px rgba(0,0,0,.75); color: #fff; }

/* Administración: menú lateral vertical */
.adm-layout { display: grid; gap: 1rem; align-items: start; } .adm-body { min-width: 0; }
.adm-menu { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.adm-menu summary { list-style: none; cursor: pointer; padding: .8rem 1rem; font-weight: 600; } .adm-menu summary::-webkit-details-marker { display: none; }
.adm-menu ul { list-style: none; margin: 0; padding: .3rem; } .adm-menu li a { display: block; padding: .65rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.adm-menu li a:hover { background: var(--bg3); } .adm-menu li a[aria-current=page] { background: var(--bg3); font-weight: 700; box-shadow: inset 3px 0 0 var(--red, #ee3b32); }
@media (min-width: 900px) { .adm-layout { grid-template-columns: 220px 1fr; gap: 1.5rem; } .adm-menu summary { display: none; } .adm-menu { position: sticky; top: 70px; } }
/* Equipos de la temporada */
.partlist { list-style: none; margin: .6rem 0; padding: 0; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.partlist li[hidden] { display: none; } .partlist .chk { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); cursor: pointer; } .partlist .chk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk { display: inline-flex; align-items: center; gap: .4rem; } .chk input { width: 18px; height: 18px; }
/* Récords */
.recs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1rem; }
.rec { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; } .rec h3 { margin: 0 0 .5rem; font-size: 1rem; }
.rec ol { list-style: none; margin: 0; padding: 0; } .rec li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--line); } .rec li:first-child { border-top: 0; }
.rec li > span:first-child { width: 1.4rem; color: var(--mute); } .rec li b { margin-left: auto; white-space: nowrap; } .rec li b small { color: var(--mute); font-weight: 400; }
.rec li.first b { color: var(--gold); font-size: 1.1rem; } .rec .rg { display: flex; flex-direction: column; min-width: 0; } .rec .rg small { color: var(--mute); }
.adslot.big { margin-bottom: 1rem; } .adslot.big .ad-track { max-width: none; }
.mc.w-u .mid strong { color: var(--mute); font-weight: 600; } .mc .tm { color: inherit; text-decoration: none; } .mc a.tm:hover b { text-decoration: underline; }
.notifbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); } .notifbar span { flex: 1; min-width: 180px; }
/* Selector de idioma */
.dlg.lang { max-width: 420px; width: calc(100% - 2rem); } .lang-h { display: flex; align-items: center; justify-content: space-between; } .lang-h h3 { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.lang-list { list-style: none; margin: .6rem 0 0; padding: 0; } .lang-list button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; padding: .9rem .2rem; cursor: pointer; } .lang-list button[aria-current] { font-weight: 700; color: var(--blue); }
.tsec { margin-top: 1.4rem; }

/* Cierre de fechas (admin) */
.fecierre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: 1rem 1.2rem; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.fecierre h3 { margin: 0 0 .2rem; } .fecierre p { margin: 0; }
.fcards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.fcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; display: grid; gap: .8rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.fcard.on { border-color: var(--blue); }
.fscore { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; text-align: center; font-size: .9rem; word-break: break-word; }
.fscore strong { font: 700 1.5rem var(--f-head); } .fscore span { color: var(--mute); }
.fcard .frow { display: flex; align-items: center; justify-content: space-between; gap: .6rem; } .fcard .frow b { font-weight: 600; word-break: break-word; }
.stp { display: inline-flex; align-items: center; gap: .3rem; } .stp input { width: 3.2rem; text-align: center; } .stp .btn { min-width: 2.2rem; }
.fcard.on .frow, .fcard .frow { opacity: 1; } .fcard:not(.on) .frow { opacity: .5; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; font-weight: 600; position: relative; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw i { width: 46px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sw input:checked + i { background: var(--blue); } .sw input:checked + i::after { transform: translateX(20px); }
.sw input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Llaves */
.bk { display: flex; gap: 1.4rem; overflow-x: auto; padding: .4rem .2rem 1rem; align-items: stretch; }
.bk-r { display: flex; flex-direction: column; min-width: 170px; flex: 1 0 170px; } .bk-r h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 .5rem; text-align: center; }
.bk-c { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: .8rem; }
.bk-m { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: visible; }
.bk-r:not(:last-child) .bk-m::after { content: ''; position: absolute; left: 100%; top: 50%; width: 1.4rem; border-top: 2px solid var(--line); }
.bk-t { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; font-size: .9rem; } .bk-t + .bk-t { border-top: 1px solid var(--line); }
.bk-t span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bk-t b { font: 700 1rem var(--f-head); min-width: 1.2ch; text-align: right; }
.bk-t.w { background: rgba(76,195,138,.14); } .bk-t.w span { font-weight: 700; }
.bk.edit .bk-t input:not([type=number]) { flex: 1; min-width: 0; } .bk.edit .bk-t input[type=number] { width: 3.4rem; }
.bk.edit .bk-m { padding-bottom: .1rem; }
@media (max-width: 600px) { .fecierre { flex-direction: column; align-items: stretch; } }
.fecierre p b { font: inherit; font-weight: 700; color: var(--text); }

/* Hero: sin banner propio, la imagen de la comunidad (banderas) se ve completa y sin filtro */
.hero:not([data-banner])::before { opacity: 1 !important; mask-image: none !important; -webkit-mask-image: none !important; background-position: center; }
:root[data-theme="light"] .hero:not([data-banner]) { background: none; }
/* Anotar desde Juegos */
.mid-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: .2rem .5rem; border-radius: 12px; }
.mid-btn:hover, .mid-btn:focus-visible { background: var(--bg3); outline: 2px solid transparent; }
.mid-btn:focus-visible { outline: 2px solid var(--blue); }
.ed-hint { font: 600 .65rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.mdlg { width: min(94vw, 420px); }
.mdlg .mform { display: grid; gap: .9rem; }
.mdlg .fscore { padding: .2rem 0; }
.mdlg .chk { font-size: .85rem; color: var(--mute); display: flex; gap: .5rem; align-items: center; }

/* Ronda 12 */
.mdlg .frow { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.mdlg .stp { margin-left: auto; }
.mdlg h3 { margin: 0; } .mdlg .leg { display: grid; gap: .7rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); } .mdlg .leg h4 { margin: 0; font: 700 .8rem var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.mc .mid strong { border: 2px solid var(--line); border-radius: 12px; padding: .15rem .9rem; background: var(--bg2); box-shadow: 0 1px 2px rgba(0,0,0,.08); min-width: 4.2rem; text-align: center; }
.mc.w-u .mid strong { border-style: dashed; }
.leg { font: 600 .65rem var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.bk-btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.bk-btn:hover, .bk-btn:focus-visible { border-color: var(--blue); outline: none; }
.bk-legs { display: block; padding: .2rem .6rem .35rem; font-size: .68rem; color: var(--mute); border-top: 1px solid var(--line); }
.bk.edit .bk-t select { flex: 1; min-width: 0; }
.news .card-form { margin: 0 0 1rem; }
/* Hero: la imagen se ajusta para verse completa en cualquier pantalla */
.hero:not([data-banner])::before { background-size: contain !important; background-repeat: no-repeat; background-position: center !important; }
.hero[data-fit="contain"] { min-height: 150px; background: var(--bg2); } .hero[data-fit="contain"] .hero-bg { object-fit: contain; object-position: center; }

/* Ronda 13: cada juego dentro de un marco completo */
.mcards { display: grid; gap: .9rem; }
.mc { border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem .9rem; background: var(--bg2); box-shadow: 0 1px 3px rgba(0,0,0,.08); border-bottom: 1.5px solid var(--line); }
.mc:hover { border-color: var(--blue); }

/* Ronda 15: grupos, clasificados, puntos extra */
.qdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; margin-left: 6px; vertical-align: middle; }
.grp-cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin: .8rem 0; }
.grp-cfg select { width: 100%; }
.grp-msg { margin: .2rem 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: var(--bg2); border: 1px solid #b4532a; color: var(--text); }
.grp-msg.ok { border-color: #2f8f63; }
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.grp-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; display: grid; gap: .45rem; align-content: start; }
.grp-box h4 { margin: 0 0 .2rem; font: 700 1rem var(--f-head, inherit); }
.grp-box select { width: 100%; }

/* Ronda 16: colores de los costados (ajustables en Admin → Imágenes) y filtros compactos en móvil */
:root { --side-l: var(--red); --side-r: var(--blue); }
.news li, .mine { border-left: 4px solid var(--side-l) !important; border-right: 4px solid var(--side-r) !important; }
.champs, .champions { border-left: 4px solid var(--side-l); border-right: 4px solid var(--side-r); }
.champions li a { border-left: 0; }
.colset { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.colset input[type=color] { width: 56px; height: 42px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); }
@media (max-width: 640px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: .8rem 0 .5rem; }
  .filters .fl span, .sortbar .fl span { font-size: .72rem; }
  .filters select, .filters input, .sortbar select, .sortbar input { font-size: .8rem; min-height: 34px; padding: .25rem 1.3rem .25rem .45rem; background-position: right .4rem center; }
  table.rk th, table.rk td { padding: .4rem .35rem; font-size: .8rem; }
}

/* Ronda 18: año y fechas por competencia */
.champs.cmp li{display:block;padding-bottom:.4rem}
.cmp-f{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end;margin:.35rem .6rem .2rem}
.cmp-f .fl{flex:1 1 7rem;min-width:0}.cmp-f input{width:100%}

/* Ronda 21: calendario con partidos y filtros */
.month-filters{display:flex;gap:.6rem;flex-wrap:wrap;margin:.4rem 0}.month-filters .fl{flex:1 1 9rem;min-width:0}
.month-event.mm{display:block;font-size:.68rem;line-height:1.25;padding:.15rem .3rem;margin-top:.15rem;border-radius:6px;background:var(--card2,rgba(127,127,127,.12));color:inherit;text-decoration:none;overflow-wrap:anywhere}
.month-event.mm .sc{white-space:nowrap;font-weight:700}
.month-day.has-events{max-height:12rem;overflow:auto}
